mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
a867dbb311
commit
2e447a8060
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user