Closed Bug 1949789 Opened 23 days ago Closed 12 days ago

Frecency is not incremented for viewtime interaction on multiple tabs for the same website on recalculation

Categories

(Firefox :: Address Bar, defect, P2)

Firefox 137
Desktop
All
defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox137 --- fixed
firefox138 --- verified

People

(Reporter: cbaica, Assigned: jteow)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(3 files)

Attached video recalculation vid.mp4

Found in

  • Fx 137.0a1

Affected versions

  • Fx 137.0a1

Affected platforms

  • Windows
  • Ubuntu
  • macOS

Precondintions
places.frecency.pages.alternative.interactions.viewTimeSeconds set to 10
places.frecency.pages.alternative.interactions.viewTimeIfManyKeypressesSeconds set to 10
places.frecency.pages.alternative.interactions.manyKeypresses set to 5

Steps to reproduce

  1. Launch Firefox, navigate to any website and keep it in the foreground for 10 seconds.
  2. Open a new tab, navigate to the db query page, "Frecency" section and click the "recalc outdated frecencies" button.
  3. Close the tab from step 1.
  4. Open a new tab and navigate to the same website as in step 1 and keep it in the foreground for at least 10 seconds.
  5. Go back to the db query page and click the "recalc outdated frecencies" button.

Expected result

  • Alt Frecency value is increased only after re-calculation.

Actual result

  • Alt Frecency value is increased when the website is opened again in step 4.

Regression range

  • Not a regression.

Additional notes

  • Please note that in the provided video recording the website was already opened 3 times and the bug happened on the 4th calculation.
QA Whiteboard: [QA-3165]

Additional Notes mentions the website was already opened 3 previous times.

The interaction creation date and the website visit date are recorded in different processes. We do an approximate match between a visit and an interaction. Right now, the allowable time span difference is 20 minutes.

To reduce the likelihood of pairing an interaction with the wrong visit, we should consider making the allowable default difference much smaller. I honestly think within one minute should be more than sufficient.

Additionally while modifying the base variables, it might also make sense to reduce the max number of Interactions considered in the SQL query to 10 because the max number of samples is currently 10.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [sng]
Assignee: nobody → jteow
Status: NEW → ASSIGNED
Attachment #9469491 - Flags: approval-mozilla-beta?
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b59b57f81d58 Modify default values for alternative frecency - r=mak,places-reviewers
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

beta Uplift Approval Request

  • User impact if declined: Users who have alternative frecency enabled in an experiment in Fx137 may calculate alternate frecency inaccurately, resulting in slightly inflated scores
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: QA is aware of this bug.
  • Risk associated with taking this patch: Low
  • Explanation of risk level: This is a pref only change and the feature the pref is tied to is hidden behind a pref.
  • String changes made/needed: None.
  • Is Android affected?: no
Flags: qe-verify+
QA Whiteboard: [QA-3165] → [QA-3165][qa-triaged]
Attachment #9469491 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

The issue is verified fixed using Fx 138.0a1 nightly on Win 11 and Ubuntu 24. Frecency is correctly incremented on multiple visits.

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

Attachment

General

Created:
Updated:
Size: