Closed Bug 414257 Opened 17 years ago Closed 17 years ago

Stop searching for autocomplete results that won't be displayed

Categories

(Firefox :: Address Bar, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 beta3

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(2 files, 1 obsolete file)

No need to spend cycles on something we won't use. See bug 414229 comment 4 for more details.
Attached patch v1 (obsolete) (deleted) — Splinter Review
Build finished and too many results hit the max and stop as expected.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #299615 - Flags: review?(seth)
Attached patch v1.1 (deleted) — Splinter Review
Actually.. just to be safe, check >= instead of ==.
Attachment #299615 - Attachment is obsolete: true
Attachment #299616 - Flags: review?(seth)
Attachment #299615 - Flags: review?(seth)
Comment on attachment 299616 [details] [diff] [review] v1.1 r=sspitzer, thanks edward. please let dietrich know about this change as well.
Attachment #299616 - Flags: review?(seth) → review+
we should spin off another bug, about this: 80 // This is the maximum results we'll return for a "typed" search 81 // This happens in response to clicking the down arrow next to the URL. 82 // XXX todo, check if doing rich autocomplete, and if so, limit to the max results? 83 #define AUTOCOMPLETE_MAX_PER_TYPED 100 that should not longer be #define, but we should use mAutoCompleteMaxResults now in nsNavHistory::AutoCompleteTypedSearch() we can limit our results to the pref (25), because that's the max we'll show anyways.
again, I'm ignoring non-rich results. keep in mind that the drop down is in the url bar, and not the other two places (open location dialog and home page pref.)
Checking in toolkit/components/places/src/nsNavHistory.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp new revision: 1.232; previous revision: 1.231 done Checking in toolkit/components/places/src/nsNavHistory.h; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.h,v <-- nsNavHistory.h new revision: 1.124; previous revision: 1.123 done Checking in toolkit/components/places/src/nsNavHistoryAutoComplete.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistoryAutoComplete.cpp,v <-- nsNavHistoryAutoComplete.cpp new revision: 1.34; previous revision: 1.33 done
Flags: in-testsuite-
Target Milestone: --- → Firefox 3 M11
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attached patch followup v1 (deleted) — Splinter Review
My bad. yank/paste = evil!
Attachment #300172 - Flags: review?(seth)
Attachment #300172 - Flags: review?(seth) → review+
Attachment #300172 - Flags: approval1.9?
Comment on attachment 300172 [details] [diff] [review] followup v1 Would be useful to get feedback on good values.. if people can set the prefs.
Attachment #300172 - Flags: approval1.9b3?
Comment on attachment 300172 [details] [diff] [review] followup v1 a=beltzner for 1.9 and beta 3
Attachment #300172 - Flags: approval1.9b3?
Attachment #300172 - Flags: approval1.9b3+
Attachment #300172 - Flags: approval1.9?
Attachment #300172 - Flags: approval1.9+
Checking in toolkit/components/places/src/nsNavHistory.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp new revision: 1.238; previous revision: 1.237 done
Blocks: 422177
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: