Closed Bug 1187024 Opened 9 years ago Closed 7 years ago

Expose a method on Components.utils to get the size of a WeakSet

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1165807
Tracking Status
firefox42 --- affected

People

(Reporter: mconley, Unassigned)

Details

We currently store the permanentKey's of crashed <xul:browser>'s in SessionStore as a WeakSet for the purposes of knowing whether or not we should be ignoring session updates from them.

It'd also be excellent to be able to know how many crashed browsers currently exist in that WeakSet, so we know whether or not we need to refer to "crashed tabs" or "crashed tab" in bits of the UI (for example, about:tabcrashed).

I notice that something similar was added for WeakMaps in bug 688277, though this was for testing only (I do see it being used outside of tests though, for example, in BrowserElementParent.js and ShumwayCom.jsm.

Anyhow, evilpie said that the Spidermonkey team might consider this, so putting it on the pile.
Yeah, sounds like it, thanks!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.