mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue