Fileview corrupted

Ask for help about NoScript, no registration needed to post
rome5611

Fileview corrupted

Post by rome5611 » Mon Sep 07, 2020 1:28 pm

As of today (sept 7 2020) view of local plain-text files in firefox doesn't work anymore.
- This morning everything was ok
- Today received NoScript update.
- No view is corrupted, view is ok if I disable NoScript.

Anybody familiar with this problem>
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

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

Re: Fileview corrupted

Post by barbaz » Mon Sep 07, 2020 2:20 pm

I'm not seeing this. Do you have a sample text file?

What is last working rc version of NoScript?

Old NoScript @
https://addons.mozilla.org/addon/noscript/versions
*or*
https://noscript.net/feed?quantum&c=100
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
therube
Ambassador
Posts: 7669
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Fileview corrupted

Post by therube » Mon Sep 07, 2020 3:45 pm

(Actually, sounds like what you said here, Local file directory listing sometimes shown as garbage text.)
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 5.1; rv:52.0) Gecko/20100101 SeaMonkey/2.49.5

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

Re: Fileview corrupted

Post by barbaz » Mon Sep 07, 2020 4:03 pm

therube wrote:
Mon Sep 07, 2020 3:45 pm
(Actually, sounds like what you said here, Local file directory listing sometimes shown as garbage text.)
I could not reproduce any problem with plain-text file.
*Always* check the changelogs BEFORE updating that important software!
-

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

Re: Fileview corrupted

Post by Giorgio Maone » Mon Sep 07, 2020 9:33 pm

Please check latest development build:
v 11.0.43rc1
============================================================
x Should fix some race conditions causing corruptions in
non-HTML non-XML documents
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Quest

Re: Fileview corrupted

Post by Quest » Wed Sep 09, 2020 2:17 pm

Not sure if this is related, but I have a handmade htm file as Home page with only some <a href> links in it. I felt that the the links opened quite slowly if at all at the first click and set the page Trusted in NoScript. I felt that it helped but now when I open that Home page then the scands ("ä":s) are question marks. That doesn't happen when the page is set to Default.
Mozilla/5.0 (Windows NT 6.1; rv:80.0) Gecko/20100101 Firefox/80.0

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

Re: Fileview corrupted

Post by Giorgio Maone » Wed Sep 09, 2020 2:52 pm

Which NoScript version are you observing thos on?
Mozilla/5.0 (Android 9; Mobile; rv:81.0) Gecko/81.0 Firefox/81.0

mkupper
Posts: 3
Joined: Thu Jul 06, 2017 7:08 pm

Re: Fileview corrupted

Post by mkupper » Wed Sep 09, 2020 5:55 pm

I was using 11.0.42 on Firefox 80.0.1 (64-bit) on Windows 10.

Initially I planned to post a separate report about the issue but when I saw this thread about that 11.0.43rc1 fixed a corruption issue related to non HTML/HTML content I realized that 11.0.43rc1 could be relevant as I was trying to view .jpeg and .png files. I installed 11.0.43rc1 which fixed the issue. For the record, below here's the thing I had written up but then had not posted as the issue seemed to be covered by the 11.0.43rc1 fix.

----------
subject: Local images are displayed as text/garbage when the file: site is trusted

I'm running NoScript 11.0.42 on Firefox 80.0.1 (64-bit) on Windows 10.

For the past week or two local image files (jpeg, jpg, and png) are displaying as text when I try to view them directly.

For example, if I download https://noscript.net/noscript/logo.png to c:\tmp and then bring up file://C:/tmp/logo.png in Firefox then it shows a black and white "text" page that starts out with "?PNG ? IHDR??..." (some characters were replaced with ? to get through the forum's anti-spam filter) Right click and view page info shows the type is image/png.

If I create a small file://c:/tmp/logo.htm file containing just <img src=logo.png> then it works fine and I see the logo. If from that page I right click on the image and select view-image then I see the page of garbage text.

I tracked this down and it's caused by NoScript. If I disable all extensions except NoScript then I see garbage text instead of the image. If I disable NoScript then I see the image.

NoScript says that the file://C:/tmp/logo.png page is "safe" as it's the file: "site."

If I make the file: site "default" or "untrusted" then local images display fine.
If I temporarily trust the file: site then I get the page of garbage/text when I hit refresh.
----------

As I'm now running 11.0.43rc1 I can't reproduce the above though if needed I could revert back to 11.0.42 if you want me to try something. At that point I would assume we are dealing with something other than what 43rc1 was intended to fix and so I suspect I should start a new forum thread rather than hijacking this one.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

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

Re: Fileview corrupted

Post by barbaz » Wed Sep 09, 2020 6:56 pm

mkupper wrote:
Wed Sep 09, 2020 5:55 pm
rather than hijacking this one.
Yeah, about that, your other post was moved to viewtopic.php?f=7&t=26110 because this thread is only about plain-text files, while you & I (& others) were experiencing an issue with images. Please use the other thread to discuss the issue with images.
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply