Closed
Bug 429531
Opened 17 years ago
Closed 17 years ago
Location bar should show non-word-boundary matches below word-boundary matches
Categories
(Firefox :: Address Bar, defect, P2)
Firefox
Address Bar
Tracking
()
RESOLVED
FIXED
Firefox 3
People
(Reporter: Mardak, Assigned: Mardak)
References
Details
Attachments
(2 files, 1 obsolete file)
32.87 KB,
image/png
|
beltzner
:
ui-review+
|
Details |
14.75 KB,
patch
|
dietrich
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
We prune results that don't match on word boundaries, so if we end up not matching anything, we show nothing. But it could be useful to show at least something if we don't have enough word-boundary results.
Assignee | ||
Comment 1•17 years ago
|
||
blocking-firefox3? as this is what beltzner wanted to grant blocking for bug 429498.
Flags: blocking-firefox3?
Whiteboard: [has patch][need dietrich review]
Assignee | ||
Comment 2•17 years ago
|
||
Simple patch, simple idea.
New pref to control whether or not we match on word boundaries always, or first try word boundary then try matching anywhere.
If we search through everything and want more results, continue searching but relax the condition of matching on word boundaries.
Works with the "use previous results" optimization as well.
Assignee | ||
Comment 3•17 years ago
|
||
(The pref value of 2 to always match on word boundaries is mostly just for testing to make sure the word boundary logic still works. ;))
Assignee | ||
Comment 4•17 years ago
|
||
Screenshot of matching on word boundaries first and then trying to match anywhere.
https://build.mozilla.org/tryserver-builds/2008-04-17_17:55-edward.lee@engineering.uiuc.edu-boundary.anywhere/
Attachment #316349 -
Flags: ui-review?(beltzner)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch][need dietrich review] → [has patch][need dietrich review][need bug 429498]
Assignee | ||
Comment 5•17 years ago
|
||
Same as v1 but updated some comments.
Attachment #316333 -
Attachment is obsolete: true
Attachment #316351 -
Flags: review?(dietrich)
Attachment #316333 -
Flags: review?(dietrich)
Assignee | ||
Comment 6•17 years ago
|
||
This at most doubles the search time, bug because we have bug 422177 where we restart where the previous search left off, this isn't bad at all. We make sure we display any word boundary matches from history before trying to find non-word boundary matches.
This lets us match "toronto" for "thisplacetoronto.com".
Whiteboard: [has patch][need dietrich review][need bug 429498] → [has patch][need dietrich review]
Updated•17 years ago
|
Attachment #316349 -
Flags: ui-review?(beltzner) → ui-review+
Comment 7•17 years ago
|
||
This is important, marking as blocking.
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Comment 8•17 years ago
|
||
With this bug fixed, it will be nice to have Cyrillic letters added to the list of non-word-boundaries as mentioned in bug 393678#c33. Thanks.
Comment 9•17 years ago
|
||
Comment on attachment 316351 [details] [diff] [review]
v1.1
r=me, thanks!
Attachment #316351 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 10•17 years ago
|
||
Comment on attachment 316351 [details] [diff] [review]
v1.1
Changes some prefs to allow showing non-word boundary matches below word boundary matches.. with testcase too!
Attachment #316351 -
Flags: approval1.9?
Updated•17 years ago
|
Whiteboard: [has patch][need dietrich review] → [has patch][has reviews][has approval]
Comment 11•17 years ago
|
||
Comment on attachment 316351 [details] [diff] [review]
v1.1
a1.9=beltzner
Attachment #316351 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 12•17 years ago
|
||
http://hg.mozilla.org/cvs-trunk-mirror/index.cgi/rev/355b8f5bdc37
http://hg.mozilla.org/mozilla-central/index.cgi/rev/355b8f5bdc37
Checking in browser/app/profile/firefox.js;
/cvsroot/mozilla/browser/app/profile/firefox.js,v <-- firefox.js
new revision: 1.325; previous revision: 1.324
done
Checking in toolkit/components/places/src/nsNavHistory.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp
new revision: 1.297; previous revision: 1.296
done
Checking in toolkit/components/places/src/nsNavHistory.h;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.h,v <-- nsNavHistory.h
new revision: 1.157; previous revision: 1.156
done
Checking in toolkit/components/places/src/nsNavHistoryAutoComplete.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistoryAutoComplete.cpp,v <-- nsNavHistoryAutoComplete.cpp
new revision: 1.58; previous revision: 1.57
done
Checking in toolkit/components/places/tests/autocomplete/test_word_boundary_search.js;
/cvsroot/mozilla/toolkit/components/places/tests/autocomplete/test_word_boundary_search.js,v <-- test_word_boundary_search.js
new revision: 1.5; previous revision: 1.4
done
Blocks: 405745
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Priority: -- → P2
Resolution: --- → FIXED
Whiteboard: [has patch][has reviews][has approval]
Target Milestone: --- → Firefox 3
You need to log in
before you can comment on or make changes to this bug.
Description
•