| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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); |
| OLD | NEW |