Skip to content

fix(auth): stop logging expected OAuth popup errors - #2773

Merged
niemyjski merged 2 commits into
mainfrom
issue/oauth-popup-cross-origin-logging
Nov 30, 2026
Merged

niemyjski merged 2 commits into
mainfrom
issue/oauth-popup-cross-origin-logging

Conversation

@niemyjski

Copy link
Copy Markdown
Member

The shared OAuth popup poller now skips the expected SecurityError raised when it reads a popup on the provider’s origin. It keeps waiting for the callback and still logs unexpected errors.

Breaking changes and deploy notes

  • The callback flow and browser security policies stay in place. Chrome can still emit its own COOP warning.

Testing

24 focused tests and npm run validate passed. In Chrome, a synthetic popup produced two app error logs before the change and zero after it. The callback succeeded in both runs.

Verification and implementation details

Changes

  • Skip logging the browser’s SecurityError DOM exception in the shared popup poller.
  • Verify that the popup returns and exchanges the code once after multiple blocked reads.
  • Verify that an unrelated DOM exception and a regular error named SecurityError still reach console.error.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T04:25:16.951943Z 99076df PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@niemyjski niemyjski self-assigned this Nov 30, 2026
@niemyjski
niemyjski merged commit c541864 into main Nov 30, 2026
15 checks passed
@niemyjski
niemyjski deleted the issue/oauth-popup-cross-origin-logging branch November 30, 2026 04:27
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.AppHost 23% 22% 132 ❌
Exceptionless.Core 80% 72% 12172 ✔
Exceptionless.Insulation 51% 43% 370 ➖
Exceptionless.Web 88% 74% 10627 ✔
Summary 82% (32240 / 39095) 72% (16506 / 22772) 23301 ✔

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