Closed Bug 1764452 Opened 2 years ago Closed 2 years ago

tabs.onUpdated spamming with {attention:false} when changing selected tab

Categories

(WebExtensions :: Frontend, defect)

defect

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(1 file)

Just by selecting different tabs, extensions get spammed with { attention: false }.

Selecting another tab should only trigger tabs.onActivated and tabs.onHighlighted events.

  1. Inspect some extension and run

    browser.tabs.onUpdated.addListener(console.log.bind(console, "onUpdated")); 
    
  2. Open browser console

  3. Change selected tab a few times

  4. The browser console will show the logs

Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/e64a440f0c8b
Avoid tabs.onUpdated events for 'attention' when value doesn't change. r=Gijs,mixedpuppy
Regressions: 1765747
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

== Change summary for alert #33924 (as of Mon, 25 Apr 2022 17:57:30 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
4% tabswitch windows10-64-shippable-qr e10s fission stylo webrender-sw 7.56 -> 7.22
4% tabswitch linux1804-64-shippable-qr e10s fission stylo webrender 7.23 -> 6.91
4% tabswitch windows10-64-shippable-qr e10s fission stylo webrender 7.52 -> 7.21

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=33924

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: