EDIT: THIS HAS JUST BEEN FIXED IN THE 98.0.1108.43 UPDATE!
EDIT2: NEVERMIND! THE LOGIN POPUP WINDOW NOW SHOWS, BUT THE MOMENT YOU TRY TO SIGN IN IT STILL CRASHES!
EDIT3: FINALLY FIXED :)
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 again to 97.0.1072.76) 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.