Bug 1326937 - Patch react-dom to avoid double load draft
authorJan Odvarko <odvarko@gmail.com>
Thu, 15 Jun 2017 16:43:47 +0200
changeset 610551 ba8691941b5eb83641e61e5228e3829daa5e05e4
parent 610550 251e1cad00bdf397cf8fe2910692ea106b53129b
child 610552 d23c74db0ae4bcef2eb91dbaecfd6438a01b1e6f
push id68920
push userjodvarko@mozilla.com
push dateTue, 18 Jul 2017 12:56:31 +0000
bugs1326937
milestone56.0a1
Bug 1326937 - Patch react-dom to avoid double load MozReview-Commit-ID: CEMsI7CvqHS
devtools/client/shared/vendor/react-dom.js
--- a/devtools/client/shared/vendor/react-dom.js
+++ b/devtools/client/shared/vendor/react-dom.js
@@ -146,20 +146,22 @@
     // This execution context doesn't know about XULDocuments, so don't get the toolbox.
     if (typeof XULDocument !== "function") {
       return null;
     }
 
     let doc = node.ownerDocument;
     const inspectorUrl = "chrome://devtools/content/inspector/inspector.xhtml";
     const netMonitorUrl = "chrome://devtools/content/netmonitor/netmonitor.xhtml";
+    const webConsoleUrl = "chrome://devtools/content/webconsole/webconsole.xhtml";
 
     while (doc instanceof XULDocument ||
            doc.location.href === inspectorUrl ||
-           doc.location.href === netMonitorUrl) {
+           doc.location.href === netMonitorUrl ||
+           doc.location.href === webConsoleUrl) {
       const {frameElement} = doc.defaultView;
 
       if (!frameElement) {
         // We're at the root element, and no toolbox was found.
         return null;
       }
 
       doc = frameElement.parentElement.ownerDocument;