Closed Bug 329949 Opened 18 years ago Closed 18 years ago

browser.tabs.loadBookmarksInBackground is ignored in places views (histrory sidebar, bookmarks toolbar etc.)

Categories

(Firefox :: Bookmarks & History, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha2

People

(Reporter: polidobj, Assigned: asaf)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060309 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060309 Firefox/1.6a1

In current builds (trunk or 1.8 branch) bookmarks that are middle clicked are always opened in a background tab no matter what the value of browser.tabs.loadBookmarksInBackground is set to.

Reproducible: Always

Steps to Reproduce:
1. Middle click on a bookmark 
2.
3.

Actual Results:  
Bookmark is always opened in a background tab.

Expected Results:  
Bookmark should follow browser.tabs.LoadBookmarksInBackground

works  2006-03-07-04-mozilla1.8
broken 2006-03-08-12-mozilla1.8


Bookmarks will open in foreground tabs if browser.tabs.loadInBackground is set to false.  But then middle clicking on web page links will also open new foreground tabs which is not desired (at least by me).
browser.tabs.loadBookmarksInBackground does still work for the home button.
browser.tabs.loadBookmarksInBackground also still works for the back & forward buttons.
Assignee: nobody → annie.sullivan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → Firefox 2 beta1
Keywords: regression
Summary: browser.tabs.loadBookmarksInBackground no longer works since Places enabled → browser.tabs.loadBookmarksInBackground = false no longer works since Places enabled
This was fixed by the patch for bug 330130.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whoops, marked the wrong bug.  Sorry.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This regression also seems to have broken the way the tab generated by the Search bar and the "Search Web For" context menu option open.  Now all tabs generated from those open in the foreground, regardless of any configuration settings.  They used to obey one of the other about:config options.  Should I make a new bug, or should this bug cover it?

Btw, I see this in both the trunk and the branch from 20060321.
That's almost certainly due to the search rewrite and nothing due to places, please file a bug against gavin.sharp@gmail.com and cc me.
With a profile's default settings: rightclick on a places' history link and choose Open in New Tab and the link opens unexpectedly in the background. Double middle-clicking opens that link in the foreground however.
Whiteboard: swag:0.5 days
I've scrutinized this in depth ;) but I think it is a places bug.
In a places build, links open in the background, and in a recent build without places, in the foreground. Both tested with the same profile.
I get this as regression range:
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=2006-03-04+13%3A00&maxdate=2006-03-04+22%3A00
*** Bug 334278 has been marked as a duplicate of this bug. ***
If we flip places on for the upcoming trunk alpha I'm guessing a fix for this would be good.
Flags: blocking1.9a1?
Changing the blocking flags and milestone since Places won't be in alpha 1.  
Flags: blocking1.9a1? → blocking1.9?
Target Milestone: Firefox 2 beta1 → Firefox 3 alpha2
This also affects the history sidebar context menu.
Assignee: annie.sullivan → mano
Status: REOPENED → NEW
OS: Windows XP → All
Priority: P3 → P2
Hardware: PC → All
Status: NEW → ASSIGNED
Whiteboard: swag:0.5 days
Attached patch patchSplinter Review
Attachment #249596 - Flags: review?(sspitzer)
Keywords: regression
Summary: browser.tabs.loadBookmarksInBackground = false no longer works since Places enabled → browser.tabs.loadBookmarksInBackground is ignored in places views (histrory sidebar, bookmarks toolbar etc.)
*** Bug 330703 has been marked as a duplicate of this bug. ***
Comment on attachment 249596 [details] [diff] [review]
patch

r=sspitzer, thanks for fixing this for the history sidebar (and the rest of places)
Attachment #249596 - Flags: review?(sspitzer) → review+
mozilla/browser/components/places/content/controller.js 1.105
mozilla/browser/components/places/content/places.js 1.69
mozilla/browser/components/places/content/places.xul 1.51
mozilla/browser/components/places/content/placesPopup.xul 1.4
mozilla/browser/base/content/browser-places.js 1.15
Status: ASSIGNED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
you miss a spot in PlacesController.prototype.openLinksInTabs

for (var i = 0; i < nodes.length; ++i) {
    getTopWin().openNewTabWith(urlsToOpen[i], null, null);
}

and nodes.length is not always the same as urlsToOpen.length

do you think gBrowser.loadTabs() can be in use from here ?
(In reply to comment #17)
> you miss a spot in PlacesController.prototype.openLinksInTabs
> 
> for (var i = 0; i < nodes.length; ++i) {
>     getTopWin().openNewTabWith(urlsToOpen[i], null, null);
> }
> 

Intended, focus changes are not desired for this case.

> and nodes.length is not always the same as urlsToOpen.length
> 

Good catch, thanks! (fix checked in, see bug 365100).

> do you think gBrowser.loadTabs() can be in use from here ?

probably, please file a bug. 

there is bug 331908 - Improve openLinksInTabs
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: