зеркало из 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 : b270df65d77659c6a318ec13324d9bc5925f1df8
This commit is contained in:
Родитель
2e4a0585f7
Коммит
cf194698ef
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче