Bug 1395319 - Disable private browsing about:home test when Activity Stream is enabled for about:home. r=Mardak

MozReview-Commit-ID: FIcaPQCayI7

--HG--
extra : rebase_source : 4887f634ecb5f1be182bfe0acd5d139d95847844
This commit is contained in:
Andrei Oprea 2017-08-30 22:26:27 +02:00
parent a867dbb311
commit 2e447a8060

View File

@ -5,6 +5,11 @@
// This test checks that the Session Restore "Restore Previous Session"
// button on about:home is disabled in private mode
add_task(async function test_no_sessionrestore_button() {
// Activity Stream page does not have a restore session button.
// We want to run this test only when Activity Stream is disabled from about:home.
await SpecialPowers.pushPrefEnv({set: [
["browser.newtabpage.activity-stream.aboutHome.enabled", false]
]});
// Opening, then closing, a private window shouldn't create session data.
(await BrowserTestUtils.openNewBrowserWindow({private: true})).close();