Closed
Bug 560585
Opened 16 years ago
Closed 2 years ago
Message namespaces for easier cleanup
Categories
(Core :: DOM: Content Processes, defect)
Core
DOM: Content Processes
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: stechz, Unassigned)
Details
This is a proposal.
jQuery implements a neat idea on top of its event model: namespaces (see http://api.jquery.com/bind/). It allows for cleanup of things with similar lifetimes (for instance, the lifetime of the window, the lifetime of a webpage, or the lifetime of an object). For message receiver, what if we did something similar?
For instance, messages in e10s Fennec's case, most (perhaps all) are window lifetime. If we could unregister them all at once (removeMessageListener("", "window") or removeMessageListener(".window") like jQuery) in many cases we'd save ourselves the init/shutdown pattern we have to use for events. It would be harder to leave a removeMessageListener out.
Updated•16 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Updated•3 years ago
|
Severity: normal → S3
Comment 1•2 years ago
|
||
It looks like this is talking about message manager, so I'll move it to DOM: Content Processes. That being said, message manager is mostly deprecated now, and we do have JS window actors with a lifetime tied to the window so at least one major use case is implemented.
Status: NEW → RESOLVED
Closed: 2 years ago
Component: IPC → DOM: Content Processes
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•