diff --git a/browser/extensions/screenshots/selector/ui.js b/browser/extensions/screenshots/selector/ui.js index 67f8b60ffbcb4..8a92c80470e45 100644 --- a/browser/extensions/screenshots/selector/ui.js +++ b/browser/extensions/screenshots/selector/ui.js @@ -365,6 +365,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars this.element.setAttribute("role", "dialog"); this.element.onload = watchFunction(() => { msgsPromise.then(([cancelTitle, copyTitle, downloadTitle]) => { + assertIsBlankDocument(this.element.contentDocument); this.document = this.element.contentDocument; this.window = this.element.contentWindow; // eslint-disable-next-line no-unsanitized/property