Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7195

Edge extension crashes the whole browser on API call after latest update (launchWebAuthFlow)

$
0
0

I'm creating a browser extension for my work.

The function launchWebAuthFlow has worked wonderfully since I started this project, but then Edge decided to update (to 96.0.1054.43, and now again to 96.0.1054.53, and now again to 96.0.1054.57, and now again to 96.0.1054.62, now again to 97.0.1072.55, and now again to 97.0.1072.62 after MS sent me an email saying they fixed it, and now again to 97.0.1072.69) and now the whole browser instantly crashes when the function launchWebAuthFlow is called. I have tried downgrading Edge, but I haven't found any download links to previous versions.

My authUrl looks like this (and has worked this far before the updates!):https://login.microsoftonline.com/common/oauth2/authorize
I've stripped out the arguments for privacy.

This code alone doesn't crash, but also doesn't show any window:

chrome.identity.launchWebAuthFlow(  {    interactive: true,    url: authUrl  });

This code crashes (!) and it should show a window (and this is the code I've been using which has worked for a long time until the update):

chrome.identity.launchWebAuthFlow(  {    interactive: true,    url: authUrl  },  (response) =>  {    console.log("This never prints, because the browser crashes!");  });

I found this: Chrome Extension crashes the Microsoft Edge browser while calling launchWebAuthFlow API

The accepted answer for that question says this is a workaround:

return await global.chrome.windows.create({    focused: true,    height : 800,    width: 800,    url: authURL})

But it doesn't work for me. chrome.windows.create creates and shows a window but returns undefined, so I don't know what to do.


Viewing all articles
Browse latest Browse all 7195

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>