--- title: Chrome slug: Chrome tags: - Toolkit API translation_of: Glossary/Chrome translation_of_original: Chrome ---

Chrome 这个单词在 Mozilla 的技术中有着多重含义。

Browser chrome / Chrome
"browser chrome" 或者直接 Chrome 可以用来指代围绕着普通网页区域的浏览器界面,它对应的词是 content ,表示网页区域.
更通用点讲, chrome is the entirety of entities making up the user interface of a specific application or extension.
 chrome:// URL
An URL using the chrome:// protocol. Code loaded from a chrome URL has extended, or chrome , privileges.
XUL-based applications load the code for their interface from chrome:// URLs.
Chrome 特权
拥有 chrome 特权的代码可以实现各种事情, 而普通网页中的 JS 代码则不是。
window.open 方法的 chrome 参数
chrome 参数传给 window.open 能够打开一个没有多余浏览器界面元素(工具栏、地址栏等)的新窗口.
chrome 文件夹
profile 根目录中的 chrome 文件夹通常是用来存放 userChrome.js 扩展需要加载的 js 脚本
-chrome 命令行参数
Starts the application and opens the specified XUL file in a top level window. E.g. mozilla -chrome chrome://inspector/content starts the DOM Inspector.
Chrome 包
A chrome package consists of a set of chrome providers . There are three basic types of chrome providers:
chrome.rdf
The chrome registry, stores the list of registered chrome packages and other information. It was located in the install directory and in the profile. It is no longer used since Gecko 1.8 (Firefox 1.5).

相关链接

(Note that while both of the documents below mention contents.rdf files, an easier way of registering your chrome providers - using Chrome Manifests - is supported since Firefox 1.5 / Toolkit 1.8)