Closed Bug 821065 Opened 12 years ago Closed 11 years ago

Allow listeners to listen all event types

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: irakli, Assigned: jsantell)

Details

Attachments

(1 file, 1 obsolete file)

Event listeners need a way to observer all messages similar to observer service.
Summary: Allow listeners to all event types → Allow listeners to listen all event types
Got any implementation details in mind?  I'm not sure a special `""` or `"*"` event would work well, so all can see is a new method like `onAny`.
Flags: needinfo?(rFobic)
OS: Mac OS X → All
Hardware: x86 → All
Probably "*" to be consistent with observer service (kind of regret pushing you towards "" for prefs). I do have patch somewhere it was part of refactoring work & have created this bug to separate individual changes from that refactoring.

I'll submit pull request once I'll get my hands on this (should be soon).
Flags: needinfo?(rFobic)
Assignee: nobody → rFobic
Attachment #729669 - Flags: review?(zer0)
Attachment #729669 - Flags: review?(zer0) → review+
No longer sure it's still relevant since we did just fine without it. If turns we need it we can reopen and land attached patch.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
We went back and merged this in, marked as fix, to allow event/utils#pipe work with general events
Resolution: WONTFIX → FIXED
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/f3f791b18b84c563407cc7a70c95b267d5732571
Revert "Bug 821065 - Add wildcard event."

This reverts commit 434f0e68712f80a6de61768793cd15f910c26a81.
Reverted back out
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: rFobic → jsantell
Attached file GH PR 1274
Updated event wildcard, removing fixes in place previously to have similar behaviour, and removing to prevent duplicates occuring, breaking tests
Attachment #729669 - Attachment is obsolete: true
Attachment #824306 - Flags: review?(rFobic)
Attachment #824306 - Flags: review?(rFobic) → review+
Commits pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/0bf57fcb8bde9ddd98af70ec2b6cec8a2d2e9829
Bug 821065 - Add wildcard event listeners, remove hacks that were work arounds fro this

https://github.com/mozilla/addon-sdk/commit/226419e9ec3bca3587c2eaccfa8b7aeb9ddd7da0
Merge pull request #1274 from jsantell/add-wildcard

Fix Bug 821065 - Add wildcard event listeners, remove hacks that were work arounds in workers, r=@gozala
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: