Closed
Bug 1152473
Opened 11 years ago
Closed 11 years ago
Remove InstallEvent
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: nsm, Assigned: rhlrtr44, Mentored)
References
Details
(Whiteboard: [good first bug][lang=C++])
Attachments
(1 file, 4 obsolete files)
|
12.36 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
InstallEvent is no longer part of the ServiceWorker spec since the extra attributes it provided over ExtendableEvent are available on the registration.
Steps:
1) Remove dom/webidl/InstallEvent.webidl, update the moz.build in the same file and update dom/bindings/Bindings.conf
2) Remove InstallEvent from dom/workers/ServiceWorkerEvents.{h,cpp}
3) Change dom/workers/ServiceWorkerManager.cpp to replace the use of InstallEvent with ExtendableEvent in LifecycleEventWorkerRunnable::DispatchLifecycleEvent(). That will mean some of the code can be refactored in that function.
| Reporter | ||
Updated•11 years ago
|
Whiteboard: [good first bug][lang=C++]
Should NS_IMPL_ADDREF_INHERITED, and similar be removed too? Or there is some modification in them?
Flags: needinfo?(nsm.nikhil)
| Reporter | ||
Comment 2•11 years ago
|
||
Yes, everything related to InstallEvent can go.
Flags: needinfo?(nsm.nikhil)
Attachment #8591312 -
Flags: review?(nsm.nikhil)
| Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8591312 [details] [diff] [review]
b-1152473-p1.patch
Review of attachment 8591312 [details] [diff] [review]:
-----------------------------------------------------------------
Please remove the webidl file from version control and upload a new patch containing that change and the two changes below.
::: dom/workers/ServiceWorkerEvents.cpp
@@ +364,1 @@
> NS_INTERFACE_MAP_END_INHERITING(ExtendableEvent)
This line has to be removed too.
::: dom/workers/ServiceWorkerManager.cpp
@@ +1080,5 @@
> } else if (mEventName.EqualsASCII("activate")) {
> ExtendableEventInit init;
> init.mBubbles = false;
> init.mCancelable = true;
> event = ExtendableEvent::Constructor(target, mEventName, init);
"install" and "activate" now has the same code, so the blocks can be collapsed.
Attachment #8591312 -
Flags: review?(nsm.nikhil)
Comment 5•11 years ago
|
||
Hi,
Can i work on this bug?
Attachment #8591312 -
Attachment is obsolete: true
Attachment #8593338 -
Flags: review?(nsm.nikhil)
Please do not mind the last patch. There was a silly mistake in that.
Attachment #8593338 -
Attachment is obsolete: true
Attachment #8593338 -
Flags: review?(nsm.nikhil)
Attachment #8593343 -
Flags: review?(nsm.nikhil)
| Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 8593343 [details] [diff] [review]
b-1152473-p3.patch
Review of attachment 8593343 [details] [diff] [review]:
-----------------------------------------------------------------
Please remove the AsInstallEvent() declarations https://dxr.mozilla.org/mozilla-central/search?q=AsInstallEvent&case=true&=mozilla-central&redirect=true
mozilla-central has changed, so you will have to rebase your patch on top of the latest central, particularly the changes on ServiceWorkerEvents.{h,cpp}
Please upload the new patch with those changes. There is no need to ask for review again, but feel free to if you feel more comfortable that way.
Attachment #8593343 -
Flags: review?(nsm.nikhil) → review+
Attachment #8593343 -
Attachment is obsolete: true
| Reporter | ||
Comment 10•11 years ago
|
||
minor compile fixes. Ehsan, could you r? the interfaces change?
Attachment #8593888 -
Attachment is obsolete: true
Attachment #8595129 -
Flags: review?(ehsan)
| Reporter | ||
Comment 11•11 years ago
|
||
Updated•11 years ago
|
Attachment #8595129 -
Flags: review?(ehsan) → review+
Comment 12•11 years ago
|
||
| Reporter | ||
Comment 13•11 years ago
|
||
| Reporter | ||
Comment 14•11 years ago
|
||
Thanks for the patch Rahul! It will land in a day or so.
Assignee: nobody → rhlrtr44
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•