Closed
Bug 1113621
Opened 10 years ago
Closed 10 years ago
Rename InstallPhaseEvent to ExtendableEvent
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 file)
(deleted),
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
Assignee | ||
Updated•10 years ago
|
Blocks: ServiceWorkers-v1
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8539237 -
Flags: review?(amarchesini)
Comment 2•10 years ago
|
||
Comment on attachment 8539237 [details] [diff] [review]
Rename InstallPhaseEvent to ExtendableEvent
Review of attachment 8539237 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/bindings/Bindings.conf
@@ +433,5 @@
> },
> },
>
> +'ExtendableEvent': {
> + 'headerFile': 'ServiceWorkerEvents.h',
mozilla/dom/ServiceWorkerEvents.h ?
::: dom/workers/ServiceWorker.cpp
@@ +17,5 @@
> +
> +namespace mozilla {
> +namespace dom {
> +namespace workers {
> +
why do you don't like USING_WORKER_NAMESPACE? or BEGIN_WORKER_NAMESPACE?
@@ +28,5 @@
> +
> + ServiceWorkerGlobalScope* scope = nullptr;
> + nsresult rv = UnwrapObject<prototypes::id::ServiceWorkerGlobalScope_workers,
> + mozilla::dom::ServiceWorkerGlobalScopeBinding_workers::NativeType>(aObj, scope);
> + return NS_SUCCEEDED(rv) && scope;
if the unwrapping succeeds, scope is always set:
return NS_SUCCEEDED(rv); should be enough.
Attachment #8539237 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Andrea Marchesini (:baku) from comment #2)
> ::: dom/workers/ServiceWorker.cpp
> @@ +17,5 @@
> > +
> > +namespace mozilla {
> > +namespace dom {
> > +namespace workers {
> > +
>
> why do you don't like USING_WORKER_NAMESPACE? or BEGIN_WORKER_NAMESPACE?
At one point either khuey or bent told me not to use it :/
Assignee | ||
Comment 4•10 years ago
|
||
Note to self to remove workers: True in Bindings.conf since it is not required when correct Exposed annotations are used.
Assignee | ||
Comment 6•10 years ago
|
||
I accidentally backed this out (instead of bug 1113631) in https://hg.mozilla.org/integration/mozilla-inbound/rev/961c75198f9d
Relanded it in https://hg.mozilla.org/integration/mozilla-inbound/rev/fbf421e77962 as it wasn't supposed to be backed out, though.
Comment 8•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
•