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)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ferjm, Assigned: ferjm)

Details

Attachments

(1 file)

Assignee: nobody → ferjmoreno
Attached patch v1Splinter Review
I should have wait before pushing Bug 927363 :\... sorry about that.
Attachment #817914 - Flags: review?(gene.lian)
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.
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
Attachment #817914 - Flags: review?(gene.lian)
(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?
OK. I saw it. Thanks!
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: