Closed Bug 1679325 Opened 3 years ago Closed 3 years ago

"Save Video As..." prompts to save with file name based on sequential ID instead of original resource name.

Categories

(Core :: General, defect)

Firefox 84
defect

Tracking

()

VERIFIED FIXED
85 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox83 --- unaffected
firefox84 --- fixed
firefox85 --- fixed

People

(Reporter: eavesdown, Assigned: timhuang)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

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

Steps to reproduce:

Instantiate new, clean profile for testing. Navigate to a page with HTML5 video resources, or directly to a video resource (
e.g., mp4 or webm), such as: https://giant.gfycat.com/VagueSingleGermanwirehairedpointer.webm. Right click the video and select 'Save Video As...' from the context menu.

Actual results:

File save prompt dialog opens offering to save the file with a sequential number (e.g., 10.webm if the browser has just recently been opened). Number appears to increment with each media resource accessed/played by the browser since the last time it was fully closed and re-opened.

Expected results:

File save prompt dialog opens offering to save the file with the original resource name of VagueSingleGermanwirehairedpointer.webm.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Component: Audio/Video: Playback → General

Thanks for the report, Eavesdown! If you have time, can you run mozregression to see when this regressed (some time after Firefox 83)? https://mozilla.github.io/mozregression/

Tim, could bug 1641270 have caused this regression (it works for me in 83 release but not Nightly)?

Has Regression Range: --- → no
Has STR: --- → yes
Flags: needinfo?(tihuang)
Flags: needinfo?(eavesdown)

Yes, Bug 1641270 has caused this issue. I will fix this.

Assignee: nobody → tihuang
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(tihuang)

Thanks, Tim!

Flags: needinfo?(eavesdown)
QA Whiteboard: [qa-regression-triage]

This patch makes the contentAreaUtils.saveURL to be aware of the
cookieJarSettings, and updates all callers.

This also updates the documentation of the persistArgs
'cookieJarSettings' for internalPersist().

Is this Nightly and early beta issue only? Or do we need to land the fix to beta too?

I should have mentioned in my report that I was experiencing the issue on the latest beta version of Dev Edition. I can confirm that it's still present in 84.0b7, as well. I'm not entirely familiar with the release structure of Firefox at this point, so I don't know whether Dev Edition runs "early" betas at any point in its release cycle, but my understanding was that it's on the same track as the normal betas now (i.e., not really an "Aurora" channel anymore). If that understanding is accurate, then the fix will be needed in the standard beta channels, as well.

I think we have to land the fix to beta too because there is a bug in my patch in Bug 1641270 which causes this issue. I will request the uplift once this is resolved.

Pushed by tihuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/315bab44858b
Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r=smaug
https://hg.mozilla.org/integration/autoland/rev/230f99ad861d
Part 2: Add a test to ensure the saveVideoAs is correctly partitioned and the default file name is correct. r=smaug,dimi
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch

Comment on attachment 9190792 [details]
Bug 1679325 - Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r?smaug!

Beta/Release Uplift Approval Request

  • User impact if declined: The default file name of 'Save Video As' will be incorrect.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch itself is not complex. It only fixes several places to use the proper parameter. And we have the test. So, I believe this is a low risk.
  • String changes made/needed: Nope
Attachment #9190792 - Flags: approval-mozilla-beta?
Attachment #9190793 - Flags: approval-mozilla-beta?
Regressed by: 1641270

Comment on attachment 9190792 [details]
Bug 1679325 - Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r?smaug!

Ouch. Approved for 84.0rc1. Thanks for including a test.

Attachment #9190792 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9190793 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-regression-triage]

I can verify that this issue has been successfully resolved for my configuration as of the 85.0b1 release.

Status: RESOLVED → VERIFIED
Regressions: 1682873
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/dc74addeeb70
adjust saveURL arguments after bug 1641270. r=lasana
Regressions: 1733682
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: