Commit Graph

3191 Commits

Author SHA1 Message Date
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Michal Novotny
d607330e6d Bug 1470571 - Sync with cache IO thread before checking alt-data flag in index, r=valentin
syncWithCacheIOThread() ensures that all pending events on IO thread are processed before we continue on the main thread, where we synchronously check the flag in the index

Differential Revision: https://phabricator.services.mozilla.com/D65757

--HG--
extra : moz-landing-system : lando
2020-03-06 18:36:43 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Simon Giesecke
14dbfcaa29 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in netwerk. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D65496

--HG--
extra : moz-landing-system : lando
2020-03-06 09:22:49 +00:00
Andrea Marchesini
9bc071f817 Bug 1619875 - Remove the remaining of the prompting code in the cookie-world, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D65289

--HG--
extra : moz-landing-system : lando
2020-03-04 21:25:33 +00:00
Tim Huang
5d0ba9975d Bug 1616570 - Part 3: Change the CookieJarSettings::CreateBlockingAll to be a singleton and rename it to GetBlockingAll(). r=Ehsan
We don't need to create the blocking-all cookieJarSettings every time we
request it since it is basically the same. Instead, we should make it as
a singleton.

The patch makes this change the rename the
CookieJarSettings::CreateBlockingAll() to GetBlockingAll() which
reflects the fact that it is a singleton.

Differential Revision: https://phabricator.services.mozilla.com/D64564

--HG--
extra : moz-landing-system : lando
2020-03-04 08:59:21 +00:00
Tim Huang
04d44bae12 Bug 1616570 - Part 1: Rename CookieSettings to CookieJarSettings. r=Ehsan
Given that we are going to add ContentBlockingAllowList in
CookieSettings, so CookieSettings will be responsible for more stuff than the
cookie behavior and cookie permission. We should use a proper name to
reflect the purpose of it. The name 'CookieSettings' is misleading that
this is only for cookie related stuff. So, we decide to rename
'CookieSettins' to 'CookieJarSettings' which serves better meaning here.

Differential Revision: https://phabricator.services.mozilla.com/D63935

--HG--
rename : netwerk/cookie/CookieSettings.cpp => netwerk/cookie/CookieJarSettings.cpp
rename : netwerk/cookie/nsICookieSettings.idl => netwerk/cookie/nsICookieJarSettings.idl
extra : moz-landing-system : lando
2020-03-04 08:59:08 +00:00
Andrea Marchesini
f1666a5ee9 Bug 1618113 - Allow 'secure' cookies when set by localhost, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D64290

--HG--
extra : moz-landing-system : lando
2020-03-02 17:21:03 +00:00
Valentin Gosu
af96f60f6d Bug 1618130 - Add DNS override service r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D64325

--HG--
extra : moz-landing-system : lando
2020-03-02 19:44:37 +00:00
Andrea Marchesini
fa23513682 Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-27 04:38:03 +00:00
Cosmin Sabou
3cfeb5574f Backed out changeset 319675493927 (bug 1618130) for xpc failures on test_dns_override.js.
CLOSED TREE

--HG--
extra : amend_source : 6149eae2776781860a44e9173ec135ca693a9855
extra : histedit_source : f32f8874c91e7aad0b8c02d1b4ea6741c60e2d51
2020-02-27 01:43:29 +02:00
Valentin Gosu
7727d63396 Bug 1618130 - Add DNS override service r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D64325

--HG--
extra : moz-landing-system : lando
2020-02-26 20:18:44 +00:00
Coroiu Cristina
a4bb946bff Backed out changeset 901b3eec4eb6 (bug 1618130) for xpcshell failures at netwerk/test/unit/test_dns_override.js on a CLOSED TREE 2020-02-26 18:25:03 +02:00
Valentin Gosu
0e83b1640f Bug 1618130 - Add DNS override service r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D64325

--HG--
extra : moz-landing-system : lando
2020-02-26 14:51:28 +00:00
Arthur Iakab
503467aedd Backed out changeset cbdc2840f86c (bug 1604212)for causing wpt failures on fetch.https.html 2020-02-26 00:03:55 +02:00
Andrea Marchesini
b514a4a2fc Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-25 18:32:08 +00:00
Noemi Erli
bc6b9e410b Backed out changeset d76f4c4a4fb6 (bug 1604212) for causing lint failure and bustages in WebExecutorTest.kt CLOSED TREE 2020-02-25 20:12:07 +02:00
Andrea Marchesini
782454dd06 Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-25 17:46:19 +00:00
Andreea Pavel
8e5752950e Backed out changeset ced61db946ff (bug 1604212) for failing geckoview at WebExecutorTest.testAnonymous on a CLOSED TREE 2020-02-25 18:50:39 +02:00
Andrea Marchesini
85403a9f37 Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-25 12:52:20 +00:00
David Major
0e91db76c5 Bug 1616938 - Fix some test issues in TestNetworkLinkIdHashingWindows r=mayhemer
TestNetworkLinkIdHashingWindows has two issues that, frighteningly, cancelled each other out under most conditions.

First is that the `sscanf` format string uses curly braces when the test data does not have braces.

Second is that the order of `nwGUIDS` does not match the sorting behavior of `nsNotifyAddrListener::HashSortedNetworkIds`.

What ended up happening was that the sscanf failed, and left the entire GUID uninitialized. Then we used that uninitialized data over and over in `nwGUIDS` so the order didn't matter. However, under AddressSanitizer, the failure became evident, because (I think, haven't verified) that ASan's instrumentation messes with the contents of the stack between the four GUID parses, so we no longer use the same uninitialized data four times. And for bonus fun, this wasn't noticed in CI because we don't (yet) run ASan on GTests for Windows.

Debugging this was... quite an adventure.

Differential Revision: https://phabricator.services.mozilla.com/D63532

--HG--
extra : moz-landing-system : lando
2020-02-25 13:41:02 +00:00
Neil Deakin
965e5ed66b Bug 1598305, replace frame script in test browser_child_resource.js with SpecialPowers.spawn, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D61907

--HG--
extra : moz-landing-system : lando
2020-02-19 22:28:35 +00:00
Neil Deakin
172b3c2acb Bug 1598305, replace frame script in test browser_post_file.js with browserLoaded, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D61906

--HG--
extra : moz-landing-system : lando
2020-02-20 18:36:13 +00:00
Andrea Marchesini
2d1c9c8f37 Bug 1577040 - Part 3: Replace nsIHttpChannel.isTrackingResource() with isThirdPartyTrackingResource() in the url-classifier tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63301

--HG--
extra : moz-landing-system : lando
2020-02-20 07:29:15 +00:00
Masatoshi Kimura
e99395dbc2 Bug 1615900 - Stop using CreateFileA in netwerk/. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63025

--HG--
extra : moz-landing-system : lando
2020-02-18 14:24:36 +00:00
Christian Holler
66d030b34d Bug 1612711 - Enable Mochitests and XPCShell tests for TSan. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62628

--HG--
extra : moz-landing-system : lando
2020-02-12 19:03:36 +00:00
Honza Bambas
b903fe63d9 Bug 1613362 - Enable some xpcshell tests on Android, wave 1, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D61813

--HG--
extra : moz-landing-system : lando
2020-02-10 09:08:08 +00:00
Dragana Damjanovic
3db443c976 Bug 1613423 - Make sure AsyncResoleWithTrrServer does not depend on confirmationNS of the default server. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D61793

--HG--
extra : moz-landing-system : lando
2020-02-06 18:09:38 +00:00
Dragana Damjanovic
2f3c76f02c Bug 1612816 - Implement AsyncResoleWithTrrServer. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D61445

--HG--
extra : moz-landing-system : lando
2020-02-04 19:35:34 +00:00
Dragana Damjanovic
31caeebb2e Bug 1610253 - Expose network timing to trr DNS records. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D60544

--HG--
extra : moz-landing-system : lando
2020-02-04 11:09:11 +00:00
Honza Bambas
17b225e696 Bug 1611483 - Fix BAD_IP in netwerk/test/unit/test_trr.js on Android to be 127.9.9.9 to make the test work, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D61067

--HG--
extra : moz-landing-system : lando
2020-02-03 08:27:12 +00:00
Valentin Gosu
3cf093181f Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-02-01 04:43:14 +00:00
Arthur Iakab
57110a989d Backed out changeset e051d75e66f7 (bug 1610836) for causing connectivity mass test failures.
CLOSED TREE
2020-02-01 02:09:30 +02:00
Valentin Gosu
8ce544c4ce Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-01-31 15:09:18 +00:00
Razvan Maries
f783276fb9 Backed out changeset fe27999955a4 (bug 1610836) for multiple perma failures. CLOSED TREE
--HG--
extra : amend_source : 7f648c73ebfbd227abf477d975f033e507cb151b
2020-01-31 17:04:10 +02:00
Valentin Gosu
773c572e19 Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-01-31 14:03:10 +00:00
Kershaw Chang
98739d4a39 Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D56206

