{"json_modified": "2016-03-28T08:36:46.791483", "uuid": "bedf206b-5aa1-49e6-8afe-b401aacc2bd0", "title": "WebChannel.jsm", "url": "/en-US/docs/Mozilla/JavaScript_code_modules/WebChannel.jsm", "tags": ["Mozilla", "Modules"], "translations": [], "modified": "2016-02-22T13:38:57", "label": "WebChannel.jsm", "localization_tags": [], "locale": "en-US", "id": 124109, "last_edit": "2016-02-22T13:38:55", "summary": "The WebChannel.jsm JavaScript code module provides\u00a0an abstraction that uses the Message Manager and Custom Events\u00a0APIs to create a two-way communication channel between chrome and content code for specific origins (using a specific origin passed to the constructor or a lookup with nsIPermissionManager while also ensuring the scheme is HTTPS).", "sections": [{"id": "Constructor", "title": "Constructor"}, {"id": "Method_overview", "title": "Method overview"}, {"id": "Attributes", "title": "Attributes"}, {"id": "Methods", "title": "Methods"}, {"id": "listen()", "title": "listen()"}, {"id": "stopListening()", "title": "stopListening()"}, {"id": "Parameters", "title": "Parameters"}, {"id": "send()", "title": "send()"}, {"id": "Parameters_2", "title": "Parameters"}, {"id": "Examples", "title": "Examples"}, {"id": "Setting_up_a_WebChannel_between_chrome_code_and_a_webpage", "title": "Setting up a WebChannel between chrome code and a webpage"}, {"id": "Chrome_code", "title": "Chrome code"}, {"id": "Webpage_code", "title": "Webpage code"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/JavaScript_code_modules/WebChannel.jsm", "review_tags": []}