11 KiB
| title | chunk | source | category | tags | date_saved | instance |
|---|---|---|---|---|---|---|
| Browsing context - Glossary | MDN | 1/3 | https://developer.mozilla.org/en-US/docs/Glossary/Browsing_context | reference | web, html, css, javascript, documentation | 2026-05-05T05:25:48.374289+00:00 | kb-cron |
MDN HTML HTML: Markup language
HTML reference
HTML guides
Markup languages
CSS reference
CSS guides
Layout cookbook
JavaScriptJS JavaScript: Scripting language
JS reference
JS guides
Web APIs Web APIs: Programming interfaces
Web API reference
Web API guides
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
Browsing context
A browsing context is an environment in which a browser displays a Document. In modern browsers, it usually is a tab , but it can be a window , a popup , a web application, or even a part of a page such as a frame or an iframe.
Each browsing context has an origin (that of the active document) and an ordered history of previously displayed documents. Communication and resource sharing between browsing contexts is constrained, in particular between cross-origin contexts. For example, a BroadcastChannel can only be opened and used to communicate between same-origin contexts.
A browsing context may be part of a browsing context group , which is a set of browsing contexts that share common contexts, such as history, cookies, storage mechanisms and so on. The browsing contexts within a group retain references to each other, and therefore, can inspect each other's global objects and post messages to each other.
By default, a document opened in a browser context group is opened in the same group, whether or not it is cross-origin or same-origin. The Cross-Origin-Opener-Policy can be used to control whether the document is instead opened in its own new browsing context group and cross-origin isolated from other contexts (in particular cross-origin contexts). This can mitigate the risk of cross-origin attacks and the side-channel attacks referred to as XS-Leaks.
In this article
See also
- Related glossary terms: