Manuel Bucher
09b6c321e4
Bug 1761242 - Make link asset parsing accessible in nsNetUtils.h r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D142053
2022-04-01 13:45:20 +00:00
Manuel Bucher
dc5bb9ccbc
Bug 1762156
- Move LinkHeader parsing to mozilla::net namespace in nsNetUtil.h r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D142461
2022-04-01 13:45:20 +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
Tim Huang
491c607938
Bug 1727301 - Part 2: The disallowing less restricted referrer policy can be disabled by ETP toggle. r=ckerschb,pbz,smaug
...
This patch implements that the referrer protection can be disabled by
the ETP toggle. When ETP is toggled off, it will stop the protection for
iframe and sub-resource loads. Also, it will stop the protection for a
loading to a site that has ETP disabled.
This patch also makes
CookieJarSettings::UpdateIsOnContentBlockingAllowList() be more
efficient when calling it multiple times.
Differential Revision: https://phabricator.services.mozilla.com/D142249
2022-03-30 19:45:29 +00:00
Gijs Kruitbosch
8e67201171
Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
...
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +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
acdd6851cd
Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
...
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch
27039e2946
Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
...
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Csoregi Natalia
99b98ae493
Backed out changeset 0acc23548adf (bug 1752475) for causing multiple cookies failures. CLOSED TREE
2022-03-30 01:31:06 +03:00
Frederik Braun
ea88fe841f
Bug 1752475 - Change nsICookie/CookieStruct to implicitly flip SameSite in getter func r=dveditz,dragana
...
Given that we only support samesite lax/strict/none in our storage schema,
it's useful to introduce a default value, as required by the spec.
However, that would it hard to distinguish between none/lax when we switch
the default.
So, instead of doing that we use the peculiarities of our current schema
to our advantage: There's a "sameSite" attribute and a "rawSameSite"
attribute, where the latter is the literal value we received from the
server. With this patch, we'll interpret the "sameSite" attribute
based on the laxByDefault pref. This also has the advantage that various
front-end code (e.g., in DevTools) is always reading the "sameSite"
value of nsICookies.
Differential Revision: https://phabricator.services.mozilla.com/D137460
2022-03-29 20:16:36 +00:00
Ryan VanderMeulen
3f0a4de9da
Bug 1761558 - Enable test_http_408_retry.js on Android. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D142137
2022-03-29 13:55:58 +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
b012e973e6
Bug 1207753 - DataChannel thread-annotations r=bwc
...
Differential Revision: https://phabricator.services.mozilla.com/D130583
2022-03-28 14:27:49 +00:00
ffxbld
24f567753c
No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=diannaS
...
Differential Revision: https://phabricator.services.mozilla.com/D142198
2022-03-28 13:03:48 +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
Kershaw Chang
974130bad4
Bug 1755902 - P1: Rename nsIDNSResolverInfo to nsIDNSAdditionalInfo and add port, r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141717
2022-03-25 12:15:03 +00:00
ffxbld
f222aa0e79
No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=diannaS
...
Differential Revision: https://phabricator.services.mozilla.com/D141952
2022-03-24 12:55:16 +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
Nika Layzell
5b2ada26c5
Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright
...
Tasks registered with shutdown tasks are called when the target
nsISerialEventTarget is about to be destroyed.
Differential Revision: https://phabricator.services.mozilla.com/D129840
2022-03-23 22:22:04 +00:00
Nika Layzell
dedb92d85b
Bug 1738103 - Part 3: DelayedRunnable should only be used with nsISerialEventTarget, r=necko-reviewers,valentin
...
The existing behaviour of the code is not fully compatible with nsIEventTarget.
Differential Revision: https://phabricator.services.mozilla.com/D129839
2022-03-23 22:22:03 +00:00
Randell Jesup
0aff7d9a80
Bug 1207753 - InputStreamPump thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141610
2022-03-23 14:56:55 +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
Randell Jesup
5a58ff7cd5
Bug 1207753 - netwerk nsWifiMonitor thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141627
2022-03-23 14:55:16 +00:00
Randell Jesup
6bdb0bdcc5
Bug 1760652 - netwerk AsyncStreamCopier thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141662
2022-03-23 14:54:21 +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
Tom Schuster
44e7ca5fb7
Bug 1748693
- Remove unused cookie rejection strings. r=freddyb,necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141774
2022-03-23 11:37:20 +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
ffxbld
2c8ee764d5
No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=diannaS
...
Differential Revision: https://phabricator.services.mozilla.com/D141587
2022-03-22 21:16:41 +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
Dragana Damjanovic
44a7f94282
Bug 1752270 - Test for receiving 408 response r=necko-reviewers,kershaw
...
With H1, the connection is restarted.
With H2 and H3, the channel gets NS_ERROR_ABORT from Http2Session::Shutdown
Differential Revision: https://phabricator.services.mozilla.com/D139395
2022-03-22 21:12:20 +00:00
Randell Jesup
75c2bfd9aa
Bug 1760655 - Miscellaneous netwerk thread-safety annotations r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141665
2022-03-22 13:57:49 +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
Tom Schuster
18d44b2570
Bug 1748693
- Remove unused const.
...
Differential Revision: https://phabricator.services.mozilla.com/D141723
2022-03-22 10:40:32 +00:00
Frederik Braun
3de5287d4e
Bug 1748693
- remove MaybeCompareSchemes(Logging), disable samesite-schemeful for release r=ckerschb,dveditz,dragana
...
This removes a part of the erroneous scheme-comparison and the logging
that was implemented in those functions. The tests for that logging were
also removed.
Differential Revision: https://phabricator.services.mozilla.com/D136229
2022-03-22 10:09:02 +00:00
Randell Jesup
0ba3cb38b1
Bug 1760647 - nsStreamTransportService thread-safety annotations r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D141656
2022-03-21 21:35:53 +00:00
Csoregi Natalia
97fa1647e9
Bug 1759607 - Fix whitespace linting. r=fix CLOSED TREE
2022-03-21 23:20:20 +02:00
edguloien
afac73f41a
Bug 1759607 - Added aggregate new-to-necko resources list to fx-src-docs. r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D141049
2022-03-21 20:39:08 +00:00
Randell Jesup
d6bda1cd01
Bug 1755847: clean up nsStreamTransportService r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D141655
2022-03-21 20:02:53 +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