Closed Bug 1152473 Opened 11 years ago Closed 11 years ago

Remove InstallEvent

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect
Not set
normal

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)

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.
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)
Yes, everything related to InstallEvent can go.
Flags: needinfo?(nsm.nikhil)
Attached patch b-1152473-p1.patch (obsolete) — — Splinter Review
Attachment #8591312 - Flags: review?(nsm.nikhil)
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)
Hi, Can i work on this bug?
Attached patch b-1152473-p2.patch (obsolete) — — Splinter Review
Attachment #8591312 - Attachment is obsolete: true
Attachment #8593338 - Flags: review?(nsm.nikhil)
Attached patch b-1152473-p3.patch (obsolete) — — Splinter Review
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)
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+
Attached patch b-1152473-p4.patch (obsolete) — — Splinter Review
Attachment #8593343 - Attachment is obsolete: true
minor compile fixes. Ehsan, could you r? the interfaces change?
Attachment #8593888 - Attachment is obsolete: true
Attachment #8595129 - Flags: review?(ehsan)
Attachment #8595129 - Flags: review?(ehsan) → review+
Thanks for the patch Rahul! It will land in a day or so.
Assignee: nobody → rhlrtr44
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: