Skip to content

Loading…

"Could not import util windowForTab" in openInTab #1428

Closed
Ventero opened this Issue · 2 comments

2 participants

@Ventero

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 Ventero referenced this issue
Commit has since been removed from the repository and is no longer available.
@Ventero

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
@arantius
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
Something went wrong with that request. Please try again.