gnome-shell/js/gdm
Marco Trevisan (Treviño) c936ca3ea0 gdm: Don't try answering query if the user verifier has been deleted
Answering a query may be delayed to the moment in which we've not any
more messages in the queue, however this case can also happen just after
we've cleared the UserVerifier and in such case we'd have nothing to
answer, but we currently throw an error:

    JS ERROR: Exception in callback for signal: no-more-messages:
      TypeError: this._userVerifier is null
    answerQuery/signalId<@resource:///org/gnome/shell/gdm/util.js:249:17
    _emit@resource:///org/gnome/gjs/modules/core/_signals.js:133:47
    finishMessageQueue@resource:///org/gnome/shell/gdm/util.js:266:14
    _clearMessageQueue@resource:///org/gnome/shell/gdm/util.js:301:14
    clear@resource:///org/gnome/shell/gdm/util.js:223:14
    cancel@resource:///org/gnome/shell/gdm/util.js:205:18
    reset@resource:///org/gnome/shell/gdm/authPrompt.js:482:32
    cancel@resource:///org/gnome/shell/gdm/authPrompt.js:569:14
    vfunc_key_press_event@resource:///org/gnome/shell/gdm/authPrompt.js:128

So handle this case more gracefully keeping track of the current
cancellable and checking whether it is still valid before trying to answer
a query or do a delayed action.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1622>
2021-02-12 20:26:00 +00:00
..
authPrompt.js gdm: Limit verification cancellations to be conform to allowed-failures 2021-02-12 20:26:00 +00:00
batch.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
credentialManager.js credentialManager: Shut up a JS warning 2020-11-26 14:17:26 +01:00
loginDialog.js gdm: Limit verification cancellations to be conform to allowed-failures 2021-02-12 20:26:00 +00:00
oVirt.js gdm: Refactor oVirt to a generic CredentialManager interface 2020-07-04 08:11:49 +08:00
realmd.js realmd: Set login format to null on start and update if invalid 2019-09-09 19:28:18 +00:00
util.js gdm: Don't try answering query if the user verifier has been deleted 2021-02-12 20:26:00 +00:00
vmware.js gdm: Introduce vmware credential manager for pre-authenticated logins 2020-07-04 08:11:49 +08:00