Closed Bug 1654316 Opened 4 years ago Closed 4 years ago

Autofill is not properly considering bookmarked status of origins

Categories

(Firefox :: Address Bar, defect, P1)

defect
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 80
Iteration:
80.2 - July 13 - July 26
Tracking Status
firefox80 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

From https://bugzilla.mozilla.org/show_bug.cgi?id=1653891#c7

I think the problem is the query is wrongly extracting the "bookmarked" value.
In this case there are both an http and https entries in moz_origins, the "GROUP BY host" constructs at https://searchfox.org/mozilla-central/rev/3b6958c26049c1e27b2790a43154caaba9f6dd4a/browser/components/urlbar/UrlbarProviderAutofill.jsm#113,128 are picking just one of those entries, and checking for bookmarks https://searchfox.org/mozilla-central/rev/3b6958c26049c1e27b2790a43154caaba9f6dd4a/browser/components/urlbar/UrlbarProviderAutofill.jsm#105-107
That is not going to check both origins, but only one, and if it's the non-bookmarked one, we hit the bug.

Iteration: --- → 80.2 - July 13 - July 26
Points: --- → 3
No longer blocks: 1653891
Blocks: 1653891

The old query was picking a random bookmarked status out of the pages in an origin,
depending on the physical position of the origin rows in the table.
The new query uses window functions to partition the data by origin, so it can
query origins just once and sum www and non-www origin's frecency scores before
comparing to the autofill threshold.

Blocks: 1630431
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/d4b06bdc9589 Autofill is not properly considering bookmarked status of origins. r=adw
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
Regressions: 1655363
Regressions: 1655693
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: