Closed Bug 1169342 Opened 9 years ago Closed 9 years ago

[DeviceStorage] Remove nsIDOMDeviceStorage, cleanup event code

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

(Whiteboard: [NG Device Storage])

Attachments

(1 file, 2 obsolete files)

Remove nsIDOMDeviceStorage as it is not used within gecko (save camera) or gaia.

nsDOMDeviceStorage overrides AddEventListener, RemoveEventListener and their permutations and explicitly forwards the other methods to DOMEventTargetHelper. It uses Add/RemoveEventListener to add/remove an observer and trigger a permission check. Since nsDOMDeviceStorage already listens on those observer events at init time, this code should be removed. For the permission check, we should switch to overloading DOMEventTargetHelper::EventListenerWasAdded which is meant for this purpose in derived classes and is triggered no matter how the listener is added.
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Whiteboard: [NG Device Storage]
Attached patch bug1169342.patch, v2 (obsolete) — Splinter Review
Build broken (although not locally!), try again.

try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=589dd5bd07c4
Attachment #8612397 - Attachment is obsolete: true
Attachment #8612425 - Flags: review?(dhylands)
Remove an unused/deprecated enum as well.
Attachment #8612425 - Attachment is obsolete: true
Attachment #8612425 - Flags: review?(dhylands)
Attachment #8612551 - Flags: review?(dhylands)
Comment on attachment 8612551 [details] [diff] [review]
bug1169342.patch, v3

Review of attachment 8612551 [details] [diff] [review]:
-----------------------------------------------------------------

Very Nice!
Attachment #8612551 - Flags: review?(dhylands) → review+
https://hg.mozilla.org/mozilla-central/rev/4820fb6d8eb7
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Blocks: 1169686
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: