I have a script which makes heavy use of GM_getValue, GM_setValue, and GM_xmlhttpRequest.
This script functions fine under GM 0.8.20080609.0 and firefox 2.
However, when I run the same script under the same version of Greasemonkey on Firefox3, I get the following error.
I am working on whittling down the script to a bare-minimum case since it's a rather large script.
The fundamental of the script is that it checks credentials against another service/site that I run and if they are authenticated against that service pulls down an updated version of the script (if necessary) and stores it in a preference. It then evals the javascript code stored in this preference (or, if they are not authenticated, the javascript code returned from the authentication call).
Under FF3, this now generates a "Greasemonkey access violation: unsafeWindow cannot call GM_getValue" (and similar for setValue and xmlhttpRequest).
The key to note here is that the fundamental difference is that the same version of greasemonkey WORKED with FF2 in this exact same script. The only thing that changed was upgrading to FF3.
Now it is quite possible that I am abusing something here, and if so, I'd love help figuring out how to work around it, but I do need to be able to validate against this external services before executing the script or executing/updating the script returned from the service if need be and I need to be able to call GM_get/set functions from inside that block of code. I will put up a simplified version of my script which demonstrates this error as soon as possible.