List All Tabs dropdown should use a document fragment to populate list

NEW
Unassigned

Status

()

Firefox
Tabbed Browser
P3
normal
4 months ago
3 months ago

People

(Reporter: mconley, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Document fragment: https://developer.mozilla.org/en-US/docs/Web/API/Document/createDocumentFragment

Here's where we'd want to do that: http://searchfox.org/mozilla-central/rev/bd39b6170f04afeefc751a23bb04e18bbd10352b/browser/base/content/tabbrowser.xml#7902-7905
I assume the key bit here is "Since the document fragment is in memory and not part of the main DOM tree, appending children to it does not cause page reflow".
Priority: -- → P3
(In reply to Justin Dolske [:Dolske] from comment #1)
> I assume the key bit here is "Since the document fragment is in memory and
> not part of the main DOM tree, appending children to it does not cause page
> reflow".

I think it's more to avoid DOM mutation events being fired for each item.
You need to log in before you can comment on or make changes to this bug.