From b7079b8f2f3f4f48bfc84df75a4327ab6cd122a9 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Thu, 25 Apr 2024 19:33:09 +0200 Subject: [PATCH] portalHelper: Fix handling of invalid TLS certificates WebKitGTK 6.0 moved allow_tls_certificate_for_host() from WebContext to NetworkSession. This was not adjusted here when the portal helper was switched from 4.0 to 6.0. https://github.com/WebKit/WebKit/commit/2d1b53b211b43047b94b7d2ef8a3907f00e724fb Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7597 Part-of: --- js/portalHelper/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 7000089fa..1716dc979 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -207,7 +207,7 @@ class PortalWindow extends Gtk.ApplicationWindow { _onLoadFailedWithTlsErrors(view, failingURI, certificate, _errors) { this._secureMenu.setSecurityIcon(PortalHelperSecurityLevel.INSECURE); let uri = GLib.Uri.parse(failingURI, HTTP_URI_FLAGS); - this._webContext.allow_tls_certificate_for_host(certificate, uri.get_host()); + this._networkSession.allow_tls_certificate_for_host(certificate, uri.get_host()); this._webView.load_uri(failingURI); return true; }