{"json_modified": "2016-03-28T08:41:59.564169", "uuid": "c0ddd7d6-3ab7-44e3-ba48-c16584c26aca", "title": "Limitations of frame scripts", "url": "/en-US/docs/Mozilla/Firefox/Multiprocess_Firefox/Limitations_of_frame_scripts", "tags": [], "translations": [{"uuid": "503ed1e2-6f0f-4865-b76c-4163f38233e7", "title": "\u6846\u67b6\u811a\u672c\u7684\u9650\u5236", "url": "/zh-CN/docs/Mozilla/Firefox/Multiprocess_Firefox/Limitations_of_frame_scripts", "tags": [], "summary": "\u6846\u67b6\u811a\u672c\u4f7f\u7528\u7cfb\u7edf\u7279\u6743\u8fd0\u884c\uff0c\u5e76\u4e14\u80fd\u591f\u8bbf\u95ee Components \u5bf9\u8c61\uff0c\u4f7f\u5b83\u4eec\u80fd\u591f\u4f7f\u7528 XPCOM \u5bf9\u8c61\u548c JSM\u3002\u8bb8\u591a\u7279\u6743\u7684 API \u5728\u5185\u5bb9\u8fdb\u7a0b\u4e2d\u4ecd\u7136\u5de5\u4f5c\u3002\u6570\u636e\u7ed3\u6784\u7684\u5904\u7406\u4ecd\u5c06\u5de5\u4f5c\u3002XHR \u548c Workers \u4ecd\u5c06\u5de5\u4f5c\u3002\u4f46\u662f\uff0c\u67d0\u4e9b API \u5728 chrome \u8fdb\u7a0b\u4e2d\u5de5\u4f5c\uff0c\u4f46\u5728\u6846\u67b6\u811a\u672c\u4e2d\u5c06\u4e0d\u5de5\u4f5c\u3002\u672c\u6587\u5217\u51fa\u6700\u91cd\u8981\u7684\u90a3\u4e9b API\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2015-10-14T21:36:42", "review_tags": []}], "modified": "2015-06-15T20:03:40", "label": "Limitations of frame scripts", "localization_tags": [], "locale": "en-US", "id": 133291, "last_edit": "2015-06-15T20:03:39", "summary": "Frame scripts run with system privileges and have access to the Components object, enabling them to use XPCOM objects and JSMs. Many privileged APIs will just work in a content process. Anything that just manipulates data structures will just work. XHR and Workers will work. However, some APIs\u00a0 that work in the chrome process will not work in a frame script. This article lists the most important of these APIs.", "sections": [{"id": "File_IO", "title": "File I/O"}, {"id": "XUL_and_browser_UI", "title": "XUL and browser UI"}, {"id": "Services", "title": "Services"}, {"id": "Chrome_windows", "title": "Chrome windows"}, {"id": "Places_API", "title": "Places API"}, {"id": "Observers_in_the_content_process", "title": "Observers in the content process"}, {"id": "QI_from_content_window_to_chrome_window", "title": "QI from content window to chrome window"}, {"id": "nsIAboutModule", "title": "nsIAboutModule"}, {"id": "JavaScript_code_modules_(JSMs)", "title": "JavaScript code modules (JSMs)"}], "slug": "Mozilla/Firefox/Multiprocess_Firefox/Limitations_of_frame_scripts", "review_tags": ["technical"]}