Skip to content
Snippets Groups Projects
Commit 14814095 authored by Bobby Holley's avatar Bobby Holley
Browse files

Bug 993438 - Infer the eventual compartment for OMT-compiled script when the...

Bug 993438 - Infer the eventual compartment for OMT-compiled script when the script is retrieved. r=billm

Currently, the script gets put in a compartment specified when the compilation
is initiated. Later on, when we retrieve that script and try to execute it, we
won't necessarily be in the same compartment. Currently, SM just handles this
and clones the script, but it's simpler and more efficient to just create the
script in the compartment of whoever calls FinishOffThreadScript.

Note that the existing code actually has a hazard in which the call to
GetBuiltinPrototypePure returns null - it just wasn't exercised in automation
(and was triggered by onNewScript-off-main-thread.js with this patch).
parent 6d3afe25
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment