firefox - Firefox 错误页面中的 "chrome://"URL 是什么?

标签 firefox background-image url-scheme

这是离线时 Firefox 的错误页面。如果您查看红色标记区域,您会看到 svg 背景,并且一些脚本是从 chrome://browser/content/... 加载的。 chrome 在那里做什么?

firefox-error-page

最佳答案

Firefox 使用 chrome:// 协议(protocol)访问 Mozilla 的 chrome 系统 - 用户界面元素和其他资源(这里的 chrome 不是指 Google Chrome)。

来自developer.mozilla.org :

What is chrome

Chrome is the set of user interface elements of the application window that are outside the window's content area. Toolbars, menu bars, progress bars, and window title bars are all examples of elements that are typically part of the chrome.

使用 Chrome URL,我们可以通过浏览器访问这些元素。 例如,我们可以通过以下方式访问库菜单:
chrome://browser/content/places/places.xul
以及扩展菜单:
chrome://mozapps/content/extensions/extensions.xul
(网址取自 http://kb.mozillazine.org/Chrome_URLs )

因此,chrome://browser/content/.. 链接似乎正在获取显示错误页面所需的 Firefox 资源。

关于firefox - Firefox 错误页面中的 "chrome://"URL 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52563072/

相关文章:

javascript - 在 Firefox 中打印 PDF

html - CSS 中的列数问题

css - 使用多个 css 背景图像/渐变时,正确的速记语法是什么?

jquery - 具有视差效果问题的背景图像 chrome

ios - iPhone http ://URL redirection

html - 如何在 iOS 上使用 tel : with * (star, asterisk) 或 # (hash, pound)?

css - 带文本的 Fontawesome 图标的垂直居中

firefox - 在 Firefox 中禁用框架调整大小

html - 带有滚动背景的粘性标题

ios - 在iOS中使用域URL在Framework中进行深度链接