Backed out changeset 7351cc3d5b11 (bug 1853747) for causing failures in createcredential-abort.https.html CLOSED TREE

This commit is contained in:
Cristian Tuns 2023-12-11 18:17:22 -05:00
parent 44c6be0a6c
commit 89bdec9dd5
6 changed files with 2 additions and 40 deletions

View File

@ -585,12 +585,9 @@
</hbox>
<description id="windows-sso-caption" class="indent tip-caption"
data-l10n-id="forms-windows-sso-desc"/>
#endif
</vbox>
<label id="openWindowsPasskeySettings">
<html:a class="text-link" data-l10n-id="windows-passkey-settings-label" href="ms-settings:savedpasskeys" />
</label>
<!--
Those two strings are meant to be invisible and will be used exclusively to provide
localization for an alert window.

View File

@ -886,14 +886,6 @@ var gPrivacyPane = {
}
},
initWebAuthn() {
document.getElementById("openWindowsPasskeySettings").hidden =
!Services.prefs.getBoolPref(
"security.webauthn.show_ms_settings_link",
true
);
},
/**
* Sets up the UI for the number of days of history to keep, and updates the
* label of the "Clear Now..." button.
@ -1204,8 +1196,6 @@ var gPrivacyPane = {
this.initDoH();
this.initWebAuthn();
// Notify observers that the UI is now ready
Services.obs.notifyObservers(window, "privacy-pane-loaded");
},

View File

@ -1050,8 +1050,6 @@ forms-windows-sso =
forms-windows-sso-learn-more-link = Learn more
forms-windows-sso-desc = Manage accounts in your device settings
windows-passkey-settings-label = Manage passkeys in system settings
## OS Authentication dialog
# This message can be seen by trying to add a Primary Password.

View File

@ -337,16 +337,8 @@
margin-block-start: 2em;
}
/* DNS over HTTPS */
#dohDescription,
#dohLearnMore,
#dohStatusSection {
line-height: 1.8em;
}
/* Logins and Passwords */
#openWindowsPasskeySettings {
margin-block-start: 2em;
}

View File

@ -8,7 +8,6 @@
#include "mozilla/ipc/BackgroundParent.h"
#include "mozilla/Assertions.h"
#include "mozilla/MozPromise.h"
#include "mozilla/Preferences.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/StaticMutex.h"
#include "mozilla/Unused.h"
@ -137,9 +136,7 @@ nsresult WinWebAuthnService::EnsureWinWebAuthnModuleLoaded() {
return NS_ERROR_NOT_AVAILABLE;
}
DWORD version = gWinWebauthnGetApiVersionNumber();
if (version >= WEBAUTHN_API_VERSION_4) {
if (gWinWebauthnGetApiVersionNumber() >= WEBAUTHN_API_VERSION_4) {
gWinWebauthnGetPlatformCredentialList =
reinterpret_cast<decltype(WebAuthNGetPlatformCredentialList)*>(
GetProcAddress(gWinWebAuthnModule,
@ -154,11 +151,6 @@ nsresult WinWebAuthnService::EnsureWinWebAuthnModuleLoaded() {
}
}
NS_DispatchToMainThread(NS_NewRunnableFunction(__func__, [version]() {
Preferences::SetBool("security.webauthn.show_ms_settings_link",
version >= WEBAUTHN_API_VERSION_7);
}));
markModuleUnusable.release();
return NS_OK;
}

View File

@ -13941,13 +13941,6 @@
mirror: always
rust: true
# Show the Windows Passkey settings link in about:preferences. This is
# set to true if we find that webauthn.dll is sufficiently recent.
- name: security.webauthn.show_ms_settings_link
type: RelaxedAtomicBool
value: false
mirror: always
# Block Worker/SharedWorker scripts with wrong MIME type.
- name: security.block_Worker_with_wrong_mime
type: bool