Visitar URL original
[BUG] Google Drive sync can't be authorized on Edge for Android: Couldn't create a browser window · Issue #2701 · violentmonkey/violentmonkey · GitHub
Skip to content

[BUG] Google Drive sync can't be authorized on Edge for Android: Couldn't create a browser window #2701

Open

Description

@mikejhill

Sequence of actions:

  1. Install Violentmonkey in Edge for Android. It isn't in Edge for Android's built-in extension list, so open the Edge Add-ons page in Edge on the phone and tap Get.
  2. Open Violentmonkey → Settings → Sync, and choose Google Drive.
  3. Press Authorize.

Problem:

Authorization always fails with:

Initializing error! Couldn't create a browser window to display an authorization page.

Edge for Android exposes chrome.identity.launchWebAuthFlow but can't open its auth window. This is a known Edge bug: microsoft/MicrosoftEdge-Extensions#364, open since Aug 2025. Calling launchWebAuthFlow with a dummy URL from the service worker fails the same way. The MV3 build has no other auth path, so sync can't be set up on Edge for Android.

So far I've only seen this with Google Drive. Dropbox and OneDrive use the same code path, so they're likely affected too, but I haven't tested them.

Authorize pressed Remote DevTools log
Authorize pressed on Edge for Android DevTools log after Authorize

Related: when the settings page opens, Authorize and the other sync buttons are usually disabled with no error or explanation, and sync status stays at 1 (idle). Authorize sometimes becomes enabled after waiting a long time.

Buttons disabled Remote DevTools log
Sync buttons disabled on Edge for Android DevTools log with sync status stuck at 1

Expected result:

Google's sign-in page opens, and sync is authorized after consent.

Devtools console contents:

[sync] status: 3
[sync] status: 8
[sync] Error: Couldn't create a browser window to display an authorization page.

Environment:

  • OS: Android 16 (Samsung Galaxy S22)
  • Browser: Microsoft Edge 153.0.4234.49; also reproduced on Edge Canary 157.0.4329.0
  • Violentmonkey Version: 2.49.0 (Edge Add-ons store, MV3)

Fix proposed in #2700.

🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions