Files
sousa-gecko/docshell/test/browser/page_with_closewatcher.html
T
Keith Cirkel bef518acaa Bug 1966738 - Part 2: Expose if there is an active CloseWatcher to the UI r=reusable-components-reviewers,mstriemer
This uses a new HasActiveCloseWatcher boolean field to allow owners of
the Window process to discover when an active CloseWatcher has been
established in the DOM. As CloseWatchers are added the boolean is
flipped to true, and will only flip back to false when there are no
active CloseWatchers left (which can be as many as two close gestures to
clear the list of active CloseWatchers).

Differential Revision: https://phabricator.services.mozilla.com/D254529
2025-06-26 16:17:34 +00:00

10 lines
190 B
HTML

<html>
<head> <meta charset="utf-8"> </head>
<body>
This page has a script which establishes a CloseWatcher.
<script>
new window.CloseWatcher()
</script>
</body>
</html>