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

Unified Diff: lib/child/bootstrap.js

Issue 29338275: Issue 3499 - Create a clean messaging API for internal use (Closed)
Patch Set: Created March 15, 2016, 10:57 a.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
« no previous file with comments | « no previous file | lib/messaging.js » ('j') | lib/messaging.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/bootstrap.js
===================================================================
--- a/lib/child/bootstrap.js
+++ b/lib/child/bootstrap.js
@@ -83,17 +83,17 @@
"": info.addonRoot + "lib/"
},
globals: {
Components, Cc, Ci, Cu, Cr, atob, btoa, onShutdown,
addMessageListener, removeMessageListener,
sendAsyncMessage: sendAsyncMessageWithResponse,
sendSyncMessage: sendSyncMessageSingleResponse
},
- modules: {"info": info},
+ modules: {"info": info, "messageManager": this},
id: info.addonID
});
onShutdown.add(() => unload(loader, "disable"))
main(loader, "child/main");
}
function shutdown(message)
« no previous file with comments | « no previous file | lib/messaging.js » ('j') | lib/messaging.js » ('J')

Powered by Google App Engine
This is Rietveld