diff --git a/devtools/client/shared/vendor/react-dom.js b/devtools/client/shared/vendor/react-dom.js index 6c641611c887..b2ae53e85b82 100644 --- a/devtools/client/shared/vendor/react-dom.js +++ b/devtools/client/shared/vendor/react-dom.js @@ -151,10 +151,12 @@ 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) {