| 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-2015 Eyeo GmbH |    3  * Copyright (C) 2006-2015 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  597 XPCOMUtils.defineLazyServiceGetter(Utils, "chromeRegistry", "@mozilla.org/chrome
     /chrome-registry;1", "nsIXULChromeRegistry"); |  597 XPCOMUtils.defineLazyServiceGetter(Utils, "chromeRegistry", "@mozilla.org/chrome
     /chrome-registry;1", "nsIXULChromeRegistry"); | 
|  598 XPCOMUtils.defineLazyServiceGetter(Utils, "systemPrincipal", "@mozilla.org/syste
     mprincipal;1", "nsIPrincipal"); |  598 XPCOMUtils.defineLazyServiceGetter(Utils, "systemPrincipal", "@mozilla.org/syste
     mprincipal;1", "nsIPrincipal"); | 
|  599 XPCOMUtils.defineLazyServiceGetter(Utils, "dateFormatter", "@mozilla.org/intl/sc
     riptabledateformat;1", "nsIScriptableDateFormat"); |  599 XPCOMUtils.defineLazyServiceGetter(Utils, "dateFormatter", "@mozilla.org/intl/sc
     riptabledateformat;1", "nsIScriptableDateFormat"); | 
|  600 XPCOMUtils.defineLazyServiceGetter(Utils, "httpProtocol", "@mozilla.org/network/
     protocol;1?name=http", "nsIHttpProtocolHandler"); |  600 XPCOMUtils.defineLazyServiceGetter(Utils, "httpProtocol", "@mozilla.org/network/
     protocol;1?name=http", "nsIHttpProtocolHandler"); | 
|  601 XPCOMUtils.defineLazyServiceGetter(Utils, "clipboard", "@mozilla.org/widget/clip
     board;1", "nsIClipboard"); |  601 XPCOMUtils.defineLazyServiceGetter(Utils, "clipboard", "@mozilla.org/widget/clip
     board;1", "nsIClipboard"); | 
|  602 XPCOMUtils.defineLazyServiceGetter(Utils, "clipboardHelper", "@mozilla.org/widge
     t/clipboardhelper;1", "nsIClipboardHelper"); |  602 XPCOMUtils.defineLazyServiceGetter(Utils, "clipboardHelper", "@mozilla.org/widge
     t/clipboardhelper;1", "nsIClipboardHelper"); | 
|  603 XPCOMUtils.defineLazyGetter(Utils, "crypto", function() |  603 XPCOMUtils.defineLazyGetter(Utils, "crypto", function() | 
|  604 { |  604 { | 
|  605   try |  605   try | 
|  606   { |  606   { | 
|  607     let ctypes = Components.utils.import("resource://gre/modules/ctypes.jsm", nu
     ll).ctypes; |  607     let ctypes = Cu.import("resource://gre/modules/ctypes.jsm", null).ctypes; | 
|  608  |  608  | 
|  609     let nsslib; |  609     let nsslib; | 
|  610     try |  610     try | 
|  611     { |  611     { | 
|  612       nsslib = ctypes.open(ctypes.libraryName("nss3")); |  612       nsslib = ctypes.open(ctypes.libraryName("nss3")); | 
|  613     } |  613     } | 
|  614     catch (e) |  614     catch (e) | 
|  615     { |  615     { | 
|  616       // It seems that on Mac OS X the full path name needs to be specified |  616       // It seems that on Mac OS X the full path name needs to be specified | 
|  617       let file; |  617       let file; | 
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  766     Cu.reportError(e); |  766     Cu.reportError(e); | 
|  767     // Expected, ctypes isn't supported in Gecko 1.9.2 |  767     // Expected, ctypes isn't supported in Gecko 1.9.2 | 
|  768     return null; |  768     return null; | 
|  769   } |  769   } | 
|  770 }); |  770 }); | 
|  771  |  771  | 
|  772 if ("@mozilla.org/messenger/headerparser;1" in Cc) |  772 if ("@mozilla.org/messenger/headerparser;1" in Cc) | 
|  773   XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen
     ger/headerparser;1", "nsIMsgHeaderParser"); |  773   XPCOMUtils.defineLazyServiceGetter(Utils, "headerParser", "@mozilla.org/messen
     ger/headerparser;1", "nsIMsgHeaderParser"); | 
|  774 else |  774 else | 
|  775   Utils.headerParser = null; |  775   Utils.headerParser = null; | 
| OLD | NEW |