Closed Bug 1715920 Opened 3 years ago Closed 4 months ago

Saving or downloading an image from a URL incorrectly uses an updated version if you have multiple tabs with same URL but different content

Categories

(Toolkit :: Downloads API, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1472482

People

(Reporter: rory.costello, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

I develop a web site that shows an image, which is opened in Firefox with a URL (e.g. https://mysite.com/images/test.png). I then re-run the back end script that changes/updates this image. I open a new Firefox tab and open this URL - I see the new image. If I go back to the first Firefox tab and choose Save / Copy, the second image is copied or saved, not the first, which is confusing to the user (me) because what I copied is not what actually gets copied

Actual results:

Only image from second Firefox tab is downloaded or saved

Expected results:

Even though you have multiple tabs with the same name, the content of the appropriate tab clicked on should be saved / downloaded - what you see is what you should get?

The Bugbug bot thinks this bug should belong to the 'Firefox::Session Restore' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Session Restore

Hey rory,
Can you test the issue while in Safe Mode? You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Also a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .

Flags: needinfo?(rory.costello)

Hey Andrei, thanks for the follow-up.

Tested and reproduced same results with both Firefox 89.0 in safe mode as well as Firefox Nightly 91.0a1 (2021-06-15, 64 bit).

I appreciate it's a rare case and am not too troubled by the severity of this bug ... except ... it slightly offends the purist / developer in me, and thought you guys might like to be aware of it, if nothing else.

Screen-cap of bug reproduction in both browsers (can't seem to be able to attach images here?): https://imgur.com/a/zmyLfs9

Flags: needinfo?(rory.costello)

Since this already has a component set the dev team are aware and hopefully have a better respons on it than me.

Component: Session Restore → Downloads API
Product: Firefox → Toolkit
Version: Firefox 89 → unspecified

Which http headers is the server sending here? You can retrieve them from the Web DevTools Network panel.
In particular it would be good to know if the site is properly asking the browser to not cache the content, See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

Flags: needinfo?(rory.costello)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:mak, since the bug has recent activity, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?

For more information, please visit BugBot documentation.

Flags: needinfo?(rory.costello) → needinfo?(mak)

sounds like the same as bug 1472482

Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Duplicate of bug: 1472482
Flags: needinfo?(mak)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: