Local rust docs not loading when Noscript active
Posted: Mon Feb 16, 2026 1:50 am
I'm using NoScript 13.5.12 on Firefox 140.7.0esr and I'm unable to run scripts on *some* local files. So far I've only observed it in Rust (programming language) docs -- I generate the docs locally, and open them in the browser, but the search and settings features don't work. If I disable Noscript, they work. (file: is marked trusted, of course.) This was working a couple months ago, but I hadn't used docs since then so I'm not sure when things broke.
These is what I see in the console:
What's *really* weird is that when I created a new Firefox profile and loaded the docs, it worked fine, but when I then installed Noscript in that new profile and toggle file: permissions on and off, scripts in the file only worked when file: was disallowed. However, I couldn't reproduce that in yet another blank profile. 
So I feel like something is off with how file: docs are being handled?
These is what I see in the console:
Code: Select all
Freezing file:///home/phyzome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html <html lang="en"></html>
DocumentFreezer.js:142:15
Uncaught ReferenceError: getVar is not defined
<anonymous> file:///home/phyzome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/static.files/main-a410ff4d.js:1
main-a410ff4d.js:1:917
Unfreezing file:///home/phyzome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html off-document
<html lang="en">...
DocumentFreezer.js:167:17
Uncaught SyntaxError: redeclaration of const MAIN_ID
<anonymous> file:///home/phyzome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/static.files/main-a410ff4d.js:1
main-a410ff4d.js:1:1
So I feel like something is off with how file: docs are being handled?
