[polari] thumbnailer: Handle authentication requests
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] thumbnailer: Handle authentication requests
- Date: Wed, 18 Dec 2019 01:53:33 +0000 (UTC)
commit ac8e5e4be1a387630a93bcd720192938cb0018ea
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Dec 16 03:20:48 2019 +0100
thumbnailer: Handle authentication requests
If a URL requires authentication, we currently wait indefinitely
as nothing provides the requested credential.
Fix this by cancelling all authentication requests immediately.
https://gitlab.gnome.org/GNOME/polari/merge_requests/139
src/thumbnailer.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/thumbnailer.js b/src/thumbnailer.js
index 3640280..34eddd5 100644
--- a/src/thumbnailer.js
+++ b/src/thumbnailer.js
@@ -28,6 +28,11 @@ let PreviewWindow = GObject.registerClass({
});
this.add(this._view);
+ this._view.connect('authenticate', (view, request) => {
+ request.cancel();
+ return true;
+ });
+
this._view.connect('notify::is-loading',
this._onLoadingChanged.bind(this));
this._view.load_uri(this.uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]