Mike Hommey
b225d730f0
Bug 1765474 - Fix unused-but-set-variable warnings in netwerk/. r=necko-reviewers,dragana
...
netwerk/protocol/http/Http2Compression.cpp:326:12: error: variable 'removedCount' set but not used [-Werror,-Wunused-but-set-variable]
uint32_t removedCount = 0;
^
netwerk/streamconv/converters/nsDirIndexParser.cpp:376:11: error: variable 'numItems' set but not used [-Werror,-Wunused-but-set-variable]
int32_t numItems = 0;
^
Differential Revision: https://phabricator.services.mozilla.com/D144144
2022-04-22 01:25:07 +00:00
Chris Peterson
7ed9829302
Bug 1763310 - Report ARM64 Windows 11+ as "x86_64" (and continue to report Windows 10 as "x86"). r=hsivonen,necko-reviewers,dragana
...
Windows 11+ supports x86_64 emulation, but Windows 10 only supports x86 emulation.
Advantages of reporting ARM64 Windows 11+ as x86_64:
* Sites that offer software downloads will know that the client is capable of running x86_64 software.
* Reduced fingerprinting entropy because ARM64 Windows 11+ users' UA string will match the UA string of the ~80% of Windows Firefox users running x86_64 instead of the ~20% running x86.
* Some sites disable features for 32-bit clients, such as Google Meet requiring 64-bit to use wasm visual effects:
https://github.com/WICG/ua-client-hints/issues/217#issuecomment-878537336
https://support.google.com/meet/answer/10058482?expand_all_zippies=true#requirements&zippy=%2Cwhy-cant-i-use-the-change-background-option%2Crequirements-to-apply-visual-effects-on-computer
The browser_navigator.js test is not actually run on ARM64 Windows in automation, but these test changes would make the test pass on ARM64 Windows 10 and 11 if this test ever is run.
Differential Revision: https://phabricator.services.mozilla.com/D143010
2022-04-07 01:43:20 +00:00
Dana Keeler
6502ebf4b6
Bug 1608307 - remove redundant flags parameters from nsISiteSecurityService r=jschanck,necko-reviewers,kershaw
...
Before this patch, nsISiteSecurityService APIs took "flags" parameters that
differentiated private contexts from not private contexts. However, these
parameters were redundant with respect to origin attributes, which led to some
confusion for consumers of these APIs. This patch removes these parameters in
favor of using origin attributes.
Differential Revision: https://phabricator.services.mozilla.com/D142901
2022-04-06 17:37:23 +00:00
Kershaw Chang
87ce1ca8c2
Bug 1754744 - isolating TLS handshake code, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141093
2022-04-06 12:21:01 +00:00
Jan Rio Krause
057785b6d5
Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
...
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Emilio Cobos Álvarez
6dc370ab2b
Bug 1761512 - Remove unneeded special case in nsDataHandler::CreateNewURI. r=dragana,necko-reviewers
...
NS_NewURI (its only caller) deals with this generically in:
https://searchfox.org/mozilla-central/rev/3f782c2587124923a37c750b88c5a40108077057/netwerk/base/nsNetUtil.cpp#1832
Differential Revision: https://phabricator.services.mozilla.com/D142099
2022-04-01 11:46:11 +00:00
Kagami Sascha Rosylight
1e83450022
Bug 1635428 - Part 1: Move mozilla::IsDevelopmentBuild to Omnijar.h r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D142569
2022-03-31 23:36:25 +00:00
criss
ea772f6e4b
Backed out changeset 3cef8943e0c6 (bug 1635428) for causing build bustages on nsMacUtilsImpl.cpp. CLOSED TREE
2022-04-01 01:39:33 +03:00
Kagami Sascha Rosylight
7913ea573c
Bug 1635428 - Part 1: Move mozilla::IsDevelopmentBuild to Omnijar.h r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D142569
2022-03-31 22:05:55 +00:00
edguloien
002514a242
Bug 1754179 - log stack of cancelled request in parent process. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141403
2022-03-30 12:40:36 +00:00
Norisz Fay
5b15f799e4
Backed out changeset a7b879827137 (bug 1754744) for causing build bustages on Unified_cpp_protocol_http4.obj CLOSED TREE
2022-03-29 13:15:13 +03:00
Kershaw Chang
dc33837cad
Bug 1754744 - isolating TLS handshake code, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141093
2022-03-29 08:02:30 +00:00
Butkovits Atila
484694781e
Backed out changeset 36943e34018f (bug 1754744) for causing bustages at TlsHandshaker.cpp. CLOSED TREE
2022-03-28 20:11:45 +03:00
Kershaw Chang
7d183035e3
Bug 1754744 - isolating TLS handshake code, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141093
2022-03-28 15:27:27 +00:00
Randell Jesup
d84209dc54
Bug 1760660 - WebSocketChannel thread-safety annotations r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141673
2022-03-25 15:37:49 +00:00
Kershaw Chang
f63cffee0e
Bug 1755902 - P2: Support port-prefixed query for HTTPS RR, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141718
2022-03-25 12:15:03 +00:00
Dragana Damjanovic
f22292d0e4
Bug 1755767 - Make sure not to call HandshakeDone after Close() is calleed r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141957
2022-03-24 12:35:37 +00:00
Randell Jesup
a6b5ab7c64
Bug 1207753 - nsHttpConnectionMgr thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141611
2022-03-23 14:56:01 +00:00
Kershaw Chang
eba077ec45
Bug 1760894 - Change MOZ_RELEASE_ASSERT back to MOZ_ASSERT, r=necko-reviewers,dragana
...
This is a wallpaper patch, not a real fix.
This assertion was accidentally changed to `MOZ_RELEASE_ASSERT` in D135727.
Differential Revision: https://phabricator.services.mozilla.com/D141834
2022-03-23 12:20:30 +00:00
Dragana Damjanovic
fb6410005b
Bug 1754737 - We do not need to keep info about the use of a tunnel in the state. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D138890
2022-03-23 10:31:32 +00:00
Dragana Damjanovic
956d3cbb91
Bug 1754737 - Add some structure to nsHttpConnection: r=necko-reviewers,kershaw
...
- nsHttpConnection now has states. Currently only proxy setup phase is added to the states.
- The states are used in nsHttpConnection::OnSocketWritable tto make the code more understandable.
- Some pieces of selfcontained code are extracted from nsHttpConnection::OnHeadersAvailable, i.e. HandleTunnelResponse and HandleWebSocketResponse
Differential Revision: https://phabricator.services.mozilla.com/D138714
2022-03-23 10:31:32 +00:00
smolnar
bb7ad20561
Backed out 2 changesets (bug 1754737) for causing linux build bustage in netwerk/protocol/http/nsHttpConnection. CLOSED TREE
...
Backed out changeset 0377fb241cc9 (bug 1754737)
Backed out changeset 25650cac85f4 (bug 1754737)
2022-03-23 02:55:01 +02:00
Dragana Damjanovic
d9363b7eab
Bug 1754737 - We do not need to keep info about the use of a tunnel in the state. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D138890
2022-03-22 22:22:24 +00:00
Dragana Damjanovic
3e3e3247b8
Bug 1754737 - Add some structure to nsHttpConnection: r=necko-reviewers,kershaw
...
- nsHttpConnection now has states. Currently only proxy setup phase is added to the states.
- The states are used in nsHttpConnection::OnSocketWritable tto make the code more understandable.
- Some pieces of selfcontained code are extracted from nsHttpConnection::OnHeadersAvailable, i.e. HandleTunnelResponse and HandleWebSocketResponse
Differential Revision: https://phabricator.services.mozilla.com/D138714
2022-03-22 22:22:24 +00:00
Dragana Damjanovic
28ef5588e1
Bug 1752270 - Retry a request that failed with 408 if HTTP/2 is used. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140827
2022-03-22 21:12:21 +00:00
Randell Jesup
a7371f587e
Bug 1760657 - nsHttpResponseHead thread-safety annotations r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141667
2022-03-22 13:57:20 +00:00
Randell Jesup
c1a193ccd2
Bug 1760649 - HttpChannelChild thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141657
2022-03-21 20:01:42 +00:00
Kagami Sascha Rosylight
d6416abbe8
Bug 1759690 - Part 1: Support ErrorResult on ThenWithCycleCollectedArgs r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D141160
2022-03-21 16:45:35 +00:00
Randell Jesup
c5917ed65a
Bug 1207753: Basic thread-safety annotations to quiet errors until real annotations land r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D141062
2022-03-17 18:39:15 +00:00
Nika Layzell
56e6865c9c
Bug 1759609 - Make IPDL typedef generation happen non-recursively, r=ipc-reviewers,mccr8
...
Before this change, the collection of typedefs to include in IPDL
protocols was being performed in the _DecorateWithCXXStuff pass of
lower.py. This pass iterates over all included headers, including
recursively, so will also visit headers included by headers you import.
The recursive behaviour caused issues because importing and
forward-declaring imported types is non-recursive, looking at exported
types only one layer deep. This could lead to typedefs being generated
in IPDL protocols referencing types which could never be named by the
IPDL code, and which had no definition in c++, leading to build errors.
This patch changes the logic to instead happen during the
_GenerateProtocolActorCode pass of lower.py, which is also where
required forward declarations and imports are handled, allowing us to
keep the set of typedefs generated more tightly in sync with the actual
set of types available to the actor.
This required some changes in client code which was relying on
incorrectly generated typedefs, however these types have now been fixed.
Differential Revision: https://phabricator.services.mozilla.com/D141032
2022-03-17 18:09:36 +00:00
Chris Peterson
80561e26dc
Bug 1731523 - Part 2: Remove "Firefox 100" Nimbus experiment code. r=necko-reviewers,kershaw
...
This Nimbus experiment code was added in bug 1719070 to test if sending a "Firefox 100" UA string causes any major webcompat problems.
The moz.build change was added in bug 1724635 to fix a Thunderbird build break. MOZ_BUILD_APP_IS_BROWSER = true when building Firefox, false when building Thunderbird.
Differential Revision: https://phabricator.services.mozilla.com/D126408
2022-03-17 02:18:12 +00:00
Randell Jesup
fcaf70841e
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli
2390d257e6
Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE
2022-03-16 18:32:51 +02:00
Randell Jesup
4b033a5256
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila
927ad62c6a
Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE
2022-03-16 14:38:14 +02:00
Randell Jesup
7d4b5fae04
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
edguloien
889095f70d
Bug 1757793 - Simplify http2 prefs code by removing two kinds of http2. r=dragana,necko-reviewers
...
Depends on D139941
Differential Revision: https://phabricator.services.mozilla.com/D140340
2022-03-15 08:54:02 +00:00
edguloien
7b9d1e2937
Bug 1752621 - Improve http/2 prefs: changing spdy prefs to http2, making them static prefs and updating the tests. r=dragana,necko-reviewers,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D139941
2022-03-15 08:54:01 +00:00
smolnar
fb8877ceea
Merge autoland to mozilla-central. a=merge
2022-03-10 19:22:39 +02:00
Dragana Damjanovic
bc6036ccab
Bug 1754742 - Split TunnelUtils file. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140039
2022-03-10 11:49:09 +00:00
Kershaw Chang
98b8e2a94c
Bug 1758132 - Remove NS_ASSERT_OWNINGTHREAD check, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D140346
2022-03-09 08:53:28 +00:00
Nika Layzell
05dc5e0d76
Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8
...
Automatically generated rewrites of all ParamTraits and IPDLParamTraits
implementations in-tree to use IPC::Message{Reader,Writer}.
Differential Revision: https://phabricator.services.mozilla.com/D140004
2022-03-04 15:39:41 +00:00
Nika Layzell
14e4d6be72
Bug 1754037 - Part 2: Forward declare Message{Reader,Writer} where Message is forward declared, r=ipc-reviewers,mccr8
...
This will allow the types to be more easily automatically substituted in place
of `IPC::Message`, as the type will already be declared in places it is used.
Differential Revision: https://phabricator.services.mozilla.com/D140000
2022-03-04 15:39:39 +00:00
Dragana Damjanovic
d2b7eea8fb
Bug 1753002 - Change the diagnostic assert to a debug assert until bug 1757910 is fixed. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140182
2022-03-03 13:48:27 +00:00
Kershaw Chang
df78ebf179
Bug 1756709 - Remove NS_HTTP_ALLOW_KEEPALIVE for AltSvcTransaction, r=necko-reviewers,dragana
...
With this patch, we'll skip the `RestrictConnections` cehck when creating a speculative connection for Alt-svc validation.
Differential Revision: https://phabricator.services.mozilla.com/D139952
2022-03-03 13:35:46 +00:00
Randell Jesup
5d500de7b0
Bug 1757427: nsHttpResponse/Request IPC cleanup r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D139867
2022-03-01 13:00:14 +00:00
Valentin Gosu
0f858ab5ad
Bug 1675054 - Enable brotli encoding for trustworthy URLs, not just for https r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D95855
2022-02-25 16:21:26 +00:00
Kershaw Chang
cbf6f791da
Bug 1600309 - P2: Don't use socket porcess when it crashes too many times, r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D134904
2022-02-23 11:55:59 +00:00
Kershaw Chang
5874b30207
Bug 1600309 - P1: Restart socket proces after crash, r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D134903
2022-02-23 11:55:58 +00:00
Noemi Erli
22a73e7913
Backed out 2 changesets (bug 1754737) for causing failures in nsHttpConnection.cpp CLOSED TREE
...
Backed out changeset 0cc869e52a2f (bug 1754737)
Backed out changeset 13ab95d47842 (bug 1754737)
2022-02-22 18:19:34 +02:00