https://github.com/greasemonkey/greasemonkey/issues/2154

Dne čtvrtek 23. dubna 2015 4:38:41 UTC+2 Matt Sargent napsal(a):
>
>  I reported this back in February, but it seems to have gotten lost.
>
> Under Greasemonkey 3.1/Firefox 38, the following error is thrown when 
> using abort() with GM_xmlhttpRequest:
>
> *Exposing privileged or cross-origin callable is prohibited*
>
>  Under Greasemonkey 2.3/Firefox 35, it completes normally, and the 'abort 
> OK' message is displayed. Under Greasemonkey 3.1/Firefox 38, it won't.
>
> Here is a sample script that shows the problem. 
>
> // ==UserScript==
> // @name        Abort Test
> // @namespace   http://gmscripts.locusprime.net
> // @include     http*://*
> // @version     01.00
> // @grant       GM_log
> // @grant       GM_xmlhttpRequest
> // ==/UserScript==
>
>     var req = GM_xmlhttpRequest( {
>         method:"GET",
>         url:'http://www.huffingtonpost.com/',
>         onload:function(result) {
>             GM_log(result.responseText);
>         }
>     } );
>
>     req.abort();
>     GM_log('abort OK');
>
>
>
>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to