NoScript breaks WebExtension REST client

Bug reports and enhancement requests
Post Reply
esphen
Posts: 2
Joined: Sun Oct 09, 2016 5:53 pm

NoScript breaks WebExtension REST client

Post by esphen »

Hi,

I am the developer of a REST client extension for Firefox, and have noticed that after porting it to the newer WebExtension API, it no loger works with NoScript enabled. Before it worked just fine with NoScript. Below follows a bug report for you to look into the issue.

Steps to reproduce Expected behavior:
The response code of the request and content of the page is show below

Actual behavior:
The response code "0" is echoed, and no content is shown. The request is blocked by NoScript before even being sent (verify by looking in the network panel of the developer tools)

Notes
It does not matter if the URL you are requesting through the REST client is whitelisted, it will still fail. When disabling setting NoScript to "Allow scripts globally", sending requests work as intended.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript breaks WebExtension REST client

Post by barbaz »

What version of Firefox are you using and what update channel is it from?
*Always* check the changelogs BEFORE updating that important software!
-
esphen
Posts: 2
Joined: Sun Oct 09, 2016 5:53 pm

Re: NoScript breaks WebExtension REST client

Post by esphen »

I am using Firefox Developer Edition (51.0a2), but have also tested on Firefox Stable (49). Tested with e10s enabled and disabled, same result.
esphen wrote: It does not matter if the URL you are requesting through the REST client is whitelisted, it will still fail.
It seems I was mistaken on the above. Whitelisting the page you are requesting seems to allow it to be requested through NoScript's filters. So this is a whitelisting issue, where the whitelists work differently in the new WebExtension API?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0
Post Reply