document.location.href = "....user.js" fails in framesets #1248

Closed
arantius opened this Issue Jan 19, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Collaborator

arantius commented Jan 19, 2011

I can provide more informations concerning this.
document.location.href = "...user.js"; won't trigger GM installation
window if the website is using framesets and the script is just
triggered in one of these frames.

From: http://groups.google.com/group/greasemonkey-users/t/ab54d9b272bb955d?hl=en

Collaborator

arantius commented Apr 14, 2011

Confirmed that this will fail: https://gist.github.com/919910

But just change "document" to "top.document" and it works as intended.

@arantius arantius closed this in 7425cfd Apr 14, 2011

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