returns undefined in firefox 4, works in ff3.6
A lot more details would be really helpful.
P.S. there is literally almost never a good reason to be using unsafeWindow. Run in the page and you don't have to deal with Greasemonkey's security restrictions.
there is literally almost never a good reason to be using unsafeWindow
true in most cases, but I need to read/write scoped vars in the unsafe function which makes it a lot easier to run using unsafeWindow instead of in the page
I have already read this many times before, none of the workarounds help in my case
pressed comment and close by accident please reopen it :p
Why would you ever need to redefine the prototype of XMLHttpRequest in the page?
to hook google's ajax request without using document.NodeInserted
Marking this confirmed on the assumption that it is actually duped by #1326 which definitely is.
Reported upstream, as I think that's where the problem is:
This bug is annoying because i can't control flash object anymore in firefox4.
I use "unsafeWindow.document.getElementById(IdName);" to get the [object HTMLEmbedElement] in firefox3, but in firefox4, i get [object XrayWrapper [object HTMLEmbedElement]] that don't work.
Is there a way to control flash object in firefox4 that is not too slow ?
Ok... i found that "window.document.getElementById(IdName).wrappedJSObject;" is the way to go to control the flash object.
Looks like we can do this; we just haven't been doing it quite right until now.