Closed
Bug 1805269
Opened 1 year ago
Closed 1 year ago
Disable Navigator requestGamepadServiceTest and requestVRServiceTest outside of testing environments
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
110 Branch
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr102+
|
Details | Review |
These two bits of device testing mockups are already guarded behind a pref, but as a bit of a hardening measure we could also check xpc::IsInAutomation. The other VR testing interfaces can only be created once you have the test interface, so I think it will protect those, too.
Assignee | ||
Comment 1•1 year ago
|
||
These interfaces are already disabled by prefs, but they are ironically
probably not well tested, so just add an extra check.
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d94fded02d5 Don't allow getting gamepad and VR test services outside of automation. r=smaug,cmartin
Comment 3•1 year ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox110:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Assignee | ||
Updated•1 year ago
|
status-firefox108:
--- → wontfix
status-firefox109:
--- → wontfix
status-firefox-esr102:
--- → affected
Assignee | ||
Comment 4•1 year ago
|
||
Comment on attachment 9307899 [details]
Bug 1805269 - Don't allow getting gamepad and VR test services outside of automation.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is a hardening measure that will protect some unmaintained VR code against being accidentally exposed to users if they flip a pref.
- User impact if declined: see above
- Fix Landed on Version: 109
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This only affects the behavior when a non-standard pref is flipped. It may break some manual testing of VR or gamepad APIs.
Attachment #9307899 -
Flags: approval-mozilla-esr102?
Comment 5•1 year ago
|
||
Comment on attachment 9307899 [details]
Bug 1805269 - Don't allow getting gamepad and VR test services outside of automation.
Approved for 109.0b5 and 102.7esr.
Attachment #9307899 -
Flags: approval-mozilla-esr102?
Attachment #9307899 -
Flags: approval-mozilla-esr102+
Attachment #9307899 -
Flags: approval-mozilla-beta+
Comment 6•1 year ago
|
||
bugherder uplift |
Comment 7•1 year ago
|
||
bugherder uplift |
Flags: in-testsuite-
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•