From 501e0b3db7e0a885e3b6bd164dae423d584e4bff Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Wed, 11 Sep 2019 15:56:02 +0200 Subject: [PATCH] [CRX] Ignore auto-generated from Chrome Fixes #11137 --- extensions/chromium/contentscript.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/chromium/contentscript.js b/extensions/chromium/contentscript.js index 8349a97439a39..3a7d86fde2aa4 100644 --- a/extensions/chromium/contentscript.js +++ b/extensions/chromium/contentscript.js @@ -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;