Open Bug 1402019 Opened 7 years ago Updated 2 years ago

browser-addons.js can leak browser.xul window via showInstallConfirmation

Categories

(Toolkit :: Add-ons Manager, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: bkelly, Unassigned)

Details

(Whiteboard: [MemShrink:P2])

I noticed I had a leaked browser.xul today.  I grabbed the GC/CC logs and it showed it was being held alive by:

via ScriptPreloader::CachedScript.mScript :
000001FA7DA91680 [script chrome://browser/content/browser-addons.js:]
    --[objects[3]]--> 000001FA7DA9A380 [Function showInstallConfirmation]
    --[group]--> 000001FA7DA923D0 [object_group]
    --[group_global]--> 000001FA77023060 [Window <no private>]

I suspect this is fallout from trying to install an addon in 57 that is not compatible with web extensions.  I got the "could not install" error message because of the version mismatch.

And if this is another "xul script cache just leaks" thing, I have to say I'm not thrilled.  How are we supposed to find real leaks if we're chasing false positives from the script cache all the time?
Fx::General is unfortunately not a place where this bug is (or really, most bugs are) very visible. Are you looking into this? If not and you expect / would like someone else to do so, it might get more traction in e.g. Toolkit :: Addons Manager (which is effectively kind of responsible for these dialogs and so on, as part of the add-on install/management experience).
Flags: needinfo?(bkelly)
I looked in hg log to see last bug that changed this file that wasn't widespread changes.  It was in Firefox general.

I'm not actively working this.

Please triage it to whatever component owns browser-addon.js.
Flags: needinfo?(bkelly)
(In reply to Ben Kelly [:bkelly] from comment #2)
> I looked in hg log to see last bug that changed this file that wasn't
> widespread changes.  It was in Firefox general.
> 
> I'm not actively working this.
> 
> Please triage it to whatever component owns browser-addon.js.

Dave, what's a good place for something like this?
Flags: needinfo?(dtownsend)
Component: General → Add-ons Manager
Flags: needinfo?(dtownsend)
Product: Firefox → Toolkit
Priority: -- → P3
Whiteboard: [MemShrink] → [MemShrink:P2]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.