Closed Bug 1954168 Opened 2 months ago Closed 1 month ago

orientation.unlock should throws an exception per common safety check

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(1 file)

Assignee: nobody → m_kato
Severity: -- → S3

orientation.unlock() has to process the common safety checks [*1], then
it throws an exception by common safety checks. But since old spec doesn't
throw an exception, we don't throw it by unlock() now.

So we should throw it even if calling unlock().

lock-sandboxed-iframe.html has a bug that it doesn't consider
whether unlock throws an exception. So we have to fix it to implement
the common safety check for unlock().

On macOS's native fullscreen implementation, fullscreen transition is
asynchronous, so even if the promise of requestFullscreen is resolved,
the window isn't still activated yet, visibility state may be still hidden.
(This will be visible state soon). So I would like to disable native
fullscreen on screen-orientation tests for this situation.

*1 https://w3c.github.io/screen-orientation/#unlock-method

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/1487cbbfa7eb Throw an exception when calling unlock() is failed by common safety checks. r=dom-core,edgar
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51514 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: