Page 1 of 1

Blank page when trying to load Javascript file directly in FF

Posted: Fri May 28, 2021 6:15 pm
by darkrain
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)

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

Posted: Fri May 28, 2021 8:31 pm
by barbaz
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

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

Posted: Thu Jun 03, 2021 9:53 pm
by Giorgio Maone
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