browsersays

navigator.locks

The Web Locks interface coordinates tabs on the same site — which also means it can reveal that other tabs of that site are open.

Checking the browser you are reading this in…

Entry in question 3: What it can keep on your computer

What it is

A way for several tabs of the same site to take turns. One tab claims a named lock, does its work, and releases it; the others wait. Without it, two tabs syncing the same data can trample each other.

What a site can do with it

The coordination is the feature and the side effect is the signal: a site can list the locks currently held and see that another of its own tabs exists and is doing something. That is limited to that one site's own tabs, but it is more than most people would assume a web page can find out.

Check it yourself

Open your browser's developer tools, go to the console, and paste this. Nothing is sent anywhere; the answer comes from the browser you are reading this in.

!!navigator.locks

The full path recorded by the walk is navigator.locks, and that is the string the leaflet prints beside this entry.

What the answer is on an ordinary browser

Written by hand for each of the three engines, because a table generated from one sentence would be worth nothing to the person reading it.

Chrome
Present from Chrome 69.
Firefox
Present from Firefox 96.
Safari
Present from Safari 15.4.

If your browser is not present, the leaflet prints this instead of dimming the line: Not present. Sites coordinating between their own tabs have to use an older technique.

Where it sits in the leaflet

This is one of 6 entries in question 3, what it can keep on your computer. The leaflet reads all 42 entries in one press and prints each answer beside the question, with the property name next to it so you can check any line.

Read my browser · navigator.serviceWorker · navigator.protectedAudience