mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
[Basilisk] Add pref to control history menu length.
Backport of MoonchildProductions/Pale-Moon commit d7581957ff
This commit is contained in:
parent
76052fcda8
commit
11d6529750
1 changed files with 6 additions and 2 deletions
|
|
@ -717,9 +717,13 @@ function HistoryMenu(aPopupShowingEvent) {
|
|||
// Defining the prototype inheritance in the prototype itself would cause
|
||||
// browser.js to halt on "PlacesMenu is not defined" error.
|
||||
this.__proto__.__proto__ = PlacesMenu.prototype;
|
||||
let maxResults = Services.prefs.getIntPref("browser.history.menuMaxResults",15);
|
||||
if (maxResults < 1 || maxResults > 50) {
|
||||
// Return to sanity...
|
||||
maxResults = 15;
|
||||
}
|
||||
PlacesMenu.call(this, aPopupShowingEvent,
|
||||
"place:sort=4&maxResults=15");
|
||||
}
|
||||
"place:sort=4&maxResults=" + maxResults.toString().trim()); }
|
||||
|
||||
HistoryMenu.prototype = {
|
||||
_getClosedTabCount() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue