diff --git a/mozilla/xpfe/browser/resources/content/navigator.js b/mozilla/xpfe/browser/resources/content/navigator.js
index 8165fc46e03..6ace4a7452f 100644
--- a/mozilla/xpfe/browser/resources/content/navigator.js
+++ b/mozilla/xpfe/browser/resources/content/navigator.js
@@ -62,6 +62,7 @@ var gBrowser = null;
// focused frame URL
var gFocusedURL = null;
+var gFocusedDocument = null;
/**
* We can avoid adding multiple load event listeners and save some time by adding
@@ -98,6 +99,7 @@ function contentAreaFrameFocus()
var focusedWindow = document.commandDispatcher.focusedWindow;
if (isDocumentFrame(focusedWindow)) {
gFocusedURL = focusedWindow.location.href;
+ gFocusedDocument = focusedWindow.document;
}
}
diff --git a/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul b/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
index e1dc82d044b..892db1a3edd 100644
--- a/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
+++ b/mozilla/xpfe/browser/resources/content/navigatorOverlay.xul
@@ -106,7 +106,7 @@
-->
-
+
@@ -186,7 +186,7 @@
-
+
diff --git a/mozilla/xpfe/communicator/resources/content/contentAreaClick.js b/mozilla/xpfe/communicator/resources/content/contentAreaClick.js
index c59ef88d7af..667753d782e 100644
--- a/mozilla/xpfe/communicator/resources/content/contentAreaClick.js
+++ b/mozilla/xpfe/communicator/resources/content/contentAreaClick.js
@@ -39,6 +39,12 @@
*
* ***** END LICENSE BLOCK ***** */
+/*
+ * - [ Dependencies ] ---------------------------------------------------------
+ * utilityOverlay.js:
+ * - gatherTextUnder
+ */
+
var pref = null;
pref = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
@@ -205,7 +211,7 @@
saveModifier = saveModifier ? event.shiftKey : event.metaKey;
if (saveModifier) { // if saveModifier is down
- savePage(href); // save the link
+ saveURL(href, gatherTextUnder(event.target));
return true;
}
if (event.altKey) // if alt is down
diff --git a/mozilla/xpfe/communicator/resources/content/contentAreaContextOverlay.xul b/mozilla/xpfe/communicator/resources/content/contentAreaContextOverlay.xul
index fdb707f5d46..ca98f858f51 100644
--- a/mozilla/xpfe/communicator/resources/content/contentAreaContextOverlay.xul
+++ b/mozilla/xpfe/communicator/resources/content/contentAreaContextOverlay.xul
@@ -126,7 +126,7 @@
+ oncommand="saveDocument(window._content.document);"/>