Still needs explainer updates, and probably updates to the various security & privacy sections. But I'm putting this up to show that the basic idea is nice and relatively simple. /cc @bathos @jakearchibald in case you're curious.
This doesn't give the exact right semantics of "one free close watcher" that I wanted. Consider:
User clicks, opens sidebar. This creates a CloseWatcher.
Session is about to timeout. A dialog pops up, with no user interaction. This creates a close watcher, but that close watcher is grouped with the sidebar CloseWatcher.
User sends a close signal.
Result with this spec: This closes both the session inactivity dialog, and the sidebar, since they are grouped.
Desired result: This closes just the session inactivity dialog.
... instead of failing to create them. Fixes #19.
Still needs explainer updates, and probably updates to the various security & privacy sections. But I'm putting this up to show that the basic idea is nice and relatively simple. /cc @bathos @jakearchibald in case you're curious.
Preview | Diff