Skip to content

Fix inconsistent EMM error handling - #642

Open
w-goog wants to merge 3 commits into
test/emm-handler-test-helpersfrom
fix/emm-handler-single-result
Open

w-goog wants to merge 3 commits into
test/emm-handler-test-helpersfrom
fix/emm-handler-single-result

Conversation

@w-goog

@w-goog w-goog commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Under theoretical data-race conditions, the EMM error handler could lose track of the error.

Issue 1: The completion handler could be evaluated before the value is returned, leading to confusing errors on the client. This could occur if the auth flow hasn't yet parsed the error and saved it within the block, which would lead to the error instead being interpreted as a non-EMM error.

Issue 2: pendingDialogue state hasn't been cleared due to a missing key window (highly unlikely).

In both cases, sign in would still fail.

@w-goog
w-goog added this pull request to stack #643 September 28, 2026 22:59
@w-goog w-goog changed the title Fix/emm handler single result Fix inconsistent EMM error handling Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant