Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for URL update on redirect #3163

Merged
merged 6 commits into from
Oct 6, 2023
Merged

Conversation

NSeydoux
Copy link
Contributor

@NSeydoux NSeydoux commented Oct 2, 2023

Updating the URL through the window object is an asynchronous operation, but it has a synchronous signature. This enforces that the code waits on the appropriate event before proceeding, preventing a race condition resulting in the behavior observed in
#2891.

This PR fixes bug #2891.

  • I've added a unit test to test for potential regressions of this bug.
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

@NSeydoux NSeydoux requested a review from a team as a code owner October 2, 2023 08:54
Updating the URL through the window object is an asynchronous operation,
but it has a synchronous signature. This enforces that the code waits on
the appropriate event before proceeding, preventing a race condition
resulting in the behavior observed in
#2891.
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 2, 2023 12:25 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS Dev-2-2 October 2, 2023 12:25 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
solid-client-authn-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 8:12am

@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS Dev-2-2 October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS Dev-2-2 October 3, 2023 12:02 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS Dev-2-2 October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS PodSpaces October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux temporarily deployed to ESS Dev-2-2 October 4, 2023 08:07 — with GitHub Actions Inactive
@NSeydoux NSeydoux merged commit 139e82d into main Oct 6, 2023
29 of 30 checks passed
@NSeydoux NSeydoux deleted the fix/2891_mismatching-redirect-uri branch October 6, 2023 07:56
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.

2 participants