Bug 1585588 Fix screenshots cross-doc adoption r=_6a68

Differential Revision: https://phabricator.services.mozilla.com/D48338

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Swan 2019-10-08 17:00:25 +00:00
parent 1c5bdaa74c
commit 50fda19ea0

View File

@ -44,7 +44,7 @@ this.slides = (function() {
iframe.addEventListener("load", catcher.watchFunction(() => {
doc = iframe.contentDocument;
assertIsBlankDocument(doc);
const parsedDom = (new DOMParser()).parseFromString(
const parsedDom = (new doc.defaultView.DOMParser()).parseFromString(
html,
"text/html"
);