/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; add_setup(async function () { await SpecialPowers.pushPrefEnv({ set: [ ["dom.disable_open_during_load", true], ["dom.security.framebusting_intervention.enabled", true], ["dom.disable_open_click_delay", 0], ], }); }); add_task(async function () { const tab = await BrowserTestUtils.openNewForegroundTab( gBrowser, "about:blank" ); // All these different variants to navigate the top-level should be // blocked. const variants = [ "top", // top.location = "open", // self.open() with target="_top" "form", //