Bug 991057 - avoid continuing to initialize about:accounts if it has started closing. r=ttaubert

This commit is contained in:
Mark Hammond 2014-04-03 18:20:54 +11:00
parent 090ed1b84f
commit 7136abf330

View File

@ -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.