XML Http Request fails in bookmarklet

Bug reports and enhancement requests
Post Reply
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

XML Http Request fails in bookmarklet

Post by porl »

If you disallow scripts from a site in Firefox and versions of NoScript from the past few months, an XHR in a bookmarklet executed on that site fails to retrieve other pages from the same domain. Nor will the same script do so in Scratchpad.

The bookmarklet never gets beyond readyState 1, although the request apparently succeeds. In Scratchpad, the script gives error '0x805e0006 (<unknown>)'. (Temporarily) enable scripts for the domain and they work again.

I can give you example code and an exact error message, but nothing the antispam filter will permit me to post, apparently. It won't even let me write XHR in full as one word.

One of the best features of NoScript is that it doesn't normally interfere with bookmarklets and dev tools, so I hope this is fixable.

Cheers.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: XML Http Request fails in bookmarklet

Post by Thrawn »

Have encountered this same problem recently, but didn't realise it was only happening in recent NoScript versions.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: XML Http Request fails in bookmarklet

Post by Giorgio Maone »

It looks like it's been a Firefox change (especially in its Sandbox code), rather than a NoScript change.
You can PM or mail me the bookmarklet example?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

Re: XML Http Request fails in bookmarklet

Post by porl »

I have PM'd you.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0
Post Reply