Closed Bug 1664252 Opened 4 years ago Closed 4 years ago

Stop breaking redirects chains when expiring visits for long urls

Categories

(Toolkit :: Places, defect, P2)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Iteration:
82.2 - Sep 7 - Sep 20
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 82+ fixed
firefox80 --- wontfix
firefox81 --- wontfix
firefox82 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

Attachments

(1 file)

We expire visits too long urls to save some database space, unfortunately when those visits are redirect targets, we end up breaking the redirect chain and we cannot recognize anymore the original page as a redirect.

Short term fix may be to just stop expiring visits part of a redirect chain. Long term, we should probably have a better way to track if a visit is a redirect source, rather than having to check if another visit comes from it.

Component: Address Bar → Places
Priority: P3 → P2
Product: Firefox → Toolkit

This affects search mode because in search mode we filter out redirect sources to provide better results, but due to this bug we won't recognize all of them.
And unfortunately the damage to past history is done.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Iteration: --- → 82.2 - Sep 7 - Sep 20

While this is not a recent regression, I'd prefer to start doing this sooner than later, thus I'll likely ask for uplift.

Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/fbb67f137185 Stop breaking redirect chains when expiring visits for long urls. r=adw
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9175209 [details]
Bug 1664252 - Stop breaking redirect chains when expiring visits for long urls. r=adw

Beta/Release Uplift Approval Request

  • User impact if declined: By expiring some unordered visits, we end up breaking information about redirects, and we're no longer able to distinguish a redirecting url from history. I totally understand it's late in the cycle, and this is not a recent regression, but this is a scary dataloss behavior, because it invalidates assumptions we make to score urls in history for the urlbar. Because we can't fix old and broken history, we can only wait for it to expire, thus, the sooner we fix the logic, the sooner broken history will disappear.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: This is complicate to verify manually, and it's a very specific case that is unlikely to regress once fixed. While it would be testable in automation, since it's really specific the test would be unable to cover other possible causes of it, and this cause is unlikely to happen again. Thus it's not particularly useful. The simplicity of the one-liner patch should do for it.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The trivial patch is limiting a removal, so we're doing less expiration than before, that is pretty much a safe bet.
  • String changes made/needed:

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This expiration invalidates assumptions we make to score urls in history for the urlbar.
  • User impact if declined: We end up considering some visits not redirects, and this bumps them up in the urlbar score.
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The trivial patch is limiting a removal, so we're doing less expiration than before, that is pretty much a safe bet.
  • String or UUID changes made by this patch:
Attachment #9175209 - Flags: approval-mozilla-esr78?
Attachment #9175209 - Flags: approval-mozilla-beta?

Comment on attachment 9175209 [details]
Bug 1664252 - Stop breaking redirect chains when expiring visits for long urls. r=adw

We're building the 81 RC today. Let's let this bake for a cycle rather than taking this at the last minute.

Attachment #9175209 - Flags: approval-mozilla-beta? → approval-mozilla-beta-

Comment on attachment 9175209 [details]
Bug 1664252 - Stop breaking redirect chains when expiring visits for long urls. r=adw

Approved for 78.4esr.

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

Attachment

General

Created:
Updated:
Size: