wrong popup e.g. on http://forum.milanotrasporti.org

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 875
Joined: 2014-09-01, 15:11
Location: Milan Italy

wrong popup e.g. on http://forum.milanotrasporti.org

Post by Lucio Chiappetti » 2025-11-24, 12:54

I mentioned this problem already in https://forum.palemoon.org/viewtopic.ph ... 8cb77e3f62

Since then a similar problem occurred occasionally on other sites (and usuallly not even on html files but pdf files), last is in this forum post http://forum.milanotrasporti.org/viewto ... 60#p657613. If I click on the link there I get this popup
wrongpopup.png
Incidentally the file is a pdf file, not HTML.

No errors in the error console. Tried also with restart in safe mode, and even with a fresh profile. I always get the wrong popup.

BTW other links on the same forum give a correct popup for pdf
goodpopup.png
You do not have the required permissions to view the files attached to this post.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Moonchild
Project founder
Project founder
Posts: 38690
Joined: 2011-08-28, 17:27
Location: Sweden

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Moonchild » 2025-11-24, 13:50

Works just fine for me.
You do not have the required permissions to view the files attached to this post.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 875
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Lucio Chiappetti » 2025-11-24, 13:56

As the other time ... what could be causing the anomalous behaviour in my case in all profiles ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Moonchild
Project founder
Project founder
Posts: 38690
Joined: 2011-08-28, 17:27
Location: Sweden

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Moonchild » 2025-11-24, 14:46

Lucio Chiappetti wrote:
2025-11-24, 13:56
As the other time ... what could be causing the anomalous behaviour in my case in all profiles ?
I don't really know. Whatever itis, it'll be something system-wide. Perhaps you are using an antivirus that is interfering, that replaces the response with a webpage if it thinks it's bad? I'm guessing here. Maybe someone else has a better idea?
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 875
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Lucio Chiappetti » 2025-11-24, 15:06

No, no antivirus, and I'm on Linux (x)ubuntu 24.04. Pale moon latest 33.9.1
I use uBo but I get the same in safe mode or with a fresh profile, which should not use any add-on.

BTW I just tried on a remote system (an old Opensuse frozen to Pale Moon 33.2.0) and it does not give any problem.

Since at least two of the sites which give problem (the ones I posted here) are some sort of document archives from an Italian public administration (ISS or Regione Lombardia), it might be they use some common third party infrastructure which announces the documents with a wrong http header. But could be depend also on the country whetre the browser is run ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Moonchild
Project founder
Project founder
Posts: 38690
Joined: 2011-08-28, 17:27
Location: Sweden

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Moonchild » 2025-11-24, 16:02

well the headers are:

Code: Select all

Content-Disposition:"attachment;filename=RL_RLAOOS1_2024_103.pdf"
Content-Type:"application/octet-stream"
Server:"Apache-Coyote/1.1"
So as I explained before elsewhere, it's an attachment and it is indicated as an unspecified binary stream, so being given the option to save only is logical if your system is set up that way (in MIME types), so it will at least never try to display it in-browser with that header logic.
So this means it's handed off to the external application handler for whatever is associated with ".pdf"; if you have no association on extension on your system it will treat it as an arbitrary binary download. It's possible you have a MIME type association for pdf, but not necessarily a file extension association? Linux can be rather opaque in that respect.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 638
Joined: 2017-01-14, 02:40
Location: Philippines

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by FranklinDM » 2025-11-24, 17:22

I'm on Linux and this is the pop-up I get:
Screenshot_2025-11-25_01-19-30.jpg
I do have a PDF reader installed and it doesn't appear in the list of applications that I can select in this pop-up (unlike other PDF files from other links, where it does show up correctly). I'm guessing it does have something to do with the generic content type sent by the server.

Other source/link (research article from an online journal):
Screenshot_2025-11-25_01-24-14.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 918
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by RealityRipple » 2025-11-24, 18:07

If it says "HTML Document" for the type on the PDF, that sounds like you hard-associated PDF files with your web browser. I think you can find your association list at /usr/share/applications/defaults.list?

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 875
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: wrong popup e.g. on http://forum.milanotrasporti.org

Post by Lucio Chiappetti » 2025-11-24, 19:50

I do not have any usr/share/applications/defaults.list and I doubt it will apply to my case (I run without a DE, under fvwm).
I do have various .mailcap and .mime.types in my home, but I guess they are irrelevant for Pale Moon (they are honoured by my MUA e.g. to spawn pdf viewer on pdf mail attachments incorrecty sent as octet-stream).

I would be agreeable to junk selectively mimeTypes.rdf or parts of it in my profile, if that is the only file affecting this behaviour, but the fact that I get the same behaviour in safe mode or on a fresh profile does not look promising for this action.

This is an excerpt of my Preferences->Applications
pmappspdf.png
pmappother.png
Most of them were added getting a prompt and adding a new application. The many pdf ones are historical and did work. The one to force JPEG in Pale Moon is relatively recent. The HTML one was done temporarily enabling addon NewMime 1.7 when I had the first experience with the new popup. But did not cure it.

Incidentally I sometimes get popups suggesting Save As for files for which it is appropriate (tar.gz or zip archives). But if offers also an option of another application (maybe engrampa, which I never used). OI never got one with only the possibility to Save

BTW, I inherited most of my profile from the Suse machine which I mentioned, on which an older frozen Pale Moon works. I cannot swear that the unpleasant behaviour on *buntu appeared after a given Pale Moon upgrade. I am inclined to think it is unrelated to the OS upgrade which occurred at the beginning of the year. The unpleasant behaviour is a recent thing (either on new websites or changed ones)
You do not have the required permissions to view the files attached to this post.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)