Page 1 of 1

NoScript breaks WebExtension REST client

Posted: Sun Oct 09, 2016 6:18 pm
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.

Re: NoScript breaks WebExtension REST client

Posted: Sun Oct 09, 2016 6:20 pm
by barbaz
What version of Firefox are you using and what update channel is it from?

Re: NoScript breaks WebExtension REST client

Posted: Sun Oct 09, 2016 6:32 pm
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?