Open
Bug 444911
Opened 16 years ago
Updated 2 years ago
Middle/ctrl-click on the home button doesn't load tab in background when shift is pressed
Categories
(Firefox :: General, defect)
Tracking
()
NEW
People
(Reporter: klaas1988, Unassigned)
Details
(Keywords: uiwanted, Whiteboard: [has patch])
Attachments
(1 file, 1 obsolete file)
995 bytes,
patch
|
beltzner
:
ui-review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008062918 Minefield/3.1a1pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008062918 Minefield/3.1a1pre From bug 440702 comment 34 : BrowserGoHome() has a bug when you ctrl- or middle-click click it, it doesn't make any difference if shift is pressed or not. It should open the homepage in background when shift is pressed (and the pref is set to default), but instead the new tab is selected. This is because of this code: > // openUILinkIn in utilityOverlay.js doesn't handle loading multiple pages > switch (where) { > case "current": > loadOneOrMoreURIs(homePage); > break; > case "tabshifted": > case "tab": > urls = homePage.split("|"); > var loadInBackground = >getBoolPref("browser.tabs.loadBookmarksInBackground", false); > gBrowser.loadTabs(urls, loadInBackground); > break; > case "window": > OpenBrowserWindow(); > break; > } This problem can be fixed by replacing the above code with this: > // openUILinkIn in utilityOverlay.js doesn't handle loading multiple pages > var loadInBackground = getBoolPref("browser.tabs.loadBookmarksInBackground", >false); > switch (where) { > case "current": > loadOneOrMoreURIs(homePage); > break; > case "tabshifted": > loadInBackground = !loadInBackground; > // fall through > case "tab": > urls = homePage.split("|"); > gBrowser.loadTabs(urls, loadInBackground); > break; > case "window": > OpenBrowserWindow(); > break; > } Reproducible: Always Steps to Reproduce: 1. Middle-click on the home-button while holding shift. Actual Results: The homepage opens in a new SELECTED tab. Expected Results: The tab should load in the background when loadBookmarksInBackground is set to false and the shift-button is pressed.
Updated•16 years ago
|
Reporter | ||
Comment 1•16 years ago
|
||
This patch fixes the problem.
Attachment #329305 -
Flags: ui-review?(beltzner)
Attachment #329305 -
Flags: review?(dao)
Reporter | ||
Updated•16 years ago
|
Whiteboard: [has patch] [needs review dao]
Reporter | ||
Comment 2•16 years ago
|
||
Dão, what do you think of this patch?
Updated•16 years ago
|
Attachment #329305 -
Flags: review?(dao) → review+
Reporter | ||
Updated•16 years ago
|
Whiteboard: [has patch] [needs review dao] → [has patch] [needs review beltzner]
Reporter | ||
Comment 3•16 years ago
|
||
Attachment #329305 -
Attachment is obsolete: true
Attachment #336697 -
Flags: ui-review?(beltzner)
Attachment #329305 -
Flags: ui-review?(beltzner)
Reporter | ||
Updated•16 years ago
|
Assignee: nobody → klaas1988
Status: NEW → ASSIGNED
Updated•15 years ago
|
Flags: wanted-firefox3.6?
Updated•15 years ago
|
Flags: wanted-firefox3.6?
Updated•14 years ago
|
Blocks: cuts-cruft
Updated•14 years ago
|
No longer blocks: cuts-cruft
Updated•13 years ago
|
Whiteboard: [has patch] [needs review beltzner] → [has patch]
Updated•13 years ago
|
Attachment #336697 -
Flags: ui-review?(beltzner) → ui-review+
Comment 4•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: klaas1988 → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•