Closed Bug 1113621 Opened 10 years ago Closed 10 years ago

Rename InstallPhaseEvent to ExtendableEvent

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: nsm, Assigned: nsm)

References

Details

Attachments

(1 file)

Change Exposed=ServiceWorker for all ServiceWorker events. Move Func= exposure check to ServiceWorker.
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+
(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 :/
Note to self to remove workers: True in Bindings.conf since it is not required when correct Exposed annotations are used.
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.

Attachment

General

Created:
Updated:
Size: