Closed
Bug 1158218
Opened 9 years ago
Closed 9 years ago
ServiceWorkerManager could WARN in more failure cases
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: bkelly, Assigned: bkelly)
Details
Attachments
(1 file)
4.21 KB,
patch
|
nsm
:
review+
|
Details | Diff | Splinter Review |
In this try build: https://treeherder.mozilla.org/logviewer.html#?job_id=6921689&repo=try I get the unhelpful: WARNING: 'NS_FAILED(aStatus)', file /builds/slave/try-m64-d-00000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 135 This just says that some error made it to ServiceWorkerManager::Done(), but no indication of where it came from or what it is.
Assignee | ||
Comment 1•9 years ago
|
||
I ran this locally and saw both nsPrintfCString() calls execute correctly. Also, it does not seem too spammy in the few runs I tried.
Assignee | ||
Comment 2•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2be077bef26
Attachment #8597356 -
Flags: review?(nsm.nikhil) → review+
Assignee | ||
Comment 3•9 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/98b0e8e0c180
Comment 4•9 years ago
|
||
Comment on attachment 8597356 [details] [diff] [review] Improve ServiceWorkerManager NS_WARNINGS on failure. r=nsm >diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp >+ NS_WARNING(nsPrintfCString("ServiceWorkerJob failed with error: %s\n", >+ errorName.get()).get()); Nit: the second line here is mis-indented. It's an argument for the "nsPrintfCString(...)" call, so it should be indented to just after "nsPrintfCString(". (If you like, you could address this with a trivial "DONTBUILD, whitespace-only" followup)
Assignee | ||
Comment 5•9 years ago
|
||
Thanks. remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/e6c0425d3c88
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/98b0e8e0c180 https://hg.mozilla.org/mozilla-central/rev/e6c0425d3c88
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•