Commit Graph

21859 Commits

Author SHA1 Message Date
ffxbld
7ffcf86c64 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D110105
2021-03-29 15:01:12 +00:00
Tim Huang
66dc23a3e4 Bug 1695050 - Part 5: Update the call-sites of CookieJarSettings::Create() for Necko. r=dimi,necko-reviewers,valentin
This patch updates the call-sites of CookieJarSettings::Create() in both
LoadInfo.cpp, nsHttpChannel.cpp and CookieCommons.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D109048
2021-03-29 11:01:52 +00:00
Tim Huang
3fd8634816 Bug 1695050 - Part 3: Update current test cases and add a new test case. r=dimi
This patch updates the pref for existing content blocking tests. And it
also adds a new test to verify that the cookieBehavior in regular
windowa and private window are both correct.

Differential Revision: https://phabricator.services.mozilla.com/D109046
2021-03-29 11:01:51 +00:00
Tim Huang
eec2a9b646 Bug 1695050 - Part 2: Modify CookieJarSettings::Create() to be able to creat cookieJarSettings according to the browsing mode. r=dimi,preferences-reviewers
This patch modifies the current CookieJarSettings::Create() function.
It removes the current function and adds two variants. One takes the
nsIPrincipal as input and another takes the enum value. The new
functions will test if the input is for the private browsing window to
create the corresponding cookieJarSettings.

Differential Revision: https://phabricator.services.mozilla.com/D109045
2021-03-29 11:01:51 +00:00
Ted Campbell
9b6e632d81 Bug 1700954 - Remove remaining BinAST fragments from ScriptLoader. r=arai,hsivonen,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D109765
2021-03-26 13:01:40 +00:00
Kershaw Chang
abe7361f8b Bug 1700309 - Retry DNS query when RESOLVE_IP_HINT is set r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D109819
2021-03-26 10:33:19 +00:00
Butkovits Atila
ad9b1ed9d7 Backed out 12 changesets (bug 1683131, bug 1696111, bug 1695987) for causing crashes(Bug 1701151). a=backout
Backed out changeset 8ffef57e27d2 (bug 1683131)
Backed out changeset c02d5dc72abb (bug 1695987)
Backed out changeset 276f016ddc67 (bug 1683131)
Backed out changeset 2c7a45e20b50 (bug 1683131)
Backed out changeset 11fdb503d537 (bug 1696111)
Backed out changeset 2946eff1e9c8 (bug 1696111)
Backed out changeset e4d01b88e517 (bug 1696111)
Backed out changeset fab7f4cd445d (bug 1696111)
Backed out changeset d60c38f8939a (bug 1696111)
Backed out changeset 3fdc8089a46f (bug 1696111)
Backed out changeset 51a16dfabc98 (bug 1696111)
Backed out changeset 642bdd52fd57 (bug 1696111)
2021-03-26 11:30:28 +02:00
Kris Maglione
5db2bf4bdb Bug 1581859: Part 3b - Update existing GetPropertyAsInterface callers to use typesafe do_GetProperty instead. r=mccr8,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103211
2021-03-25 19:47:02 +00:00
ffxbld
57e9f18c25 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D109733
2021-03-25 14:56:34 +00:00
Tom Tung
ec157c9846 Bug 1683131 - Fix namespace ambiguity issue on ipc::Endpoint after including nsHttpChannel in imgLoader; r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D108002
2021-03-25 12:09:42 +00:00
Tom Tung
f8b719c714 Bug 1695987 - Collect the size of response to be parsed on ORB; r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106960
2021-03-25 12:09:42 +00:00
Eden Chuang
079d9effe3 Bug 1683131 - Add a test for telemetry r=necko-reviewers,dragana
Depends on D103028

Differential Revision: https://phabricator.services.mozilla.com/D104507
2021-03-25 12:09:42 +00:00
Tom Tung
f89e57fe8c Bug 1683131 - Add telemetry probes to record time and result for checking a opaque response is allowed or not; r=necko-reviewers,annevk,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103028
2021-03-25 12:09:41 +00:00
Tom Tung
02e26e0a82 Bug 1696111 - Use sniffers in the requested category; r=necko-reviewers,valentin
After applying D102448,
uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml starts to fail.
The reason is that it adds image sniffer into net-content-sniffers which is not
expected.

Such that, this patch
- adds two other sniffers category:
  - orb-content-sniffers
    - The sniffers that are needed in ORB.
  - net-and-orb-content-sniffers
    - The sniffers that are in either orb-content-sniffers or net-content-sniffers.
- changes the way to ensure we only use the sniffers in the
requested category.

Differential Revision: https://phabricator.services.mozilla.com/D107207
2021-03-25 12:09:41 +00:00
Tom Tung
04151cd9e2 Bug 1696111 - Sniff and check the initial media request and allow its subsequent requests; r=necko-reviewers,dragana
This implements the changes in https://github.com/annevk/orb/pull/16/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

Differential Revision: https://phabricator.services.mozilla.com/D106891
2021-03-25 12:09:40 +00:00
Eden Chuang
908b174731 Bug 1696111 - Make LoadInfo know if the request is triggered from a media element and if it's an initial request. r=necko-reviewers,alwu,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106890
2021-03-25 12:09:40 +00:00
Tom Tung
74f1416df7 Bug 1696111 - Extract the code for parsing range header string out and use it later; r=alwu,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106889
2021-03-25 12:09:39 +00:00
Tom Tung
1ff4caafd7 Bug 1696111 - ORB core Implementation; r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102448
2021-03-25 12:09:39 +00:00
Tom Tung
612d68756f Bug 1696111 - Add functions to determine opaque-safelisted MIME type, opaque-blocklisted MIME type and opaque-blocklisted-never-sniffed MIME type; r=necko-reviewers,dragana
These functions are defined at https://github.com/annevk/orb.

Differential Revision: https://phabricator.services.mozilla.com/D102447
2021-03-25 12:09:38 +00:00
Simon Giesecke
760cc7e936 Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
- Add missing include directives and forward declarations.
- Remove some extra include directives.
- Add missing namespace qualifications.
- Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h

Differential Revision: https://phabricator.services.mozilla.com/D98894
2021-03-25 10:19:44 +00:00
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
Simon Giesecke
613e20d136 Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D108587
2021-03-24 17:56:49 +00:00
Simon Giesecke
15d3d060cf Bug 1184468 - Use nsTHashtable::Keys where possible in netwerk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106950
2021-03-24 17:51:12 +00:00
Csoregi Natalia
f54ee076ae Backed out 13 changesets (bug 708901, bug 1184468) for causing build bustage on GeckoViewHistory.cpp. CLOSED TREE
Backed out changeset b1e4c01e63b8 (bug 708901)
Backed out changeset 37b52cce83c0 (bug 708901)
Backed out changeset eee75f33f060 (bug 708901)
Backed out changeset 479bf64c7986 (bug 708901)
Backed out changeset 15a8fb94d15d (bug 708901)
Backed out changeset be31ccd9a61d (bug 708901)
Backed out changeset fc54f4eaedd5 (bug 708901)
Backed out changeset 03c3a56c3d13 (bug 708901)
Backed out changeset 73f11d3c1298 (bug 708901)
Backed out changeset aed22fd80893 (bug 708901)
Backed out changeset 74d8249fbe7e (bug 708901)
Backed out changeset acb725eb3c1d (bug 1184468)
Backed out changeset 70f3ea6efec4 (bug 1184468)
2021-03-24 19:26:20 +02:00
Simon Giesecke
8aaa3daac8 Bug 1184468 - Use nsTHashtable::Keys where possible in netwerk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106950
2021-03-24 16:58:57 +00:00
Valentin Gosu
b9b3ca2495 Bug 1700091 - Always hold mutex when accessing TypeHostRecord::mResults r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109343
2021-03-24 14:17:48 +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
Csoregi Natalia
024e0b2323 Backed out 10 changesets (bug 1581859) for causing hazard failures. CLOSED TREE
Backed out changeset 93fe6801a5e2 (bug 1581859)
Backed out changeset 0a33cb185fb3 (bug 1581859)
Backed out changeset 9ceaad6dab5b (bug 1581859)
Backed out changeset ee611f0839ca (bug 1581859)
Backed out changeset 4199963fe477 (bug 1581859)
Backed out changeset b4c5ace21b9e (bug 1581859)
Backed out changeset 6003469dc449 (bug 1581859)
Backed out changeset 826c62b783c0 (bug 1581859)
Backed out changeset e1d7851295fd (bug 1581859)
Backed out changeset 9796577af27a (bug 1581859)
2021-03-24 08:48:00 +02:00
Kris Maglione
6e2223e151 Bug 1581859: Part 3b - Update existing GetPropertyAsInterface callers to use typesafe do_GetProperty instead. r=mccr8,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103211
2021-03-23 23:57:11 +00:00
Simon Giesecke
705461265d Bug 708901 - Migrate to nsTHashSet in netwerk. r=necko-reviewers,valentin
Depends on D108600

Differential Revision: https://phabricator.services.mozilla.com/D108601
2021-03-23 10:36:35 +00:00
Cosmin Sabou
7eba371387 Backed out 10 changesets (bug 1581859) for causing hazard failures on ExtensionsParent.cpp.
Backed out changeset 6020ec7d7f32 (bug 1581859)
Backed out changeset 07901e457839 (bug 1581859)
Backed out changeset e23389fc98b5 (bug 1581859)
Backed out changeset 4287eebc2c77 (bug 1581859)
Backed out changeset eeff6f501cfc (bug 1581859)
Backed out changeset 22db36f7d16d (bug 1581859)
Backed out changeset 16831d45d0ed (bug 1581859)
Backed out changeset 816643de7694 (bug 1581859)
Backed out changeset 6fd5aa7895e3 (bug 1581859)
Backed out changeset 2b68d2eee18e (bug 1581859)
2021-03-23 05:48:27 +02:00
Kris Maglione
2c7c5a81f0 Bug 1581859: Part 3b - Update existing GetPropertyAsInterface callers to use typesafe do_GetProperty instead. r=mccr8,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103211
2021-03-22 20:12:16 +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
Nihanth Subramanya
acc81306ba Bug 1699998 - Extract the Enabled() check in TRRService::IsDomainBlocked into TRR::MaybeBlockRequest. r=necko-reviewers,valentin
Currently, we are checking Enabled() without passing the request mode in IsDomainBlocked.
This isn't the right place to do this, it's cleaner if IsDomainBlocked trusts the caller
to have checked Enabled already. We should call Enabled, with the request mode, in
TRR::MaybeBlockDomain() and return early if it's false.

Differential Revision: https://phabricator.services.mozilla.com/D109240
2021-03-21 20:20:34 +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