Blank page when trying to load Javascript file directly in FF

Bug reports and enhancement requests
Post Reply
darkrain
Posts: 1
Joined: Fri May 28, 2021 5:30 pm

Blank page when trying to load Javascript file directly in FF

Post by darkrain » Fri May 28, 2021 6:15 pm

With Firefox 88.0.1 (Windows 10) and noscript 11.2.5rc2 or higher (treating content as untrusted), if I try to load a JavaScript file directly (i.e. pulling up its source), I get a blank page. (Intermittently, the actual content will load on initial page load, but I get a blank page if I refresh the page.)

Public example files: Similar to this post about XHTML, if I allow the "object" capability, the JavaScript text content renders consistently.

The pages where I've seen this are being served up as content-type: application/javascript.

I went back and tested various older versions -- I don't see this at all in noscript 11.2.5rc1, but see it in 11.2.5rc2 and 11.2.8 (as served up from AMO)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

barbaz
Senior Member
Posts: 9961
Joined: Sat Aug 03, 2013 5:45 pm

Re: Blank page when trying to load Javascript file directly in FF

Post by barbaz » Fri May 28, 2021 8:31 pm

Moving bug report to NoScript Development.

I can confirm this in NoScript 11.2.8rc2, Firefox 88.0.1. Possibly related Browser Console message -

Code: Select all

TypeError: can't access property "firstElementChild", document.body is null 2 embeddingDocument.js:5:5
    suspender moz-extension://********-****-****-****-************/content/embeddingDocument.js:5
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Giorgio Maone
Site Admin
Posts: 9108
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Blank page when trying to load Javascript file directly in FF

Post by Giorgio Maone » Thu Jun 03, 2021 9:53 pm

Fixed in latest development build, thanks.

v 11.2.9rc1
============================================================
x Avoid treating JavaScript files as embeddings when opened
as top-level documents
x [L10n] Updated de
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Post Reply