OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 const Cc = Components.classes; | 4 const Cc = Components.classes; |
5 const Ci = Components.interfaces; | 5 const Ci = Components.interfaces; |
6 | 6 |
7 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); | 7 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); |
8 | 8 |
9 let modules = { | 9 let modules = { |
10 // about: | 10 // about: |
11 "": { | 11 "": { |
12 uri: "chrome://browser/content/about.xhtml", | 12 uri: "chrome://browser/content/aboutAdblockBrowser.xhtml", |
13 privileged: true | 13 privileged: true |
14 }, | 14 }, |
15 | 15 |
16 // about:fennec and about:firefox are aliases for about:, | 16 // about:fennec and about:firefox are aliases for about:, |
17 // but hidden from about:about | 17 // but hidden from about:about |
18 fennec: { | 18 fennec: { |
19 uri: "chrome://browser/content/about.xhtml", | 19 uri: "chrome://browser/content/aboutAdblockBrowser.xhtml", |
20 privileged: true, | 20 privileged: true, |
21 hide: true | 21 hide: true |
22 }, | 22 }, |
23 get firefox() this.fennec, | 23 get firefox() this.fennec, |
24 | 24 |
25 // about:blank has some bad loading behavior we can avoid, if we use an alias | 25 // about:blank has some bad loading behavior we can avoid, if we use an alias |
26 empty: { | 26 empty: { |
27 uri: "about:blank", | 27 uri: "about:blank", |
28 privileged: false, | 28 privileged: false, |
29 hide: true | 29 hide: true |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 | 123 |
124 channel.originalURI = aURI; | 124 channel.originalURI = aURI; |
125 | 125 |
126 return channel; | 126 return channel; |
127 } | 127 } |
128 }; | 128 }; |
129 | 129 |
130 const components = [AboutRedirector]; | 130 const components = [AboutRedirector]; |
131 this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components); | 131 this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components); |
OLD | NEW |