Save As dialog and deleted files issue

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3006
Joined: 2012-08-19, 20:32

Save As dialog and deleted files issue

Post by back2themoon » 2025-09-15, 08:05

This might as well be a Windows Explorer quirk, I don't know. But it is bugging me a bit - here's the full breakdown as an example.

1. Visit https://www.palemoon.org/
2. On the right side, save the "Support Us" image. It should save as "donate_vertbanner.png".
3. Again: right-click on the same image, and pick Save Image As...
4. You should have the Save dialog on the same disk location as before. Do not Save/overwrite yet.
5. Still within the Save dialog, left-click the donate_vertbanner.png which is already on the disk and delete it. Use either Del (Recycle Bin) or Shift-Del (permanent deletion).
6. We are still in the Save dialog and "donate_vertbanner.png" is now gone. Now click Save.
7. You will get the "File exists - overwrite?" warning. It doesn't make much sense, but I'm sure there's an explanation (?).
8. Donate :)

This occurs with any file type.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38387
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Save As dialog and deleted files issue

Post by Moonchild » 2025-09-15, 09:12

That's a quirk of the common dialog code in Windows. Nothing really we can do anything about on our end.
"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

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2480
Joined: 2018-05-05, 13:29

Re: Save As dialog and deleted files issue

Post by vannilla » 2025-09-15, 11:10

I think this would happen even outside Windows (have not tested)... to reduce issues from faulty disks a file explorer would reasonably cache the files it managed to find and will not "monitor" the filesystem to detect changes, unless the kernel itself provides hooks to receive these notifications and the program binds to them (i.e. monitoring is offloaded to the OS).

User avatar
billmcct
Board Warrior
Board Warrior
Posts: 1070
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: Save As dialog and deleted files issue

Post by billmcct » 2025-09-15, 15:59

Windows only really updates the MFT after a logoff or restart.
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2 19045.5965
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
2 TB Samsung 9100 Pro main M2 SSD
1 TB Intel storage M2 SSD (very very slow)
500 GB Corsair T500 storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.9.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3006
Joined: 2012-08-19, 20:32

Re: Save As dialog and deleted files issue

Post by back2themoon » 2025-09-15, 16:18

Thanks for the info. I thought there might be some sort of technical -but still lame- reason for this. Here's a bonus, probably from the Windows 2000 days or earlier:

1. Go to Network Connections.
2. Right-click your main one and "Create Shortcut".
3. It will tell you it'll get created on the Desktop instead.
4. On the Desktop, right-click this shortcut. You have the option to directly Disable the connection.
5. Disable it. It works - great. You should think there will an Enable option now, right?
6. Wrong. You can only Disable it again. And again.

User avatar
UCyborg
Astronaut
Astronaut
Posts: 541
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: Save As dialog and deleted files issue

Post by UCyborg » 2025-09-15, 20:33

Interestingly, you can delete the file from another window and then the issue does not happen.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38387
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Save As dialog and deleted files issue

Post by Moonchild » 2025-09-16, 10:28

UCyborg wrote:
2025-09-15, 20:33
Interestingly, you can delete the file from another window and then the issue does not happen.
It probably has to do with filesystem information caching. Probably just an oversight in the common dialog box code when a deletion is performed from the dialog itself (and not signalled from the filesystem).
"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