Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/ui.js

Issue 29403747: Issue 5110 - Update adblockpluscore dependency to revision 387cff1ab5e0, fixing first-run page show… (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created April 5, 2017, 4:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dependencies ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -304,17 +304,17 @@ let UI = exports.UI =
{
reject(new Error("Unexpected: Failed to load overlay.xul"));
});
request.send(null);
}));
// Wait for filters to load
- if (FilterStorage._loading)
+ if (!FilterStorage.initialized)
prerequisites.push(FilterNotifier.once("load"));
// Wait for session to be restored
prerequisites.push(new Promise((resolve, reject) =>
{
let window = this.currentWindow;
if (!window && "nsISessionStore" in Ci)
{
@@ -492,17 +492,17 @@ let UI = exports.UI =
}.bind(this),
});
onShutdown.add(CustomizableUI.destroyWidget.bind(CustomizableUI, "abp-toolbarbutton"));
}
},
firstRunActions: function(window)
{
- if (this.firstRunDone || !window || FilterStorage._loading)
+ if (this.firstRunDone || !window || !FilterStorage.initialized)
return;
this.firstRunDone = true;
let {addonVersion} = require("info");
let prevVersion = Prefs.currentVersion;
if (prevVersion != addonVersion)
{
« no previous file with comments | « dependencies ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld