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

Side by Side Diff: mobile/android/components/AboutRedirector.js

Issue 4908428271026176: Issue 2384 - Remove Firefox/Mozilla references on about:firefox (Closed)
Patch Set: Created May 6, 2015, 7:31 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
OLDNEW
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld