>>20 こういうことですか?
--- content/tabextensions/globalOverlay.js.orig Wed Oct 23 16:55:39 2002
+++ content/tabextensions/globalOverlay.js Wed Oct 23 17:00:40 2002
@@ -2149,14 +2149,18 @@
var uris = window.arguments[0].split('\n');
var referrer = (window.arguments.length > 3) ? window.arguments[2] : null ;
+ var loadInBackground = nsPreferences.getBoolPref('browser.tabs.loadInBackground');
var i, j;
var nav = TabbrowserService.browserWindows;
if (uris.length && nav.length > 1) {
for (i = 0; i < nav.length; i++)
if (nav != window && nav[i].getBrowser) {
- for (j = 0; j < uris.length; j++)
- nav[i].getBrowser().addTab(uris[j], referrer);
+ for (j = 0; j < uris.length; j++) {
+ var tab = nav[i].getBrowser().addTab(uris[j], referrer);
+ if (j == 0 && !loadInBackground)
+ nav[i].getBrowser().selectedTab = tab;
+ }
document.documentElement.removeAttribute('onunload');
window.close();