문제

I have an issue with the use of window.opener.

Whenever I use window.open("url"), the opened window will reference window.opener fine, but when I use GM_openInTab that claims to be equivalent (and I use it for the cross browser compatibility because opening in tabs is essential) it's window.opener value for the child window is null.

How come GM_openInTab's opened window window.opener is null? How can I get around this?

도움이 되었습니까?

해결책

The problem is I was doing this under the Scriptish addon environment, which while originally forked from Greasemonkey has a recorded (and still unfixed) bug where GM_openInTab returns null.

I have attempted to alert them of the ongoing nature and annoyance of this bug, but nothing has happened yet. It will be up to the Scriptish developers to fix this, and it's a shame it hasn't been fixed as I find Scriptish to suit my needs far better than Greasemonkey due to privacy concerns.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top