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

Use unsafeWindow in setTimeout callback throw an error #91

Closed
yume-chan opened this issue Apr 12, 2013 · 4 comments
Closed

Use unsafeWindow in setTimeout callback throw an error #91

yume-chan opened this issue Apr 12, 2013 · 4 comments
Milestone

Comments

@yume-chan
Copy link
Contributor

Just use the following code

setTimeout(function() { unsafeWindow.document }, 200);

Then Firefox show this error
Illegal operation on WrappedNative prototype object
My friend told me that codes like this works on GreaseMonkey.

Firefox nightly 23.0a1 + Scriptish 0.1.8

@chengyuhui
Copy link

This code works on Tampermonkey with Google Chrome 26.0.1410.43 m.

@ghost
Copy link

ghost commented Apr 14, 2013

Try window.setTimeout instead of just setTimeout. I opened a bug report for this here: #89

@yume-chan
Copy link
Contributor Author

@Kuehlschrank Yes it should be same bug.

@erikvold
Copy link
Member

duplicate of #89

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

3 participants