Closed Bug 1584602 Opened 6 years ago Closed 6 years ago

Enforce Eval checks on Worker Threads

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

Bug 1583949 will land Eval checks for Worker threads; but it won't enforce them. This is so we can collect Telemetry in Nightly and ensure we don't accidentally break it because something is happening that isn't covered in our test suites.

This bug is to switch into enforcement mode.

Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]

This commit does two things. Firstly it enforces eval restrictions in Workers per Bug 1584602.
We're collecting telemetry on these in Beta (and not seeing any) so we can let enforcement ride up to Beta.

Secondly, it disables enforcement checks on Release (and late Beta, as explained in the comment) until
we can gather data about what's happening in Release. This is a counterpart to Bug 1592349 for -central.

We have two separate commits because the first part of this is a change in the same code and we'd have
rebase problems if we tried to do them both separately.

This does tie enforcement to a build-time constant instead of leaving it as a pref. This doesn't make
me very happy inside, but I don't think the extra complexity is worth it...

Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8cce153f4722 Enforce eval restrictions in Workers and do not enforce restrictions in Release r=ckerschb
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: