Commit Graph
219 Commits
Author SHA1 Message Date
Lars Eggert 460247782e Bug 2028356 - Add fast-path to skip proxy resolution when system proxy is not configured r=kershaw,necko-reviewers
Adds `systemProxyDirect` to `nsISystemProxySettings` to cheaply determine
whether the system proxy is effectively direct (no proxy, no PAC, no WPAD).

`IsEffectivelyDirect()` on `nsIProtocolProxyService2` returns true when no
proxy is configured and no filters are registered. `nsHttpChannel` uses
this to skip `ResolveProxy()` entirely, starting DNS prefetch earlier.
`Resolve_Internal` also uses `systemProxyDirect` to skip per-URL system
proxy queries when the system reports no proxy configured.

Kill-switch pref: `network.proxy.fast_path_system_direct`.

Differential Revision: https://phabricator.services.mozilla.com/D291401
2026-04-08 14:26:57 +00:00
Sylvestre Ledru a22215a2f9 Bug 2023419 - Remove Emacs/Vim modelines from netwerk/ r=emilio,cookie-reviewers,valentin
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287861
2026-03-17 12:06:31 +00:00
serge-sans-paille 9e71cda8ea Bug 2020585 - Replace copy assignment by move assignment in netwerk/ r=cookie-reviewers,valentin
Commit automatically generated through clang-tidy's
performance-use-std-move new pass.

- OriginAttributes benefits from being moved.
- nsComPtr benefits from being moved.

Differential Revision: https://phabricator.services.mozilla.com/D285672
2026-03-03 22:34:01 +00:00
Kershaw Chang a85d255383 Bug 2004918 - Add nsIProxyInfo::ALWAYS_TUNNEL_VIA_PROXY flag, r=sstreich,necko-reviewers,ip-protection-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D275606
2026-01-13 13:54:55 +00:00
Serban Stanca 0f009118c8 Revert "Bug 2004918 - Remove nsHttpConnection::RequestDone to prevent premature H2 tunnel close, r=necko-reviewers,valentin" for causing mochitests failures in browser_IPPChannelFilter.js.
This reverts commit 805fffea42.

This reverts commit b4b41e381b.
2026-01-06 17:45:10 +00:00
Kershaw Chang b4b41e381b Bug 2004918 - Add nsIProxyInfo::ALWAYS_TUNNEL_VIA_PROXY flag, r=sstreich,necko-reviewers,ip-protection-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D275606
2026-01-06 16:07:33 +00:00
Serban Stanca 010a04b562 Revert "Bug 2004918 - Remove nsHttpConnection::RequestDone to prevent premature H2 tunnel close, r=necko-reviewers,valentin" for causing build bustages in nsProxyInfo.cpp.
This reverts commit 42e92f7703.

This reverts commit f933e64c34.
2026-01-06 12:01:37 +00:00
Kershaw Chang f933e64c34 Bug 2004918 - Add nsIProxyInfo::ALWAYS_TUNNEL_VIA_PROXY flag, r=sstreich,necko-reviewers,ip-protection-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D275606
2026-01-06 11:17:12 +00:00
Valentin Gosu 8893737b3a Bug 1998894 - Rename pathTemplate to masqueTemplate r=robwu,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D271748
2025-11-09 22:30:57 +00:00
serge-sans-paille bbdcf56518 Bug 1993127 - Remove unused inclusion of Attributes.h from netwerk/* r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D269717
2025-10-24 13:07:23 +00:00
serge-sans-paille 1667ec582b Bug 1995723 - Remove unused inclusion of mozilla/ArrayUtils.h r=necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,firefox-svg-reviewers,layout-reviewers,gstoll,canaltinova,bytesized,alwu,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D269573
2025-10-23 07:30:37 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Valentin Gosu 42ea6dd0b4 Bug 1985952 - Use "masque" for proxyInfo type r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D266155
2025-09-26 07:57:36 +00:00
Narcis Beleuzu e3edc0d851 Revert "Bug 1985952 - Use "masque" for proxyInfo type r=necko-reviewers,kershaw" for causing bustages on nsProxyInfo.cpp
This reverts commit f2268143f4.

This reverts commit 5752fd752f.

This reverts commit 6d8c154668.

This reverts commit 94fe538e24.

This reverts commit d251e074c4.
2025-09-25 21:08:32 +00:00
Valentin Gosu f2268143f4 Bug 1985952 - Use "masque" for proxyInfo type r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D266155
2025-09-25 20:02:32 +00:00
agoloman a8577afeaf Revert (Bug 1985952, Bug 1986006) - for causing build bustages @TestHttp3ConnectUDPStream.cpp.
This reverts commit 801d397d49.

Revert "Bug 1985952 - Fix test failures, r=necko-reviewers,valentin"

This reverts commit 2ddd6e769e.

Revert "Bug 1985952 - Add basic tests for HTTP/3 proxy, r=necko-reviewers,valentin"

This reverts commit a09fd39012.

Revert "Bug 1986006 - update linux hostutils, r=mxinden"

This reverts commit abc33785b2.

Revert "Bug 1986006 - implement HTTP/3 HTTP CONNECT and HTTP/3 connect-udp proxy server r=necko-reviewers,valentin"

This reverts commit 7643ed4734.
2025-09-25 15:57:13 +00:00
Valentin Gosu 801d397d49 Bug 1985952 - Use "masque" for proxyInfo type r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D266155
2025-09-25 15:09:52 +00:00
Kershaw Chang ca03044bfe Bug 1835615 - Remove connect-udp proxy type, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D264540
2025-09-22 10:51:09 +00:00
Kershaw Chang 04b45e3537 Bug 1978803 - Add alpn attribute in proxy info, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D262827
2025-09-22 10:50:47 +00:00
Kershaw Chang cbe1756072 Bug 1977338 - Make nsIProxyInfo support connect-tcp and connect-udp, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D257228
2025-09-22 10:50:21 +00:00
Kershaw Chang 5555349f12 Bug 1943804 - Disallow speculative connections that lack callbacks when proxy filters are registered, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245453
2025-04-28 21:05:04 +00:00
Alexandru Marc 0e467518b7 Backed out 2 changesets (bug 1943804) for causing xpcshell failures @ test_ext_proxy_speculative.js
Backed out changeset d4c83c44d6e2 (bug 1943804)
Backed out changeset 4d793c8aade9 (bug 1943804)
2025-04-28 15:21:28 +03:00
Kershaw Chang 1c463fa508 Bug 1943804 - Disallow speculative connections that lack callbacks when proxy filters are registered, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245453
2025-04-28 11:18:56 +00:00
pstanciu 6333a0d9a2 Backed out 2 changesets (bug 1943804) for cauzing lint failures CLOSED TREE
Backed out changeset 779ff79f5223 (bug 1943804)
Backed out changeset f184a6c17119 (bug 1943804)
2025-04-28 13:21:37 +03:00
Kershaw Chang 11d4e22fb2 Bug 1943804 - Disallow speculative connections that lack callbacks when proxy filters are registered, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245453
2025-04-28 09:43:01 +00:00
Valentin Gosu 3a776523ec Bug 1937367 - Extra proxy logging r=necko-reviewers,kershaw
Also removes unused nsAsyncBridgeRequest

Differential Revision: https://phabricator.services.mozilla.com/D238488
2025-02-17 17:35:12 +00:00
Valentin Gosu c12f3a139d Bug 1854324 - Don't proxy loopback URLs even if proxyFilter says so r=necko-reviewers,jesup,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D237187
2025-02-11 11:00:01 +00:00
Manuel Bucher acacdfe55c Bug 1741375 - Proxy DNS by default when using SOCKS v5 r=necko-reviewers,extension-reviewers,kershaw,perftest-reviewers,robwu,sparky
Initially reported and discussed in Bug 610896.

The simple solution of just flipping the pref `network.proxy.socks_remote_dns`
is risky due to potentially breaking SOCKS4 proxy users.  Proxying
DNS on SOCKS4 isn't supported.  Therefore we speak the incompatible
SOCKS4a protocol when `socks_remote_dns` is enabled, potentially
breaking users setup.

To keep backwards compatibility on SOCKS4 proxy users, that don't have
SOCKS4a support, the pref `network.proxy.socks_remote_dns` is split into
two prefs:

* `network.proxy.socks_remote_dns`: remote DNS for SOCKS4
* `network.proxy.socks5_remote_dns`: remote DNS for SOCKS5.

This way we proxy DNS by default on SOCKS5 while keeping user settings
on SOCKS4.  This is a similar approach to the one described in
[Bug 610896 comment 17].

Proxying DNS in SOCKS4 by default is desireable (See [Bug 610896 comment 11]),
but out of scope for this patch.  [Telemetry] on proxy usage by socks
version indicated that changing the default for SOCKS4 is likely break
some users setup and needs to be taken with more care.

The default values of [proxyDNS] now defaults to true for SOCKS5 proxies.
When creating nsIProxyInfo objects of SOCKS4 proxies, the default value
false is kept.  Setting proxyDNS affects both SOCKS4 and SOCKS5 proxy by
modifying both `socks_remote_dns` and `socks5_remote_dns`.  Therefore no
extension breakage is expected.

The enterprise policy can also modify the new pref
`network.proxy.socks5_remote_dns`.

Follow up bugs filed while implementing:

* Bug 1890542 - Also disable Prefetch non-manual configurations of socks
                proxy
* Bug 1890554 - Use `ProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST` flag in
                `nsHttpChannel::GetProxyDNSStrategy`
* Bug 1890549 - nsHttpChannel implementation DNS resolve strategy for
                proxies incomplete
* Bug 1893670 - Proxy DNS by default for SOCK4 proxies. Defaulting to
                SOCKS4a

[Bug 610896 comment 17]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c17
[Bug 610896 comment 11]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c11
[Telemetry]: https://bugzilla.mozilla.org/show_bug.cgi?id=1741375#c27
[proxyDNS]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/settings#proxydns

Differential Revision: https://phabricator.services.mozilla.com/D207532
2024-05-21 11:55:26 +00:00
Andrew Creskey 3a9effd4ca Bug 1596935 - Add tests for rel="dns-prefetch" r=necko-reviewers,valentin
Provide a mechanism to allows dns prefetch via proxy (for mochi browser tests), testing only.
And ensure that we resolve the dns-prefetched domain.

Differential Revision: https://phabricator.services.mozilla.com/D206550
2024-04-17 13:54:06 +00:00
dylan 49d5f21cb7 Bug 621429 - Added button to allow WPAD while using system proxy settings. r=necko-reviewers,fluent-reviewers,settings-reviewers,kershaw,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183429
2024-03-08 04:38:55 +00:00
Jens Stutte c9c03bf530 Bug 1841586 - Use InsertElementSorted instead of nsTArray::Sort in nsProtocolProxyService::InsertFilterLink. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D182704
2023-07-04 11:20:54 +00:00
nicklas boman 4114a8d7f7 Bug 1724649 - Followup to remove #include plstr.h r=necko-reviewers,xpcom-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D177690
2023-05-15 14:53:02 +00:00
serge-sans-paille f56a268ae0 Bug 1733356 - Fix non-unified build errors in netwerk/ r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D170852
2023-02-28 10:20:16 +00:00
Cosmin Sabou 71d1c7f029 Backed out 3 changesets (bug 1733356) for causing several hybrid bustages.
Backed out changeset 5398605eb0af (bug 1733356)
Backed out changeset dead7940f720 (bug 1733356)
Backed out changeset 97bab99ef206 (bug 1733356)
2023-02-24 19:08:18 +02:00
serge-sans-paille f4e2e3d70e Bug 1733356 - Fix non-unified build errors in netwerk/ r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D170852
2023-02-24 10:41:25 +00:00
Norisz Fay be15095650 Backed out changeset 5876fd60bbe5 (bug 1733356) for causing bustages on Predictor.cpp CLOSED TREE 2023-02-24 12:09:07 +02:00
serge-sans-paille 960c7d3de4 Bug 1733356 - Fix non-unified build errors in netwerk/ r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D170852
2023-02-24 08:40:49 +00:00
Nika Layzell d940dc2323 Bug 1793463 - Part 5: Stop using contractids to fetch protocol handlers, r=necko-reviewers,xpcom-reviewers,webdriver-reviewers,whimboo,valentin,kmag
This patch replaces the previous ContractID-based lookup system for protocol
handlers, and replaces it with a new custom system in nsIOService. It will be
pre-populated with non-overridable static protocol handlers using the
StaticComponents infrastructure added in the previous part, and callers can
also dynamically register new protocol handlers at runtime.

This new system is intended to provide access to the default port and
non-dynamic protocol flags off-main-thread, by requiring these values to be
provided up-front as constants, rather than getting them from the xpcom
interface. The data is then guarded by an RWLock.

Callers which look up specific handlers by their contractID are not changed, as
the contract IDs for existing handlers have not been changed, so the lookup
will still succeed.

This change as-implemented breaks the nsGIOProtocolHandler on Linux, as it
removes the special code which would try to use that handler for some
protocols. This will be fixed in a later part by making the
nsGIOProtocolHandler use the dynamic registration APIs to register and
un-register protocol handlers at runtime in response to the GIO pref.

Differential Revision: https://phabricator.services.mozilla.com/D162804
2022-12-01 15:43:19 +00:00
Marian-Vasile Laza bf84df153e Backed out 7 changesets (bug 1793463) for causing bustages on nsIOService.cpp. CLOSED TREE
Backed out changeset 47c3acb30de2 (bug 1793463)
Backed out changeset 71afe900eb17 (bug 1793463)
Backed out changeset d168599a269e (bug 1793463)
Backed out changeset d0f18d300818 (bug 1793463)
Backed out changeset a116e6f089f2 (bug 1793463)
Backed out changeset eba1123c8b56 (bug 1793463)
Backed out changeset 68a3eb8a3057 (bug 1793463)
2022-12-01 02:30:02 +02:00
Nika Layzell 0b42e21ba9 Bug 1793463 - Part 5: Stop using contractids to fetch protocol handlers, r=necko-reviewers,xpcom-reviewers,webdriver-reviewers,whimboo,valentin,kmag
This patch replaces the previous ContractID-based lookup system for protocol
handlers, and replaces it with a new custom system in nsIOService. It will be
pre-populated with non-overridable static protocol handlers using the
StaticComponents infrastructure added in the previous part, and callers can
also dynamically register new protocol handlers at runtime.

This new system is intended to provide access to the default port and
non-dynamic protocol flags off-main-thread, by requiring these values to be
provided up-front as constants, rather than getting them from the xpcom
interface. The data is then guarded by an RWLock.

Callers which look up specific handlers by their contractID are not changed, as
the contract IDs for existing handlers have not been changed, so the lookup
will still succeed.

This change as-implemented breaks the nsGIOProtocolHandler on Linux, as it
removes the special code which would try to use that handler for some
protocols. This will be fixed in a later part by making the
nsGIOProtocolHandler use the dynamic registration APIs to register and
un-register protocol handlers at runtime in response to the GIO pref.

Differential Revision: https://phabricator.services.mozilla.com/D162804
2022-11-30 18:13:43 +00:00
Valentin Gosu e86d5ad31c Bug 1549678 - Add pref whether to retry failed proxies r=necko-reviewers,kershaw
This is a regression from:
Bug 1494364 - don't prune proxy if all non-direct proxies are disabled

This pref preserves existing behaviour (and regression) but allows users to opt out of this behaviour which might cause slow browsing when the proxies are not responsive.

We might implement a proper fix for this problem in Bug 1791655.

Differential Revision: https://phabricator.services.mozilla.com/D157825
2022-09-22 08:37:37 +00:00
Fabrice Desré e29be44cb7 Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel fc724b92fc Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD 2022-08-03 18:55:00 +03:00
Andreea Pavel eda47f3911 Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00