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

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

Issue 11533106: Prepared adblockplus for Safari (Closed)
Patch Set: Fixed broken path to CSS for firefox Created Sept. 6, 2013, 5:18 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
Index: chrome/content/ui/firstRun.js
===================================================================
--- a/chrome/content/ui/firstRun.js
+++ b/chrome/content/ui/firstRun.js
@@ -53,6 +53,11 @@
setLinks("dataCorruptionWarning", Utils.getDocLink("knownIssuesChrome_filterstorage"));
}
+ // Show warning if Safari < 6
+ var info = require('info');
Wladimir Palant 2013/09/10 06:53:46 Nit: Please use double quotation marks unless ther
+ if (info.platform == "safari" && info.platformVersion.split(".") < [6])
Wladimir Palant 2013/09/10 06:53:46 This is JavaScript, not Python ;) Please have a l
Sebastian Noack 2013/09/10 10:56:29 Services.vc.compare is Firefox specific, isn't it?
Wladimir Palant 2013/09/10 11:10:14 No, we also have our own version comparator implem
Wladimir Palant 2013/09/10 11:12:52 Argh, should be: "implicitly converts the latter t
Sebastian Noack 2013/09/10 14:20:57 Well, "12.0".split(".")[0] < 6, returns false as i
Wladimir Palant 2013/09/10 14:34:21 Never mind, my bad. Regardless, the version compar
+ E("legacySafariWarning").removeAttribute("hidden");
+
// Set up URL
setLinks("acceptableAdsExplanation", Utils.getDocLink("acceptable_ads_criteria"), openFilters);

Powered by Google App Engine
This is Rietveld