mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
Auth & Autofill / PM-5976 - Safari Browser SSO Initialization Race Condition Attempted Fix 2 (#7794)
* Implementing pinging system for SSO to address issue on Safari with race condition * Implementing pinging system for SSO to address issue on Safari with race condition * [PM-5976] Updating references within sso.ts --------- Co-authored-by: Cesar Gonzalez <cgonzalez@bitwarden.com>
This commit is contained in:
@@ -35,6 +35,10 @@ class ContentMessageHandler implements ContentMessageHandlerInterface {
|
||||
const { command } = data;
|
||||
const referrer = source.location.hostname;
|
||||
|
||||
if (command === "checkIfReadyForAuthResult") {
|
||||
window.postMessage({ command: "readyToReceiveAuthResult" }, "*");
|
||||
}
|
||||
|
||||
if (command === "authResult") {
|
||||
const { lastpass, code, state } = data;
|
||||
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
|
||||
|
||||
Reference in New Issue
Block a user