Add a context menu item in the Downloads Panel to "Open in system viewer" and "Always open in system viewer"
Categories
(Firefox :: Downloads Panel, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox-esr78 | --- | wontfix |
firefox77 | --- | unaffected |
firefox78 | --- | wontfix |
firefox79 | + | verified |
firefox80 | --- | verified |
People
(Reporter: sfoster, Assigned: sfoster)
References
Details
(Whiteboard: [fxgrowth])
Attachments
(3 files, 1 obsolete file)
Each of the downloads views provides a context menu for the download list items to "Open Containing Folder" etc.
This menu should include options to "Open in system viewer" and "Always open in system viewer", when the download is PDF.
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Comment 3•4 years ago
|
||
bugherder |
Assignee | ||
Comment 4•4 years ago
|
||
There's more work to do here, I just forget to add leave-open when I landed that initial strings patch.
Updated•4 years ago
|
Comment 5•4 years ago
|
||
[Tracking Requested - why for this release]: Making it easier to access PDF.js will be a large part of Firefox 78 release and this bug tracks some of the work that just missed landing before the uplift from Nightly -> Beta.
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D79395
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Is this still targeting 78? We're now in the last week of beta.
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Assignee | ||
Comment 10•4 years ago
|
||
I noticed that currently (with/without these patches) if you download a PDF with contentType: "application/octet-stream" and a filename of something.pdf, the mimeInfo
we get from mimeInfo = gMIMEService.getFromTypeAndExtension
in DownloadIntegration#launchDownload will be for 'application/octet-stream', not 'application/pdf'. This means that mimeInfo.alwaysAskBeforeHandling
will be true, so in the logic that determines if we should call DownloadUIHelper.loadFileIn
for this file, the answer is always "no."
This also means that the context menu items we add here appear not to work with this kind of download; toggling "Always use system.." has no effect as despite resetting the preferredAction in the command, we're retrieving the wrong nsIMimeInfo and alwaysAskBeforeHandling value. I think what we want to happen in launchDownload is to follow the same logic now implemented in DownloadsCommon.getMimeInfo. Maybe that could move to Download
(DownloadCore.jsm) where we can reuse it from DownloadIntegration.jsm
I think we should take stock and make a new plan as we are down to only a couple of days to land and uplift this.
Comment 11•4 years ago
|
||
Thanks for digging in to that. At this point I don't think we should uplift, we will want some extra time for this to bake and fix any regressions or missing support. It's okay if this isn't in 78. It would be great if we can do it "right" in 79.
Comment 12•4 years ago
|
||
Are we eventually going to want to do something for ESR78?
Assignee | ||
Comment 13•4 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #12)
Are we eventually going to want to do something for ESR78?
Ideally yes, perhaps if there is a 78.1? We'll want to at least land and verify in nightly first.
Assignee | ||
Comment 14•4 years ago
|
||
Status: I'm tracking down an issue where the context menu on PDF downloads in the all-downloads view alternates between having the system viewer menu items and not. This showed up as a test failure but is reproducable manually.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Comment 16•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b06131994e4a
https://hg.mozilla.org/mozilla-central/rev/d37373cfa435
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Verified on Firefox 79.0b3 and Firefox 80.0a1 (2020-07-03) that these two new options are successfully implemented and they work as expected.
Tests were performed on macOS 10.15.5, Ubuntu 20.04 and Windows 10, using a pdf sample on google.
Assignee | ||
Comment 19•4 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #18)
Is this ready for an ESR78 approval request?
I'm still weighing the risks vs. benefits. This hasn't had long to bake for a feature that is not front-and-center for most people, so seeing no follow-up issues doesn't necessarily mean there are none. However, it has been verified by QA in 79 and 80, so its probably fair to say it is low (but not zero) risk.
The flip side is what is the risk of shipping ESR 78 without it? The idea with this feature is to provide choices and mitigation for when the changes in how we handle opening downloaded PDFs by default clash with users' workflows. So there is some potential risk in shipping one without the other.
Comment 20•4 years ago
|
||
Should we consider disabling the feature on ESR78 instead?
Updated•4 years ago
|
Assignee | ||
Comment 21•4 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #20)
Should we consider disabling the feature on ESR78 instead?
I think the consensus is that ESR78 is fine without this patch at this point.
Comment 22•4 years ago
|
||
OK, thanks.
Description
•