Closed
Bug 1113619
Opened 10 years ago
Closed 10 years ago
Abort on lifecycle event handler errors
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 file)
8.73 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
Abort ServiceWorker installation/activation if event handler errors
Assignee | ||
Updated•10 years ago
|
Blocks: ServiceWorkers-v1
Depends on: 1113555
Assignee | ||
Comment 1•10 years ago
|
||
Folded:
Handle install event listener errors and fail installation
Activate handler runtime errors should lead to activation failure.
Attachment #8539235 -
Flags: review?(amarchesini)
Comment 2•10 years ago
|
||
Comment on attachment 8539235 [details] [diff] [review]
Abort on lifecycle event handler errors
Review of attachment 8539235 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/workers/ServiceWorkerManager.cpp
@@ +918,5 @@
>
> nsresult rv = target->DispatchDOMEvent(nullptr, event, nullptr, nullptr);
>
> nsCOMPtr<nsIGlobalObject> sgo = aWorkerPrivate->GlobalScope();
> + WidgetEvent* internalEvent = event->GetInternalNSEvent();
can it be null?
@@ +1044,5 @@
> nsRefPtr<Promise> waitUntilPromise;
>
> // FIXME(nsm): Install error handler for any listener errors.
> nsresult rv = target->DispatchDOMEvent(nullptr, event, nullptr, nullptr);
> + WidgetEvent* internalEvent = event->GetInternalNSEvent();
null?
Attachment #8539235 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 3•10 years ago
|
||
From existing uses, it does not seem like this can ever be null.
Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•