Closed Bug 1248719 Opened 6 years ago Closed 6 years ago
Taking ownership of error reporting on an Auto
JSAPI inited without a global on a worker is not ok
AutoJSAPI::Init() with no args calls InitInternal() with a null aGlobal, which puts mAutoNullableCompartment in the null compartment. Then in AutoJSAPI::ReportException we would end up hitting this code: 509 JS::Rooted<JSObject*> errorGlobal(cx(), JS::CurrentGlobalOrNull(cx())); 510 if (!errorGlobal) 511 errorGlobal = xpc::PrivilegedJunkScope(); which is clearly not OK on a worker.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8719929 - Flags: review?(bobbyholley) → review+
You need to log in before you can comment on or make changes to this bug.