Closed Bug 696213 Opened 13 years ago Closed 13 years ago

Zombie compartments with Scriptish add-on and certain user-scripts for pages loaded at startup by SessionStore

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: morac, Unassigned)

References

Details

(Whiteboard: [MemShrink:P3])

Attachments

(1 file)

I'm seeing Zombie Compartments with the Scriptish add-on installed and certain user scripts (ones that create elements in the host page) enabled if tabs that the scripts run in are loaded as part of SessionStore's session management. For example on a reload of the browser. Opening a tab and manually loading the page and then closing it does not result in a Zombie compartment. This happens on the latest Minefield nightly load with only the Scriptish and Restartless Restart add-ons installed (nothing else). Disabling Scriptish or the associated user scripts prevents the Zombie compartments. The Zombie compartment for pages will stick around after numerous minimize cache actions unless the browser window is closed, in which case the zombie compartment will go away. So I'm guessing there's some kind of weird interaction between SessionStore and and Scriptish resulting in zombie compartments.
Triaging as MemShrink:P3, since this is due to an addon.
Whiteboard: [MemShrink] → [MemShrink:P3]
Attached file about:memory (deleted) —
Scriptish is a fork of GreaseMonkey. Michael, do you know if the problem exists with GreaseMonkey as well? I ask because AMO tells me that Scriptish has 43,000 users whereas GreaseMonkey has 3,000,000...
I don't know. Scriptish was rewritten to use Components and modules which attach to browser windows and tabs. GreaseMonkey runs in each window. While I have no proof, my guess is that GreaseMonkey probably would have this problem. I haven't tested this for awhile though.
Adding a couple of Scriptish devs.
Michael, can you post more detailed steps to reproduce, like what user scripts will make the browser say "BRAINS!!!" when restoring what sites?
It's been a while and there are no STR. Please reopen if you have a way to replicate this problem, either with Scriptish of GreaseMonkey.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: