/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ var {Ci: interfaces, Cc: classes} = Components; var Clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard); var HasFindClipboard = Clipboard.supportsFindClipboard(); add_task(function* () { let newwindow = yield BrowserTestUtils.openNewBrowserWindow(); let selectedBrowser = newwindow.gBrowser.selectedBrowser; yield new Promise((resolve, reject) => { selectedBrowser.addEventListener("pageshow", function pageshowListener() { if (selectedBrowser.currentURI.spec == "about:blank") return; selectedBrowser.removeEventListener("pageshow", pageshowListener, true); ok(true, "pageshow listener called: " + newwindow.content.location); resolve(); }, true); selectedBrowser.loadURI("data:text/html,