{"json_modified": "2016-08-30T15:06:28.402999", "uuid": "9075c0c5-0d93-4201-8e34-9dc5fb1a8bd2", "title": "Components.utils.exportFunction", "url": "/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.exportFunction", "tags": ["Components", "Mozilla", "XPCOM", "Language Bindings"], "translations": [], "modified": "2016-08-30T15:06:28", "label": "Components.utils.exportFunction", "localization_tags": [], "locale": "en-US", "id": 90899, "last_edit": "2016-08-30T15:06:27", "summary": "This function provides a safe way to expose a function from a privileged scope to a less-privileged scope. In this way privileged code, such as an add-on, can share code with less-privileged code like a normal web page script. A function exported from privileged to less-privileged code can be called from the less privileged code's context.", "sections": [{"id": "Overview", "title": "Overview"}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Returns", "title": "Returns"}, {"id": "Exporting_functions_that_take_arguments", "title": "Exporting functions that take arguments"}, {"id": "Modifying_the_argument", "title": "Modifying the argument"}, {"id": "Xray_filtering_and_waiving", "title": "Xray filtering and waiving"}, {"id": "Passing_functions_as_arguments", "title": "Passing functions as arguments"}, {"id": "Cross-origin_checking", "title": "Cross-origin checking"}, {"id": "Example", "title": "Example"}, {"id": "Export_to_global_scope", "title": "Export to global scope"}, {"id": "Export_to_an_existing_local_object", "title": "Export to an existing local object"}], "slug": "Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.exportFunction", "review_tags": []}