extensionDownloader: Stop setting proxy resolver explicitly
Quoting the documentation: In libsoup 2.44 and later, you can set the session's “proxy-resolver” property to the resolver returned by g_proxy_resolver_get_default() to get the same effect. Note that for "plain" SoupSessions (ie, not SoupSessionAsync or SoupSessionSync), this is done for you automatically. libsoup 2.44 was released in 2013, so we can safely assume that Soup is new enough to handle this for us. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1940>
This commit is contained in:
parent
50a14caf1b
commit
f14960ff03
@ -253,8 +253,4 @@ class InstallExtensionDialog extends ModalDialog.ModalDialog {
|
|||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
_httpSession = new Soup.Session({ ssl_use_system_ca_file: true });
|
_httpSession = new Soup.Session({ ssl_use_system_ca_file: true });
|
||||||
|
|
||||||
// See: https://bugzilla.gnome.org/show_bug.cgi?id=655189 for context.
|
|
||||||
// _httpSession.add_feature(new Soup.ProxyResolverDefault());
|
|
||||||
Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault());
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user