Closed
Bug 927465
Opened 11 years ago
Closed 11 years ago
Change SystemMessageManager:Message weak listener for an strong one
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: ferjm, Assigned: ferjm)
Details
Attachments
(1 file)
1.21 KB,
patch
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ferjmoreno
Assignee | ||
Comment 1•11 years ago
|
||
I should have wait before pushing Bug 927363 :\... sorry about that.
Attachment #817914 -
Flags: review?(gene.lian)
Comment 2•11 years ago
|
||
Regarding the original Bug 927363 you've done, I still the same concern about it. You did:
this.addMessageListeners("SystemMessageManager:GetPendingMessages:Return");
by adding it as a weak reference. It'd have the same issue that the listener can be removed at any time points before the message is returned.
I have a feeling that adding listeners as weak ones by default is very dangerous when Justin changed everything to be weak referenced in the first place. Default should be strong referenced unless it has to be added as weak referenced.
Assignee | ||
Comment 3•11 years ago
|
||
Actually, I have to agree with you. I've talked with Fabrice about this and we both agree that we should get back to strong listeners by default. I think we can handle the original issue of leaked WebApps objects (bug 889984) that started all this weak vs strong listeners pain in a different way, as suggested in https://bugzilla.mozilla.org/show_bug.cgi?id=903291#c32 We can still also add weak listeners where we consider it mandatory.
I'm closing this as WONTFIX and opening a new bug to default to strong listeners.
Thanks Gene.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Assignee | ||
Updated•11 years ago
|
Attachment #817914 -
Flags: review?(gene.lian)
Comment 4•11 years ago
|
||
(In reply to Fernando Jiménez Moreno [:ferjm] from comment #3)
> I'm closing this as WONTFIX and opening a new bug to default to strong
> listeners.
Thank Fernando! Btw, what's the bug number?
Comment 5•11 years ago
|
||
OK. I saw it. Thanks!
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•