Closed Bug 516603 Opened 15 years ago Closed 15 years ago

make existing addTab and loadOneTab callers pass a hashed arguments object

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.7a1
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: dao, Assigned: jmorkel)

References

Details

Attachments

(1 file, 3 obsolete files)

this is about using the new API from bug 515932
OS: Linux → All
Hardware: x86 → All
I changed all the addTab and loadOneTab callers I could find. There were a few instances of callers just passing a URI with default (null/false) parameters for the rest which I stripped out.
Assignee: nobody → jmorkel
Status: NEW → ASSIGNED
Attachment #401170 - Flags: review?(dao)
Attached patch Set inBackground to false explicitely (obsolete) (deleted) — Splinter Review
If you don't set inBackground to false new tabs aren't made active. I incorrectly assumed that leaving this parameter out made it default to the expected behaviour.
Attachment #401170 - Attachment is obsolete: true
Attachment #401181 - Flags: review?(dao)
Attachment #401170 - Flags: review?(dao)
Comment on attachment 401181 [details] [diff] [review] Set inBackground to false explicitely Looks good, thanks. >diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js >--- a/browser/base/content/browser.js >+++ b/browser/base/content/browser.js >@@ -1794,17 +1794,17 @@ function BrowserOpenTab() > function BrowserOpenTab() > { > if (!gBrowser) { > // If there are no open browser windows, open a new one > window.openDialog("chrome://browser/content/", "_blank", > "chrome,all,dialog=no", "about:blank"); > return; > } >- gBrowser.loadOneTab("about:blank", null, null, null, false, false); >+ gBrowser.loadOneTab("about:blank",{inBackground: false}); nit: add a space after ,
Attachment #401181 - Flags: review?(dao) → review+
Attached patch For check in (deleted) — Splinter Review
Fixed coding style inconsistency.
Attachment #401181 - Attachment is obsolete: true
Attachment #401184 - Flags: approval1.9.2?
Flags: wanted-firefox3.6?
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
Verified fixed on trunk based on code check-in.
Status: RESOLVED → VERIFIED
Comment on attachment 401184 [details] [diff] [review] For check in Safe on its own, baking for most of a month and, while not exactly blocking bug 514327 (a P1 blocker), makes it substantially easier to land. a=me.
Attachment #401184 - Flags: approval1.9.2? → approval1.9.2+
Comment on attachment 401184 [details] [diff] [review] For check in >diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js [SNIP] > // If this is an external load, we need to load a blank tab first, > // because loadflags can't be passed to loadOneTab. > let loadBlankFirst = !aURI || isExternal; >- let tab = win.gBrowser.loadOneTab(loadBlankFirst ? "about:blank" : aURI.spec, >- referrer, null, null, loadInBackground, false); >+ let tab = win.gBrowser.loadOneTab(loadBlankFirst ? "about:blank" : aURI.spec, { >+ referrerURI: referrer, >+ inBackground: loadInBackground}); Looks like this chunk of this bug's patch didn't land on 1.9.2, as can be seen in the push links above. (the 1.9.2 one is missing this chunk) Alternately, compare the current up-to-date chunks of source: http://hg.mozilla.org/mozilla-central/annotate/46484930f4f3/browser/base/content/browser.js#l4556 vs http://hg.mozilla.org/releases/mozilla-1.9.2/annotate/14fd499129bf/browser/base/content/browser.js#l4497 Is that a problem?
Depends on: 546533
No longer depends on: 546533
Attached patch chunk that got left out of 1.9.2 (obsolete) (deleted) — Splinter Review
For convenience, here's a patch to apply the chunk that got left out of 1.9.2, as noted in comment 9. This is a subset of the already-posted patch (attachment 401184 [details] [diff] [review]), and it applies cleanly to current mozilla-1.9.2. (and un-applies cleanly on mozilla-central, with "patch -R") I'm not claiming to know that this chunk is appropriate for 1.9.2 -- I'm just assuming it is, based on the fact that it was in the original patch posted here. I leave any further decisions/action here up to John Morkel & Dao. (patch author & patch reviewer/lander)
Comment on attachment 427249 [details] [diff] [review] chunk that got left out of 1.9.2 Not sure how this got left out. Dao, any ideas?
Attachment #427249 - Flags: review?(dao)
Attachment #427249 - Flags: approval1.9.2.2?
Comment on attachment 427249 [details] [diff] [review] chunk that got left out of 1.9.2 It got left out because it didn't apply on 1.9.2 at that time. There's no point in landing it now.
Attachment #427249 - Attachment is obsolete: true
Attachment #427249 - Flags: review?(dao)
Attachment #427249 - Flags: approval1.9.2.2?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: