| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2014 Eyeo GmbH | 3  * Copyright (C) 2006-2014 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 358             selectedItem = subscription; | 358             selectedItem = subscription; | 
| 359             selectedPrefix = prefix; | 359             selectedPrefix = prefix; | 
| 360           } | 360           } | 
| 361         } | 361         } | 
| 362       } | 362       } | 
| 363     } | 363     } | 
| 364     return selectedItem; | 364     return selectedItem; | 
| 365   }, | 365   }, | 
| 366 | 366 | 
| 367   /** | 367   /** | 
|  | 368    * Pauses code execution and allows events to be processed. Warning: | 
|  | 369    * other extension code might execute, the extension might even shut down. | 
|  | 370    */ | 
|  | 371   yield: function() | 
|  | 372   { | 
|  | 373     let thread = Services.tm.currentThread; | 
|  | 374     while (thread.processNextEvent(false)); | 
|  | 375   }, | 
|  | 376 | 
|  | 377   /** | 
| 368    * Saves sidebar state before detaching/reattaching | 378    * Saves sidebar state before detaching/reattaching | 
| 369    */ | 379    */ | 
| 370   setParams: function(params) | 380   setParams: function(params) | 
| 371   { | 381   { | 
| 372     sidebarParams = params; | 382     sidebarParams = params; | 
| 373   }, | 383   }, | 
| 374 | 384 | 
| 375   /** | 385   /** | 
| 376    * Retrieves and removes sidebar state after detaching/reattaching | 386    * Retrieves and removes sidebar state after detaching/reattaching | 
| 377    */ | 387    */ | 
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 762     Cu.reportError(e); | 772     Cu.reportError(e); | 
| 763     // Expected, ctypes isn't supported in Gecko 1.9.2 | 773     // Expected, ctypes isn't supported in Gecko 1.9.2 | 
| 764     return null; | 774     return null; | 
| 765   } | 775   } | 
| 766 }); | 776 }); | 
| 767 | 777 | 
| 768 if ("@mozilla.org/messenger/headerparser;1" in Cc) | 778 if ("@mozilla.org/messenger/headerparser;1" in Cc) | 
| 769   XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen
     ger/headerparser;1", "nsIMsgHeaderParser"); | 779   XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen
     ger/headerparser;1", "nsIMsgHeaderParser"); | 
| 770 else | 780 else | 
| 771   Utils.headerParser = null; | 781   Utils.headerParser = null; | 
| OLD | NEW | 
|---|