Fix for stalling embedded objects load on dynamic script injection.
This commit is contained in:
parent
d88a0cf6d7
commit
a46d085ff7
|
@ -99,10 +99,9 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.type === "main_frame"
|
if (/^(?:application|text)\//.test(contentType)
|
||||||
&& /^(?:application|text)\//.test(contentType)
|
|
||||||
&& !/[^;]+\b(html|xml)\b/i.test(contentType)) {
|
&& !/[^;]+\b(html|xml)\b/i.test(contentType)) {
|
||||||
debug("Not HTML, but top-level document: defer script to onResponseStarted for %s (%o)", url, response);
|
debug("Not HTML: defer script to onResponseStarted for %s (%o)", url, response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue