Closed Bug 594131 Opened 14 years ago Closed 14 years ago

bookmarks opened from app tab should open with focus even if browser.tabs.loadBookmarksInBackground=TRUE

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 4.0b7
Tracking Status
blocking2.0 --- beta7+

People

(Reporter: eyalgruss, Assigned: sindrebugzilla)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

following Bug 579872, when current tab is an app tab, bookmarks will open in a new tab. if browser.tabs.loadBookmarksInBackground=TRUE, the bookmark will open in the background. this preference is usually relevant for middle clicks.
however, when i LEFT click an item, i always expect it to open with focus.
blocking2.0: --- → ?
Depends on: 579872
Attached patch patch + test (obsolete) — Splinter Review
Assignee: nobody → sindrebugzilla
Attachment #474596 - Flags: review?(dao)
Comment on attachment 474596 [details] [diff] [review]
patch + test

>+function test() {
>+  let newTab = gBrowser.addTab("http://example.com");
>+  waitForExplicitFinish();
>+  newTab.linkedBrowser.addEventListener("load", mainPart, true);
>+  
>+  Services.prefs.setBoolPref("browser.tabs.loadBookmarksInBackground", true);
>+  
>+  function mainPart() {
>+    gBrowser.pinTab(newTab);
>+    gBrowser.selectedTab = newTab;
>+    
>+    openUILinkIn("http://example.org/", "current");
>+    isnot(gBrowser.selectedTab, newTab, "shouldn't load in background");
>+    
>+    Services.prefs.setBoolPref("browser.tabs.loadBookmarksInBackground", false);

if (...prefHasUserValue(...))
  ...clearUserPref(...);
Attachment #474596 - Flags: review?(dao) → review+
Component: Tabbed Browser → General
QA Contact: tabbed.browser → general
Attached patch patch + test v2Splinter Review
Attachment #474596 - Attachment is obsolete: true
Attachment #475538 - Flags: review?(dao)
Attachment #475538 - Flags: review?(dao) → review+
This should go with beta7.
Assignee: sindrebugzilla → nobody
blocking2.0: ? → beta7+
Component: General → Tabbed Browser
QA Contact: general → tabbed.browser
Whiteboard: [can land]
Assignee: nobody → sindrebugzilla
Component: Tabbed Browser → General
QA Contact: tabbed.browser → general
http://hg.mozilla.org/mozilla-central/rev/4de37c4f3fab

Thanks Sindre!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b7
Whiteboard: [can land]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: