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)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox-esr102 --- fixed
firefox108 --- wontfix
firefox109 --- fixed
firefox110 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

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.

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
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

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 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+
Blocks: 1805161
See Also: 1805161
Blocks: 1805163
See Also: 1805163
Regressions: 1809697
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: