Steps to reproduce:
Example PDF: https://docs.qgis.org/3.22/pdf/en/QGIS-3.22-DesktopUserGuide-en.pdf
(47MB user guide for open-source geospatial software QGIS)
- Open the PDF to view in browser
- Click the download button on the built-in reader's overlay before the PDF has fully loaded
- An incomplete PDF file is immediately saved to disk, but it confusingly has the same file size as the complete file
Unfortunately, Safari has the same behaviour.
Expected behavior:
Ranked in order from best to worst
- If PDF is not fully loaded when the button is clicked, it changes to display a loading indicator, and when finished loading the PDF is saved to disk. While the loading indicator is visible, the button can be clicked again to cancel the pending save to disk action
- If PDF is not fully loaded, the button is greyed out (and possibly displays a loading indicator), and when finished loading, the button is available to be clicked
- The button is always able to be clicked but does nothing (no sync or async action is initiated) unless the PDF is fully loaded (this is the FF behaviour)
- The button is not visible until the PDF is loaded (confusing b/c you might see no download button then abort and try to find a different way to download it, the button indicates the capability for downloading the PDF and should always be visible)
Orion, OS version; hardware type:
Orion 0.99.113.1-beta (WebKit 614.1.5.7)
macOS Version 12.2 (Build 21D49)
MacBookPro18,3
Session Info:
Enabled Extensions:
- Mate Translate – translator, dictionary (chrome)
- Dark Reader (firefox)
- Request Control (firefox)
- Reddit Enhancement Suite (firefox)
- Bitwarden - Free Password Manager (firefox)
- SponsorBlock for YouTube - Skip Sponsorships (firefox)
- MTG Quick Search (chrome)
Disabled Extensions:
Non Default Settings:
- AutofillEnabled => 0
- ContentBlockerLastUpdated => 2022-03-16 00:00:00 +0000
- CustomAppIconData => {length = 0, bytes = 0x}
- isBackgroundImageDarkOnStartPage => 0
- DownloadLocation => /Users/spencer/Downloads
- FirstLaunch => 0
- FirstTimeWebExtensionNotice => 1
- LastUsedBuildVersion => 113.1
- PreCompiledContentRuleListVersion => 113.1
- LastCrashCheckDate => 2022-03-23 07:40:14 +0000
- NextDownloadID => 20
- OpenNewTabsInForeground => 0
- SavedWindowSize => 1512.0,944.0
- SavedWindowPosition => 0.0,0.0
- BookmarksSidebarVisible => 0
- QuitWithConfirmation => 0
- CurrentToolbarSize => small
- ActiveLibraryTab => extensions
- ActivePreferenceTab => browsing
- UndoTabClose => 0
- BookmarksLastSynced => 1648021215465.224
- ReadingListLastSynced => 1648021215467.272