Skip to content

Commit

Permalink
Merge pull request #11138 from Rob--W/issue11137-ignore-non-loadable-…
Browse files Browse the repository at this point in the history
…embeds

[CRX] Ignore auto-generated <embed> from Chrome
  • Loading branch information
timvandermeij authored Sep 11, 2019
2 parents b2856b1 + 501e0b3 commit 2d2ec11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/chromium/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d2ec11

Please sign in to comment.