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

Delta Between Two Patch Sets: lib/typoNetError.js

Issue 29337915: Issue 3748 - Update URL Fixer dependency on buildtools to revision c92cc4e4a338 and make it E10S-co… (Closed)
Left Patch Set: Updated path in updateRules.py as well Created March 7, 2016, 8:23 p.m.
Right Patch Set: Even more bracket style adjustments Created March 14, 2016, 2:19 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/prefs.json ('k') | lib/typoRules.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of the URL Fixer, 2 * This file is part of the URL Fixer,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * URL Fixer is free software: you can redistribute it and/or modify 5 * URL Fixer 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 * URL Fixer is distributed in the hope that it will be useful, 9 * URL Fixer 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 let info = require("info"); 63 let info = require("info");
64 let processScript = info.addonRoot + "lib/child/typoNetError.js?" + Math.random( ); 64 let processScript = info.addonRoot + "lib/child/typoNetError.js?" + Math.random( );
65 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] 65 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"]
66 .getService(Ci.nsIProcessScriptLoader) 66 .getService(Ci.nsIProcessScriptLoader)
67 .QueryInterface(Ci.nsIMessageListenerManager) 67 .QueryInterface(Ci.nsIMessageListenerManager)
68 .QueryInterface(Ci.nsIMessageBroadcaster); 68 .QueryInterface(Ci.nsIMessageBroadcaster);
69 messageManager.loadProcessScript(processScript, true); 69 messageManager.loadProcessScript(processScript, true);
70 70
71 onShutdown.add(() => { 71 onShutdown.add(() =>
Thomas Greiner 2016/03/08 12:34:44 Coding style: Opening braces always go on their ow
Wladimir Palant 2016/03/08 14:37:48 That style makes relatively little sense when used
Thomas Greiner 2016/03/11 17:49:21 So we'll have yet another exception to that rule?
Wladimir Palant 2016/03/13 21:56:52 I consulted eslint and it thinks that this shouldn
Thomas Greiner 2016/03/14 11:06:29 Thanks for checking. Note that this is also the ca
Wladimir Palant 2016/03/14 14:19:36 Heh, missed that due to misconfiguring eslint...
72 {
72 messageManager.broadcastAsyncMessage("URLFixer:Shutdown", processScript); 73 messageManager.broadcastAsyncMessage("URLFixer:Shutdown", processScript);
73 messageManager.removeDelayedProcessScript(processScript); 74 messageManager.removeDelayedProcessScript(processScript);
74 }); 75 });
75 76
76 messageManager.addMessageListener("URLFixer:GetNetErrorOverlay", 77 messageManager.addMessageListener("URLFixer:GetNetErrorOverlay",
77 getNetErrorOverlay); 78 getNetErrorOverlay);
78 messageManager.addMessageListener("URLFixer:UserCorrection", 79 messageManager.addMessageListener("URLFixer:UserCorrection",
79 processCorrection); 80 processCorrection);
80 onShutdown.add(() => { 81 onShutdown.add(() =>
82 {
81 messageManager.removeMessageListener("URLFixer:GetNetErrorOverlay", 83 messageManager.removeMessageListener("URLFixer:GetNetErrorOverlay",
82 getNetErrorOverlay); 84 getNetErrorOverlay);
83 messageManager.removeMessageListener("URLFixer:UserCorrection", 85 messageManager.removeMessageListener("URLFixer:UserCorrection",
84 processCorrection); 86 processCorrection);
85 }); 87 });
LEFTRIGHT

Powered by Google App Engine
This is Rietveld