Commit 52d02ac5 authored by Boris Zbarsky's avatar Boris Zbarsky
Browse files

Bug 1573590. Make sure we're in the right compartment before serializing our...

Bug 1573590.  Make sure we're in the right compartment before serializing our stack in worker error reporting.  r=bhackett

Nothing guarantees that the current compartment of aCx matches the compartment
where the exception was thrown.

Differential Revision: https://phabricator.services.mozilla.com/D41791

--HG--
extra : moz-landing-system : lando
parent a76314c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4134,6 +4134,7 @@ void WorkerPrivate::ReportError(JSContext* aCx,
                                          &stackGlobal);

  if (stack) {
    JSAutoRealm ar(aCx, stackGlobal);
    report->SerializeWorkerStack(aCx, this, stack);
  }