Closed Bug 1682553 Opened 3 years ago Closed 3 years ago

browser.toolbars.bookmarks.2h2020 value increases every time a bookmark changes places in toolbar

Categories

(Firefox :: Bookmarks & History, defect, P2)

Firefox 84
Desktop
All
defect

Tracking

()

VERIFIED FIXED
86 Branch
Tracking Status
firefox85 --- fixed
firefox86 --- verified

People

(Reporter: dcicas, Assigned: jaws)

References

Details

Attachments

(1 file)

Affected versions

  • Fx 84
    Fx 85

Affected platforms

  • Win 10 x64
    Win 7 x64
    mac OS 10.15
    Ubuntu 18.04

Steps to reproduce

  1. Start Firefox with a fresh profile.
  2. Reach about:config and search for browser.toolbars.bookmarks.2h2020 and set it to true.
  3. Restart browser with the same profile.
  4. Reach about:telemetry and in Scalars search for bookmarks.
  5. Add 5 bookmarks to the bookmark toolbar.
  6. Reach about:telemetry (refresh the page if already on it) and in Scalars search for bookmarks.
  7. Move a bookmark from one position in the toolbar to another position.
  8. Repeat step 6.

Expected result

  • The value for browser.toolbars.bookmarks.2h2020 should stay the same as in step 6.

Actual result

  • The value for browser.toolbars.bookmarks.2h2020 increases every time a bookmark is moved.

Suggested Severity

  • S3

Regression range
This is not a regression.

Copy/paste failure in the expected/actual results? I think you meant browser.engagement.bookmarks_toolbar_bookmark_added ?

It also seems that it changes by quite a lot (I'm seeing it going to 6, then 12, then 18), even when drag/dropping only one item... unsure why.

Jared, do you have time to look at this?

Flags: needinfo?(jaws)
Flags: needinfo?(daniel.cicas)
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)

In my testing it only adds by 1, but when I open a second window it now increments by 2. I confirmed with Gijs that he had 6 windows open.

Severity: -- → S3
Priority: -- → P2

Hello,

Yes it was a copy/paste failure. I can confirm the multiple windows issue as well.

Flags: needinfo?(daniel.cicas)
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5a13cf5b066
Move bookmarks listeners to PlacesUIUtils so there will only be one listener instead of one per window. r=Gijs
Regressions: 1683386
Flags: needinfo?(jaws)
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/036f1d3e590e
Move bookmarks listeners to PlacesUIUtils so there will only be one listener instead of one per window. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

Comment on attachment 9193561 [details]
Bug 1682553 - Move bookmarks listeners to PlacesUIUtils so there will only be one listener instead of one per window.

Beta/Release Uplift Approval Request

  • User impact if declined: Telemetry counts for bookmarks added to the bookmarks toolbar will be incorrect
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Steps can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=1665391#c6
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Telemetry-only change
  • String changes made/needed: none
Attachment #9193561 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Reproduced the issue on Firefox Nightly 85.0a1 (20201201).

Verified the fix on Firefox Nightly 86.0a1 (20201223) on Mac 10.15, Win 10 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED

Comment on attachment 9193561 [details]
Bug 1682553 - Move bookmarks listeners to PlacesUIUtils so there will only be one listener instead of one per window.

approved for 85.0b5

Attachment #9193561 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: