Uses getDisplayMedia — your browser shows its own picker (tab/window/screen) and a persistent recording indicator; you can stop sharing from that indicator at any time. Audio depends on what the picker offers. The stream is fully stopped when recording ends; the file stays in this tab until you download it — nothing is uploaded.