Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Download option still displayed for expired file after browser restart #159

Open
SoftVision-CiprianMuresan opened this issue Jul 4, 2017 · 4 comments

Comments

@SoftVision-CiprianMuresan
Copy link

SoftVision-CiprianMuresan commented Jul 4, 2017

[Notes]:

  • A similar behavior can be observed if the browser is restarted right after downloading a file. Instead of the 404 page, the download card will be displayed.

[Affected versions]:

  • Firefox 54.0 and up

[Affected Platforms]:

  • All Mac

[Prerequisites]:

  • "When Firefox starts: Show my windows and tabs from last time" option is set in about:preferences

[Steps to reproduce]:

  1. Start the Firefox browser with the profile from prerequisites and navigate to "https://send.dev.mozaws.net/" page.
  2. Upload a file and open the download link in two different tabs.
  3. Download the file in the first tab and then navigate to the second tab.
  4. Close the browser (Quit) and reopen it with the same profile.
  5. Observe the displayed tab.

[Expected result]:

  • The "Link expired" page is displayed.

[Actual results]:

  • The Download card is displayed.

[Additional notes]:

  • This issue is also reproducible on the stage page (https://send.stage.mozaws.net).
  • If the page is manually refreshed, the "Link expired" page is correctly displayed.
  • Here is a screen recording with the issue: Link.
@SoftVision-CiprianMuresan SoftVision-CiprianMuresan changed the title Download option still displayed for expired file after browser restart [Mac OS] Download option still displayed for expired file after browser restart Jul 5, 2017
@ghost ghost added this to the Dedicated Dingo milestone Jul 5, 2017
@SoftVision-CiprianMuresan
Copy link
Author

This issue is now reproducible on Windows and Linux too.

@dannycoates
Copy link
Contributor

fixed in #297

@SoftVision-CiprianMuresan
Copy link
Author

This issue is still reproducible on all platforms. Moreover after clicking the "Download" button for an expired link the download page is somehow merged with the Link expired page.

screen shot 2017-07-25 at 16 08 24

Screen recording: here.

@SoftVision-CiprianMuresan SoftVision-CiprianMuresan changed the title [Mac OS] Download option still displayed for expired file after browser restart Download option still displayed for expired file after browser restart Jul 25, 2017
@dannycoates
Copy link
Contributor

The weird mixed error/download screen is fixed in #310.

Having the page show that the link is expired immediately after a browser restart is difficult because the page is served from the browser cache, so we'd need to make an xhr request to check the status, which seems excessive given its rarity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants