ff2mpv icon indicating copy to clipboard operation
ff2mpv copied to clipboard

Content Security Policy: Couldn't Parse invalid host 'wasm-eval', null, Uncaught (in Promise)

Open ceeGull opened this issue 3 years ago • 10 comments

When I use the addon a window doesn't pop up and the console returns the statements above, I followed the instructions correctly

ceeGull avatar Dec 23 '20 21:12 ceeGull

Hmm. That's weird. ff2mpv doesn't use any WebAssembly, so my best guess is that you tried to play a URL (somehow) violated a site's CSP rules.

Do you have an example link that I could try to repro with?

woodruffw avatar Dec 23 '20 21:12 woodruffw

Hmm. That's weird. ff2mpv doesn't use any WebAssembly, so my best guess is that you tried to play a URL (somehow) violated a site's CSP rules.

Do you have an example link that I could try to repro with?

https://www.youtube.com/watch?v=Gl_H-e4UUiA

ceeGull avatar Dec 23 '20 21:12 ceeGull

https://www.youtube.com/watch?v=Gl_H-e4UUiA

Thanks. I'm unable to repro with that link, but since it's a CSP error it's possible that GitHub's CSP policy isn't interfering with it here.

Do you have a link to the original page that that link was on, or a similar page that causes the same issue?

woodruffw avatar Dec 23 '20 21:12 woodruffw

https://www.youtube.com/watch?v=Gl_H-e4UUiA

Thanks. I'm unable to repro with that link, but since it's a CSP error it's possible that GitHub's CSP policy isn't interfering with it here.

Do you have a link to the original page that that link was on, or a similar page that causes the same issue?

about:devtools-toolbox?type=extension&id=ff2mpv%40yossarian.net

ceeGull avatar Dec 23 '20 21:12 ceeGull

about:devtools-toolbox?type=extension&id=ff2mpv%40yossarian.net

I'm not sure what to do with this -- there doesn't seem to be anywhere on this page for loading a separate URL with ff2mpv. I also wouldn't expect ff2mpv to work on any about:-protocol page, since those tend to have special restrictions about what extensions can do to them.

woodruffw avatar Dec 23 '20 21:12 woodruffw

no the issue is that it doesn't open MPV when clicking the button doesn't do anything even if I am on a valid page

ceeGull avatar Dec 23 '20 21:12 ceeGull

Okay. I need some more information:

  • Your host OS
  • Your Firefox version
  • Whether you're doing anything weird in your about:config that could mess with extension permissions

woodruffw avatar Dec 23 '20 21:12 woodruffw

MacOSX (Pre-BigSur) 10.15.7 84.0.1 seeing what is the issue with it not opening MPV

ceeGull avatar Dec 23 '20 21:12 ceeGull

Okay. I'm still unable to reproduce this on Linux. I'll try on a Mac when I have some free time.

In the mean time, please go through your about:config and make sure you don't have anything enabled that would interfere with Firefox's ability to inject extensions into your pages. That's the only thing I can think of, assuming that you followed the instructions correctly.

woodruffw avatar Dec 23 '20 22:12 woodruffw

I'm also unable to repro this on macOS. Marking as "candidate" since nobody else has reported this particular issue and I don't have any further ideas.

woodruffw avatar Dec 26 '20 17:12 woodruffw