commit 8d41bcee6e82170551d38e59b2aa42ee45e23ea6
parent cc72cecc5bee0db780e3cc4b3d05a868785ad544
Author: Maile Lucks <maile.lucks@gmail.com>
Date: Wed, 8 Oct 2025 17:48:31 +0000
Bug 1990923 - Update webauthn cert override for felt privacy UI - r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D266693
Diffstat:
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/dom/webauthn/tests/browser/browser.toml b/dom/webauthn/tests/browser/browser.toml
@@ -13,6 +13,7 @@ prefs = [
"security.webauthn.ctap2=true",
"security.webauthn.enable_conditional_mediation=true",
"security.webauthn.enable_macos_passkeys=false",
+ "security.certerrors.felt-privacy-v1=true"
]
["browser_abort_visibility.js"]
@@ -23,6 +24,7 @@ run-if = ["os != 'win'"] # Test not relevant on 1903+
["browser_webauthn_cert_override.js"]
+
["browser_webauthn_conditional_mediation.js"]
skip-if = [
"os == 'linux' && os_version == '24.04' && processor == 'x86_64' && display == 'x11' && opt", # Bug 1892213
diff --git a/dom/webauthn/tests/browser/browser_webauthn_cert_override.js b/dom/webauthn/tests/browser/browser_webauthn_cert_override.js
@@ -34,9 +34,26 @@ async function test_webauthn_with_cert_override(
info("Adding certificate error override.");
await SpecialPowers.spawn(tab.linkedBrowser, [], async function () {
- let doc = content.document;
- let exceptionButton = doc.getElementById("exceptionDialogButton");
- exceptionButton.click();
+ const doc = content.document;
+ const netErrorCard = doc.querySelector("net-error-card").wrappedJSObject;
+
+ await netErrorCard.getUpdateComplete();
+ await EventUtils.synthesizeMouseAtCenter(
+ netErrorCard.advancedButton,
+ {},
+ content
+ );
+ await ContentTaskUtils.waitForCondition(() => {
+ return (
+ netErrorCard.exceptionButton && !netErrorCard.exceptionButton.disabled
+ );
+ }, "Waiting for exception button");
+ netErrorCard.exceptionButton.scrollIntoView();
+ EventUtils.synthesizeMouseAtCenter(
+ netErrorCard.exceptionButton,
+ {},
+ content
+ );
});
info("Waiting for page load.");