gnome-shell/js/ui/components
Philip Withnall 5f223e0bd8 polkitAgent: Disconnect session signal handlers when destroying session
Otherwise the session could outlive the dialogue, emit a subsequent
signal, and its callback would reference finalised objects/widgets from
the dialogue. The PolkitSession object is implemented by
libpolkit-gobject, so we have no guarantees about its reference counting
— the session object could keep itself alive in another thread, or be a
singleton. In all likelihood, the session hangs around for longer than
the dialogue due to differences in when the two objects are garbage
collected.

This can be triggered by running `pkexec true` from a gnome-terminal
window, then calling `pkill pkexec` from another terminal (on a
different VT or via SSH). This causes the dialogue to be cancelled by
polkitd.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/357
2019-01-24 14:48:48 +00:00
..
__init__.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
automountManager.js automountManager: Port to MetaSoundPlayer for emitting sounds 2019-01-09 23:09:18 +00:00
autorunManager.js dbus: Move all interface descriptions into the resource 2018-09-17 07:34:49 +00:00
keyring.js animation: Optionally animate spinner start/stop 2019-01-16 17:44:42 +00:00
networkAgent.js networkAgent: Ask for wifi secrets in the hints paremeter 2018-09-26 00:34:22 +00:00
polkitAgent.js polkitAgent: Disconnect session signal handlers when destroying session 2019-01-24 14:48:48 +00:00
telepathyClient.js cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00