"Could not import util windowForTab" in openInTab #1428

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

Comments

Projects
None yet
2 participants
@Ventero
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

This comment has been minimized.

Show comment
Hide comment
@Ventero

Ventero Sep 23, 2011

Contributor

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.

Contributor

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 arantius closed this in 3a8f605 Sep 26, 2011

@arantius

This comment has been minimized.

Show comment
Hide comment
@arantius

arantius Sep 29, 2011

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.

Collaborator

arantius commented Sep 29, 2011

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