Closed Bug 616907 Opened 14 years ago Closed 14 years ago

Convert private-browsing events to style described in bug 593921

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adw, Assigned: adw)

References

Details

(Whiteboard: [cherry-pick-1.0b1])

Attachments

(1 file)

Attached patch patchSplinter Review
Bug 593921 comment 8 says private-browsing's event listeners shouldn't be passed anything, but to be consistent with other modules that emit events they should be passed event objects whose `emitter` properties the modules themselves. Also, private-browsing's events currently leak a private object via `this`, so I've fixed that. `this` is now exports, i.e., the private-browsing module.
Attachment #495427 - Flags: review?(myk)
Comment on attachment 495427 [details] [diff] [review] patch (In reply to comment #0) > Bug 593921 comment 8 says private-browsing's event listeners shouldn't be > passed anything, but to be consistent with other modules that emit events they > should be passed event objects whose `emitter` properties the modules > themselves. That comment only says that because the current documentation doesn't mention any parameters for these event handlers, and the comment is trying to identify the mimimal amount of work that would resolve the beta blocker. Since adding an event parameter later wouldn't be a breaking change, the comment doesn't address doing so. Nevertheless, you're right that these handlers, like all event handlers in high-level modules, should be passed event objects with `emitter` properties. > Also, private-browsing's events currently leak a private object via `this`, so > I've fixed that. `this` is now exports, i.e., the private-browsing module. Awesome!
Attachment #495427 - Flags: review?(myk) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [cherry-pick-needed]
Target Milestone: -- → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: