Bug 1202001 - Log errors emitted during service worker lifecycle events to the Web Console; r=bkelly
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 25 Oct 2015 17:46:05 -0400
changeset 269508 b1095ad5a4b84117cfbde34da2e9e77351b566db
parent 269507 8d81779015b803867b0caf3d860deb3b2436ff56
child 269509 b0e600058af69fa8548d33b619845e7340ae319d
push id67112
push usereakhgari@mozilla.com
push dateMon, 26 Oct 2015 16:38:02 +0000
treeherdermozilla-inbound@fb0887080d19 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly
bugs1202001
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1202001 - Log errors emitted during service worker lifecycle events to the Web Console; r=bkelly
dom/workers/ServiceWorkerPrivate.cpp
--- a/dom/workers/ServiceWorkerPrivate.cpp
+++ b/dom/workers/ServiceWorkerPrivate.cpp
@@ -412,17 +412,17 @@ public:
     js::ErrorReport report(aCx);
     if (NS_WARN_IF(!report.init(aCx, aValue))) {
       JS_ClearPendingException(aCx);
       return;
     }
 
     RefPtr<xpc::ErrorReport> xpcReport = new xpc::ErrorReport();
     xpcReport->Init(report.report(), report.message(),
-                    /* aIsChrome = */ false, /* aWindowID = */ 0);
+                    /* aIsChrome = */ false, workerPrivate->WindowID());
 
     RefPtr<AsyncErrorReporter> aer = new AsyncErrorReporter(xpcReport);
     NS_DispatchToMainThread(aer);
   }
 };
 
 NS_IMPL_ISUPPORTS0(LifecycleEventPromiseHandler)