Block autoplay icon disappears when changing tabs from the arcticmonkeys website
Categories
(Firefox :: Site Identity, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | + | fixed |
firefox67 | --- | fixed |
firefox69 | --- | verified |
firefox70 | --- | verified |
firefox71 | --- | verified |
People
(Reporter: dcicas, Assigned: alwu)
References
Details
(Keywords: regression)
Attachments
(4 files)
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
|
Details |
(deleted),
text/x-phabricator-request
|
Details |
Affected versions
- Fx Beta 66.0b6 BuildID: 20190207161357
Affected platforms
- Win 10 x64
Win 7 x32
Ubuntu 18.04 LTS
Ubuntu 16.04 LTS
Steps to reproduce
Preconditions:
media.autoplay.default = 1
media.autoplay.enabled.user-gestures-needed = true
- Open a new window.
- Reach https://www.arcticmonkeys.com/
- Check the Site Information panel.
- Travel to another open tab.
- Go back to the arctic monkeys tab.
Expected result
- The block autoplay doorhanger is still displayed.
Actual result
- The block autoplay doorhanger is not displayed and in the Site Information panel, there is no Block/Allow option.
Regression range
Has no regression range.
Additional notes
The Block/Allow options are not displayed when first reaching the Arctic Monkeys website.
Comment 1•6 years ago
|
||
Since we no longer use the door hanger I believe this no longer relevant.
Assignee | ||
Comment 2•6 years ago
|
||
That's not about the doorhanger, it's related with control center and icon. I can reproduce it on Beta, but it works fine on Nightly. Ni Dale to see if he know what happens here.
Comment 3•6 years ago
|
||
So you're saying 67 is unaffected?
Comment 4•6 years ago
|
||
I can reproduce the issue on Nightly67 Win10.
Steps
- Open https://www.arcticmonkeys.com/ [Tab 1]
- Check the Site Information panel.
- Open new tab [Tab 2]
- Go back to the arctic monkeys tab[Tab 1].
--- observe the autoplay block icon
(optionaly, if not reproduced) - Reload(F5) the arctic monkeys tab[Tab 1].
- Switch to the other tab[Tab 2]
- Go back to the arctic monkeys tab[Tab 1].
--- observe the autoplay block icon
Axtual Results:
The block autoplay icon disappears in the left side of urlbar
Expected Results:
The block autoplay icon should be displayed in the left side of urlbar
Regression Window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=73f92838946aac0aab5760bada1a1e8e2218a3e1&tochange=3f5a132b7e4f7579209ca906f9ec79059e426f26
Updated•6 years ago
|
Comment 5•6 years ago
|
||
:alwu
Your patch seems to cause the regression.
Can you please look into this?
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Transfer NI to Dale, who is working on front-end side for blocking autoplay.
Comment 7•6 years ago
|
||
Dale, any chance of this making 66?
Comment 8•6 years ago
|
||
When is the deadline? asked a few times, I am slammed right now but I should be able to take a look over the weekend hopefully and best case have something for monday
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 9•6 years ago
|
||
ok so got some time to investigate and turns out this could be quite a big issue, basically we have a few different bugs which cause the icon to be shown / hidden when its not supposed to, I have patches that fix them in https://bugzilla.mozilla.org/show_bug.cgi?id=1522053 + https://bugzilla.mozilla.org/show_bug.cgi?id=1522058. However some of these bugs are hiding other bugs including on here.
When the frontend sees a 'globalyblocked' event, it sets some state which shows the blocked icon then adds a listener which removes that state as soon as we navigate, we only show the blocked icon when a request has been made that has been blocked
However when a page is loaded from the bf cache by visiting a page, navigating elsewhere then pressing back. While you would expect an icon to show (and it currently does due to bugs). The media is never actually triggered to play (due to bfcache magic that I dont quite understand) and so never sends the event and when those bugs are fixed, the icon wont show
I am not sure that the frontend has enough information to be able to handle this case, asking Alastor for suggestions
Assignee | ||
Comment 10•6 years ago
|
||
Hi, Dale,
This patch will dispatch globallyAutoplayBlocked
event again when the document, which hasn't be allowed to autoplay and has been blocked before, is back from BFCache.
Could you try this patch to see if it's what you need?
Thank you.
Comment 11•6 years ago
|
||
With the above 2 patches landed that fixes the issue for me, I dont think there is a way for the frontend to handle this itself so I think this is the right fix, will reassign, many thanks
Assignee | ||
Comment 12•6 years ago
|
||
In order to display blocking icon when the document comes back from the bfcache, we have to notify front end what's the current blocking status.
As the front end side would clear blocking autoplay information when nagivation occurs, and the media might not invoke the play again when they comes back from the bfcache.
Therefore, we should notify front end side that the site is still being blocked, and we should show blocking icon for it.
Assignee | ||
Comment 13•6 years ago
|
||
Is this ready to land? Waiting on review?
Do you think this issue should block the rollout on 66? (We can still uplift, but I'd like to fast track this including verification and possibly some exploratory testing, if so)
Assignee | ||
Comment 15•6 years ago
|
||
Now I'm doing the final testing to ensure the test can run well on all platforms, I will land my patch today.
I think this issue is not a blocker for our plan, but it would be good if we can uplift the patches to beta66.
Comment 16•6 years ago
|
||
I have requested uplift on https://bugzilla.mozilla.org/show_bug.cgi?id=1522053 + https://bugzilla.mozilla.org/show_bug.cgi?id=1522058 as well
They are all seperate bugs but with the same outcome that the icon is showing when its not supposed to, would be good to have them all landed together for any exploratory testing
Comment 17•6 years ago
|
||
Comment 19•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6e3eb5df50ff
https://hg.mozilla.org/mozilla-central/rev/9adad198b9b4
Assignee | ||
Comment 20•6 years ago
|
||
Comment on attachment 9047487 [details]
Bug 1526355 - part1 : notify the front end side to show the blocking icon if the site is still being blocked after it's back from the bfcache.
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: None
- User impact if declined: Blocked icon won't show again when user navigate the site back from the bfcache.
- 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: see comment0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): What this patch did is to dispatch an extra event to notify front end side to show the blocked icon, we didn't introduce any other behavior changes. In addition, we also have an automation test for this issue.
- String changes made/needed: none
Comment 21•6 years ago
|
||
I've tested on latest Nightly 67.0a1 (2019-03-05) and I can still reproduce the issue (using the same steps from Description): the blocked icon isn't show again when user navigate the site back.
Any thoughts here?
Updated•6 years ago
|
Assignee | ||
Comment 22•6 years ago
|
||
I've confirmed that my patches works as expected, the blocked event will be dispatched again when the page which has been blocked before comes back from the bfcache.
According comment11, this issue should be fixed with other two patches in bug1522053 and bug1522058, so NI Dale to confirm this issue.
Hmm, those two patches landed in nightly before Camelia tested, though.
When I tried this in Nightly just now, it seems to work as expected. I still see the block autoplay icon in the address bar and in the site info panel.
Comment on attachment 9047487 [details]
Bug 1526355 - part1 : notify the front end side to show the blocking icon if the site is still being blocked after it's back from the bfcache.
Let's uplift this and re-verify in beta 14.
Updated•6 years ago
|
Comment 25•6 years ago
|
||
bugherder uplift |
Comment 26•6 years ago
|
||
Yup, have tested every combination that I could get to reliably fail before and are all working
If you retest and see something again lets open a new bug and cc / needinfo me on it, thank
Comment 27•6 years ago
|
||
We still reproduce this issue on Firefox 67.0a1 and Firefox 66 Beta 14 and based on discussions from #block_autoplay slack channel, we logged a new bug - bug 1534219.
Updated•5 years ago
|
Description
•