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

Side by Side Diff: lib/adblockplus_compat.js

Issue 8734015: No longer necessary to trigger "load" notification explicitly now that https://hg.adblockplus.org/a… (Closed)
Patch Set: Created Oct. 31, 2012, 3:55 p.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 | « no previous file | 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 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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld