1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

Add autofill as codeowners to ddg files (#9268)

* Add autofill as codeowners to ddg files

* Add comments
This commit is contained in:
Robyn MacCallum
2024-05-20 10:37:52 -04:00
committed by GitHub
parent d3426e7005
commit f07840339e
3 changed files with 6 additions and 0 deletions

4
.github/CODEOWNERS vendored
View File

@@ -87,6 +87,10 @@ apps/web/src/translation-constants.ts @bitwarden/team-platform-dev
apps/browser/src/autofill @bitwarden/team-autofill-dev apps/browser/src/autofill @bitwarden/team-autofill-dev
apps/desktop/src/autofill @bitwarden/team-autofill-dev apps/desktop/src/autofill @bitwarden/team-autofill-dev
libs/common/src/autofill @bitwarden/team-autofill-dev libs/common/src/autofill @bitwarden/team-autofill-dev
# DuckDuckGo integration
apps/desktop/native-messaging-test-runner @bitwarden/team-autofill-dev
apps/desktop/src/services/native-message-handler.service.ts @bitwarden/team-autofill-dev
apps/desktop/src/services/native-messaging.service.ts @bitwarden/team-autofill-dev
## Component Library ## ## Component Library ##
.storybook @bitwarden/team-component-library .storybook @bitwarden/team-component-library

View File

@@ -24,6 +24,7 @@ import { EncryptedMessageHandlerService } from "./encrypted-message-handler.serv
const EncryptionAlgorithm = "sha1"; const EncryptionAlgorithm = "sha1";
// This service handles messages using the protocol created for the DuckDuckGo integration.
@Injectable() @Injectable()
export class NativeMessageHandlerService { export class NativeMessageHandlerService {
private ddgSharedSecret: SymmetricCryptoKey; private ddgSharedSecret: SymmetricCryptoKey;

View File

@@ -56,6 +56,7 @@ export class NativeMessagingService {
private async messageHandler(msg: LegacyMessageWrapper | Message) { private async messageHandler(msg: LegacyMessageWrapper | Message) {
const outerMessage = msg as Message; const outerMessage = msg as Message;
if (outerMessage.version) { if (outerMessage.version) {
// If there is a version, it is a using the protocol created for the DuckDuckGo integration
await this.nativeMessageHandler.handleMessage(outerMessage); await this.nativeMessageHandler.handleMessage(outerMessage);
return; return;
} }