Closed Bug 1665527 Opened 4 years ago Closed 4 years ago

Not able to control another muted media after pressing `next/prev track` on controllable muted media

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

VERIFIED FIXED
83 Branch
Tracking Status
firefox81 --- disabled
firefox82 --- verified
firefox83 --- verified

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(4 files)

STR.

  1. go to https://www.youtube.com/watch?v=SaicC0AFwUc&list=PL4360C46560CE3B16
  2. play video
  3. mute video
  4. press next track
  5. jump to next video, and muted video started

Expect.
6. still able to control video via media keys

Actual.
6. Not able to control video via media keys

Attachment #9176701 - Attachment description: Bug 1665527 - part3 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'. → Bug 1665527 - part4 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'.
Attachment #9176700 - Attachment description: Bug 1665527 - part2 : add a test. → Bug 1665527 - part3 : add a test.
Attachment #9177006 - Attachment description: Bug 1665527 - part3 : deactivate controller if needed when clear active media session. → Bug 1665527 - part2 : deactivate controller if needed when clear active media session.
Attachment #9176699 - Attachment description: Bug 1665527 - part1 : don't deactivate controller if active media session exists. → Bug 1665527 - part1 : deactivate a controller only when it doesn't have controlled media and active media session.
Attachment #9177006 - Attachment description: Bug 1665527 - part2 : deactivate controller if needed when clear active media session. → Bug 1665527 - part2 : notify media session status based on its document's activity state.
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b97b8759b686 part1 : deactivate a controller only when it doesn't have controlled media and active media session. r=chunmin https://hg.mozilla.org/integration/autoland/rev/a18103008464 part2 : notify media session status based on its document's activity state. r=chunmin https://hg.mozilla.org/integration/autoland/rev/a683efbf01c1 part3 : add a test. r=chunmin https://hg.mozilla.org/integration/autoland/rev/216b96d6a2b3 part4 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'. r=chunmin
Status: RESOLVED → REOPENED
Flags: needinfo?(alwu)
Resolution: FIXED → ---
Target Milestone: 83 Branch → ---
Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a035588b98d part1 : deactivate a controller only when it doesn't have controlled media and active media session. r=chunmin https://hg.mozilla.org/integration/autoland/rev/3e345c20dc2e part2 : notify media session status based on its document's activity state. r=chunmin https://hg.mozilla.org/integration/autoland/rev/b5107408e698 part3 : add a test. r=chunmin https://hg.mozilla.org/integration/autoland/rev/6975dde1cb29 part4 : add new testcase for 'browser_stop_control_after_media_reaches_to_end.js'. r=chunmin

Comment on attachment 9176699 [details]
Bug 1665527 - part1 : deactivate a controller only when it doesn't have controlled media and active media session.

Beta/Release Uplift Approval Request

  • User impact if declined: Users won't be able to control video via media keys after pressing prev/next track under certain condition
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Please follow comment0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch extends the tab's ability of receiving media keys, it's a small change which only affect websites using MediaSession API. In addition, attaching new automation tests to increase test coverage helps to reduce the risk as well.
  • String changes made/needed:
Attachment #9176699 - Flags: approval-mozilla-beta?
Attachment #9176700 - Flags: approval-mozilla-beta?
Attachment #9176701 - Flags: approval-mozilla-beta?
Attachment #9177006 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Flags: in-testsuite+

Comment on attachment 9176699 [details]
Bug 1665527 - part1 : deactivate a controller only when it doesn't have controlled media and active media session.

Thanks for adding tests.

Approved for 82.0b4

Attachment #9176699 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9176700 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9176701 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9177006 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This issue is verified as Fixed in our latest Nightly build on Windows 10 , Mac OSX 10.15 and Ubuntu 18.04. I will update the Flag for 82 and 81 and I recheck this issue in Beta 82.0b4, I will leave the qe-verify + flag for now.

QA Whiteboard: [qa-triaged]

This issue is verified as fixed in our latest Beta 82.0b4 on Windows 10, Mac OSX 10.15 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Regressions: 1672876
Regressions: 1673613
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: