From 269db2010ba4b573d81ae0c74c5c8c3d19c8f14a Mon Sep 17 00:00:00 2001 From: Tim Huang Date: Tue, 27 Aug 2019 13:22:05 +0000 Subject: [PATCH] Bug 1576871 - Clean up the allow list after the test 'testQuickSwitchTabAfterTogglingTPSwitch' in test browser_protections_UI.js r=nhnt11 Differential Revision: https://phabricator.services.mozilla.com/D43594 --HG-- extra : moz-landing-system : lando --- .../content/test/siteProtections/browser_protections_UI.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/base/content/test/siteProtections/browser_protections_UI.js b/browser/base/content/test/siteProtections/browser_protections_UI.js index f563d71e96f5..feabe71a3efd 100644 --- a/browser/base/content/test/siteProtections/browser_protections_UI.js +++ b/browser/base/content/test/siteProtections/browser_protections_UI.js @@ -615,6 +615,9 @@ add_task(async function testQuickSwitchTabAfterTogglingTPSwitch() { "The ETP state of the second tab has been changed to disabled." ); + // Clean up the state of the allow list for the second tab. + ContentBlockingAllowList.remove(tabTwo.linkedBrowser); + BrowserTestUtils.removeTab(tabOne); BrowserTestUtils.removeTab(tabTwo);