Multiprocess Firefox 编辑

In older versions of Firefox for desktop, the entire browser ran within a single operating system process. Specifically, the JavaScript that ran the browser UI (also known as "chrome code") and the JavaScript that ran within web pages (also known as "content" or "web content") were not separated.

Currently, the latest versions of Firefox run the browser UI and the web content in separate processes. In the current iteration of this architecture, all browser tabs run within the same process and the browser UI runs in its own individual process. In future iterations of Firefox, there will be more than one process to exclusively handle web content. The internal name for this project is called Electrolysis, sometimes abbreviated to e10s.

The good news is that normal web pages and their developers are unaffected by this changeover to a multiprocess-based Firefox. Unfortunately, people developing for Firefox or Firefox add-ons will be affected if their code relies on being able to access web content directly since the system for accessing this data is going to change.

Instead of accessing web content directly, chrome code will have to use the message manager instead. To help ease this transition we've implemented Cross Process Object Wrappers and some compatibility shims for add-on developers. If you are an add-on developer wondering whether or not you are affected by this change, see the guide to working with multiprocess Firefox.


Technical overview
A high-level overview of how multiprocess Firefox is implemented.
Web content compatibility guide
Guidelines and details on potential website compatibility issues that may arise due to the transition. Tip: there aren't very many!
Glossary
A glossary of terms used in multiprocess Firefox.
Message manager
A complete guide to the objects used to communicate between chrome code and web content.
SDK-based add-ons
How to migrate add-ons developed using the Add-on SDK.
Which URIs load where
A quick guide to which URIs - chrome:, about:, file:, resource: - are loaded into which process.
Motivation
Why we are implementing multiprocess Firefox: performance, security, and stability.
Add-on migration guide
If you are an add-on developer, find out if you are affected and how to update your code.
Cross Process Object Wrappers
Cross Process Object Wrappers are a migration aid, giving chrome code synchronous access to web content.
Debugging content processes
How to debug code running in the content process, including frame and process scripts.
Tab selection in multiprocess Firefox
How switching tabs works in multiprocess Firefox.

Limitations of chrome scripts
Practices that will no longer work in chrome code, and how to update them.
Limitations of frame scripts
Practices that will not work inside frame scripts, and what to do instead.

Contact us

Find out more about the project, get involved, or ask us your questions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:111 次

字数:5280

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文