"What should Pale Moon do with this file?" box very slow
Moderator: trava90
Forum rules
If your question is about general use of the browser and not specific to Linux, then please use the General Support board.
If your question is about general use of the browser and not specific to Linux, then please use the General Support board.
"What should Pale Moon do with this file?" box very slow
When I click to download a file, I get the little dialog box offering to open or save the download. But the "OK" button at the bottom of the dialog box is greyed out, and typically stays greyed out for several seconds, then becomes clickable. (It doesn't seem to have anything to do with the progress of the download.)
If I unfocus the Pale Moon window (by moving my mouse off it) and then re-focus it, the button greys out for another several seconds before it becomes clickable.
Mild annoyance but I wonder if it's fixable?
If I unfocus the Pale Moon window (by moving my mouse off it) and then re-focus it, the button greys out for another several seconds before it becomes clickable.
Mild annoyance but I wonder if it's fixable?
- The Squash
- Fanatic
- Posts: 193
- Joined: 2020-03-25, 19:31
- Location: Beyond the Kuiper Belt
Re: "What should Pale Moon do with this file?" box very slow
On all the Pale Moon versions I've tried since 2017, I've always seen that effect too. For me, it's an extemely precise 1 second delay. The same thing happens to the "Reload" button in the browser, which also stays grayed out for a second.
I've never figured out what caused this, though.
If I had to guess though, it's probably one of the lines in the code that looks like this:
I've never figured out what caused this, though.
If I had to guess though, it's probably one of the lines in the code that looks like this:
Code: Select all
/*
* A race condition may ensue if we allow a download to be saved immediately.
* The file chooser dialog uses the handle of the input stream as soon as the
* dialog is opened; this means the handle may not yet be valid. See bug
* 1234567.
*/
PYRAMID SCHEMES
THE RAIDS OF THE PHARAOHS' TOMBS
"A drama about the first organized crime groups -- a must-see." -- The New Porker
IN THEATERS NOW
Rated PG-13 -- for language, violence and immaturity that would make a 2-year-old wince.
THE RAIDS OF THE PHARAOHS' TOMBS
"A drama about the first organized crime groups -- a must-see." -- The New Porker
IN THEATERS NOW
Rated PG-13 -- for language, violence and immaturity that would make a 2-year-old wince.
Re: "What should Pale Moon do with this file?" box very slow
This delay is on purpose. It is a security measure to prevent scripted events from "clicking" the OK button for you or tricking the user into having a queued up keypress causing the download (or worse: opening) of the file, and is avoiding drive-by downloads this way. You should be able to make it active by clicking elsewhere on the window yourself registering actual user interaction.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss


- RealityRipple
- Lunatic
- Posts: 253
- Joined: 2018-05-17, 02:34
- Location: Los Berros Canyon, California
- Contact:
Re: "What should Pale Moon do with this file?" box very slow
I don't recommend removing the delay. I've actually seen the malicious trick being used in the wild on some sites.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss


Re: "What should Pale Moon do with this file?" box very slow
Good to know, thanks! Clicking elsewhere in the dialog box doesn't make it active for me, I still have to wait.Moonchild wrote: ↑2020-08-23, 16:44This delay is on purpose. It is a security measure to prevent scripted events from "clicking" the OK button for you or tricking the user into having a queued up keypress causing the download (or worse: opening) of the file, and is avoiding drive-by downloads this way. You should be able to make it active by clicking elsewhere on the window yourself registering actual user interaction.
But now that I know it's intentional and for my own good, I will wait contently.
Re: "What should Pale Moon do with this file?" box very slow
I was pretty sure that would free it up but maybe I misremember. And maybe it's been changed by Mozilla since I last checked, too.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss


- The Squash
- Fanatic
- Posts: 193
- Joined: 2020-03-25, 19:31
- Location: Beyond the Kuiper Belt
Re: "What should Pale Moon do with this file?" box very slow
I've programmed a lot of JavaScript in the past, and I truly wonder: How the heck does that attack even work? How does JavaScript code synthesize a keypress or click event like that?
PYRAMID SCHEMES
THE RAIDS OF THE PHARAOHS' TOMBS
"A drama about the first organized crime groups -- a must-see." -- The New Porker
IN THEATERS NOW
Rated PG-13 -- for language, violence and immaturity that would make a 2-year-old wince.
THE RAIDS OF THE PHARAOHS' TOMBS
"A drama about the first organized crime groups -- a must-see." -- The New Porker
IN THEATERS NOW
Rated PG-13 -- for language, violence and immaturity that would make a 2-year-old wince.
Re: "What should Pale Moon do with this file?" box very slow
I'm sure you can find examples if you only search for it.The Squash wrote: ↑2020-09-09, 01:18I've programmed a lot of JavaScript in the past, and I truly wonder: How the heck does that attack even work? How does JavaScript code synthesize a keypress or click event like that?
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss


Re: "What should Pale Moon do with this file?" box very slow
Off-topic:
http://media.tojicode.com/q3bsp/
Those demos show mouse movement, which isn't exactly the same, but I saw a page once where the mouse moved under the webpage's control, and that seems how it might be done, by creating a replacement mouse image and hiding the original. Click on the active area, and press escape to get your mouse back. It would be useful for 360 VR videos if they were controlled like that, better than click and drag! Especially fun with a trackpoint.
https://mdn.github.io/dom-examples/pointer-lock/How does JavaScript code synthesize a keypress or click event like that?
http://media.tojicode.com/q3bsp/
Those demos show mouse movement, which isn't exactly the same, but I saw a page once where the mouse moved under the webpage's control, and that seems how it might be done, by creating a replacement mouse image and hiding the original. Click on the active area, and press escape to get your mouse back. It would be useful for 360 VR videos if they were controlled like that, better than click and drag! Especially fun with a trackpoint.
Wait, it's all Ohio? Always has been...
Re: "What should Pale Moon do with this file?" box very slow
Aside from "automated" attack, the general response to a popup (to any popup), is to "click it".
So an automatic delay (which AFAIK) has always been the case (on Mozilla browsers), makes, or at least entices one to stop & think, for a moment, "do I want to actually do this"?
So an automatic delay (which AFAIK) has always been the case (on Mozilla browsers), makes, or at least entices one to stop & think, for a moment, "do I want to actually do this"?