fune/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_nonbrowser.js
Emma Malysz 57215abe07 Bug 1601094, rename the remaining .xul files in browser/ to .xhtml r=marionette-reviewers,whimboo,mossop
Differential Revision: https://phabricator.services.mozilla.com/D55751

--HG--
rename : browser/base/content/aboutDialog.xul => browser/base/content/aboutDialog.xhtml
rename : browser/base/content/newInstall.xul => browser/base/content/newInstall.xhtml
rename : browser/base/content/pageinfo/pageInfo.xul => browser/base/content/pageinfo/pageInfo.xhtml
rename : browser/base/content/safeMode.xul => browser/base/content/safeMode.xhtml
rename : browser/base/content/sanitize.xul => browser/base/content/sanitize.xhtml
rename : browser/base/content/titlebar-items.inc.xul => browser/base/content/titlebar-items.inc.xhtml
rename : browser/base/content/webext-panels.xul => browser/base/content/webext-panels.xhtml
rename : browser/base/content/webrtcIndicator.xul => browser/base/content/webrtcIndicator.xhtml
rename : browser/components/downloads/content/contentAreaDownloadsView.xul => browser/components/downloads/content/contentAreaDownloadsView.xhtml
rename : browser/components/migration/content/migration.xul => browser/components/migration/content/migration.xhtml
rename : browser/components/places/content/bookmarkProperties.xul => browser/components/places/content/bookmarkProperties.xhtml
rename : browser/components/places/content/bookmarksSidebar.xul => browser/components/places/content/bookmarksSidebar.xhtml
rename : browser/components/places/content/historySidebar.xul => browser/components/places/content/historySidebar.xhtml
rename : browser/components/places/content/places.xul => browser/components/places/content/places.xhtml
rename : browser/components/shell/content/setDesktopBackground.xul => browser/components/shell/content/setDesktopBackground.xhtml
extra : moz-landing-system : lando
2019-12-11 00:27:19 +00:00

21 lines
770 B
JavaScript

"use strict";
/**
* Tests that we fire the last-pb-context-exited observer notification
* when the last private browsing window closes, even if a chrome window
* was opened from that private browsing window.
*/
add_task(async function() {
let win = await BrowserTestUtils.openNewBrowserWindow({ private: true });
let chromeWin = win.open(
"chrome://browser/content/places/places.xhtml",
"_blank",
"chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar"
);
await BrowserTestUtils.waitForEvent(chromeWin, "load");
let obsPromise = TestUtils.topicObserved("last-pb-context-exited");
await BrowserTestUtils.closeWindow(win);
await obsPromise;
Assert.ok(true, "Got the last-pb-context-exited notification");
chromeWin.close();
});