Skip to content

[Problem/Bug]: : WebView2 Runtime Regression (v149.0.4022.98): Office.js Dialog API crashes / blocks cross-origin subdomain redirects during OAuth sign-in flow #5630

Description

@edenbarz

What happened?

What happened?
We’ve run into a major roadblock with the latest stable update of the WebView2 Runtime (v149.0.4022.98). Our Outlook add-in uses the standard Office.js Dialog API to handle user sign-ins, but right after this runtime update rolled out, the login window started crashing or locking up completely for our users.
Everything worked completely fine on the previous version (v148.0.3967.96), but now our user experience is broken.

Our authentication flow is pretty standard, but it completely breaks at the redirect step:
1. The Setup: The add-in opens a login popup window pointing to our main root domain (https://app.gong.io).
2. The User Step: The user types in their email address so we know which company account they belong to.
3. The Breakpoint: Once we have the email, our system tries to redirect the window to their specific company subdomain (like https://companyname.app.gong.io).
4. The Crash: The moment that redirect is triggered, the window just dies or goes blank.
When we opened DevTools to see what went wrong, we found that the redirect request is being canceled or blocked internally before it even has a chance to leave the user's computer.
Interestingly, if a user right-clicks inside that frozen blank window and hits Refresh, the browser suddenly "wakes up," sends the request through, and the page loads exactly like it's supposed to. But obviously, we can't ask regular users to right-click and refresh a broken window just to log in.
Manually settting WEBVIEW2_BROWSER_EXECUTABLE_FOLDER to an older version restores the functionallity.
Actual:
Redirect flow executes as expected and the user is able to login.

Image Image Image Image

outlook_issue_har.har.zip

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

149.0.4022.98

SDK Version

No response

Framework

Other

Operating System

Windows 11

OS Version

No response

Repro steps

Install the Gong For Outlook addin
attempt to enter email -> dialog crashes.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

148.0.3967.96

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymore

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions