```js
new Notification("foo", { tag: "foo" }).onclose = console.log;
new Notification("bar", { tag: "foo" }).onshow = console.log;
```
With the above code, close fires before show on all other browsers/platforms: Firefox on macOS/Linux, Chrome on Windows/macOS/Linux, and Safari. Only Firefox on Windows fires close event first.
Perhaps this depends on the OS behavior, but I'd like to see why we behaves different when Chrome does not.
Bug 1890560 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
```js
new Notification("foo", { tag: "foo" }).onclose = console.log;
new Notification("bar", { tag: "foo" }).onshow = console.log;
```
With the above code, close fires before show on all other browsers/platforms: Firefox on macOS/Linux, Chrome on Windows/macOS/Linux, and Safari. Only Firefox on Windows fires close event first.
Perhaps this depends on the OS behavior, but I'd like to see why we behave different when Chrome does not.
```js
new Notification("foo", { tag: "foo" }).onclose = console.log;
new Notification("bar", { tag: "foo" }).onshow = console.log;
```
With the above code, close fires before show on all other browsers/platforms: Firefox on macOS/~~Linux~~XUL, Chrome on Windows/macOS/Linux, and Safari. Only Firefox on Windows fires close event first.
Perhaps this depends on the OS behavior, but I'd like to see why we behave different when Chrome does not.