Closed Bug 1723998 Opened 3 years ago Closed 3 years ago

stop collecting system-principal load telemetry for users with userChrome hacks

Categories

(Core :: DOM: Security, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: freddy, Assigned: freddy)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

The code in https://searchfox.org/mozilla-central/rev/064a1e6a2a6f6aa30be8bf4edea2f8408f779d4d/dom/security/nsContentSecurityUtils.cpp#1025-1068 and https://searchfox.org/mozilla-central/rev/064a1e6a2a6f6aa30be8bf4edea2f8408f779d4d/dom/security/nsContentSecurityUtils.cpp#501-544 is already detecting userChrome hacks.

  1. Remove the existing code (links above) and deduplicate it into a function in nsContentUtils
  2. use this new function in nsContentSecurityManager:MeasureUnexpectedPrivilegedLoads, so we do not record telemetry for unsupported setups.
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/24284cf9d4da
Refactor jshacks detection and adapt for use in system principal telemetry r=tjr

Backed out changeset 24284cf9d4da (Bug 1723998) for causing GTest failures.
Backout link
Push with failures
Failure Log

Flags: needinfo?(fbraun)

I broke my own test. Classic.
Here's a try push to adjust the test https://treeherder.mozilla.org/jobs?repo=try&revision=189ab171c50f4569bd35f4141e3d4a7e76f25953

Flags: needinfo?(fbraun)
Severity: -- → S4
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7f5f28cefdc7
Refactor jshacks detection and adapt for use in system principal telemetry r=ckerschb,tjr
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: