Граф коммитов

21432 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke 8485a0a6db Bug 1673682 - Don't copy substrings in URLParams::Parse. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96417
2020-11-09 18:06:00 +00:00
Simon Giesecke 6206951895 Bug 1673682 - Move URLParams to nsURLHelper.h. r=valentin,necko-reviewers
Move ReadStructuredClone/WriteStructuredClone to URLSearchParams.

Adapt all uses of URLParams.

Differential Revision: https://phabricator.services.mozilla.com/D96416
2020-11-13 08:11:32 +00:00
Dragana Damjanovic 1e9bbd3671 Bug 1675500 - SupportHTTP3 is only set on HTTP2 connections r=necko-reviewers,valentin
supportsHttp3 is only needed for telemetry therefore it is only set on HTTP2 connections. It is also moved to nsIHttpChannelInternal.

Differential Revision: https://phabricator.services.mozilla.com/D96585
2020-11-12 01:52:06 +00:00
Dragana Damjanovic 26e1c0981c Bug 1675500 - Add more telemetry about http transactions r=necko-reviewers,valentin
This telemetry will be collected for transaction that have used HTTP3 and transaction that have used HTTP2 but the servers they are connecting to support HTTP3.

Differential Revision: https://phabricator.services.mozilla.com/D96459
2020-11-12 02:12:06 +00:00
Dragana Damjanovic 7b3c2eaf3c Bug 1675500 - Add telemetry about time needed for an transaction to be dispatch. r=necko-reviewers,valentin
This probe olny collect data for transactions that have used HTTP2, but support HTTP3

Differential Revision: https://phabricator.services.mozilla.com/D96264
2020-11-12 19:07:14 +00:00
Dragana Damjanovic e76337e2d9 Bug 1676854 - Set mSupportsHttp3 in the child process as well r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D96827
2020-11-12 17:31:03 +00:00
ffxbld 61127bb43b No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D96840
2020-11-12 16:43:02 +00:00
smolnar 091f26214a Backed out changeset ae843e9f7e7c (bug 1676854) for causing mochitest and wpt failures. CLOSED TREE 2020-11-12 18:52:05 +02:00
Dragana Damjanovic 4f97cd3e80 Bug 1676854 - Set mSupportsHttp3 in the child process as well r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D96827
2020-11-12 15:48:43 +00:00
Csoregi Natalia 1f289c43a8 Backed out 3 changesets (bug 1675411) for failures on test_http3_fatal_stream_error_2.js. CLOSED TREE
Backed out changeset 7c4261286c23 (bug 1675411)
Backed out changeset 50ce7be1daac (bug 1675411)
Backed out changeset 0feda4383903 (bug 1675411)
2020-11-12 04:10:46 +02:00
Dragana Damjanovic 6183b450dc Bug 1675411 - Some HTTP3 tests use HTTP2 server that needs to run sequentially r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96002
2020-11-11 22:46:15 +00:00
Dragana Damjanovic f04571d6d7 Bug 1675411 - Add a test for a HTTP3 protocol error r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96000
2020-11-11 21:25:45 +00:00
Dragana Damjanovic 67bff2fbe6 Bug 1675411 - Add a test for a HTTP3 protocol error r=necko-reviewers,kershaw
it will test transactions that are in 3 different states:
 - transaction has received some data before the protocol error occurred. This transaction will be closed with NS_ERROR_NET_PARTIAL_TRANSFER
 - transaction has only send some data but has not received any data. This transaction will be closed with NS_ERROR_NET_HTTP3_PROTOCOL_ERROR
 - transaction is queued in Http3Session because of the stream concurrency limit. In this case the transaction will be restarted and it will succeeed using HTTP2.

Differential Revision: https://phabricator.services.mozilla.com/D95988
2020-11-11 22:28:19 +00:00
Moritz Birghan 21cf959be5 Bug 1272794 - Clean up Digest class API r=keeler,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D40983
2020-11-11 22:16:38 +00:00
Dragana Damjanovic ba7fba8f98 Bug 1675016 - Disable tests for exluding HTTP3 domains when the socket process is turned on. r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96651
2020-11-11 16:24:26 +00:00
Dragana Damjanovic 6a86545948 Bug 1675016 - Some tests needs to run sequentially r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96580
2020-11-11 16:24:25 +00:00
Dragana Damjanovic f2d2d6d69a Bug 1675016 - Remove Alternate_Service_Used header if alt-svc route is not used. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96016
2020-11-11 16:24:25 +00:00
Dragana Damjanovic 01346afb24 Bug 1675016 - Exclude SSL_ERROR_BAD_CERT_DOMAIN when adding a domain to excluded list. r=necko-reviewers,kershaw
This error is well mitigated with checking if a certificate is valied for a domain before dispatching. If we include this error we will have a case as in test_altsvc_https.js where a domain is valid for foo.example.com but not for bar.example.com and if bar.example.com as altsvc to that domain the domain will be excluded for foo.example.com.

Differential Revision: https://phabricator.services.mozilla.com/D95845
2020-11-11 16:24:25 +00:00
Dragana Damjanovic 9904ac554c Bug 1675016 - Add more test for HTTP3 failure r=necko-reviewers,kershaw
- Add 2 test: 1) server is not listening to the port and 2) server is not responding that will cause the connection to timeout and fall back to HTTP2
 - Adds a server that only reads packets but never sends any to simulate a handshake timing out

Differential Revision: https://phabricator.services.mozilla.com/D95816
2020-11-11 19:43:43 +00:00
Dragana Damjanovic fc26dd32a5 Bug 1675016 - Refactor code that exclude HTTP3 domains when an fatal happens r=necko-reviewers,kershaw
Domains are excluded:
 - if NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error happens, this is a single error for all different HTTP3 protocol errors,
 - also if a connection times out before the handshake is done

Change the current behavior to exclude HTTP3 domains instead of excluding the origin host names. HTTP2 disable AltSvc mapping if a origin domain is excluded which may not be ideal. This patch only changes behavior of HTTP3.

Refactor test_http3_fatal_stream_error.js. The test use to try to connect to http3 server on port 443 that does nto exist and it would return an error. This patch make the test use HTTP2 so that the the connection to the origin host (not AltSvc host) succeeds.

Differential Revision: https://phabricator.services.mozilla.com/D95807
2020-11-11 16:24:24 +00:00
Tim Huang fd15d2199a Bug 1641270 - Part 3: Make nsICookieJarSetting serializable. r=dimi
In order to send the cookieJarSetting across processes in JS. We need to
make it serializable.

Differential Revision: https://phabricator.services.mozilla.com/D95613
2020-11-11 11:13:55 +00:00
Tim Huang f0c895fc31 Bug 1641270 - Part 1: Expose cookieJarSettings to UI code through Document. r=smaug,dimi
Differential Revision: https://phabricator.services.mozilla.com/D95611
2020-11-11 11:13:57 +00:00
Sebastian Hengst 3bc7e60008 Bug 1675008 - disable test_altsvc_http3.js for failing frequently. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96733
2020-11-11 17:27:21 +00:00
Andreea Pavel 67ba0c2bfb Backed out 8 changesets (bug 1675016) for black linting failure at runxpcshelltests.py on a CLOSED TREE
Backed out changeset 542f33bccb47 (bug 1675016)
Backed out changeset ab07b3a3e2ca (bug 1675016)
Backed out changeset 2c6391e0243b (bug 1675016)
Backed out changeset 8100a5f39ec5 (bug 1675016)
Backed out changeset c2a169663175 (bug 1675016)
Backed out changeset 84cde60b4e5f (bug 1675016)
Backed out changeset 29ed71c7b265 (bug 1675016)
Backed out changeset 5745916ae50b (bug 1675016)
2020-11-11 18:20:32 +02:00
Dragana Damjanovic ec01fdc457 Bug 1675016 - Disable test_altsvc_http3.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96708
2020-11-11 15:20:30 +00:00
Dragana Damjanovic 39c43fcff9 Bug 1675016 - Disable tests for exluding HTTP3 domains when the socket process is turned on. r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96651
2020-11-11 13:06:05 +00:00
Dragana Damjanovic c6c8e2d9a3 Bug 1675016 - Some tests needs to run sequentially r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96580
2020-11-10 23:35:53 +00:00
Dragana Damjanovic 584d63794b Bug 1675016 - Remove Alternate_Service_Used header if alt-svc route is not used. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96016
2020-11-10 14:45:23 +00:00
Dragana Damjanovic e6e665d26f Bug 1675016 - Exclude SSL_ERROR_BAD_CERT_DOMAIN when adding a domain to excluded list. r=necko-reviewers,kershaw
This error is well mitigated with checking if a certificate is valied for a domain before dispatching. If we include this error we will have a case as in test_altsvc_https.js where a domain is valid for foo.example.com but not for bar.example.com and if bar.example.com as altsvc to that domain the domain will be excluded for foo.example.com.

Differential Revision: https://phabricator.services.mozilla.com/D95845
2020-11-10 12:26:04 +00:00
Dragana Damjanovic 25db47d6a9 Bug 1675016 - Add more test for HTTP3 failure r=necko-reviewers,kershaw
- Add 2 test: 1) server is not listening to the port and 2) server is not responding that will cause the connection to timeout and fall back to HTTP2
 - Adds a server that only reads packets but never sends any to simulate a handshake timing out

Differential Revision: https://phabricator.services.mozilla.com/D95816
2020-11-11 13:32:24 +00:00
Dragana Damjanovic 46030d2607 Bug 1675016 - Refactor code that exclude HTTP3 domains when an fatal happens r=necko-reviewers,kershaw
Domains are excluded:
 - if NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error happens, this is a single error for all different HTTP3 protocol errors,
 - also if a connection times out before the handshake is done

Change the current behavior to exclude HTTP3 domains instead of excluding the origin host names. HTTP2 disable AltSvc mapping if a origin domain is excluded which may not be ideal. This patch only changes behavior of HTTP3.

Refactor test_http3_fatal_stream_error.js. The test use to try to connect to http3 server on port 443 that does nto exist and it would return an error. This patch make the test use HTTP2 so that the the connection to the origin host (not AltSvc host) succeeds.

Differential Revision: https://phabricator.services.mozilla.com/D95807
2020-11-10 12:26:03 +00:00
Mihai Alexandru Michis 4038013e6f Backed out 9 changesets (bug 1641270) for causing dt failures in browser_jsonview_save_json.js
CLOSED TREE

Backed out changeset 89a6dab92f1a (bug 1641270)
Backed out changeset 5f9c5af66b77 (bug 1641270)
Backed out changeset dfeb879f4131 (bug 1641270)
Backed out changeset 143728b1b1ab (bug 1641270)
Backed out changeset 265ae2953416 (bug 1641270)
Backed out changeset 55ea7810c160 (bug 1641270)
Backed out changeset 7bef9112f296 (bug 1641270)
Backed out changeset 2663dc1e9a3e (bug 1641270)
Backed out changeset fcba6dba3649 (bug 1641270)
2020-11-11 13:10:11 +02:00
Tim Huang 13ec804734 Bug 1641270 - Part 3: Make nsICookieJarSetting serializable. r=dimi
In order to send the cookieJarSetting across processes in JS. We need to
make it serializable.

Differential Revision: https://phabricator.services.mozilla.com/D95613
2020-11-10 11:47:32 +00:00
Tim Huang 5a9cd22328 Bug 1641270 - Part 1: Expose cookieJarSettings to UI code through Document. r=smaug,dimi
Differential Revision: https://phabricator.services.mozilla.com/D95611
2020-11-10 11:47:11 +00:00
Sylvestre Ledru 396275b3c3 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
# ignore-this-changeset

Depends on D96608

Differential Revision: https://phabricator.services.mozilla.com/D96609
2020-11-10 19:10:16 +00:00
Kershaw Chang 83ffab26f9 Bug 1676129 - Don't overwrite the rv with the result from GetEsniUsed r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D96403
2020-11-10 14:22:05 +00:00
Andreas Farre c208b33fc0 Bug 1646474 - Remove LoadInfo::mDocumentHasLoaded. r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96010
2020-11-10 12:45:22 +00:00
smolnar 03e890da15 Backed out 5 changesets (bug 1675016) for causing xpcshell failures in test_http3_fatal_stream_error. CLOSED TREE
Backed out changeset aae840485291 (bug 1675016)
Backed out changeset c5f004fdef59 (bug 1675016)
Backed out changeset 56b8282707e0 (bug 1675016)
Backed out changeset ac23fff376cf (bug 1675016)
Backed out changeset 63109e213984 (bug 1675016)
2020-11-10 14:19:44 +02:00
Dragana Damjanovic 7f79f8eb4a Bug 1675016 - Remove Alternate_Service_Used header if alt-svc route is not used. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96016
2020-11-05 15:56:38 +00:00
Dragana Damjanovic d4297d6f4c Bug 1675016 - Exclude SSL_ERROR_BAD_CERT_DOMAIN when adding a domain to excluded list. r=necko-reviewers,kershaw
This error is well mitigated with checking if a certificate is valied for a domain before dispatching. If we include this error we will have a case as in test_altsvc_https.js where a domain is valid for foo.example.com but not for bar.example.com and if bar.example.com as altsvc to that domain the domain will be excluded for foo.example.com.

Differential Revision: https://phabricator.services.mozilla.com/D95845
2020-11-10 09:22:26 +00:00
Dragana Damjanovic caff62afed Bug 1675016 - Add more test for HTTP3 failure r=necko-reviewers,kershaw
- Add 2 test: 1) server is not listening to the port and 2) server is not responding that will cause the connection to timeout and fall back to HTTP2
 - Adds a server that only reads packets but never sends any to simulate a handshake timing out

Differential Revision: https://phabricator.services.mozilla.com/D95816
2020-11-10 09:04:41 +00:00
Dragana Damjanovic 31bbcbcdcb Bug 1675016 - Refactor code that exclude HTTP3 domains when an fatal happens r=necko-reviewers,kershaw
Domains are excluded:
 - if NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error happens, this is a single error for all different HTTP3 protocol errors,
 - also if a connection times out before the handshake is done

Change the current behavior to exclude HTTP3 domains instead of excluding the origin host names. HTTP2 disable AltSvc mapping if a origin domain is excluded which may not be ideal. This patch only changes behavior of HTTP3.

Refactor test_http3_fatal_stream_error.js. The test use to try to connect to http3 server on port 443 that does nto exist and it would return an error. This patch make the test use HTTP2 so that the the connection to the origin host (not AltSvc host) succeeds.

Differential Revision: https://phabricator.services.mozilla.com/D95807
2020-11-10 09:18:24 +00:00
Tarek Ziadé 7c132a5e1b Bug 1668494 - add an influxdb layer r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D92480
2020-11-10 08:36:44 +00:00
Andi-Bogdan Postelnicu 5e91efd61f Bug 1626555 - Add `dom/security` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 21:03:52 +00:00
Brindusan Cristian ca85f574a0 Backed out changeset 3a087ad91d30 (bug 1626555) for build bustages. CLOSED TREE 2020-11-09 21:09:33 +02:00
Andi-Bogdan Postelnicu 6ffdaf663d Bug 1626555 - Add `dom/security` to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 17:57:01 +00:00
julianwels 2efbb0d597 Bug 1674926 - Collect telemetry for mixed display content upgrades. r=necko-reviewers,ckerschb,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95921
2020-11-09 14:40:30 +00:00
ffxbld d14f34aeb2 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D96420
2020-11-09 14:25:22 +00:00
Csoregi Natalia a9fe7c0285 Backed out changeset 4cfe953fecdb (bug 1675491) for causing NetworkDataCount crashes. CLOSED TREE 2020-11-09 13:55:09 +02:00
Dragana Damjanovic a15f3e2f6d Bug 1675491 - Count number of bytes send and received over a socket. r=necko-reviewers,valentin
This needs to count encrypted data, therefore it is implemented as a NSPR layer right above the PR_NSPR_IO_LAYER layer.

Differential Revision: https://phabricator.services.mozilla.com/D96083
2020-11-09 09:30:23 +00:00
Kershaw Chang 0210714e2a Bug 1675546 - Make sure we use the updated caps and connection info to create a new sticky transaction r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D96070
2020-11-09 10:34:35 +00:00
ISHIKAWA, Chiaki 42eced075d Bug 1675587 - clearing address structure passed to |connect()| r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D96177
2020-11-06 13:47:22 +00:00
ffxbld de7e9afc3e No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D96062
2020-11-05 15:46:44 +00:00
Dragana Damjanovic 1a36df103b Bug 1674922 - Cleanup ReadSegments: r=necko-reviewers,kershaw
- Move looping while calling mTransaction->ReadSegments into Http3Stream and call mTransaction->ReadSegmentsAgain. We use to loop in Http3Session which was not easy because it is not easy to find out when to leave the loop. The original code was working, but this is a better way to do this.
- Remove mReadyForWriteButBlocked it is not necessary, it was used only as a double check and can only be a source of bugs.
- Remove mContentBytesWritten, because it is not used.
- Http3Server now reads post data and returns amount of data received (this was needed to make better test).
- In test_http3.js increase the number of parallel to trigger max-concurent-stream limit and test stream queuing before streams being activated.
- Add tests for post with large amount of data that are hitting the stream bugger limits. This is testing Http3Event::Tag::DataWritable and also testing the the end of the mTransaction->ReadSegmentsAgain loop.

Differential Revision: https://phabricator.services.mozilla.com/D95622
2020-11-05 11:37:39 +00:00
Frederik Braun 92b3faea4e Bug 1674735 - add port 5060 to bad port list r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95504
2020-11-05 00:51:24 +00:00
Sylvestre Ledru 31599d2440 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,necko-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D95435
2020-11-04 17:03:33 +00:00
mcccs e83823e865 Bug 1673832 - Reduce allocations in merge_rrset. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94954
2020-11-04 17:19:59 +00:00
Valentin Gosu fff64b3d07 Bug 1672528 - Test r=necko-reviewers,dragana
Depends on D95414

Differential Revision: https://phabricator.services.mozilla.com/D95415
2020-11-04 13:48:56 +00:00
Valentin Gosu 24e6fdf63c Bug 1672528 - Check IPv4-mapped IPv6 addresses for being local r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95414
2020-11-04 13:48:54 +00:00
Valentin Gosu ad416f2616 Bug 1666678 - [cookie] rejected cookie when domain have ipv6 address r=baku
Differential Revision: https://phabricator.services.mozilla.com/D91246
2020-11-04 09:44:23 +00:00
Dragana Damjanovic 8669cfbdc7 Bug 1674124 - Disable HTTP3 if NS_HTTP_ALLOW_KEEPALIVE is set. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95316
2020-11-02 08:16:59 +00:00
Valentin Gosu 6b00235dd5 Bug 1673590 - Move TRR handling logic from nsHostResolver to TRRQuery r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94822
2020-11-03 10:41:51 +00:00
Dragana Damjanovic bcc4efa90a Bug 1674316 - Better separate NS_HTTP_DISALLOW_HTTP3 and NS_HTTP_DISALLOW_SPDY when dispatching transactions r=necko-reviewers,valentin
- add allowHttp3 attribute to nsIHttpChannelInternal, it is used for easy testing and it will be used for Bug 1674111
 - add test for NS_HTTP_DISALLOW_HTTP3 and NS_HTTP_DISALLOW_SPDY
 - add HTTP3 test for altSvc and the cert verifiacation

Differential Revision: https://phabricator.services.mozilla.com/D95256
2020-11-03 10:21:17 +00:00
Butkovits Atila 520f93d7af Backed out changeset f166c3da94b9 (bug 1673590) for bustage on Logging.h. CLOSED TREE 2020-11-03 11:23:35 +02:00
Valentin Gosu 8a6e8092c5 Bug 1673590 - Move TRR handling logic from nsHostResolver to TRRQuery r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94822
2020-11-03 08:08:30 +00:00
ffxbld 879482e01a No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D95518
2020-11-02 14:35:29 +00:00
Kershaw Chang d207d2627f Bug 1671886 - Record the transaction retry count when ech is used r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D94592
2020-11-02 11:17:05 +00:00
Valentin Gosu e276174f5e Bug 1674328 - Make DNS requests use TRR_DISABLED_MODE instead of using RESOLVE_DISABLE_TRR flag r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95263
2020-11-02 10:30:31 +00:00
mcccs 039fe95a03 Bug 1667579 - Pref to manually enter NAT64 prefix. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94597
2020-11-02 08:05:10 +00:00
Dragana Damjanovic 5dc542764f Bug 1673611 - Improve Http3Stream state machine and add a test for a protocol error r=necko-reviewers,valentin
- We have an assumption that SetResponseHeaders will be called before WriteSegments is called for the first time. I would like to make it more structural add add a new state BEFORE_HEADERS
 - mDataReceived was never set, which is wrong.
 - Almost any error that occurs during ReadResponseData is a connection error and neqo will handle it internally by closing the session. This will be read by necko as ConnectionState change event. Therefore ignore errors received from mHttp3Connection->ReadResponseData and let the ConnectionChange event close the stream.
 - This also adds a test. Because the stream has received some data already the transaction will br closed with the NS_ERROR_NET_PARTIAL_TRANSFER error.

Differential Revision: https://phabricator.services.mozilla.com/D94951
2020-11-01 13:54:02 +00:00
Dragana Damjanovic addc913ff7 Bug 1673611 - Add a quic server r=necko-reviewers,valentin
This will allow us to make response that violate the Http3 protocol and cause a protocol error.
Currently the server returns only one response, we may extend it if needed.

Differential Revision: https://phabricator.services.mozilla.com/D94912
2020-11-01 15:48:45 +00:00
Dragana Damjanovic f98bbedf40 Bug 1673611 - Rewrite Http3Stream::WriteSegments to be similar to the nsHttpConnection's implementation r=necko-reviewers,valentin
- This will make handling of responses contain only headers in the same way as the responses with
   a response body
 - This will also make sure we pick up an error if neqo_http3conn_read_response_data return one.

Differential Revision: https://phabricator.services.mozilla.com/D94834
2020-11-01 13:54:54 +00:00
Dragana Damjanovic ee9a5a9657 Bug 1674095 - Make some functions in nsHttpConnectionMgr private. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95131
2020-10-29 12:54:45 +00:00
Dragana Damjanovic 7ad4b0ec71 Bug 1672520 - Make member variable of PendingTransactionInfo private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94509
2020-10-31 19:28:10 +00:00
Dragana Damjanovic 1df215415b Bug 1672520 - Part 6 - Make HalfOpens private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94507
2020-10-31 19:12:37 +00:00
Dragana Damjanovic 43fee4fc89 Bug 1672520 - Part 5 - Move PruneDeadConnectionsAfter call where the count is incremented so that everything is at one place r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94506
2020-10-31 19:12:39 +00:00
Dragana Damjanovic 1b4f6c5450 Bug 1672520 - Part 4 - Avoid changing counters when a conn is moved from one to another ConnectionEntry r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94505
2020-10-31 19:12:23 +00:00
Dragana Damjanovic 74473ecf4c Bug 1672520 - Part 3 - Make mActiveConns private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94503
2020-10-31 19:12:25 +00:00
Dragana Damjanovic 5961271991 Bug 1672520 - Part 2 - Make mIdleConns private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94437
2020-10-31 19:12:27 +00:00
Dragana Damjanovic 1115c6e2e2 Bug 1672520 - Part 1 - Move Pending queues and their logic into a separate class. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94423
2020-10-31 19:12:30 +00:00
Dragana Damjanovic e4846fef40 Bug 1672520 - Part 0 - Move all different classes defined in nsHttpConnectionMgr into separate files. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94392
2020-10-31 19:12:32 +00:00
Dorel Luca b3d70328e9 Backed out 8 changesets (bug 1672520) for Build bustage in gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp. CLOSED TREE
Backed out changeset fd7e69c065d9 (bug 1672520)
Backed out changeset dd9c9c3c959c (bug 1672520)
Backed out changeset 84ad3077d7ef (bug 1672520)
Backed out changeset 09de9356d225 (bug 1672520)
Backed out changeset 6a0a89a02779 (bug 1672520)
Backed out changeset c1b12059f317 (bug 1672520)
Backed out changeset 473498b3df4c (bug 1672520)
Backed out changeset e2a2ecf84209 (bug 1672520)
2020-10-31 21:08:35 +02:00
Dragana Damjanovic 488391f331 Bug 1674366 - Adapt to the neqo API changes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95294
2020-10-31 18:44:41 +00:00
Dragana Damjanovic a0d95ff222 Bug 1674366 - Neqo version 0.4.14 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95291
2020-10-31 18:44:21 +00:00
Dragana Damjanovic c824810ab5 Bug 1672520 - Make member variable of PendingTransactionInfo private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94509
2020-10-31 18:26:42 +00:00
Dragana Damjanovic a0deb61454 Bug 1672520 - Part 6 - Make HalfOpens private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94507
2020-10-31 14:18:37 +00:00
Dragana Damjanovic 795bbe3c4e Bug 1672520 - Part 5 - Move PruneDeadConnectionsAfter call where the count is incremented so that everything is at one place r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94506
2020-10-31 14:16:57 +00:00
Dragana Damjanovic 9dc665f3bc Bug 1672520 - Part 4 - Avoid changing counters when a conn is moved from one to another ConnectionEntry r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94505
2020-10-31 14:10:38 +00:00
Dragana Damjanovic d5fe4bc679 Bug 1672520 - Part 3 - Make mActiveConns private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94503
2020-10-31 14:10:30 +00:00
Dragana Damjanovic 9bc8ff0598 Bug 1672520 - Part 2 - Make mIdleConns private r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94437
2020-10-31 14:10:03 +00:00
Dragana Damjanovic a028a32bb4 Bug 1672520 - Part 1 - Move Pending queues and their logic into a separate class. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94423
2020-10-31 14:06:07 +00:00
Dragana Damjanovic 88c1ed7234 Bug 1672520 - Part 0 - Move all different classes defined in nsHttpConnectionMgr into separate files. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94392
2020-10-31 14:04:01 +00:00
Csoregi Natalia b85ac29e62 Bug 1663571 - Fix linting. r=fix CLOSED TREE 2020-10-30 16:17:53 +02:00
Valentin Gosu 96fa831c85 Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-30 08:16:25 +00:00
Kershaw Chang 9c2ae9557b Bug 1671787 - Don't release the listeners if the redirected cahnnel is not opened sucesfully r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94998
2020-10-29 18:29:27 +00:00
ffxbld bc7a07bac7 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D95151
2020-10-29 14:35:28 +00:00
Cristina Coroiu 3ccc5380fc Bug 1669892 - disable test_http3.js on mac for frequent failures r=intermittent-reviewers,necko-reviewers,ahal,dragana DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D94679
2020-10-28 14:57:18 +00:00
Frederic Wang bdcea0a95f Bug 1673315 Add a test to ensure loopback host names cannot be overridden, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94712
2020-10-28 14:33:29 +00:00
Narcis Beleuzu 41be6a07c9 Backed out changeset af04d36c832d (bug 1670530) for bc failure on browser_viewsourceprefs.js . CLOSED TREE 2020-10-28 18:01:00 +02:00
Kershaw Chang f5cd5d9ba2 Bug 1671939 - Move some dns code our of nsHttpTransaction r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D94591
2020-10-28 13:46:24 +00:00
Kershaw Chang beb27599c3 Bug 1671939 - Create speculative connection for the first service mode record, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94014
2020-10-28 13:46:16 +00:00
Nika Layzell 3f9ef8b720 Bug 1670530 - Fix view-source loads redirecting from parent to content, r=mattwoodrow,necko-reviewers
Previously these requests would replace the nsIRequest argument to stream
listeners based on the initial process, rather than based on the final process.
This caused issues when the initial process was non-remote, but the final
process was remote, as the parameter would be replaced when it shouldn't be.

This patch now disables request-argument replacement for all loads, and
selectively re-enables it during OnStartRequest for loads which will terminate
in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D94779
2020-10-27 07:29:45 +00:00
mcccs 120881e88a Bug 1673843 - Cleanup test_trr.js and fix race in NCS test r=valentin,necko-reviewers
`promiseObserverNotification` needs to be run and start listening before the event is fired.

Differential Revision: https://phabricator.services.mozilla.com/D94962
2020-10-28 12:46:42 +00:00
Andrew Sutherland ffd386c619 Bug 1669355 - Refactor MIME type warnings into base class. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93906
2020-10-28 12:15:23 +00:00
Dragana Damjanovic f4599c1e24 Bug 1669679 - Rebuild cert-info when a resumption token is used for HTTP3 r=keeler,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93359
2020-10-28 11:15:14 +00:00
Christoph Kerschbaumer 23ca5da684 Bug 1673574: Improve Console logging for mixed content auto upgrading. r=freddyb,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94813
2020-10-28 08:49:02 +00:00
Csoregi Natalia 0038ebdf29 Backed out changeset 6e7c2bd7d2f7 (bug 1673315) for failures on test_dns_override_for_localhost.js. CLOSED TREE 2020-10-27 20:19:36 +02:00
Frederic Wang 1f16e4580e Bug 1673315 Add a test to ensure loopback host names cannot be overridden, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94712
2020-10-27 16:11:59 +00:00
Valentin Gosu 7aa8b3a2e4 Bug 1673364 - fix test_dns_disabled.js r=necko-reviewers,dragana
The test was using network.dns.localDomains to check that we don't
call into the platform DNS resolver when the network.dns.disabled pref
was set - but since the localDomains pref rewrites hostnames to localhost
and we now don't call into GetAddrInfo for local domains, the test
failed.
I changed it so it uses the NativeDNSResolverOverride to register an IP for
foo.bar instead of relying on localDOmains.

Depends on D94726

Differential Revision: https://phabricator.services.mozilla.com/D94727
2020-10-27 13:25:22 +00:00
Valentin Gosu d61dc1addb Bug 1673364 - nsHostResolver::InitLoopbackRecord should not call GetAddrInfo r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94726
2020-10-27 13:25:22 +00:00
Valentin Gosu 5c30c09f14 Bug 1556194 - Prevent OCSP Request from blocking TRR-only DNS resolutions r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94502
2020-10-27 13:42:58 +00:00
Kershaw Chang a227c48e26 Bug 1673340 - Revert changes done in Bug 1668851, 1663718 and 1497249 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94808
2020-10-27 11:13:13 +00:00
Henri Sivonen f48b48fe72 Bug 1671908 - Take ISO-2022-JP ASCII overlap into account when encoding URL query strings. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93994
2020-10-27 09:44:00 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Tim Huang 18853bea78 Bug 1670617 - Part 2: Make the CORS preflight cache partitioned by the originAttributes. r=ckerschb,necko-reviewers
We want to partition the CORS preflight cache by the network state
partitioning. So, we have done two things in the patch. First, we make
the CORS preflight cache to be aware of the OriginAttributes. Second, we
use the originAttributes of the network state partitioning in the CORS
preflight cache. As the result, the CORS preflight cache will be
partitioned by the originAttributes.partitionKey as well as other
originAttributes fields if present.

Differential Revision: https://phabricator.services.mozilla.com/D93683
2020-10-26 13:39:12 +00:00
Mihai Alexandru Michis ed42a59568 Backed out changeset b3557a86d1c3 (bug 1663571) for causing mda failures in webrtc/tests/mochitests/test_peerConnection/*
CLOSED TREE
2020-10-26 16:50:37 +02:00
Valentin Gosu 2da264ce5c Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-26 11:40:22 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Bogdan Tara e7ff82d770 Backed out changeset 3da0a14a9999 (bug 1663571) for making wpt tests unable to load initial page CLOSED TREE 2020-10-24 02:38:12 +03:00
Valentin Gosu 3af312e531 Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-15 19:31:06 +00:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Hubert Boma Manilla 7001145b00 Bug 1666723 - Expose and add a test r=dragana,necko-reviewers
Depends on D93137

Differential Revision: https://phabricator.services.mozilla.com/D93922
2020-10-22 23:23:53 +00:00
Valentin Gosu 118fbc2d87 Bug 1671479 - Hold mutex when calling TransportSecurityInfo::Get/SetSucceededCertChain r=keeler,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93744
2020-10-21 20:04:46 +00:00
Valentin Gosu 237dbb5237 Bug 1672219 - nsServerSocket fd should not be inheritable by the child process r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94263
2020-10-23 06:44:33 +00:00
Hubert Boma Manilla d9a8d96616 Bug 1666723 - Track that http3 is advertised / supported r=dragana,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93137
2020-10-22 23:24:00 +00:00
Michael Kaply c7c4a35de5 Bug 1559181 - Switch about blocking to use new REJECT_POLICY and cleanup tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D93390
2020-10-22 19:36:52 +00:00
Valentin Gosu 6754b3b7a0 Bug 1670675 - Add test for loading brotli encoded files over unsecured HTTP r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93924
2020-10-21 07:06:39 +00:00
Valentin Gosu 351fc0d2ff Bug 1569715 - Don't lookup CORS preflight cache when devtools 'Disable cache' is checked r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94100
2020-10-22 11:12:30 +00:00
Frédéric Wang 70d15af587 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat http://localhost/ and
http://*.localhost/ as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-22 07:36:15 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Kershaw Chang 2c085933ab Bug 1667775 - Add a telemetry probe for the reason why a transaction is restarted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91595
2020-10-21 15:19:20 +00:00
Andi-Bogdan Postelnicu bbe7b7b35e Bug 1671641 - Make `nsICacheInfoChannel.idl` syntax correctly. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94016
2020-10-21 08:00:18 +00:00
Valentin Gosu 68dfec208f Bug 1402014 - Make nsAHttpSegmentReader refcounted r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93318
2020-10-21 07:06:35 +00:00
smolnar b70b9de731 Backed out changeset a5a35a205a44 (bug 1220810) for causing test_dns_offline and fontface-override-descriptor-getter-setter failures. CLOSED TREE 2020-10-21 13:00:01 +03:00
Frédéric Wang 4e6e6c7714 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat `http://localhost/` and
`http://*.localhost/` as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.

See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE

Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-21 07:42:23 +00:00
Kershaw Chang 6997ac3184 Bug 1667356 - Show the content of HTTPS RRs in about:networking r=necko-reviewers,fluent-reviewers,flod,dragana,webidl,asuth
Differential Revision: https://phabricator.services.mozilla.com/D91566
2020-10-21 00:52:46 +00:00
Tim Huang 7ada64860a Bug 1670820 - Part 2: Use the StoragePrincipalHelper::GetOriginAttributesForHSTS() to get the OA when checking the HSTS for http channels. r=baku,necko-reviewers,dragana
The partitionKey for HSTS is always set with 'http' scheme. So, we
should also use 'http' when checking the HSTS for http channels.

Differential Revision: https://phabricator.services.mozilla.com/D93393
2020-10-20 20:55:12 +00:00
Mihai Alexandru Michis d762ad6f42 Backed out changeset 989a13996999 (bug 1669355) for causing mochitest failures in test_fetch_event.html
CLOSED TREE
2020-10-20 17:13:25 +03:00
Andrew Sutherland 6ee5f4b5c1 Bug 1669355 - Refactor MIME type warnings into base class. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93906
2020-10-19 07:00:41 +00:00
Kershaw Chang c21369d346 Bug 1668828 - Don't set cos flag if transaction is already closed r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94081
2020-10-20 12:59:31 +00:00
Valentin Gosu 56e20d4de5 Bug 1324247 - Strip whitespace from hash in URL setters r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93472
2020-10-16 07:11:55 +00:00
Valentin Gosu 1756a71ac0 Bug 1324247 - Strip whitespace from queries in URL setters r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93471
2020-10-16 07:11:42 +00:00
Valentin Gosu b5dcdc80bb Bug 1669780 - Backed out changeset 29d1be2b96f9 (Bug 1569715) for causing us to skip CORS preflight cache for POST requests r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93746
2020-10-19 07:45:46 +00:00
Dragana Damjanovic ddaca31b0c Bug 1671521 - Update neqo to version 0.4.13 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93703
2020-10-16 07:13:32 +00:00
ffxbld db1c8d8a34 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D93667
2020-10-15 16:43:04 +00:00
Dan Minor c7c8e3f274 Bug 1669573 - Rename kTimeFormatSeconds and kTimeFormatNoSeconds; r=zbraniecki
This renames kTimeFormatSeconds to kTimeFormatLong and kTimeFormatNoSeconds to
kTimeFormatShort. This is consistent with the naming used for date format
selectors.

Differential Revision: https://phabricator.services.mozilla.com/D93011
2020-10-15 12:20:15 +00:00
Valentin Gosu 99429ed4ed Bug 1671164 - Make sure lock is held when calling AddrHostRecord::Blocklisted r=necko-reviewers,dragana
Depends on D93491

Differential Revision: https://phabricator.services.mozilla.com/D93492
2020-10-15 11:06:09 +00:00
Valentin Gosu 1a306ee2c7 Bug 1671164 - Rename nsHostResolver::Blacklisted to Blocklisted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93491
2020-10-15 11:04:29 +00:00
Dimi Lee 7a61308533 Bug 1669731 - P3. Add Allow API to ChannelClassifierService. r=timhuang,nhnt11
UI needs to distinguish the cases when a channel is shimmed and is
unshimmed.
When a channel is unshimmed, we unblock the channel and simply treat the channel as a
non-tracking channel.
When a channel is shimmed, although the channel is unblocked by
URLCLassifier, we still want to show it in the UI. For this case,
URLClassifier will notify a content blocking event when a channel is
unblocked.

This patch adds a new allow API, so the caller can use unblock() or
allow() depending upon the case it requires.

Differential Revision: https://phabricator.services.mozilla.com/D93271
2020-10-14 09:17:04 +00:00
Dimi Lee d56e33dd5e Bug 1669731 - P1. Rename STATE_UNBLOCKED_UNSAFE_CONTENT to STATE_UNBLOCKED_TRACKING_CONTENT r=timhuang
unsafe content is for Safe Browsing(phishing, malware, etc), we should use tracking content instead.

Differential Revision: https://phabricator.services.mozilla.com/D93269
2020-10-14 09:16:39 +00:00
Valentin Gosu 1f15b5f8cb Bug 1186737 - nsMultiMixedConv should not hang if it gets no data r=necko-reviewers,dragana
Previously it was possible to not have mBoundarySet so we just bailed in
OnStopRequest - but after Bug 1321612 that is not possible, and we
call OnStopRequest with NS_ERROR_CORRUPTED_CONTENT.

This patch removes the check for the boundary, allowing the code to call
`mFinalListener->OnStopRequest(request, aStatus)` instead of hanging.

Differential Revision: https://phabricator.services.mozilla.com/D93340
2020-10-14 07:56:24 +00:00
Olli Pettay 1a587403e7 Bug 1668083 - when redirecting load from post to get, load should become replacing load also in session history, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D93249
2020-10-13 16:36:11 +00:00
Aaron Klotz 865e038207 Bug 1668376: Part 1 - Rename GeckoProcessManager::MarkAsDead to GeckoProcessManager::ShutdownProcess; r=geckoview-reviewers,necko-reviewers,agi,dragana
Since the semantics of `ContentParent::MarkAsDead` are significantly different
from `GeckoProcessManager::MarkAsDead`, let's rename the latter to better
reflect what it actually does.

Differential Revision: https://phabricator.services.mozilla.com/D92649
2020-10-06 20:25:02 +00:00
Christoph Kerschbaumer 88e9eb0d02 Bug 1665062: HTTPS-Only: Upgraded website creating HTTP auth prompt gets interrupted by error-page r=necko-reviewers,dragana,JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D91908
2020-10-13 14:06:28 +00:00
Dragana Damjanovic 5ee4d78cb9 Bug 1670089 - Fix transactions WriteSegments issue with http3. r=necko-reviewers,valentin
The problem occurs when a response does not have a body. In this case the transaction will never be closed.  if a transaction only has read headers, WriteSegments will return 0 bytes written(bug 1646701) and WriteSegments will not be called again and the transaction will not pickup the FIN bit.

Some code improvements:
- calling WriteSegments in a loop has been moved to Http3Stream. This is more appropriate place
- remove RECEIVED_RESET, because it is not used
- add test and add head_http3.js for setting up http3 tests (e.g. making sure that an alt-svc mapping is setup)
- fix handling of a response that has more data than its content-length header indicates.

Differential Revision: https://phabricator.services.mozilla.com/D92990
2020-10-13 09:40:24 +00:00
JulianWels b88cf407ac Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 12:27:26 +00:00
Mihai Alexandru Michis 55dd1dbe43 Backed out changeset b3fb1b5bbe34 (bug 1608074) for causing bustages in XMLHttpRequestMainThread.cpp
CLOSED TREE
2020-10-13 14:55:06 +03:00
JulianWels 2ae8134434 Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 10:39:11 +00:00
Dragana Damjanovic 2f6b73bd1e Bug 1670085 - Http3 cannot be dispatch using OnMsgReclaimConnection. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93323
2020-10-13 09:10:05 +00:00
Frederik Braun d0107a4b05 Bug 1641190 - allow requests from systemprincipal for AltSvc request r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93221
2020-10-13 08:50:31 +00:00
ffxbld 4c9d801663 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D93223
2020-10-12 14:35:15 +00:00
Bas Schouten 25a1b0f61f Bug 1669256 - Part 1: Remove AbstractEventQueue and de-templatize ThreadEventQueue. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92709
2020-10-09 17:56:34 +00:00
Matt Woodrow d54cb42cc5 Bug 1642951 - Don't fill the nsBufferedStream buffer when seeking to 0, to avoid opening lazy inner streams. r=baku,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91362
2020-10-09 04:38:10 +00:00
Kershaw Chang 883455945d Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-08 13:26:03 +00:00
Christoph Kerschbaumer faf05f7d19 Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
ffxbld 60a6414375 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D92940
2020-10-08 14:54:02 +00:00
Dragana Damjanovic 226b522fe0 Bug 1669680 - Read from a neqo stream in a loop until all data re read or thee stream consumer can not handle more data. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92753
2020-10-07 18:24:31 +00:00
Razvan Maries d359081e12 Backed out changeset aaf5c5213d8d (bug 1665062) for perma failures on test_http_background_auth_request.html. CLOSED TREE 2020-10-07 17:51:55 +03:00
Christoph Kerschbaumer d43cc4af7e Bug 1665062: HTTPS-Only: Upgraded website creating HTTP auth prompt gets interrupted by error-page r=necko-reviewers,dragana,JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D91908
2020-10-07 11:47:07 +00:00
Razvan Maries f56817ceee Backed out changeset da4cf62e21fb (bug 1668851) for perma failures on browser_cdp.js. CLOSED TREE 2020-10-07 15:08:01 +03:00
Kershaw Chang d1927c3c05 Bug 1666620 - Close the transaction when Http3Session::Init failed, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91115
2020-10-07 08:48:38 +00:00
Kershaw Chang 347295305d Bug 1652717 - P2: Implement fast fallback when H3 is used r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90998
2020-10-07 08:48:25 +00:00
Kershaw Chang c35e553d02 Bug 1652717 - P1: Make sure we can connect to Http3 server according to HTTPS RR r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90997
2020-10-07 09:14:59 +00:00
Kershaw Chang e15e30d8c5 Bug 1665878 - Reset exclusion list when all target names are all excluded, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90822
2020-10-06 20:06:53 +00:00
Kershaw Chang beca4c9d74 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 20:06:55 +00:00
Kershaw Chang 003f18dacb Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-07 08:00:56 +00:00
Kershaw Chang f29527e029 Bug 1656697, r=valentin,necko-reviewers
The root cause in this bug is that the connection info used by `SpdyConnectTransaction` is the same instance as the connection info in `nsHttpTransaction`, so we should clone it and let `SpdyConnectTransaction` use the cloned one.

Differential Revision: https://phabricator.services.mozilla.com/D89801
2020-10-06 14:58:30 +00:00
Dorel Luca 5c6d2146ce Backed out 5 changesets (bug 1652717, bug 1665878, bug 1666620, bug 1652713) for XPCshell failures in components/migration/tests/unit/xpcshell.ini. CLOSED TREE
Backed out changeset 6322b86e1df4 (bug 1666620)
Backed out changeset ab09fd84e0e4 (bug 1652717)
Backed out changeset 018c0eebe944 (bug 1652717)
Backed out changeset 1636234a4768 (bug 1665878)
Backed out changeset 395117cd7b25 (bug 1652713)
2020-10-06 22:39:34 +03:00
Sylvestre Ledru 0bb0c0e4cf Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,dragana,whimboo
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92460
2020-10-06 16:12:13 +00:00
Sylvestre Ledru d9cd198ba1 Bug 1519636 - Reformat recent changes to the Google coding style r=andi,necko-reviewers,dragana
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92459
2020-10-06 16:12:00 +00:00
Dragana Damjanovic 030fcd3a0e Bug 1667351 - Process neqo events immediately after a cert authentication is done. r=necko-reviewers,valentin
Currently we call ResumeSend() which will not process neqo events. It will only produce new packets. We are relying on other events, like timeout or a receive packet to trigger this.

Differential Revision: https://phabricator.services.mozilla.com/D92113
2020-10-05 19:03:55 +00:00
Dragana Damjanovic 3c5f61beb2 Bug 1669449 - Make sure the output array is empty before calling GetEvent r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92563
2020-10-06 11:12:13 +00:00
Kershaw Chang 263a19bfb2 Bug 1669270 - Don't call OnProxyConnectComplete if it's websocket over h2 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92494
2020-10-06 08:42:01 +00:00
Kershaw Chang 7b741eaca1 Bug 1668802 - Remove SpdyConnectTransaction::mConnInfo r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92441
2020-10-05 14:44:03 +00:00
Kershaw Chang 6531bf10b8 Bug 1666620 - Close the transaction when Http3Session::Init failed, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91115
2020-10-06 10:53:38 +00:00
Kershaw Chang c8a92b9fee Bug 1652717 - P2: Implement fast fallback when H3 is used r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90998
2020-10-06 11:26:57 +00:00
Kershaw Chang 24121cf263 Bug 1652717 - P1: Make sure we can connect to Http3 server according to HTTPS RR r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90997
2020-10-06 10:51:58 +00:00
Kershaw Chang 4ab4ff8981 Bug 1665878 - Reset exclusion list when all target names are all excluded, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90822
2020-10-06 09:48:05 +00:00
Kershaw Chang 99208e5b56 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 09:47:52 +00:00
Bogdan Tara 8391350978 Backed out changeset eff866cb4c66 (bug 1668851) for browser_net-ws-filter-freetext.js failures CLOSED TREE 2020-10-06 13:46:20 +03:00
Kershaw Chang b98b252e20 Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-06 08:18:21 +00:00
julianwels 341416588c Bug 1653026 - Added HTTPS-Only Mode upgrade info to browser UI state. r=mattwoodrow,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D86566
2020-10-06 00:34:55 +00:00
Brindusan Cristian 876fad947b Backed out changeset 4dd604f6e395 (bug 1667351) for causing high frequency xpcshell failures at test_altsvc_pref.js. CLOSED TREE 2020-10-05 21:59:35 +03:00
Narcis Beleuzu 025ef5008e Backed out changeset 71aa02ea22b6 (bug 1666678) for GTest failures on TestCookieMain 2020-10-05 21:32:24 +03:00
Kershaw Chang 71089ed718 Bug 1652677 - P2: Implement necko part of echconfig r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89455
2020-10-05 15:16:46 +00:00
Kershaw Chang 35c03a8910 Bug 1652677 - P1: Prefer to use records with ECH config r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89454
2020-10-05 15:16:29 +00:00
Valentin Gosu 1d498c5bad Bug 1666678 - [cookie] rejected cookie when domain have ipv6 address r=baku
Differential Revision: https://phabricator.services.mozilla.com/D91246
2020-09-24 13:17:42 +00:00
Valentin Gosu 5b2da268a4 Bug 1669203 - MaybeRenewHostRecord should hold the resolver lock. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D92428
2020-10-05 14:23:22 +00:00
Valentin Gosu f6793cc123 Bug 1668721 - ifdef shlobj_core.h inclusion on mingw32 to fix build r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92399
2020-10-05 12:22:12 +00:00