Commit Graph

3710 Commits

Author SHA1 Message Date
Agi Sferro
f624964341 Bug 1567341 - Disable failing tests in netwerk/test/unit. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109556
2021-03-24 21:49:42 +00:00
Agi Sferro
d5d1cea3af Bug 1567341 - Re enable netwerk/test/unit_ipc/xpcshell.ini on Android. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106214
2021-03-24 21:49:39 +00:00
Alexandru Michis
497409d76e Backed out 24 changesets (bug 1567341) for causing xpcshell failures in test_telemetry.js
CLOSED TREE

Backed out changeset deb795c7d0ed (bug 1567341)
Backed out changeset 62d24a3e5e33 (bug 1567341)
Backed out changeset 1185cabd94e0 (bug 1567341)
Backed out changeset 73a4ae419261 (bug 1567341)
Backed out changeset b6eb111329f3 (bug 1567341)
Backed out changeset 0dc0bfedc042 (bug 1567341)
Backed out changeset 9dca635e41d7 (bug 1567341)
Backed out changeset c34928580933 (bug 1567341)
Backed out changeset f9ba384bb407 (bug 1567341)
Backed out changeset ec25c2df380e (bug 1567341)
Backed out changeset 9e8ea542b51e (bug 1567341)
Backed out changeset 3dc62863a028 (bug 1567341)
Backed out changeset 6c104f865540 (bug 1567341)
Backed out changeset c422ca4207ea (bug 1567341)
Backed out changeset e3df748ed62f (bug 1567341)
Backed out changeset 9d1f27796a97 (bug 1567341)
Backed out changeset 1d93ba23f809 (bug 1567341)
Backed out changeset 55652f6af6ed (bug 1567341)
Backed out changeset 9fb892955a88 (bug 1567341)
Backed out changeset 1cdd95c43416 (bug 1567341)
Backed out changeset 5a839d5e3e33 (bug 1567341)
Backed out changeset ea84b5749a27 (bug 1567341)
Backed out changeset dcb1ae146475 (bug 1567341)
Backed out changeset d72accc274ac (bug 1567341)
2021-03-24 23:37:43 +02:00
Agi Sferro
a36db342c9 Bug 1567341 - Disable failing tests in netwerk/test/unit. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109556
2021-03-24 20:20:05 +00:00
Agi Sferro
1f92e180b2 Bug 1567341 - Re enable netwerk/test/unit_ipc/xpcshell.ini on Android. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106214
2021-03-24 20:20:03 +00:00
Kershaw Chang
9e4f5f9c4a Bug 1700103 - Disallow to use https rr for internal requests r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D109348
2021-03-24 08:11:22 +00:00
Butkovits Atila
986556cbfa Bug 1694521 - Fix lint failure, r=fix. CLOSED TREE 2021-03-21 23:16:04 +02:00
Valentin Gosu
297cb23790 Bug 1608066 - Remove skip-if for test_trr.js on thunderbird r=nhnt11
Bug 1694521 fixes the test_trr_flags test by not using channels and
invalid ports - so the speculative connection difference no longer
applies.

Differential Revision: https://phabricator.services.mozilla.com/D106898
2021-03-21 20:20:37 +00:00
Nihanth Subramanya
1be49797e8 Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-03-21 20:20:37 +00:00
Nihanth Subramanya
4b5d33266e Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-03-21 20:20:36 +00:00
Nihanth Subramanya
909670d78f Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-03-21 20:20:36 +00:00
Nihanth Subramanya
22b8b301b8 Bug 1694521 - Part 2: unify confirmation and cname tests and simplify mode 1 and 4 tests. r=valentin,necko-reviewers
Also clean up some TODOs

Differential Revision: https://phabricator.services.mozilla.com/D106341
2021-03-21 20:20:35 +00:00
Nihanth Subramanya
abe5ebef17 Bug 1694521 - Part 1: Clean up test_trr.js. r=necko-reviewers,valentin
1. Moved some setup stuff to head.js
2. Removed dumps
3. Changed comments to info()s at the beginning of tests
4. Combined some related tests.
5. Added helper to set TRR mode and uri
6. Some de-duplication when needing to do a test for different modes (more to be done)
7. Added some comments where missing, e.g. linking a bug
8. Gave all test functions good names

Differential Revision: https://phabricator.services.mozilla.com/D106215
2021-03-21 20:20:35 +00:00
smolnar
aec12328ea Backed out 6 changesets (bug 1608066, bug 1694521) for causing xpc failures in netwerk/test/unit/test_trr.js CLOSED TREE
Backed out changeset 8e3d7b19942b (bug 1608066)
Backed out changeset bce9de43b16f (bug 1694521)
Backed out changeset 3ca672212d45 (bug 1694521)
Backed out changeset d583fb117af4 (bug 1694521)
Backed out changeset bac1e7636cea (bug 1694521)
Backed out changeset c8f117ae9339 (bug 1694521)
2021-03-21 03:57:41 +02:00
Valentin Gosu
de91eaf580 Bug 1608066 - Remove skip-if for test_trr.js on thunderbird r=nhnt11
Bug 1694521 fixes the test_trr_flags test by not using channels and
invalid ports - so the speculative connection difference no longer
applies.

Differential Revision: https://phabricator.services.mozilla.com/D106898
2021-03-21 01:17:31 +00:00
Nihanth Subramanya
012e2bed00 Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-03-21 01:17:30 +00:00
Nihanth Subramanya
6a52863b27 Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-03-21 01:17:30 +00:00
Nihanth Subramanya
ba0b713432 Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-03-21 01:17:29 +00:00
Nihanth Subramanya
df00ae9389 Bug 1694521 - Part 2: unify confirmation and cname tests and simplify mode 1 and 4 tests. r=valentin,necko-reviewers
Also clean up some TODOs

Differential Revision: https://phabricator.services.mozilla.com/D106341
2021-03-21 01:17:29 +00:00
Nihanth Subramanya
d0fb3ff081 Bug 1694521 - Part 1: Clean up test_trr.js. r=necko-reviewers,valentin
1. Moved some setup stuff to head.js
2. Removed dumps
3. Changed comments to info()s at the beginning of tests
4. Combined some related tests.
5. Added helper to set TRR mode and uri
6. Some de-duplication when needing to do a test for different modes (more to be done)
7. Added some comments where missing, e.g. linking a bug
8. Gave all test functions good names

Differential Revision: https://phabricator.services.mozilla.com/D106215
2021-03-21 01:17:28 +00:00
Valentin Gosu
b3b6a9b1d0 Bug 1658278 - Fix test_httpssvc_iphint.js - do not set trr.mode before test a=testonly
Differential Revision: https://phabricator.services.mozilla.com/D109118
2021-03-19 19:24:41 +00:00
Valentin Gosu
166fcff1ca Bug 1658278 - Add test for multiple failures triggering confirmation r=necko-reviewers,dragana,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D109001
2021-03-19 17:51:28 +00:00
Valentin Gosu
7996cfd62e Bug 1658278 - Make TRRServer.registerDoHAnswers easier to extend r=necko-reviewers,dragana,nhnt11
We now pass a map object instead multiple arguments.
This way if we need to add/remove/change something we don't need to worry
about backwards compatibility and having to change all the callsites as
we do in this patch :)

Differential Revision: https://phabricator.services.mozilla.com/D109000
2021-03-19 17:51:27 +00:00
Valentin Gosu
45d5e3c349 Bug 1658278 - Add TRR confirmation test r=necko-reviewers,dragana,nhnt11
Also adds nsIDNSService.currentTrrConfirmationState IDL method for test use

Differential Revision: https://phabricator.services.mozilla.com/D108999
2021-03-19 17:51:27 +00:00
Valentin Gosu
47cd0f08de Bug 1658278 - Split TRR's CONFIRM_TRYING into CONFIRM_TRYING_OK and CONFIRM_TRYING_FAILED r=necko-reviewers,nhnt11,dragana,preferences-reviewers
- Adds CONFIRM_TRYING_FAILED confirmation state. We use this state when we retry confirmation after confirmation fails.
- Rename CONFIRM_TRYING to CONFIRM_TRYING_OK. We use this state when we try confirmation but no confirmation failure has happened.
- Rename CONFIRM_INIT to CONFIRM_OFF. We use this state whenever there is an event that would disable TRR - such as a TRR mode change.
- Add CONFIRM_DISABLED confirmation state. We use this state in mode3 or when confirmationNS=="skip"
- To potentially allow us to have the same behaviour as after Bug 1689113, specifically the we might be able to report TRRService::Enabled = true when retrying and the state is CONFIRM_TRYING_FAILED we added `network.trr.attempt-when-retrying-confirmation`
- After a large number of TRR failures occurs, we immediately trigger another confirmation and go into CONFIRM_TRYING_OK. This allows us to cope with a temporary increase in network latency that is smaller than 6s.
- We no longer trigger confirmation for nsIRequest::TRR_FIRST_MODE when the resolver mode is not TRR_FIRST. This allows us to simplify the code.
- test_trr_proxy.js now calls trr_test_setup() after it sets up the pac script to avoid confirmation causing non-local connections in tests.
- Moves all the confirmation state handing into HandleConfirmationEvent

Differential Revision: https://phabricator.services.mozilla.com/D107666
2021-03-19 17:51:26 +00:00
Noemi Erli
d6c77a2d6e Bug 1698503 - Lint failure fix r=fix CLOSED TREE 2021-03-19 16:47:22 +02:00
Frederik Braun
62c411e5e9 Bug 1698503 - robuster port blocking r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108451
2021-03-19 14:08:03 +00:00
Kershaw Chang
02a4432e92 Bug 1698015 - Add another way to download ODoHConfigs via https r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108174
2021-03-19 08:29:14 +00:00
Kershaw Chang
f5610eabae Bug 1699463 - Update neqo to v0.4.23 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108961
2021-03-18 16:18:27 +00:00
Brindusan Cristian
58b5969968 Backed out 2 changesets (bug 1698438) for windows build bustages. CLOSED TREE
Backed out changeset a27e4101f65f (bug 1698438)
Backed out changeset 257f86638d46 (bug 1698438)
2021-03-17 14:52:27 +02:00
Kershaw Chang
cb78102ea6 Bug 1698438 - Neqo version 0.4.22 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108750
2021-03-17 12:15:54 +00:00
Alexandru Michis
0f6819e94d Bug 1697970 - Disable test_arraybufferinputstream_large.html on linux asan for permafailing. r=jstutte,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108220
2021-03-17 05:56:22 +00:00
Sebastian Streich
239f9451dc Bug 1685570 Backed out changeset 92d71744323a r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D107670
2021-03-10 15:15:24 +00:00
Kershaw Chang
96c74d4fce Bug 1696037 - Make sure X-Firefox-Http3 is set properly r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D107646
2021-03-10 08:02:55 +00:00
Valentin Gosu
f1732976d8 Bug 1676331 - Test that submitting a form with a large blob works with authentication r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D107069
2021-03-08 10:43:13 +00:00
Valentin Gosu
3f6eec2f43 Bug 1677521 - Enable test_trr.js::test25e r=necko-reviewers,kershaw
This test was disabled in Bug 1666072 when we set the allowSTS=false for
captive portal requests to prevent a HSTS upgrade redirect.

Bug 1681683 added a different property (isOCSP) to be able to differentiate
OCSP channels from regular ones, so even if captive portal channels have
allowSTS=false, they still use the same TRR mode as was initially set
on the channel. This means the test will now work in mode3 as well.

Differential Revision: https://phabricator.services.mozilla.com/D106892
2021-03-05 14:26:22 +00:00
Kershaw Chang
591f256df1 Bug 1695665 - Skip upgrading to https with HTTPS RR for internal requests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D106780
2021-03-04 14:44:02 +00:00
Jens Stutte
1e19379853 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-27 14:38:14 +00:00
Butkovits Atila
bb3fe218a4 Backed out changeset be43a81b35f9 (bug 1689953) for causing failure at test_terminator_record.js. CLOSED TREE 2021-02-27 05:03:11 +02:00
Jens Stutte
f6d52040b9 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-26 21:33:29 +00:00
smolnar
81bf425def Backed out 5 changesets (bug 1694521) for causing xpc failures in netwerk/test/unit/test_partial_response_entry_size_smart_shrink. CLOSED TREE
Backed out changeset 706062287f0f (bug 1694521)
Backed out changeset 6248905f1783 (bug 1694521)
Backed out changeset b3591788658c (bug 1694521)
Backed out changeset b91e0a2caf42 (bug 1694521)
Backed out changeset 605a5ce59dd7 (bug 1694521)
2021-02-26 19:24:32 +02:00
Nihanth Subramanya
c9df4a4d2c Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-02-26 15:34:58 +00:00
Nihanth Subramanya
40249078c8 Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-02-26 15:34:57 +00:00
Nihanth Subramanya
f14e245cf2 Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-02-26 15:34:57 +00:00
Nihanth Subramanya
98df211b8c Bug 1694521 - Part 2: unify confirmation and cname tests and simplify mode 1 and 4 tests. r=valentin,necko-reviewers
Also clean up some TODOs

Differential Revision: https://phabricator.services.mozilla.com/D106341
2021-02-26 15:34:57 +00:00
Nihanth Subramanya
5c4ef262c4 Bug 1694521 - Part 1: Clean up test_trr.js. r=necko-reviewers,valentin
1. Moved some setup stuff to head.js
2. Removed dumps
3. Changed comments to info()s at the beginning of tests
4. Combined some related tests.
5. Added helper to set TRR mode and uri
6. Some de-duplication when needing to do a test for different modes (more to be done)
7. Added some comments where missing, e.g. linking a bug
8. Gave all test functions good names

Differential Revision: https://phabricator.services.mozilla.com/D106215
2021-02-26 15:34:56 +00:00
smolnar
485d71fd41 Backed out 5 changesets (bug 1694521) for causing xpc failures in test_trr. CLOSED TREE
Backed out changeset 0a83b1b7d78b (bug 1694521)
Backed out changeset 8bdbbb7e590e (bug 1694521)
Backed out changeset e1eb73d967f9 (bug 1694521)
Backed out changeset bb7f09af9a68 (bug 1694521)
Backed out changeset 2cbdf93337fe (bug 1694521)
2021-02-26 17:04:21 +02:00
Nihanth Subramanya
d2e0a34c0d Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-02-26 14:03:32 +00:00
Nihanth Subramanya
426a18751a Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-02-26 14:03:32 +00:00
Nihanth Subramanya
8a3b1e0e15 Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-02-26 14:03:32 +00:00