Other tabs and windows content
A page cannot see what other tabs show, only whether its own tab is visible.
In one line
Can't see what other tabs or windows show
A page cannot see what other tabs show, only whether its own tab is visible.
Same-origin policy and site isolation block it. Proxies: Page Visibility and focus say if this tab is hidden, BroadcastChannel talks to same-origin tabs, and Window Management lists screens (prompt). Number of open tabs is unknown.
What it can and can't do
What the user does: Nothing. Pages have no way to ask for this
It can
- Tell if its own tab is visible or hidden
- Talk to other tabs of the same site
- List your screens after you allow it in Chrome or Edge
- Pause itself when the tab is in the background
It cannot
- See other sites' content
- Count how many tabs you have open
- See titles or links of other tabs
- Break the walls between sites
Browser support
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Not supported | Not available | None |
| Edge | Not supported | Not available | None |
| Firefox | Not supported | Not available | None |
| Safari | Not supported | Not available | None |
| Safari on iPhone | Not supported | Not available | None |
| Chrome on Android | Not supported | Not available | None |
| Samsung Internet | Not supported | Not available | None |
How a site asks for it
| API | none |
| How access is granted | not-exposed |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | not applicable |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: none
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
proxy: document.visibilityState | string | None | visible or hidden for this tab | Not listed |
proxy: BroadcastChannel and storage events | string | None | same-origin tabs only | Not listed |
proxy: document.hasFocus() | string | None | whether this tab is active | Not listed |
Technical limits
- Cross-origin isolation
The story
What it is
A page cannot see what your other tabs show. It can only tell whether its own tab is visible.
For you
Your banking tab cannot be read by a shopping tab, even if they are open side by side. A site can only tell whether you are looking at it or have switched away.
For makers
Reading other tabs would expose logins and private data, so browsers wall them off. Sites can still see their own tab's visibility to pause video or count attention time. Same-site tabs can talk to each other.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | A video site pauses playback when you switch tabs, but cannot see what you switched to. | YouTube |
| games | A browser game pauses when the tab is hidden and has no view of other tabs. | None named |
| ads | An ad vendor measures if its ad was in view and cannot see other tabs. | None named |
| security | A malicious page wanted to read your bank tab and is blocked by site isolation. | None named |
| productivity | A web email app syncs across its own open tabs using a shared channel. | Gmail |
| education | An exam site detects that you left its tab and records that, but not what you opened. | None named |
| analytics | A news site counts how long its tab was visible to measure attention. | None named |
Risks
- Can still see that you switched away
What the platform says
- Chromium: Site Isolation. Chrome puts pages from different sites in separate processes so one site cannot read another's data.
- MDN: Page Visibility API. Docs describe how a page learns whether its own tab is visible.
Good uses and abuse
Legitimate uses
- None: the browser deliberately withholds it
Known abuse
- Sites attempt proxies to recover it
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | 0 | Rough identifying entropy, when known |
Related capabilities
Related
- Browsing history. Can't see which other sites you have visited
Sources
How well checked: Based on official documentation.