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.
2d1b53b211
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7597
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3284>
This commit is contained in:
parent
fb74d56258
commit
b7079b8f2f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user