Closed Bug 1926834 Opened 12 days ago Closed 11 days ago

getTabTooltip should cache value of pid pref

Categories

(Firefox :: Tabbed Browser, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

(Keywords: perf)

Attachments

(1 file)

In the profile in bug 1923363 I'm seeing a ton of markers for pref reads of browser.tabs.tooltipsShowPidAndActiveness which appear to be coming from https://searchfox.org/mozilla-central/rev/dca2603d55b5b39d3b8ab8e93c08b42563f5aad8/browser/components/tabbrowser/content/tabbrowser.js#6179-6184 .

That pref read should be cached instead of running once for each tab and its tooltip. In the list-all-tabs code that getter gets called for each tab, cf. https://searchfox.org/mozilla-central/rev/dca2603d55b5b39d3b8ab8e93c08b42563f5aad8/browser/components/tabbrowser/TabsList.sys.mjs#358 .

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f2cac32dfe56 put pid pref getter on tabbrowser and use from both tab hover previews and tabbrowser itself, r=tabbrowser-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: