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

6600 Коммитов

Автор SHA1 Сообщение Дата
Hubert Boma Manilla ebc4be2030 Bug 1666726 - Set if a transaction uses Http 3 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D97130
2020-11-20 03:36:37 +00:00
Simon Giesecke dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke d10d03d076 Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96556

Depends on D96554
2020-11-23 16:10:41 +00:00
Simon Giesecke 0a3ad2063b Bug 1676369 - Avoid including nsIHttpChannel.h from header files. r=#necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96552

Depends on D96551
2020-11-23 16:10:11 +00:00
Simon Giesecke 6fac745ea4 Bug 1673931 - Remove dependency of BindingUtils.h on Document.h.
Differential Revision: https://phabricator.services.mozilla.com/D95048

Depends on D95047
2020-11-23 16:08:03 +00:00
Simon Giesecke d3f2ef0d0c Bug 1660470 - Avoid including ReferrerInfoUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93558

Depends on D93557
2020-11-23 16:05:56 +00:00
Simon Giesecke df217a1cec Bug 1660470 - Avoid including NeckoMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93240

Depends on D93239
2020-11-23 16:04:12 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Gian-Carlo Pascutto 3517275c68 Bug 1677485 - Add more HTTP response codes. r=necko-reviewers,bomsy
Include everything from
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Differential Revision: https://phabricator.services.mozilla.com/D97167
2020-11-20 08:39:23 +00:00
Kershaw Chang eacc182669 Bug 1648558 - Implement fast fallback for HTTP3 without httpssvc r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D95928
2020-11-19 10:18:09 +00:00
Kershaw Chang 92744d4afe Bug 1676424 - Honor Http3 excluded list when selecting a httpssvc record r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D96715
2020-11-19 10:18:49 +00:00
Gerald Squelart b3314a1582 Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-18 21:56:57 +00:00
Gerald Squelart 6e65d94961 Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-18 21:48:17 +00:00
Razvan Maries b7eeb731df Backed out 23 changesets (bug 1675409) for build bustages on Preferences.cpp. CLOSED TREE
Backed out changeset c1a131a55767 (bug 1675409)
Backed out changeset 47d210802a5d (bug 1675409)
Backed out changeset e8ebb1c58d30 (bug 1675409)
Backed out changeset 69a1e9aeff2a (bug 1675409)
Backed out changeset 68f330b387a8 (bug 1675409)
Backed out changeset e4750d9ef5a1 (bug 1675409)
Backed out changeset bb6bb71e5ab3 (bug 1675409)
Backed out changeset 988d7f4716df (bug 1675409)
Backed out changeset ca41382e891c (bug 1675409)
Backed out changeset 90f3fbbbbeda (bug 1675409)
Backed out changeset 9b109d61a6f6 (bug 1675409)
Backed out changeset 3dd66abfdaa2 (bug 1675409)
Backed out changeset 44181df5f0db (bug 1675409)
Backed out changeset bb2603d947fc (bug 1675409)
Backed out changeset 97055cf20a56 (bug 1675409)
Backed out changeset f88fcf09de0d (bug 1675409)
Backed out changeset 7963e1c49786 (bug 1675409)
Backed out changeset 4c379c1061c3 (bug 1675409)
Backed out changeset b8be8ae7da63 (bug 1675409)
Backed out changeset 0b90aa89421e (bug 1675409)
Backed out changeset c10fb46467c9 (bug 1675409)
Backed out changeset 894ac233b290 (bug 1675409)
Backed out changeset 075d1d8e34c2 (bug 1675409)
2020-11-18 20:06:28 +02:00
Sylvestre Ledru bebb9f9181 Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp
It is bringing some minor changes

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90795
2020-11-18 09:05:59 +00:00
Gerald Squelart ced008cc9f Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-17 22:26:20 +00:00
Gerald Squelart 91baec6f52 Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-17 22:17:40 +00:00
Mihai Alexandru Michis c0d25b01b2 Backed out 24 changesets (bug 1666566, bug 1675409) for causing hazard failures in profiler/core/platform.cpp
CLOSED TREE

Backed out changeset 4d8af8533fd4 (bug 1666566)
Backed out changeset f031a3a8a20f (bug 1675409)
Backed out changeset 2b7e1a031921 (bug 1675409)
Backed out changeset bda5a24b2d0a (bug 1675409)
Backed out changeset 4282e2284314 (bug 1675409)
Backed out changeset 0637f1b26e9f (bug 1675409)
Backed out changeset 67ae04c8f607 (bug 1675409)
Backed out changeset 6c7b3f3618ef (bug 1675409)
Backed out changeset 2f325c22d169 (bug 1675409)
Backed out changeset 1e48ff70ad8f (bug 1675409)
Backed out changeset 1dfc32d6871d (bug 1675409)
Backed out changeset 4f1f218a777b (bug 1675409)
Backed out changeset e6ac8722b38e (bug 1675409)
Backed out changeset cf132e15fb57 (bug 1675409)
Backed out changeset a126e6b00ba9 (bug 1675409)
Backed out changeset fbc7fbb04f33 (bug 1675409)
Backed out changeset 554c69681474 (bug 1675409)
Backed out changeset 44d0521c701f (bug 1675409)
Backed out changeset 04653dfe4720 (bug 1675409)
Backed out changeset 41ca2c043a00 (bug 1675409)
Backed out changeset 264ae4c805d4 (bug 1675409)
Backed out changeset 5f3bbdac0d52 (bug 1675409)
Backed out changeset 11311c11a6e8 (bug 1675409)
Backed out changeset 0355fbc44baf (bug 1675409)
2020-11-17 19:31:28 +02:00
Gerald Squelart f8c24dd6a4 Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-17 11:40:46 +00:00
Gerald Squelart 6ea0ba8e9d Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-17 11:57:23 +00:00
Kershaw Chang 2e58759c35 Bug 1677086 - Parse SvcParamKeyAlpn as defined in spec r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D97000
2020-11-17 11:07:03 +00:00
sagudev 2c2640694d Bug 1658008 - Add preference to control Accept HTTP header and genarate header based on image Accept header. r=jbauman,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95668
2020-11-16 21:47:10 +00:00
Sylvestre Ledru 0129dd3f83 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/D96608
2020-11-16 22:09:25 +00:00
Valentin Gosu bd132e112d Bug 1658097 - [fission] Send resource timing data for cross-origin frames to the correct process r=nika,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D96754
2020-11-13 13:48:00 +00:00
Dragana Damjanovic 71612de3dc Bug 1676851 - Make sure to return NS_BASE_STREAM_WOULD_BLOCK if number of read/written bytes to neqo stream is 0. r=necko-reviewers,valentin
If NS_OK is return, nsBufferedInputStream::ReadSegments may loop.

Differential Revision: https://phabricator.services.mozilla.com/D96996
2020-11-13 21:26:14 +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
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
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 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
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 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 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
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
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 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
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
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
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
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
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
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
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 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