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

Side by Side Diff: messageResponder.js

Issue 29338201: Issue 3719 - Adapt for changes in the initilization code on Chrome/Safari (Closed)
Patch Set: Created March 14, 2016, 11:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « locale/en-US/firstRun.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ext.showOptions(function() 136 ext.showOptions(function()
137 { 137 {
138 var subscription = Subscription.fromURL(message.url); 138 var subscription = Subscription.fromURL(message.url);
139 subscription.title = message.title; 139 subscription.title = message.title;
140 onFilterChange("addSubscription", subscription); 140 onFilterChange("addSubscription", subscription);
141 }); 141 });
142 break; 142 break;
143 case "app.get": 143 case "app.get":
144 if (message.what == "issues") 144 if (message.what == "issues")
145 { 145 {
146 var subscriptionInit = require("subscriptionInit");
146 var info = require("info"); 147 var info = require("info");
147 callback({ 148 callback({
148 seenDataCorruption: "seenDataCorruption" in global ? global.seenData Corruption : false, 149 filterlistsReinitialized: subscriptionInit ? subscriptionInit.reinit ialized : false,
149 filterlistsReinitialized: "filterlistsReinitialized" in global ? glo bal.filterlistsReinitialized : false,
150 legacySafariVersion: (info.platform == "safari" && ( 150 legacySafariVersion: (info.platform == "safari" && (
151 Services.vc.compare(info.platformVersion, "6.0") < 0 || // bef oreload breaks websites in Safari 5 151 Services.vc.compare(info.platformVersion, "6.0") < 0 || // bef oreload breaks websites in Safari 5
152 Services.vc.compare(info.platformVersion, "6.1") == 0 || // ext ensions are broken in 6.1 and 7.0 152 Services.vc.compare(info.platformVersion, "6.1") == 0 || // ext ensions are broken in 6.1 and 7.0
153 Services.vc.compare(info.platformVersion, "7.0") == 0)) 153 Services.vc.compare(info.platformVersion, "7.0") == 0))
154 }); 154 });
155 } 155 }
156 else if (message.what == "doclink") 156 else if (message.what == "doclink")
157 callback(Utils.getDocLink(message.link)); 157 callback(Utils.getDocLink(message.link));
158 else if (message.what == "localeInfo") 158 else if (message.what == "localeInfo")
159 { 159 {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 if (subscription instanceof DownloadableSubscription) 362 if (subscription instanceof DownloadableSubscription)
363 Synchronizer.execute(subscription, true); 363 Synchronizer.execute(subscription, true);
364 } 364 }
365 break; 365 break;
366 case "subscriptions.isDownloading": 366 case "subscriptions.isDownloading":
367 callback(Synchronizer.isExecuting(message.url)); 367 callback(Synchronizer.isExecuting(message.url));
368 break; 368 break;
369 } 369 }
370 }); 370 });
371 })(this); 371 })(this);
OLDNEW
« no previous file with comments | « locale/en-US/firstRun.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld