зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1326937 - Patch react-dom to avoid double load r=bgrins
MozReview-Commit-ID: CEMsI7CvqHS --HG-- extra : rebase_source : ae1115dbf5ed3e706cad731d0fb0f495f19203b5
This commit is contained in:
Родитель
ec58c3b9cc
Коммит
73dc18b974
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче