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 代码则不是。 方法的 chrome 参数
chrome 参数传给 能够打开一个没有多余浏览器界面元素(工具栏、地址栏等)的新窗口.
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:
  • Content. Content can consist of any file type viewable from within Mozilla. In particular, the content provider most often consists of a set of XUL, JavaScript and XBL binding files.
  • Locale. Translations for multi-language support. The two main types of files are DTD files and java-style properties files.
  • Skin. The skin provider provides complete appearance data for the user interface. Consisting of CSS files and images.
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)