Closed Bug 1330232 Opened 7 years ago Closed 7 years ago

Blocked media was resumed with sound when user click "mute tab" in the pop-up menu

Categories

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

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 --- unaffected
firefox53 --- disabled
firefox54 --- verified

People

(Reporter: alwu, Assigned: alwu)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR.
1. open https://www.youtube.com/watch?v=aYzSAw0fQ1Y in background tab
2. click right click on the tab to see the pop-up menu
3. click "mute tab"

Expect.
4. Tab is muted and resumed

Actual.
4. Tab isn't muted and resumed
After discussed with UX, we would show the "play tab" in the pop-up menu instead of "mute tab".
Comment on attachment 8827762 [details]
Bug 1330232 - show the label of 'play tab' in the pop-up menu.

https://reviewboard.mozilla.org/r/105368/#review106708

::: browser/locales/en-US/chrome/browser/browser.properties:708
(Diff revision 1)
>  muteTab.label = Mute Tab
>  muteTab.accesskey = M
>  unmuteTab.label = Unmute Tab
>  unmuteTab.accesskey = M
> +playTab.label = Play Tab
> +playTab.accesskey = M

Can we use a key that is in "Play Tab"?
Attachment #8827762 - Flags: review?(jaws) → review+
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #3)
> Can we use a key that is in "Play Tab"?

Hi, Jared,
Do you mean how do we use that key? or you're asking other thing?
When you open the pop-up menu, then you can press key "M" to open that tab.
Flags: needinfo?(jaws)
I mean that "M" is not a character present in "Play Tab". Could we use "P", "l", "a", "y", or any other letter here instead of "M"?
Flags: needinfo?(jaws)
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #5)
> I mean that "M" is not a character present in "Play Tab". Could we use "P",
> "l", "a", "y", or any other letter here instead of "M"?

Sure! I'll replace "M" with "P".
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c847fb6dba8e
show the label of 'play tab' in the pop-up menu. r=jaws
https://hg.mozilla.org/mozilla-central/rev/c847fb6dba8e
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Alastor, if I understand correctly, this is a new regression. Do you want to uplift this to 52? Thanks
Flags: needinfo?(alwu)
Keywords: regression
Currently, block-autoplay-in-the-background is only enabled in nightly per Bug 1331317.
The feature isn't opened on FF52 (bug 1331317), and we might enable it in the 53+.
We don't need to uplift the change to 52.
Flags: needinfo?(alwu)
Reproduced the initial issue using Nightly 53.0a1 (Build ID: 20170117030218) on Windows 10 x64.

I can confirm the fix using the latest Nightly 54.0a1 - "Play Tab" is now displayed in the pop-up menu instead of "mute tab". Verified on Windows 10 x64, Mac OS X 10.11 and Ubuntu 16.04 x64.

But, "P" key is used also for Pin Tab, not just for Play Tab(an extra Enter key has to be hit to get the same functionality as other shortcuts key have).

Alastor, is this the wanted behavior?
Flags: needinfo?(alwu)
Blocks: 1336309
Thank Simona!
I didn't consider the access key conflict, and I opened bug1336309 to solve this issue.
Flags: needinfo?(alwu)
Based on Comment 13, setting the status-firefox54: to verified.

Since the Block playback feature is disabled on the latest Firefox Developer Edition 53.0a2, I'm also setting the status-firefox53: to disabled.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: