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

Side by Side Diff: chrome/content/processScript.js

Issue 29340697: Issue 3962 - Update developer tools module paths in Element Hiding Helper (Closed)
Patch Set: Created April 20, 2016, 5:53 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 | « no previous file | lib/inspectorObserver.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 const Ci = Components.interfaces; 7 const Ci = Components.interfaces;
8 const Cu = Components.utils; 8 const Cu = Components.utils;
9 9
10 let {console} = Cu.import("resource://gre/modules/devtools/Console.jsm", {}); 10 let console;
11 let {DebuggerServer} = Cu.import("resource://gre/modules/devtools/dbg-server.jsm ", {}); 11 try
12 {
13 // Gecko 44+
14 ({console} = Cu.import("resource://gre/modules/Console.jsm", {}));
15 }
16 catch (e)
saroyanm 2016/04/21 12:24:13 According to our requirements page we are supporti
Wladimir Palant 2016/04/21 13:05:16 We encourage users to update to newer Firefox vers
17 {
18 ({console} = Cu.import("resource://gre/modules/devtools/Console.jsm", {}));
19 }
20
21 let DebuggerServer;
22 try
23 {
24 // Firefox 44+
25 let {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
26 ({DebuggerServer} = require("devtools/server/main"));
27 }
28 catch (e)
29 {
30 ({DebuggerServer} = Cu.import("resource://gre/modules/devtools/dbg-server.jsm" , {}));
31 }
32
12 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); 33 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
13 34
14 let processID = Services.appinfo.processID; 35 let processID = Services.appinfo.processID;
15 let maxNodeID = 0; 36 let maxNodeID = 0;
16 let nodes = new Map(); 37 let nodes = new Map();
17 38
18 let name = "elemhidehelper"; 39 let name = "elemhidehelper";
19 let actor = { 40 let actor = {
20 constructorFun: Actor, 41 constructorFun: Actor,
21 constructorName: name, 42 constructorName: name,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // forget this node then. 197 // forget this node then.
177 forgetNode(nodeID); 198 forgetNode(nodeID);
178 } 199 }
179 } 200 }
180 } 201 }
181 202
182 function forgetNode(nodeID) 203 function forgetNode(nodeID)
183 { 204 {
184 nodes.delete(nodeID); 205 nodes.delete(nodeID);
185 } 206 }
OLDNEW
« no previous file with comments | « no previous file | lib/inspectorObserver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld