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
10 lines
190 B
HTML
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>
|