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

fix(editor): Use BroadcastChannel instead of window.opener for OAuth callback window #9779

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Jun 17, 2024

Summary

window.opener isn't always available. If one (or many) domains in the oauth flow have certain referer policies set, window.opener becomes null. The credential in this case still saved successfully, but the UI does not update, and the popup also does not close, confusing the users.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1413

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 17, 2024
@netroy netroy marked this pull request as ready for review June 17, 2024 10:43
cypress/e2e/43-oauth-flow.cy.ts Show resolved Hide resolved
Copy link
Contributor

Copy link

cypress bot commented Jun 17, 2024

4 flaky tests on run #5515 ↗︎

0 394 0 0 Flakiness 4

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: 94f3f80da7
Status: Passed Duration: 04:51 💡
Started: Jun 17, 2024 11:26 AM Ended: Jun 17, 2024 11:31 AM
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  20-workflow-executions.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Current Workflow Executions > should auto load more items if there is space and auto scroll Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9779 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 87cb199 into master Jun 17, 2024
29 of 31 checks passed
@netroy netroy deleted the fix-NODE-1413 branch June 17, 2024 11:41
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
This was referenced Jun 20, 2024
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with n8n@1.47.0

1 similar comment
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with n8n@1.47.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants