1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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/desktop/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 ##
.storybook @bitwarden/team-component-library

View File

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

View File

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