Bug 1391117 - Prevent nsBrowserGlue's initialization tasks from running twice in case its notification is sent again. r=mikedeboer

MozReview-Commit-ID: Id5A5UoUbeA

--HG--
extra : rebase_source : 206b6dab1a86c3b9836648f43f9ba8ddf358a05d
This commit is contained in:
Felipe Gomes 2017-08-29 12:13:02 -03:00
Родитель 1fb5df3521
Коммит 3cc0191877
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1018,6 +1018,11 @@ BrowserGlue.prototype = {
// All initial windows have opened.
_onWindowsRestored: function BG__onWindowsRestored() {
if (this._windowsWereRestored) {
return;
}
this._windowsWereRestored = true;
BrowserUsageTelemetry.init();
BrowserUITelemetry.init();