mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991057 - avoid continuing to initialize about:accounts if it has started closing. r=ttaubert
This commit is contained in:
parent
090ed1b84f
commit
7136abf330
@ -281,6 +281,11 @@ function openPrefs() {
|
||||
|
||||
function init() {
|
||||
fxAccounts.getSignedInUser().then(user => {
|
||||
// tests in particular might cause the window to start closing before
|
||||
// getSignedInUser has returned.
|
||||
if (window.closed) {
|
||||
return;
|
||||
}
|
||||
if (window.location.href.contains("action=signin")) {
|
||||
if (user) {
|
||||
// asking to sign-in when already signed in just shows manage.
|
||||
|
Loading…
Reference in New Issue
Block a user