Due to upstream Firefox changes, you cannot write to the response object,
only read it (as of Greasemonkey 1.1, which included compatibility
preparations for this upcoming change).  That doc needs fixing.

On Tue, Sep 18, 2012 at 12:20 PM, Brian L. Matthews <[email protected]>wrote:

>  I have a function:
>
> function getConfigXML(completion)
> {
>     var parseThenComplete = function(response)
>         {
>             if (response.status != 200) response.responseXML = null;
>             else if (!response.responseXML)
>                 response.responseXML = new
> DOMParser().parseFromString(response.responseText,
> 'text/xml');
>             completion(response.responseXML);
>         };
>
>     GM_xmlhttpRequest(
>         {
>             method: 'GET',
>             url: configURL,
>             onload: parseThenComplete,
>             onerror: parseThenComplete,
>             headers: { Accept: 'text/xml, application/xml' },
>         });
> }
>
> that worked fine pre-1.1, but on 1.1 I'm getting
>
> Error: Permission denied to access property 'responseXML'
>
>
> on the else if (!response.responseXML) line. I have an @grant
> GM_xmlhttpRequest. That parsing code is basically identical to what's at
> http://wiki.greasespot.net/GM_xmlhttpRequest.
>
> Any ideas?
>

-- 
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