Open Bug 1369200 Opened 7 years ago Updated 2 years ago

Remove support for SourceHook

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: triage-deferred)

Sometimes when loading chrome JS, we have setSourceIsLazy(true). To deal with actually loading the source, a JS embedder can specify a SourceHook. As described in the comment in XPCJSRuntime::Initialize(), we need this for Gecko because addons can and do call toSource() and do monkeypatching. Once support for addons is removed, we can just not support toSource() on chrome JS code. This is what was done for B2G.
No longer depends on: post-57-api-changes
Keywords: triage-deferred
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.