Closed Bug 720110 Opened 13 years ago Closed 13 years ago

URL autocomplete breaks keyword bookmarks

Categories

(Firefox :: Address Bar, defect)

12 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 12

People

(Reporter: andrea.ippo, Assigned: mak)

References

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

This is an edge case of the new URL autocomplete feature (see bug 659437, c0). Steps to reproduce: 1) bookmark a page, e.g. facebook.com, and assign it a keywork, say "fb" 2) visit fbackup.com or any other url with domain name starting with "fb" to add it to your browsing history 3) type "fb" in the urlbar and hit ENTER Expected results: fb is recognized as a keyword, Firefox opens the associated bookmark, facebook.com Actual results: Firefox autocompletes the URL with fbackup.com and gets you there as you hit ENTER. I think that keywords should have priority over URLs, since they are assigned by the user.
In my opinion keywords hold higher priority and in anycase you still can press down arrow and choose desired alternative
Blocks: 566489, 659437
No longer depends on: 659437
Keywords: regression
Status: UNCONFIRMED → NEW
Ever confirmed: true
I think it will be easier to fix this from the Places autocomplete implementation side, by not returning a result if the search term matches a keyword.
Assignee: nobody → mak77
Attached patch patch v1.0 (obsolete) (deleted) — Splinter Review
needs a test yet, though, since all the inline ac harness is missing, it should probably just be added in bug 715133. Will check what's the best way on, if work on those tests started or not.
Depends on: 720589
Attached patch patch v1.1 (obsolete) (deleted) — Splinter Review
Attachment #590958 - Attachment is obsolete: true
Attached patch patch v1.1 (deleted) — Splinter Review
Added a new test harness we can use in bug 715133 and a test using it
Attachment #590967 - Attachment is obsolete: true
Attachment #591152 - Flags: review?(dietrich)
Blocks: 715133
Status: NEW → ASSIGNED
Flags: in-testsuite+
No longer depends on: 720589
Comment on attachment 591152 [details] [diff] [review] patch v1.1 >diff --git a/toolkit/components/places/tests/inline/head_autocomplete.js b/toolkit/components/places/tests/inline/head_autocomplete.js >+function run_test() { >+ try { >+ Services.prefs.clearUserPref("browser.urlbar.autoFill"); >+ } catch(ex) {} >+ try { >+ Services.prefs.clearUserPref("places.history.enabled"); >+ } catch(ex) {} Don't need the try/catches anymore (since bug 487059)
Attachment #591152 - Flags: review+
Attachment #591152 - Flags: review?(dietrich)
Target Milestone: --- → Firefox 12
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: