Skip to Content
Platform.Ontology

Other tabs and windows content

A page cannot see what other tabs show, only whether its own tab is visible.

Blocked for appsDevice detailsBrowser stateWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionNote
ChromeNot supportedNot availableNone
EdgeNot supportedNot availableNone
FirefoxNot supportedNot availableNone
SafariNot supportedNot availableNone
Safari on iPhoneNot supportedNot availableNone
Chrome on AndroidNot supportedNot availableNone
Samsung InternetNot supportedNot availableNone

How a site asks for it

APInone
How access is grantednot-exposed
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnot applicable
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: none
How often: static per session

FieldTypeUnitRangePrecision
proxy: document.visibilityStatestringNonevisible or hidden for this tabNot listed
proxy: BroadcastChannel and storage eventsstringNonesame-origin tabs onlyNot listed
proxy: document.hasFocus()stringNonewhether this tab is activeNot 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

TypeExampleApps
videoA video site pauses playback when you switch tabs, but cannot see what you switched to.YouTube
gamesA browser game pauses when the tab is hidden and has no view of other tabs.None named
adsAn ad vendor measures if its ad was in view and cannot see other tabs.None named
securityA malicious page wanted to read your bank tab and is blocked by site isolation.None named
productivityA web email app syncs across its own open tabs using a shared channel.Gmail
educationAn exam site detects that you left its tab and records that, but not what you opened.None named
analyticsA 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

Good uses and abuse

Legitimate uses

  • None: the browser deliberately withholds it

Known abuse

  • Sites attempt proxies to recover it

Scores

ScoreValueMeaning
Sensitivity4 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bits0Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page