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

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

Issue 29324521: Issue 2930 - Re-enable and adapt about:feedback (Closed)
Patch Set: Created Aug. 23, 2015, 6:05 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 | « mobile/android/chrome/content/aboutFeedback.xhtml ('k') | 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 /* 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 const Cu = Components.utils; 6 const Cu = Components.utils;
7 7
8 Cu.import("resource://gre/modules/AppConstants.jsm"); 8 Cu.import("resource://gre/modules/AppConstants.jsm");
9 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); 9 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 if (AppConstants.NIGHTLY_BUILD) { 90 if (AppConstants.NIGHTLY_BUILD) {
91 modules['passwords'] = { 91 modules['passwords'] = {
92 uri: "chrome://browser/content/aboutPasswords.xhtml", 92 uri: "chrome://browser/content/aboutPasswords.xhtml",
93 privileged: true 93 privileged: true
94 }; 94 };
95 } 95 }
96 96
97 // Removing some about pages as part of 97 // Removing some about pages as part of
98 // https://issues.adblockplus.org/ticket/2531 98 // https://issues.adblockplus.org/ticket/2531
99 for (let moduleName of ["firefox", "fennec", "rights", "apps", "feedback"]) 99 // Re-added feedback as part of https://issues.adblockplus.org/ticket/2930
100 for (let moduleName of ["firefox", "fennec", "rights", "apps"])
100 delete modules[moduleName]; 101 delete modules[moduleName];
101 102
102 function AboutRedirector() {} 103 function AboutRedirector() {}
103 AboutRedirector.prototype = { 104 AboutRedirector.prototype = {
104 QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), 105 QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]),
105 classID: Components.ID("{322ba47e-7047-4f71-aebf-cb7d69325cd9}"), 106 classID: Components.ID("{322ba47e-7047-4f71-aebf-cb7d69325cd9}"),
106 107
107 _getModuleInfo: function (aURI) { 108 _getModuleInfo: function (aURI) {
108 let moduleName = aURI.path.replace(/[?#].*/, "").toLowerCase(); 109 let moduleName = aURI.path.replace(/[?#].*/, "").toLowerCase();
109 return modules[moduleName]; 110 return modules[moduleName];
(...skipping 29 matching lines...) Expand all
139 } 140 }
140 141
141 channel.originalURI = aURI; 142 channel.originalURI = aURI;
142 143
143 return channel; 144 return channel;
144 } 145 }
145 }; 146 };
146 147
147 const components = [AboutRedirector]; 148 const components = [AboutRedirector];
148 this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components); 149 this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
OLDNEW
« no previous file with comments | « mobile/android/chrome/content/aboutFeedback.xhtml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld