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

Delta Between Two Patch Sets: chrome/content/tests/tests/suffixTreeManipulation.js

Issue 8433028: added hook function to appIntegration to handle function-overwrites from other extensions (Closed)
Left Patch Set: applied changes from code review Created Sept. 26, 2012, 1:53 p.m.
Right Patch Set: added missing statement Created Sept. 28, 2012, 9:52 a.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 | « chrome/content/tests/tests/hooks.js ('k') | lib/appIntegration.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 (function() 1 (function()
2 { 2 {
3 function getModuleGlobal(module) 3 function getModuleGlobal(module)
4 { 4 {
5 let result = Cu.getGlobalForObject(require(module)); 5 let result = Cu.getGlobalForObject(require(module));
6 if (result == window) 6 if (result == window)
7 { 7 {
8 // Work-around for bug 736316 - getGlobalForObject gave us our own window 8 // Work-around for bug 736316 - getGlobalForObject gave us our own window
9 let {XPIProvider} = Cu.import("resource://gre/modules/XPIProvider.jsm", nu ll); 9 let {XPIProvider} = Cu.import("resource://gre/modules/XPIProvider.jsm", nu ll);
10 let addonID = "{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}" 10 let addonID = "{0fa2149e-bb2c-4ac2-a8d3-479599819475}";
11 if (addonID in XPIProvider.bootstrapScopes) 11 if (addonID in XPIProvider.bootstrapScopes)
12 result = XPIProvider.bootstrapScopes[addonID]; 12 result = XPIProvider.bootstrapScopes[addonID];
13 } 13 }
14 14
15 if ("require" in result) 15 if ("require" in result)
16 result = result.require.scopes[module]; 16 result = result.require.scopes[module];
17 return result; 17 return result;
18 } 18 }
19 19
20 let {onWhitelistEntryAdded, onWhitelistEntryRemoved} = require("rules"); 20 let {onWhitelistEntryAdded, onWhitelistEntryRemoved} = require("rules");
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "o": { 196 "o": {
197 "o": { 197 "o": {
198 "f": { 198 "f": {
199 }, 199 },
200 "g": " 1234" 200 "g": " 1234"
201 } 201 }
202 } 202 }
203 }, "Attempted to remove goo"); 203 }, "Attempted to remove goo");
204 }); 204 });
205 })(); 205 })();
LEFTRIGHT

Powered by Google App Engine
This is Rietveld