Bug 1069816: App name is appended to the document title on Windows and Linux, so authentication failed. r=abr

Bug 1069816: App name is appended to the document title on Windows and Linux, so authentication failed. r=abr
This commit is contained in:
Mike de Boer 2014-10-09 16:49:02 +02:00
parent 7c941e7bde
commit 8c4d60ed1d

View File

@ -222,7 +222,7 @@ this.GoogleImporter.prototype = {
throw new Error("Popup window was closed before authentication succeeded");
}
let matches = gAuthWindow.document.title.match(/(error|code)=(.*)$/);
let matches = gAuthWindow.document.title.match(/(error|code)=([^\s]+)/);
if (matches && matches.length) {
let [, type, message] = matches;
gAuthWindow.close();