--HG--
extra : moz-landing-system : lando
2020-01-30 13:56:57 +00:00
Ehsan Akhgari
eccae96ef4 Bug 1609176 - Remove the obsolete baseDomain field of the moz_cookies table; r=baku
This change is backwards incompatible with the older cookies.sqlite
files, which means files saved from newer versions of Firefox will
no longer be possible to open in older versions of Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D60464

--HG--
rename : netwerk/test/unit/test_schema_3_migration.js => netwerk/test/unit/test_schema_10_migration.js
extra : moz-landing-system : lando
2020-01-25 00:18:34 +00:00
Bogdan Tara
c9467840cd Backed out changeset 4cf57a5a3143 (bug 1609176) for test_cookies_async_failure.js related failures CLOSED TREE 2020-01-22 22:19:20 +02:00
Ehsan Akhgari
d0561affbf Bug 1609176 - Remove the obsolete baseDomain field of the moz_cookies table; r=baku
This change is backwards incompatible with the older cookies.sqlite
files, which means files saved from newer versions of Firefox will
no longer be possible to open in older versions of Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D60464

--HG--
rename : netwerk/test/unit/test_schema_3_migration.js => netwerk/test/unit/test_schema_10_migration.js
extra : moz-landing-system : lando
2020-01-22 17:01:55 +00:00
Coroiu Cristina
9490b63809 Backed out changeset b634b7b787d5 (bug 1609491) for wpt failures at /cookies/http-state/general-tests.html on a CLOSED TREE 2020-01-20 20:57:54 +02:00
Geoff Brown
95d2b89c71 Bug 1608126 - Enable node for Android xpcshell tests and run node tests on Android; r=valentin
Fetch, configure, and run node for Android on the test host, just like Linux tests do.
Make the node/HTTP/2 environment variables available to the tests on the device, and
use adb port forwarding to connect sockets. Finally, enable tests skipped for node.

Differential Revision: https://phabricator.services.mozilla.com/D60204

--HG--
extra : moz-landing-system : lando
2020-01-20 18:06:37 +00:00
Ehsan Akhgari
5a2d4ea5a4 Bug 1609491 - Stop accepting cookie name-value pairs without an equal sign; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D60040

--HG--
extra : moz-landing-system : lando
2020-01-20 15:59:12 +00:00
Narcis Beleuzu
6802b12993 Backed out changeset 11a73f4bbb1a (bug 1608126) for bustages on runxpcshelltests.py. CLOSED TREE 2020-01-19 22:28:10 +02:00
Geoff Brown
46e2f41598 Bug 1608126 - Enable node for Android xpcshell tests and run node tests on Android; r=valentin
Fetch, configure, and run node for Android on the test host, just like Linux tests do.
Make the node/HTTP/2 environment variables available to the tests on the device, and
use adb port forwarding to connect sockets. Finally, enable tests skipped for node.

Differential Revision: https://phabricator.services.mozilla.com/D60204

--HG--
extra : moz-landing-system : lando
2020-01-17 08:36:17 +00:00
Ting-Yu Lin
4934b1be3e Bug 1308636 Part 1 - Convert -moz-column-span to column-span in a crashtest. r=dbaron
-moz-column-span missed the conversion in Bug 1308587 Part 2.
https://hg.mozilla.org/mozilla-central/rev/bb59a0c37162

Differential Revision: https://phabricator.services.mozilla.com/D59562

--HG--
extra : moz-landing-system : lando
2020-01-16 21:45:15 +00:00
Honza Bambas
13a16f0e2d Bug 1596799 - Have a preference to force remote TCP/UDP port remapping for easier local network testing, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D59917

--HG--
extra : moz-landing-system : lando
2020-01-16 17:22:36 +00:00
Dorel Luca
d29d22d6dc Backed out changeset 84f69fc66690 (bug 1596799) for Browser-chrome failures in /builds/worker/workspace/build/src/netwerk/base/nsSocketTransportService2.cpp. CLOSED TREE 2020-01-15 21:31:46 +02:00
Honza Bambas
0e35da72e0 Bug 1596799 - Have a preference to force remote TCP/UDP port remapping for easier local network testing, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D59917

--HG--
extra : moz-landing-system : lando
2020-01-15 18:30:42 +00:00
Matt Woodrow
dc86748b77 Bug 1599438 - Store sandbox flags on the LoadInfo when creating a channel for a docshell, so that we don't read a stale value from the BrowsingContext later. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59263

--HG--
extra : moz-landing-system : lando
2020-01-15 08:02:57 +00:00