NS breaks JSON Viewer in Firefox Developer Edition

Bug reports and enhancement requests
Post Reply
Toad King
Posts: 4
Joined: Sat Nov 14, 2015 2:08 am

NS breaks JSON Viewer in Firefox Developer Edition

Post by Toad King »

When trying to view a JSON document with NoScript enabled I get a white page and lots of errors in the devtools console, all of which are "TypeError: React is undefined". Allowing scripts globally does not fix the issue.

Test doc: https://ac.duckduckgo.com/ac/?callback=&q=test

This only seems to happen on HTTP(S) pages. When using a data: URI the JSON Viewer works as expected. ex: data:application/json,{"test":"data"}

NoScript: 2.6.9.39rc1
Firefox: 44.0a2 (2015-11-13) 64-bit
OS: Windows 10 64-bit
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: NS breaks JSON Viewer in Firefox Developer Edition

Post by therube »

Any change if you disable e10?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
Toad King
Posts: 4
Joined: Sat Nov 14, 2015 2:08 am

Re: NS breaks JSON Viewer in Firefox Developer Edition

Post by Toad King »

therube wrote:Any change if you disable e10?
Disabling e10 does not fix it.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0
jamonation
Posts: 1
Joined: Mon Jan 04, 2016 11:00 am

Re: NS breaks JSON Viewer in Firefox Developer Edition

Post by jamonation »

I'm experiencing this issue on 45.0a2 (2015-12-25) developer edition with the latest development noscript, with and without e10s, using http or https URLs.

The network inspector Response pane shows this message:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
eyJyZXN1bHRzIjogW119
With the addon disabled, I can use the network inspector and I can see the parsed JSON data.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
mosquete
Posts: 1
Joined: Thu Jan 21, 2016 1:36 pm

Re: NS breaks JSON Viewer in Firefox Developer Edition

Post by mosquete »

jamonation wrote:I'm experiencing this issue on 45.0a2 (2015-12-25) developer edition with the latest development noscript, with and without e10s, using http or https URLs.
With the addon disabled, I can use the network inspector and I can see the parsed JSON data.
Same thing here. Using firefox-45.0a2.pt-BR.linux-x86_64 on Ubuntu 14.04.3 LTS. Noscript version is 2.9.0.2.

When I visit a URL like "https://ac.duckduckgo.com/ac/?callback=&q=test", I get a blank page. However on developer console the only error I get is "TypeError: React is undefined".
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Toad King
Posts: 4
Joined: Sat Nov 14, 2015 2:08 am

Re: NS breaks JSON Viewer in Firefox Developer Edition

Post by Toad King »

I noticed something else about this bug: If you allow scripts globally, even data: URLs have broken JSON viewers when they normally work.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Post Reply