{"json_modified": "2016-06-17T03:01:15.456341", "uuid": "69154a59-7660-4e67-a709-a936ec13c5f9", "title": "Interaction between privileged and non-privileged pages", "url": "/en-US/docs/Archive/Add-ons/Interaction_between_privileged_and_non-privileged_pages", "tags": ["Extensions", "Add-ons", "add-ons", "Code snippets"], "translations": [{"uuid": "9ba383dc-173a-4d3b-9435-ddccb8e3b33a", "title": "Interaction between privileged and non-privileged pages", "url": "/ja/docs/Code_snippets/Interaction_between_privileged_and_non-privileged_pages", "tags": ["Extensions", "Add-ons"], "summary": "", "localization_tags": [], "locale": "ja", "last_edit": "2008-01-24T17:47:15", "review_tags": []}, {"uuid": "e7cfaf05-cf28-4808-b470-13b7888a4f2b", "title": "\u7279\u6743\u9875\u9762\u548c\u975e\u7279\u6743\u9875\u9762\u4e4b\u95f4\u76f8\u4e92\u901a\u4fe1", "url": "/zh-CN/docs/Code_snippets/Interaction_between_privileged_and_non-privileged_pages", "tags": [], "summary": "\u6709\u4e00\u79cd\u5f88\u7b80\u5355\u7684\u65b9\u6cd5\u4ece\u666e\u901a\u9875\u9762\uff08\u975e\u7279\u6743\uff09\u5411\u6d4f\u89c8\u5668\u6269\u5c55\u53d1\u9001\u6570\u636e\uff0c\u5c31\u662f\u4f7f\u7528DOM\u4e8b\u4ef6\u3002\u5728\u4f60\u6269\u5c55\u91cc\u9762\u7684browser.xul\u5199\u4e00\u4e2a\u76d1\u542c\u4e8b\u4ef6\u7684\u65b9\u6cd5\u3002\u8fd9\u91cc\u6211\u4eec\u53eb\u8fd9\u4e2a\u4e8b\u4ef6\u4e3a\u201cMyExtensionEvent\u201d\u3002\u00a0", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2014-05-29T23:31:10", "review_tags": []}], "modified": "2016-06-17T03:01:15", "label": "Interaction between privileged and non-privileged pages", "localization_tags": [], "locale": "en-US", "id": 5995, "last_edit": "2014-01-30T11:00:42", "summary": "An easy way to send data from a web page to an extension is by using custom DOM events. In your extension's browser.xul overlay, write code which listens for a custom DOM event. Here we call the event MyExtensionEvent.", "sections": [{"id": "Sending_data_from_unprivileged_document_to_chrome", "title": "Sending data from unprivileged document to chrome"}, {"id": "Sending_data_from_chrome_to_unprivileged_document", "title": "Sending data from chrome to unprivileged document"}, {"id": "Chromium-like_messaging_json_request_with_json_callback", "title": "Chromium-like messaging: json request with json callback"}, {"id": "Sending_structured_data", "title": "Sending structured data"}, {"id": "Security_notes", "title": "Security notes"}, {"id": "Resources", "title": "Resources"}, {"id": "See_also", "title": "See also"}], "slug": "Archive/Add-ons/Interaction_between_privileged_and_non-privileged_pages", "review_tags": ["technical"]}