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

"Could not import util windowForTab" in openInTab #1428

Closed
Ventero opened this issue Sep 23, 2011 · 2 comments
Closed

"Could not import util windowForTab" in openInTab #1428

Ventero opened this issue Sep 23, 2011 · 2 comments
Milestone

Comments

@Ventero
Copy link
Contributor

Ventero commented Sep 23, 2011

Steps to reproduce:

  1. Install this gist as a userscript (direct link)
  2. Visit https://github.com/

Expected result: New tab with google.com and an alert with "typeof GM_openInTab() is [object Object]"
Observed result: New tab and the abovementioned error thrown in GM_util.

@Ventero
Copy link
Contributor Author

Ventero commented Sep 23, 2011

Simple fix

Note that even after applying this patch, the return value of GM_openInTab is a bit weird. Trying to access any property (except .window, as far as I can tell) throws a security violation (tested in Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2) - not sure why that is.

@arantius
Copy link
Collaborator

Note that even after applying this patch, the return value of GM_openInTab is a bit weird

It always has been. Same origin weirdness with the sandbox, to the best of my knowledge.

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

No branches or pull requests

2 participants