Skip to content

[Bug]: Integrated browser preview blocks OAuth popup authentication #6561

Description

@rodrigoGA

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Start a local web application that authenticates with Firebase using:
   await signInWithPopup(auth, new GoogleAuthProvider())
  1. Open the application in T3 Code's integrated browser preview.
  2. Click the Google sign-in button.
  3. Observe that no authentication window opens and Firebase immediately reports auth/popup-blocked.
  4. Open the same application in an external Chrome or Firefox window and repeat the action. The popup opens normally.

Expected behavior

T3 Code should open a controlled OAuth window and allow the authentication flow to complete.

Actual behavior

The OAuth window never opens and Firebase returns:

Firebase: Error (auth/popup-blocked).

The preview currently intercepts window.open(), attempts to load the URL in the existing WebContents, and returns { action: "deny" }, which Electron treats as cancellation of the requested window:

https://github.com/pingdotgg/t3code/blob/main/apps/desktop/src/preview/Manager.ts#L1358-L1365

Impact

Blocks work completely

Version or commit

T3 Code 0.0.33 (Linux AppImage)

Environment

fedora 44

Logs or stack traces

FirebaseError: Firebase: Error (auth/popup-blocked).

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions