Keyboard lock state isn't updated correctly, while top-level document goes into fullscreen (without keyboard lock) first then requesting fullscreen (with keyboard lock) on OOP iframe
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: edgar, Assigned: sfarre)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files, 2 obsolete files)
| Reporter | ||
Updated•2 months ago
|
| Reporter | ||
Comment 1•2 months ago
|
||
Requesting fullscreen in a OOP iframe while top-level is already in fullscreen doesn't even work on Safari.
| Assignee | ||
Comment 2•2 months ago
|
||
Initially I was thinking this here is probably the culprit but I'm not entirely sure now after having looked it over again.
Worth looking into, is if the right boolean value is getting passed in here
| Reporter | ||
Comment 3•2 months ago
|
||
| Reporter | ||
Comment 4•2 months ago
|
||
STR:
- load https://codepen.io/editor/edgarchen-the-decoder/pen/019d9acf-e39e-7654-b81b-4dd06fbe6aa8
- Click
Fullscreenon top-level document - Wait for top-level document goes into fullscreen
- Click
Fullscreen with keyboardLockon the OOP-iframe - wait for OOP-iframe goes into fullscreen
- Check initial warning and press Esc
Actual result:
Initial warning doesn't show the right message (pres and hold esc).
And pres Esc exits the fullscreen.
Expected result:
initial warning should show right message.
And pres Esc should not exit fullscreen.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Update the keyboard lock without checking if we had a previous
fullscreen dock, because when we have OOP frames, they are not
accessible there (and therefore will not update the state properly).
Added web platform tests that test for this specific scenario.
| Reporter | ||
Comment 6•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 9•2 months ago
|
||
Backed out for causing wpt failures at iframe.tentative
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | /fullscreen/api/keyboard-lock-cross-origin-iframe.tentative.sub.html | Cross-origin iframe fullscreen with keyboardLock:browser — hold Escape exits - assert_equals: single Escape should not exit fullscreen when keyboardLock is browser expected Element node <iframe id="cross-origin-iframe" src="http://not-web-plat... but got null
| Assignee | ||
Comment 10•2 months ago
|
||
Test ran accidentally on android, fixed in latest submission
Comment 11•2 months ago
|
||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59671 for changes under testing/web-platform/tests
Comment 13•2 months ago
|
||
| bugherder | ||
Upstream PR merged by moz-wptsync-bot
Comment 15•1 month ago
|
||
| Assignee | ||
Comment 16•1 month ago
|
||
Update keyboard lock state only when chrome document enters fullscreen,
and in the case where an optimization is performed when a content
process already sees itself to be in DOM fullscreen, then it should
update kblock state of the chrome document as well, so that the correct
warning is displayed.
Added web platform tests that test for this specific scenario.
Original Revision: https://phabricator.services.mozilla.com/D295315
Updated•1 month ago
|
Comment 17•1 month ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: Potential buggy behavior with OOP iframes
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Keyboard lock related only effects
- String changes made/needed?: No
- Is Android affected?: no
| Assignee | ||
Comment 18•1 month ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D295810
Comment 19•1 month ago
|
||
Comment 20•1 month ago
|
||
Backed out for causing bc failures at fullscreen_keyboard_lock_warning.js
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_keyboard_lock_warning.js | test_keyboard_lock_change_warning_change_oop_iframe - Test timed out
Updated•1 month ago
|
| Assignee | ||
Comment 21•1 month ago
|
||
Try run for mochitest-browser-chrome https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=43409
Its hard to tell if this is an intermittent failure or not, but given that it (seems) to only fail on windows 11 32 bit, then it's a bit suspect.
Comment 22•1 month ago
|
||
Comment on attachment 9572426 [details]
Bug 2033397 - Add brower fullscreen warning test;
Revision D295810 was moved to bug 2037849. Setting attachment 9572426 [details] to obsolete.
Updated•1 month ago
|
| Reporter | ||
Comment 23•1 month ago
|
||
This is reopened due the test patch got backed out.
We move the test patch into another bug to land (bug 2037849).
So I think we can close this one.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 24•1 month ago
|
||
| uplift | ||
Description
•