OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the Adblock Plus extension, | 2 * This file is part of the Adblock Plus extension, |
3 * Copyright (C) 2006-2012 Eyeo GmbH | 3 * Copyright (C) 2006-2012 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 setTimeout(function() | 151 setTimeout(function() |
152 { | 152 { |
153 if ("spec" in file && /^defaults\b/.test(file.spec)) | 153 if ("spec" in file && /^defaults\b/.test(file.spec)) |
154 { | 154 { |
155 // Code attempts to read the default patterns.ini, we don't have that. | 155 // Code attempts to read the default patterns.ini, we don't have that. |
156 // Make sure to execute first-run actions instead. | 156 // Make sure to execute first-run actions instead. |
157 callback(null); | 157 callback(null); |
158 if (localStorage.currentVersion) | 158 if (localStorage.currentVersion) |
159 seenDataCorruption = true; | 159 seenDataCorruption = true; |
160 delete localStorage.currentVersion; | 160 delete localStorage.currentVersion; |
161 require("filterNotifier").FilterNotifier.triggerListeners("load"); | |
162 return; | 161 return; |
163 } | 162 } |
164 | 163 |
165 var path = this._getFilePath(file); | 164 var path = this._getFilePath(file); |
166 if (!(path in window.localStorage)) | 165 if (!(path in window.localStorage)) |
167 { | 166 { |
168 callback(new Error("File doesn't exist")) | 167 callback(new Error("File doesn't exist")) |
169 return; | 168 return; |
170 } | 169 } |
171 | 170 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 status: -1, | 505 status: -1, |
507 notificationCallbacks: {}, | 506 notificationCallbacks: {}, |
508 loadFlags: 0, | 507 loadFlags: 0, |
509 INHIBIT_CACHING: 0, | 508 INHIBIT_CACHING: 0, |
510 VALIDATE_ALWAYS: 0, | 509 VALIDATE_ALWAYS: 0, |
511 QueryInterface: function() | 510 QueryInterface: function() |
512 { | 511 { |
513 return this; | 512 return this; |
514 } | 513 } |
515 }; | 514 }; |
OLD | NEW |