Closed
Bug 1802832
Opened 1 year ago
Closed 1 year ago
Check orientation permission before throwing NotSupportedError
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
109 Branch
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
Attachments
(1 file)
https://w3c.github.io/screen-orientation/#lock-method
- If document has the sandboxed orientation lock browsing context flag set, or doesn't meet the pre-lock conditions, or locking would be a security risk, return a promise rejected with a "SecurityError" DOMException and abort these steps.
- If the user agent does not support locking the screen orientation to orientation, return a promise rejected with a "NotSupportedError" DOMException and abort these steps.
Previous spec was different order.
Makoto-san, do you know who maintains around it? If so, could you redirect this ni? to the person to consider the priority and severity.
Flags: needinfo?(m_kato)
Assignee | ||
Comment 2•1 year ago
|
||
Before updating spec, the order was
- Throw NotSupportedError if user agent doesn't support
lock()
- Check orientation lock permission.
But After updated (https://w3c.github.io/screen-orientation/#lock-method),
the order is
- Check orientation lock permission.
- Throw NotSupportedError if user agent doesn't support
lock()
So we should check orientation permission / pre-lock conditions before
throwing NotSupportedError
.
Updated•1 year ago
|
Assignee: nobody → m_kato
Status: NEW → ASSIGNED
Assignee | ||
Updated•1 year ago
|
Severity: -- → S3
Flags: needinfo?(m_kato)
Priority: -- → P3
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox109:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•