Merge pull request #11138 from Rob--W/issue11137-ignore-non-loadable-embeds

[CRX] Ignore auto-generated <embed> from Chrome
This commit is contained in:
Tim van der Meij 2019-09-11 23:48:39 +02:00 committed by GitHub
commit 2d2ec11c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,12 @@ function watchObjectOrEmbed(elem) {
// Until #4483 is fixed, POST requests should be ignored.
return;
}
if (elem.tagName === 'EMBED' && elem.src === 'about:blank') {
// Starting from Chrome 76, internal embeds do not have the original URL,
// but "about:blank" instead.
// See https://github.com/mozilla/pdf.js/issues/11137
return;
}
if (elem.__I_saw_this_element) {
return;