diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index 2e22eaacd2..8309ae412f 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -803,7 +803,10 @@
"message": "Insert your security key into your computer's USB port. If it has a button, touch it."
},
"webAuthnNewTab": {
- "message": "Continue the WebAuthn 2FA verification in the new tab."
+ "message": "To start the WebAuthn 2FA verification. Click the button below to open a new tab and follow the instructions provided in the new tab."
+ },
+ "webAuthnNewTabOpen": {
+ "message": "Open new tab"
},
"webAuthnAuthenticate": {
"message": "Authenticate WebAuthn"
diff --git a/src/popup/accounts/two-factor.component.html b/src/popup/accounts/two-factor.component.html
index db6518b817..2e8cd97b06 100644
--- a/src/popup/accounts/two-factor.component.html
+++ b/src/popup/accounts/two-factor.component.html
@@ -73,6 +73,7 @@
{{'webAuthnNewTab' | i18n}}
+
(service: string) {
};
}
+const isPrivateMode = BrowserApi.getBackgroundPage() == null;
+
const stateService = new StateService();
const messagingService = new BrowserMessagingService();
-const searchService = new PopupSearchService(getBgService('searchService')(),
+const searchService = isPrivateMode ? null : new PopupSearchService(getBgService('searchService')(),
getBgService('cipherService')(), getBgService('consoleLogService')(),
getBgService('i18nService')());
-const passwordRepromptService = new PasswordRepromptService(getBgService('i18nService')(),
+const passwordRepromptService = isPrivateMode ? null : new PasswordRepromptService(getBgService('i18nService')(),
getBgService('cryptoService')(), getBgService('platformUtilsService')());
export function initFactory(platformUtilsService: PlatformUtilsService, i18nService: I18nService, storageService: StorageService,
@@ -86,7 +88,7 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
window.document.body.classList.add('body-sm');
}
- if (BrowserApi.getBackgroundPage() != null) {
+ if (!isPrivateMode) {
await stateService.save(ConstantsService.disableFaviconKey,
await storageService.get(ConstantsService.disableFaviconKey));