diff --git a/content/resurrect-select-mirror.xul b/content/resurrect-select-mirror.xul
index f546299..953975b 100644
--- a/content/resurrect-select-mirror.xul
+++ b/content/resurrect-select-mirror.xul
@@ -14,8 +14,14 @@
-
+
+
+
+
+
+
+
diff --git a/content/resurrect.js b/content/resurrect.js
index c849fcc..28af61b 100644
--- a/content/resurrect.js
+++ b/content/resurrect.js
@@ -72,6 +72,17 @@ var resurrect={
return null;
},
+// // // // // // // // // // // // // // // // // // // // // // // // // // //
+
+ selectTab:function(aTab) {
+ with (gBrowser) {
+ selectedTab=aTab;
+ mTabBox.selectedPanel=getBrowserForTab(mCurrentTab).parentNode;
+ mCurrentTab.selected = true;
+ updateCurrentBrowser();
+ }
+ },
+
// // // // // // // // // // // // // // // // // // // // // // // // // // //
showDialog:function(url) {
@@ -153,8 +164,25 @@ var resurrect={
return false;
break;
}
+
if (gotoUrl) {
- contentDoc.location.assign(gotoUrl);
+ if (ownerDoc.getElementById('targetTab').getAttribute('selected')) {
+ var newTab=window.opener.gBrowser.addTab(gotoUrl);
+
+ //replicate broken focus-new-tab functionality
+ var prefServ=Components.classes['@mozilla.org/preferences-service;1']
+ .getService(Components.interfaces.nsIPrefBranch);
+ if (!prefServ.getBoolPref('browser.tabs.loadInBackground')) {
+ window.opener.resurrect.selectTab(newTab);
+ }
+ } else if (ownerDoc.getElementById('targetWin').getAttribute('selected')) {
+ // the setTimeout keeps focus from returning to the opener
+ setTimeout(function(){
+ window.opener.openNewWindowWith(gotoUrl, null, null);
+ }, 10);
+ } else {
+ contentDoc.location.assign(gotoUrl);
+ }
}
if ('chrome://resurrect/content/resurrect-select-mirror.xul'==window.document.location) {
diff --git a/install.rdf b/install.rdf
index e2e17a6..e43fa32 100644
--- a/install.rdf
+++ b/install.rdf
@@ -3,7 +3,7 @@
{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}
Resurrect Pages
- 0.6
+ 0.9
Resurrect dead pages, by finding their ghosts.
Anthony Lieuallen
http://www.arantius.com/article/resurrect
diff --git a/locale/en-US/overlay.dtd b/locale/en-US/overlay.dtd
index 1c8ecdd..403e6e5 100644
--- a/locale/en-US/overlay.dtd
+++ b/locale/en-US/overlay.dtd
@@ -1,11 +1,16 @@
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+