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

Unified Diff: chrome/content/ui/firstRun.js

Issue 5450822905233408: Issue 417 - Reinitializing removed filter lists (Core/Firefox) (Closed)
Patch Set: Created May 26, 2014, 10:22 a.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
Index: chrome/content/ui/firstRun.js
===================================================================
--- a/chrome/content/ui/firstRun.js
+++ b/chrome/content/ui/firstRun.js
@@ -63,6 +63,21 @@
setLinks("dataCorruptionWarning", Utils.getDocLink("knownIssuesChrome_filterstorage"));
}
+ // Show warning if filterlists settings were reinitialized
+ var filterlistsReinitialized = false;
+ if (typeof backgroundPage != "undefined")
+ filterlistsReinitialized = backgroundPage.filterlistsReinitialized;
+ else
+ {
+ var UI = require("ui").UI;
+ filterlistsReinitialized = (typeof UI != "undefined" && UI.filterlistsReinitialized);
+ }
+ if (filterlistsReinitialized)
+ {
+ E("filterlistsReinitializedWarning").removeAttribute("hidden");
+ setLinks("filterlistsReinitializedWarning", openFilters);
+ }
+
// Show warning if Safari version isn't supported
var info = require("info");
if (info.platform == "safari" && (

Powered by Google App Engine
This is Rietveld