Fix browser UI for image, audio and video content being partially broken on file:// URLs.
This commit is contained in:
parent
759c085382
commit
4919b219a7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue