Open Bug 1208164 Opened 10 years ago Updated 1 year ago

(meta) Remove usage of nsContentUtils::LegacyIsCaller{,ChromeOr}NativeCode

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

People

(Reporter: bholley, Unassigned)

References

(Depends on 2 open bugs)

Details

In bug 1072150, I tightened down our invariants such that nsContentUtils::SubjectPrincipal() will crash if executed without an AutoJSAPI on the stack. In order to do this, I needed to introduce some transitional legacy APIs to use from the callsites where we currently get this wrong. The next step is to go and tighten things down by fixing up all the callers of these APIs to have separate script and native entry points, as discussed in the comments above them in nsContentUtils.h.
Depends on: 1207321
Depends on: 1316480
Priority: -- → P2
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.