Fix browser UI for image, audio and video content being partially broken on file:// URLs.

This commit is contained in:
hackademix 2020-09-26 23:55:45 +02:00
parent 759c085382
commit 4919b219a7
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@
}; };
debug("Initial readyState and body", document.readyState, document.body); debug("Initial readyState and body", document.readyState, document.body);
if (UA.isMozilla) { let mustFreeze = UA.isMozilla && (!/^(?:image|video|audio)/.test(document.contentType) || document instanceof XMLDocument);
if (mustFreeze) {
// Mozilla has already parsed the <head> element, we must take extra steps... // Mozilla has already parsed the <head> element, we must take extra steps...
try { try {