mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1626555 - Add dom/webauthn
to the list of non-unified-build-compatible directories. r=sg
Depends on D96586 Differential Revision: https://phabricator.services.mozilla.com/D96590
This commit is contained in:
parent
eeec967af7
commit
649fe4a141
@ -62,3 +62,4 @@ dom/tests/
|
||||
dom/u2f/
|
||||
dom/url/
|
||||
dom/vr/
|
||||
dom/webauthn/
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "mozilla/dom/CryptoBuffer.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "mozilla/dom/PublicKeyCredential.h"
|
||||
#include "mozilla/dom/WebAuthenticationBinding.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "mozilla/dom/AuthenticatorResponse.h"
|
||||
|
||||
#ifdef OS_WIN
|
||||
# include "WinWebAuthnManager.h"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "mozilla/dom/CryptoBuffer.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsTextFormatter.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
# include "mozilla/dom/AndroidWebAuthnTokenManager.h"
|
||||
|
@ -9,7 +9,9 @@
|
||||
#include "nsIURIMutator.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "WebAuthnCoseIdentifiers.h"
|
||||
#include "mozilla/dom/AuthenticatorAssertionResponse.h"
|
||||
#include "mozilla/dom/AuthenticatorAttestationResponse.h"
|
||||
#include "mozilla/dom/PublicKeyCredential.h"
|
||||
#include "mozilla/dom/Promise.h"
|
||||
#include "mozilla/dom/PWebAuthnTransaction.h"
|
||||
#include "mozilla/dom/WebAuthnManager.h"
|
||||
@ -17,6 +19,7 @@
|
||||
#include "mozilla/dom/WebAuthnUtil.h"
|
||||
#include "mozilla/ipc/BackgroundChild.h"
|
||||
#include "mozilla/ipc/PBackgroundChild.h"
|
||||
#include "authenticator/src/u2fhid-capi.h"
|
||||
|
||||
#ifdef OS_WIN
|
||||
# include "WinWebAuthnManager.h"
|
||||
|
@ -45,6 +45,8 @@
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class Credential;
|
||||
|
||||
class WebAuthnTransaction {
|
||||
public:
|
||||
explicit WebAuthnTransaction(const RefPtr<Promise>& aPromise)
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
#include "mozilla/dom/WebAuthnManagerBase.h"
|
||||
#include "mozilla/dom/WebAuthnTransactionChild.h"
|
||||
#include "mozilla/ipc/BackgroundChild.h"
|
||||
#include "mozilla/ipc/PBackgroundChild.h"
|
||||
#include "mozilla/dom/Event.h"
|
||||
#include "nsGlobalWindowInner.h"
|
||||
#include "nsPIWindowRoot.h"
|
||||
@ -45,7 +47,8 @@ bool WebAuthnManagerBase::MaybeCreateBackgroundActor() {
|
||||
return true;
|
||||
}
|
||||
|
||||
PBackgroundChild* actorChild = BackgroundChild::GetOrCreateForCurrentThread();
|
||||
::mozilla::ipc::PBackgroundChild* actorChild =
|
||||
::mozilla::ipc::BackgroundChild::GetOrCreateForCurrentThread();
|
||||
if (NS_WARN_IF(!actorChild)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -8,12 +8,16 @@
|
||||
#define mozilla_dom_WebAuthnManagerBase_h
|
||||
|
||||
#include "nsIDOMEventListener.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
/*
|
||||
* A base class used by WebAuthn and U2F implementations, providing shared
|
||||
* functionality and requiring an interface used by the IPC child actors.
|
||||
*/
|
||||
|
||||
class nsPIDOMWindowInner;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace dom {
|
||||
mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestRegister(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnMakeCredentialInfo& aTransactionInfo) {
|
||||
AssertIsOnBackgroundThread();
|
||||
::mozilla::ipc::AssertIsOnBackgroundThread();
|
||||
|
||||
#ifdef OS_WIN
|
||||
if (WinWebAuthnManager::AreWebAuthNApisAvailable()) {
|
||||
@ -40,7 +40,7 @@ mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestRegister(
|
||||
mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestSign(
|
||||
const uint64_t& aTransactionId,
|
||||
const WebAuthnGetAssertionInfo& aTransactionInfo) {
|
||||
AssertIsOnBackgroundThread();
|
||||
::mozilla::ipc::AssertIsOnBackgroundThread();
|
||||
|
||||
#ifdef OS_WIN
|
||||
if (WinWebAuthnManager::AreWebAuthNApisAvailable()) {
|
||||
@ -60,7 +60,7 @@ mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestSign(
|
||||
|
||||
mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestCancel(
|
||||
const uint64_t& aTransactionId) {
|
||||
AssertIsOnBackgroundThread();
|
||||
::mozilla::ipc::AssertIsOnBackgroundThread();
|
||||
|
||||
#ifdef OS_WIN
|
||||
if (WinWebAuthnManager::AreWebAuthNApisAvailable()) {
|
||||
@ -79,7 +79,7 @@ mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvRequestCancel(
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvDestroyMe() {
|
||||
AssertIsOnBackgroundThread();
|
||||
::mozilla::ipc::AssertIsOnBackgroundThread();
|
||||
|
||||
// The child was disconnected from the WebAuthnManager instance and will send
|
||||
// no further messages. It is kept alive until we delete it explicitly.
|
||||
@ -97,7 +97,7 @@ mozilla::ipc::IPCResult WebAuthnTransactionParent::RecvDestroyMe() {
|
||||
}
|
||||
|
||||
void WebAuthnTransactionParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||
AssertIsOnBackgroundThread();
|
||||
::mozilla::ipc::AssertIsOnBackgroundThread();
|
||||
|
||||
// Called either by Send__delete__() in RecvDestroyMe() above, or when
|
||||
// the channel disconnects. Ensure the token manager forgets about us.
|
||||
|
@ -5,9 +5,13 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/dom/WebAuthnUtil.h"
|
||||
#include "mozilla/dom/WebAuthnCBORUtil.h"
|
||||
#include "nsIEffectiveTLDService.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "mozpkix/pkixutil.h"
|
||||
#include "nsHTMLDocument.h"
|
||||
#include "nsICryptoHash.h"
|
||||
#include "hasht.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "mozilla/dom/CryptoBuffer.h"
|
||||
#include "mozilla/dom/WebAuthenticationBinding.h"
|
||||
#include "ipc/IPCMessageUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
Loading…
Reference in New Issue
Block a user