Bug 1218249 - followup: re-add 'content.' to the Node reference in content.js, rs=bustage
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Fri, 04 Dec 2015 15:21:43 +0000
changeset 309766 bd4e3d717b3263e6694afe576a7d4843214915a6
parent 309765 c9c2015c63c57c7e456ef8847574f42be23da21a
child 309767 ced582e28099ca75c32adf46be72310d1022dd37
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1218249
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1218249 - followup: re-add 'content.' to the Node reference in content.js, rs=bustage
browser/base/content/content.js
--- a/browser/base/content/content.js
+++ b/browser/base/content/content.js
@@ -515,17 +515,17 @@ var ClickEventHandler = {
 
     if (node)
       return [node.href, node, node.ownerDocument.nodePrincipal];
 
     // If there is no linkNode, try simple XLink.
     let href, baseURI;
     node = event.target;
     while (node && !href) {
-      if (node.nodeType == Node.ELEMENT_NODE &&
+      if (node.nodeType == content.Node.ELEMENT_NODE &&
           (node.localName == "a" ||
            node.namespaceURI == "http://www.w3.org/1998/Math/MathML")) {
         href = node.getAttributeNS("http://www.w3.org/1999/xlink", "href");
         if (href) {
           baseURI = node.ownerDocument.baseURIObject;
           break;
         }
       }