Closed Bug 440400 Opened 17 years ago Closed 5 years ago

Add pref to change number of rows shown at one time in locationbar autocomplete popup

Categories

(Firefox :: Address Bar, enhancement, P5)

enhancement

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: nightstalkerz, Assigned: at.light)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008061803 Minefield/3.1a1pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008061803 Minefield/3.1a1pre Currently Firefox 3 only shows 6 results when searching from the location bar. This may not be enough if some of us have larger monitors so it would be nice to have a value in the about:config which lets the user change it. Reproducible: Always Steps to Reproduce: 1. Type something in the locationbar 2. 3. Actual Results: Results returned are 6 rows before having to scroll. Expected Results: Results returned are defaulted to 6 rows unless the user changes it. The addon above contains code to do this and shouldn't take very long to intergrate.
browser.urlbar.maxRichResults
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
That changes the number of results which are returned. The thing I'm talking about is the autopopup when the user searches. It cannot be changed through the about:config.
Ah, the size of the popup and not the number of results in it. Valid request. I agree, this shouldn't be hardcoded. See bug 406257 and bug 389584.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Severity: minor → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows Vista → All
Hardware: PC → All
Summary: Allow user to change number of search rows from locationbar → Add pref to change number of rows shown at one time in locationbar autocomplete popup
Priority: -- → P5
Target Milestone: --- → Future
A valid workaround is Locationbar Limit ==> https://addons.mozilla.org/en-US/firefox/addon/7674 However I would prefer an user_pref in about:config instead of using an extension.
Here is a patch which seems to work. It reads from the pref "browser.urlbar.dropdownSize", which is by default 6 (the current, hard-coded setting). The patch also fixes some busted indentation. I'm not sure if the implementation is quite right - it does require a browser restart for any change to take effect. Who can review for this component?
Assignee: nobody → at.light
Attachment #497126 - Flags: feedback?
Attached patch patch (obsolete) — Splinter Review
Un-bitrotting.
Attachment #497126 - Attachment is obsolete: true
Attachment #504216 - Flags: review?
Attachment #497126 - Flags: feedback?
Attachment #504216 - Flags: review? → review?(dao)
Comment on attachment 504216 [details] [diff] [review] patch > if (searchBar && searchBar.textbox == this.mInput) { >- // Handle search bar popup clicks >- var search = controller.getValueAt(this.selectedIndex); >+ // Handle search bar popup clicks >+ var search = controller.getValueAt(this.selectedIndex); hm?
Attachment #504216 - Flags: review?(dao) → review-
Attached patch patchSplinter Review
Sorry about that.
Attachment #504216 - Attachment is obsolete: true
Attachment #504233 - Flags: review?(dao)
Comment on attachment 504233 [details] [diff] [review] patch There's maxrows="6" in browser.xul which this patch seems to make obsolete. >@@ -957,16 +958,30 @@ > .getService(Components.interfaces.nsIPrefBranch); > this._maxResults = prefService.getIntPref("browser.urlbar.maxRichResults"); > } > return this._maxResults; > ]]> > </getter> > </property> > >+ <property name="maxRows"> >+ <getter> >+ <![CDATA[ >+ if (!this._maxRows) { >+ var prefService = >+ Components.classes["@mozilla.org/preferences-service;1"] >+ .getService(Components.interfaces.nsIPrefBranch); >+ this._maxResults = prefService.getIntPref("browser.urlbar.dropdownSize"); This should be using Services.prefs.
Attachment #504233 - Flags: review?(dao) → review-
I confirm that https://addons.mozilla.org/en-US/firefox/addon/locationbar-limit/ is a workaround. It gives two options > Results searched: N > Rows visible: M I don't understand the meaning of the first one "Results searched".

There's no plan to implement this, anyway the current panel iirc just grows with maxRichResults.

Status: NEW → RESOLVED
Closed: 17 years ago5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: