woodruffw / ff2mpv

A Firefox/Chrome add-on for playing URLs in mpv.
https://addons.mozilla.org/en-US/firefox/addon/ff2mpv/
Other
521 stars 52 forks source link

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

Closed ceeGull closed 1 year ago

ceeGull commented 3 years ago

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

woodruffw commented 3 years ago

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?

ceeGull commented 3 years ago

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

woodruffw commented 3 years ago

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?

ceeGull commented 3 years ago

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

woodruffw commented 3 years ago

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.

ceeGull commented 3 years ago

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

woodruffw commented 3 years ago

Okay. I need some more information:

ceeGull commented 3 years ago

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

woodruffw commented 3 years ago

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 commented 3 years ago

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.