Don't use "window.alert".
https://github.com/greasemonkey/greasemonkey/issues/1318

Never got fixed upstream.  Use just "alert" (which is hacked to not cause
this failure).  Or better yet, use GM_log/console.log()/dump().

On Mon, Mar 19, 2012 at 12:06 PM, Klaus Johannes Rusch <
[email protected]> wrote:

>
> Running FF11 and the latest GM I cannot get even the most basic
> GM_xmlhttpRequest to trigger onload, onerror or any other events, e.g.
>
> window.alert("before");
> var obj = GM_xmlhttpRequest({
>  method: "GET",
>  url: "http://www.example.com/";,
>  onload: function(response) {
>   window.alert("loaded");
>  }
> });
> window.alert("after");
>
> shows "before" and "after" but not "loaded".  The network trace shows
> that the request is executed and the resource fetched successfully,
> and with sync: true the response object is populated, only events
> never fire.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to