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

Unified Diff: lib/typoNetError.js

Issue 29366643: Issue 4682 - Remove typo collection functionality from URL Fixer (Closed) Base URL: https://hg.adblockplus.org/urlfixer
Patch Set: Removed call to non-existant function Created Dec. 1, 2016, 1:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/main.js ('K') | « lib/typoFixer.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/typoNetError.js
===================================================================
--- a/lib/typoNetError.js
+++ b/lib/typoNetError.js
@@ -12,17 +12,16 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with URL Fixer. If not, see <http://www.gnu.org/licenses/>.
*/
let {Prefs} = require("prefs");
let {onWhitelistEntryRemoved} = require("typoRules");
-let {processUserCorrection} = require("typoCollector");
function getNetErrorOverlay(message)
{
let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
.createInstance(Ci.nsIXMLHttpRequest);
request.open("GET", "chrome://" + require("info").addonName +
"/content/netError.xhtml");
request.addEventListener("load", function(event)
@@ -32,18 +31,16 @@ function getNetErrorOverlay(message)
});
request.send(null);
}
function processCorrection(message)
{
let {oldHost, newHost} = message.data;
- processUserCorrection(oldHost, newHost);
-
if (newHost.indexOf("www.") == 0 && oldHost.indexOf("www.") == 0)
{
// Ignore www. prefix if they both start with it
newHost = newHost.substr(4);
oldHost = oldHost.substr(4);
}
if (oldHost && newHost != oldHost)
{
« lib/main.js ('K') | « lib/typoFixer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld