Bug 614249 - Tabs don't open in background when using CTRL key and tapping a link [r=wjohnston]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 01 Dec 2010 14:59:02 -0500
changeset 67074 41b8c8f3ac7d9f44917955bf0a8a087b1cc37c56
parent 67073 0197e9fbe28adc684282344d6a523b6d9cf4a92a
child 67075 a4915efe430b088ee67c872427d6047721efe63a
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswjohnston
bugs614249
Bug 614249 - Tabs don't open in background when using CTRL key and tapping a link [r=wjohnston]
mobile/chrome/content/content.js
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -418,17 +418,17 @@ Content.prototype = {
 
       case "Browser:MouseUp": {
         this._formAssistant.focusSync = true;
         let element = elementFromPoint(x, y);
         if (modifiers == Ci.nsIDOMNSEvent.CONTROL_MASK) {
           let uri = Util.getHrefForElement(element);
           if (uri)
             sendAsyncMessage("Browser:OpenURI", { uri: uri,
-                                                  referrer: target.ownerDocument.documentURIObject.spec });
+                                                  referrer: element.ownerDocument.documentURIObject.spec });
         } else if (!this._formAssistant.open(element)) {
           sendAsyncMessage("FindAssist:Hide", { });
           this._sendMouseEvent("mousemove", element, x, y);
           this._sendMouseEvent("mousedown", element, x, y);
           this._sendMouseEvent("mouseup", element, x, y);
         }
         ContextHandler.reset();
         this._formAssistant.focusSync = false;