/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/**
* Make sure that the form validation message disappears if we navigate
* immediately.
*/
add_task(async function test_navigate() {
var gInvalidFormPopup =
gBrowser.selectedBrowser.browsingContext.currentWindowGlobal
.getActor("FormValidation")
._getAndMaybeCreatePanel(document);
ok(
gInvalidFormPopup,
"The browser should have a popup to show when a form is invalid"
);
await BrowserTestUtils.withNewTab(
"data:text/html,