I have NoScript v13.0.8 running on the Vivaldi browser in Windows 10 x64. I often save web pages of interest as MHTML files. Lately when trying to view these I find that NoScript is preventing it.
I had first noticed some trouble early last month but at that time changing "file:///" in the address bar to "file://" would let the page load. Ctrl-R would sometimes let it load.
NoScript has "file://" set as Trusted and I created a rule making "file:///" be Trusted too but that doesn't fix the problem.
My workaround now is to have MHTML files open in vanilla Chrome instead, where I have no extensions installed. But this is a little clumsy.
--> Is there anything I can set in NoScript Options to allow opening MHTML files?
Thanks
NoScript prevents opening MHTML files
NoScript prevents opening MHTML files
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Re: NoScript prevents opening MHTML files
Normally this entry should be just "file:" (and the padlock set to red/unlocked). Does changing to that help?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0
Re: NoScript prevents opening MHTML files
I've now added both "file:" and "file:/" as Trusted unlocked permissions, but no joy. Vivaldi still can't open MHTML files that it saved.
Thanks for your help.
Thanks for your help.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Re: NoScript prevents opening MHTML files
That's in "Per-Site Permissions" of course. Btw is there a way to remove rules / delete a permission from that listing?
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Re: NoScript prevents opening MHTML files
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 SM/2.38 NS/2.9.0.12
Re: NoScript prevents opening MHTML files
Thanks; I see now that to completely delete a permission we just need to set it to the default value. I had tried that but thought that "nothing happened" because it only disappears after a page refresh.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Re: NoScript prevents opening MHTML files
Doing some more actual work on my end (!) RESOLVED this...
• As I'd reported, my Vivaldi (which I keep up-to-date) would not open MHTML files; the page would be blank.
• All NoScript Options were at their default values, except for my many Per-Site-Permissions.
• I exported my Per-Site-Permissions to save those.
• I removed NoScript from Vivaldi.
• I re-installed NoScript in Vivaldi.
• Vivaldi would then open MHTML files properly.
• I Imported my Per-Site-Permissions list, restoring NoScript to my current usage.
• Vivaldi continues to open MHTML files correctly, including through an update and a reboot.
SO - there is no fundamental problem; something just got confused.
• As I'd reported, my Vivaldi (which I keep up-to-date) would not open MHTML files; the page would be blank.
• All NoScript Options were at their default values, except for my many Per-Site-Permissions.
• I exported my Per-Site-Permissions to save those.
• I removed NoScript from Vivaldi.
• I re-installed NoScript in Vivaldi.
• Vivaldi would then open MHTML files properly.
• I Imported my Per-Site-Permissions list, restoring NoScript to my current usage.
• Vivaldi continues to open MHTML files correctly, including through an update and a reboot.
SO - there is no fundamental problem; something just got confused.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Re: NoScript prevents opening MHTML files
(The "RESOLVED" post was posted while I was writing this post, but this post maybe useful information anyway)
I just tried this in Vivaldi 7.4.3684.43 (on Linux) with NoScript 13.0.8, and:
- I don't have any issue opening an MHT file using File > "Open File..." with NoScript in completely default configuration.
- If I go to chrome://extensions/ and set NoScript allowed access to file: URLs, then I get a blank page, but setting "file:" to Trusted gets it working.
- If I customize the Trusted preset in NoScript Options > General, I get the issue you're describing. Reverting the Trusted preset to everything allowed does NOT get it working again.
When the issue occurs, reloading with Ctrl-Shift-R seems to load the MHT file correctly.
F12 Developer tools for the broken page are spammed with messages like
I just tried this in Vivaldi 7.4.3684.43 (on Linux) with NoScript 13.0.8, and:
- I don't have any issue opening an MHT file using File > "Open File..." with NoScript in completely default configuration.
- If I go to chrome://extensions/ and set NoScript allowed access to file: URLs, then I get a blank page, but setting "file:" to Trusted gets it working.
- If I customize the Trusted preset in NoScript Options > General, I get the issue you're describing. Reverting the Trusted preset to everything allowed does NOT get it working again.
When the issue occurs, reloading with Ctrl-Shift-R seems to load the MHT file correctly.
F12 Developer tools for the broken page are spammed with messages like
Code: Select all
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://[ff00::]/chrome-extension://doojmbjmlfjjnbmnoijecmcbfeoakpjm/nscl/c…0039ff2-8d5e-457a-bc43-09e94147440c%3A84860f33-6481-4d65-be1b-5d170644ae91'.
at browser.runtime.sendSyncMessage (chrome-extension://d…ncMessage.js:564:13)
at refetch (chrome-extension://d…/staticNS.js:128:36) "SyncMessage 90039ff2-8d5e-457a-bc43-09e94147440c:84860f33-6481-4d65-be1b-5d170644ae91 error in <redacted file: URL of my MHT file>: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://[ff00::]/chrome-extension://doojmbjmlfjjnbmnoijecmcbfeoakpjm/nscl/c…0039ff2-8d5e-457a-bc43-09e94147440c%3A84860f33-6481-4d65-be1b-5d170644ae91'. (response https://[ff00::]/chrome-extension://doojmbjmlfjjnbmnoijecmcbfeoakpjm/nscl/c…0039ff2-8d5e-457a-bc43-09e94147440c%3A84860f33-6481-4d65-be1b-5d170644ae91 - - )"
Error: SyncMessage Error Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://[ff00::]/chrome-extension://doojmbjmlfjjnbmnoijecmcbfeoakpjm/nscl/c…72e96ce-a7c8-4ebd-a7f1-3277389ba6ab%3A84860f33-6481-4d65-be1b-5d170644ae91'.
at browser.runtime.sendSyncMessage (chrome-extension://d…ncMessage.js:594:20)
at chrome-extension://d…ncMessage.js:610:31
Caused by: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://[ff00::]/chrome-extension://doojmbjmlfjjnbmnoijecmcbfeoakpjm/nscl/c…72e96ce-a7c8-4ebd-a7f1-3277389ba6ab%3A84860f33-6481-4d65-be1b-5d170644ae91'.
at browser.runtime.sendSyncMessage (chrome-extension://d…ncMessage.js:564:13)
at chrome-extension://d…ncMessage.js:610:31
'SyncMessage immediate retry failed on
<redacted file: URL of my MHT file>
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0