While researching an answer for T259308 I noticed that dialog close events (`dialog-insert`, `dialog-done`, `dialog-abort`, etc) are all getting logged twice.
See: {F32374942}
=== Testing instructions
1. Make a sandbox page with wikitext containing various nodes [i]
2. Edit it using the trackdebug=1 URL parameter
3. Cause the edit-dialog for these nodes to be opened by focusing them and clicking the "Edit" button in their inspector
4. Close the edit-dialog either with the X or by applying changes
5. ✅Observe that the dialog close event (`dialog-abort`/`dialog-done`) only appears in the console **once**:
{F32377200}
Can also try adding a new node via the "insert" menu, but it doesn't exercise any particularly different code-paths.
(Everything but the link in the sample wikitext is a node. The link is there just to prove there aren't any regressions for non-node dialogs.)
---
i. Sample wikitext:
```[[File:Foo Fighters Live 21.jpg|thumb|Foo]]
[[foo]] {{Foo}} <ref>Foo.</ref><!-- Foo -->```