From bf314db4f241f444030debfb5b8ce394439c0d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Wed, 20 Mar 2013 15:07:28 +0100 Subject: [PATCH] Bug 748740 - Crtl+clicking on a link should open it even if content is calling event.stopPropagation() in a click event handler. r=mak --HG-- extra : rebase_source : 98665c040764c5616a8f34d3c33c2a00a8415a77 --- browser/base/content/browser.js | 4 ++++ browser/base/content/browser.xul | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 2dea85030a2..dd6eecdb01c 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -1128,6 +1128,10 @@ var gBrowserInit = { var mustLoadSidebar = false; + Cc["@mozilla.org/eventlistenerservice;1"] + .getService(Ci.nsIEventListenerService) + .addSystemEventListener(gBrowser, "click", contentAreaClick, true); + gBrowser.addEventListener("DOMUpdatePageReport", gPopupBlockerObserver, false); // Note that the XBL binding is untrusted diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 15f64314f4a..3cb0b03f01f 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -1085,8 +1085,7 @@ flex="1" contenttooltip="aHTMLTooltip" tabcontainer="tabbrowser-tabs" contentcontextmenu="contentAreaContextMenu" - autocompletepopup="PopupAutoComplete" - onclick="contentAreaClick(event, false);"/> + autocompletepopup="PopupAutoComplete"/>