Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught error when run in browser extension #170

Open
ferbs opened this issue Feb 8, 2019 · 0 comments
Open

Uncaught error when run in browser extension #170

ferbs opened this issue Feb 8, 2019 · 0 comments

Comments

@ferbs
Copy link

ferbs commented Feb 8, 2019

mouse.support.js#checkSupport throws an error when run in a
Chrome browser extension Content Script:

Uncaught ReferenceError: __synthTest is not defined

In a Content Script, document references the regular page's document object, but it has its own window object, one not shared with the page.

Also, the inline javascript:__synthTest() will be blocked on many sites, pretty much any that bother to set a CSP header.

I'm not sure what this check does, but could you assume the answer when window.__synthTest is not present?

I'm running it with Chrome Canary but I'm pretty sure all Chromium versions will exhibit the same problem.
Syn version: 0.13.0 on npm
Browser: Version 74.0.3686.3 (Official Build) canary (64-bit)
OS: Mac os X 10.12.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants