Fix for stalling embedded objects load on dynamic script injection.

This commit is contained in:
hackademix 2018-07-25 14:36:32 +02:00
parent d88a0cf6d7
commit a46d085ff7
1 changed files with 2 additions and 3 deletions

View File

@ -99,10 +99,9 @@
return;
}
if (request.type === "main_frame"
&& /^(?:application|text)\//.test(contentType)
if (/^(?:application|text)\//.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;
}