gnome-shell/js/ui/status
Daniel van Vugt c5b18ee66a status/network: Ensure the Cancel button passes undefined to close()
The parameter to `ModalDialog.close(timestamp)` is optional. But when
invoked via the network dialog's Cancel button it was receiving an
implicit parameter value that's definitely not a timestamp:

```
[0x560f18af0c50 StButton.modal-dialog-linked-button:first-child hover ("Cancel")]
```

And as of today (or gjs >= 1.67.3) that's reported as an error:
```
JS ERROR: Error: Argument timestamp: value is out of range for uint32
popModal@resource:///org/gnome/shell/ui/main.js:638:12
popModal@resource:///org/gnome/shell/ui/modalDialog.js:206:14
close@resource:///org/gnome/shell/ui/modalDialog.js:179:14
```
and so you can't Cancel the dialog anymore.

Make sure `ModalDialog.close()` receives an `undefined` timestamp it
knows how to handle.

Fixes: https://bugs.launchpad.net/bugs/1918666
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1757>
2021-03-15 18:19:04 +08:00
..
accessibility.js accessibility/keyboard: Align the panelMenu button style 2021-02-04 20:08:29 +00:00
bluetooth.js status/bluetooth: Fix label for >1 connected devices 2020-08-24 15:37:08 +00:00
brightness.js status: Pass scroll events to volume and brightness sliders 2020-05-18 11:30:28 +00:00
dwellClick.js status/dwellClick: Remove menu arrow 2021-02-01 11:40:03 +00:00
keyboard.js accessibility/keyboard: Align the panelMenu button style 2021-02-04 20:08:29 +00:00
location.js environment: Add Math.clamp 2020-06-03 12:55:53 -03:00
network.js status/network: Ensure the Cancel button passes undefined to close() 2021-03-15 18:19:04 +08:00
nightLight.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
power.js power: Fix icon when discharging at 100% 2020-05-26 21:27:42 +02:00
remoteAccess.js remoteAccess: Ignore all but the screen record handles on X11 2020-10-13 21:45:59 +00:00
rfkill.js rfkill: Always sync state on construction 2020-08-02 19:57:11 +00:00
system.js status/system: Add separate 'Restart' item 2020-08-10 15:36:26 +00:00
thunderbolt.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
volume.js status/volume: Allow changing input volume by scrolling 2021-01-14 01:13:17 +01:00