Closed Bug 2011081 Opened 1 month ago Closed 16 days ago

Page Info saves file instead of preview

Categories

(Firefox :: Page Info Window, defect, P3)

Firefox 147
Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox147 --- wontfix
firefox148 --- fixed
firefox149 --- fixed

People

(Reporter: vopros4, Assigned: tschuster)

References

Details

(Keywords: nightly-community, regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0

Steps to reproduce:

  1. Open page https://t.me/expensive_hurma/31926
  2. Ctrl-I to open "Page Info".
  3. Switch to "Media" tab.
  4. Switch to the list of files.
  5. Browse the list with arrows and clicks.
  6. Switch to the bottom file at https://cdn4.telesco.pe/ domain (currently https://cdn4.telesco.pe/file/fbc3125735.webp?token=...)

Actual results:

On step 5 preview works correctly for most files. On step 6 the image is instead saved to the default directory and opened in a new browser tab using file:// protocol

This may have something to do with the reported "content-type" header: the problematic file is "application/octet-stream", the rest are "image/png", "image/jpeg", "image/svg+xml", "image/x-icon".

Expected results:

Earlier versions (before 140) correctly displayed previews for this file.

:tschuster, since you are the author of the regressor, bug 1980376, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(tschuster)

We really shouldn't be starting downloads here and instead show a broken image. I actually thought that is how it worked already.

Severity: -- → S3
Flags: needinfo?(tschuster)
Priority: -- → P3

(In reply to Tom Schuster (MoCo) from comment #3)

We really shouldn't be starting downloads here and instead show a broken image.

The old versions displayed the image.

Assignee: nobody → tschuster
Attachment #9545731 - Attachment description: WIP: Bug 2011081 - Do not start download for unhandled content in the Page Info media preview → Bug 2011081 - Do not start download for unhandled content in the Page Info media preview. r?#necko-reviewers
Duplicate of this bug: 2017226

We should maybe think about having this as a dot fix ride along.

Pushed by tschuster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a38747d111a https://hg.mozilla.org/integration/autoland/rev/e28dfb4432ff Do not start download for unhandled content in the Page Info media preview. r=necko-reviewers,jesup
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b746430d0f05 https://hg.mozilla.org/integration/autoland/rev/db4bc2e8b578 Revert "Bug 2011081 - Do not start download for unhandled content in the Page Info media preview. r=necko-reviewers,jesup" for causing build bustage at nsURILoader.cpp

Backed out for causing build bustage at nsURILoader.cpp

Backout link

Push with failures

Failure log

Flags: needinfo?(tschuster)
Flags: needinfo?(tschuster)
Pushed by tschuster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/45c9d2b23bf0 https://hg.mozilla.org/integration/autoland/rev/a5d91e8c7a22 Do not start download for unhandled content in the Page Info media preview. r=necko-reviewers,jesup
Attachment #9546426 - Attachment description: WIP: Bug 2011081 - Don't trigger a download for octect-stream when loading with forceMediaDocument: image → Bug 2011081 - Don't trigger a download for octect-stream when loading with forceMediaDocument: image. r?jesup
Status: NEW → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch

The patch landed in nightly and beta is affected.
:tschuster, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(tschuster)
Pushed by tschuster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/13c2ee378f5b https://hg.mozilla.org/integration/autoland/rev/fb8fc973f8e0 Don't trigger a download for octect-stream when loading with forceMediaDocument: image. r=jesup

firefox-release Uplift Approval Request

  • User impact if declined: The page info dialog is relatively obscure, but the behavior is very annoying for people that run into it. Triggering a download is quite unexpected behavior when trying to preview media.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: The patch is very simple and will only affect the Page Info window.
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9547801 - Flags: approval-mozilla-release?
Flags: needinfo?(tschuster)
QA Whiteboard: [qa-triage-done-c150/b149]
Attachment #9547801 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: