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

18786 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu eecaa3ac0e Bug 1589446 - Add network id change event (Windows) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D52689

--HG--
extra : moz-landing-system : lando
2019-11-12 18:24:37 +00:00
Victor Porof 3f5b086638 Bug 1594995 - Part 1: Update neqo dependencies to specify a rev instead of a version, and run `./mach vendor rust` on a clean central tip, r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D52316

--HG--
extra : moz-landing-system : lando
2019-11-13 11:52:15 +00:00
Sebastian Streich 0ccaa6de78 Bug 1591932 - Enable Sniffing on No Mime+ XCTO nosniff r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D50816

--HG--
extra : moz-landing-system : lando
2019-11-13 12:12:34 +00:00
Valentin Gosu 54fc67b26e Bug 1596045 - Modernize test_esni_dns_fetch.js and make sure we're not clearing the cache when setting the URI pref r=dragana
When using add_task to schedule the tests, testEsniPushPart2 would always fail.
That's because Bug 1587875 now clears the DNS cache when the network.trr.uri
pref is changed. This is likely intermittent because of task scheduling.
This patch modernizes the test to use add_task and promises, and sets the
network.trr.clear-cache-on-pref-change;true pref so the test performs its
checks properly.

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

--HG--
extra : moz-landing-system : lando
2019-11-13 10:55:09 +00:00
Sylvestre Ledru f66ec35a77 Bug 1562642 - add missing license in netwerk/base/rust-helper/src/lib.rs r=valentin
Depends on D52589

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

--HG--
extra : moz-landing-system : lando
2019-11-11 21:43:55 +00:00
Narcis Beleuzu e7c61f4a68 Backed out 8 changesets (bug 1588241) for wpt leaks on ChannelEvent/ChannelEventQueue. CLOSED TREE
Backed out changeset 6a4727c44078 (bug 1588241)
Backed out changeset 125430c4316a (bug 1588241)
Backed out changeset 449606f22baf (bug 1588241)
Backed out changeset c9a6203582ac (bug 1588241)
Backed out changeset 48362412c9d5 (bug 1588241)
Backed out changeset a21cd1c41c6c (bug 1588241)
Backed out changeset 8d2cf0fc6b9b (bug 1588241)
Backed out changeset 17e7f137067f (bug 1588241)
2019-11-13 09:24:22 +02:00
Jean-Yves Avenard ef186338d1 Bug 1588241 - P8. Use NeckoTargetChannelFunctionEvent with FTPChannelChild. r=mattwoodrow
Fix style consistency while at it and a couple of constness issues.

Depends on D52503

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

--HG--
extra : moz-landing-system : lando
2019-11-12 01:17:59 +00:00
Jean-Yves Avenard 87b073987b Bug 1588241 - P7. Use NeckoTargetChannelFunctionEvent in DCC. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D52503

--HG--
extra : moz-landing-system : lando
2019-11-12 01:16:14 +00:00
Jean-Yves Avenard d6b9a693d8 Bug 1588241 - P4. Remove nsIClassifiedChannel implementation from DocumentChannelChild. r=mattwoodrow
The information is now passed to the parent channel once replacement is completed.

Depends on D52262

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

--HG--
extra : moz-landing-system : lando
2019-11-12 23:35:20 +00:00
Jean-Yves Avenard eb8d755d99 Bug 1588241 - P3. Move classification methods to PHttpChannel. r=mayhemer
We can guarantee that those callbacks will occur prior the call to OnStartRequest.
By running them all on the PHttpChannel we remove the potential race between the PHttpChannel which runs on the main thread and PHttpBackroundChannel which runs on the necko thread.

Depends on D52261

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

--HG--
extra : moz-landing-system : lando
2019-11-12 18:06:04 +00:00
Jean-Yves Avenard a73521779e Bug 1588241 - P2. Add ability to use lambdas for channel event handlers. r=mayhemer
Remove the need to create separate runnable classes. It's far more readable and remove the need to duplicate lots of code.

We unfortunately need to capture "this" in a ref counter to get around the static analyzer complaining about capturing this by value, even thouch the ChannelEventQueue guarantees that this will outlive the event.

Depends on D52260

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

--HG--
extra : moz-landing-system : lando
2019-11-13 04:01:30 +00:00
Jean-Yves Avenard c3b93b9fbb Bug 1588241 - P1. Use move semantics with PrependEvent. r=mattwoodrow
PrepentEvent was already moving the argument passed by reference. This makes it clear that the object will be moved.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 23:25:20 +00:00
Valentin Gosu d130f41722 Bug 1562388 - Remove legacy ICS handling from nsNotifyAddrListener r=mayhemer
This code was added in bug 465158 to deal with on-demand dial-up
connections. That scenario is hopefully not common anymore.
One benefit of the code was that it excludes network adapters
that share the computers network from being part of network
change notifications, network ID, etc. However, the code assumed
that only adapters with the address 192.168.0.1 would be a ICS
adapter, but trying to set up ICS on Windows 10 actually set the
LAN interface with 192.168.137.1 - so that assumption isn't
valid anymore. So the code is likely not even running for
adapters that are ICS. It may run for adapters which have the
IP 192.168.0.1, but probably that's quite rare as that's more
often a gateway IP than a client IP.

In any case, it's better to just get rid of it and if needed,
however unlikely, we'll replace it with a more modern API.

Depends on D52573

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

--HG--
extra : moz-landing-system : lando
2019-11-12 18:21:48 +00:00
Valentin Gosu b4f254a384 Bug 1562388 - Remove XP legacy NotifyAddrChange call from nsNotifyAddrListener r=mayhemer
Old code needed to dynamically load a DLL - which was not available
for windows versions prior to Vista, and if that failed it would
fall back to using an older API.

This patch now calls the methods directly, since we don't have to
worry about the library not being there; we also remove the
fallback, meaning we always call NotifyIpInterfaceChange instead
of falling back to NotifyAddrChange.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 18:18:21 +00:00
Dragana Damjanovic ca29276ed9 Bug 1595271 - Display Http3 in about:networking. r=valentin,fluent-reviewers,flod,smaug
Differential Revision: https://phabricator.services.mozilla.com/D52529

--HG--
extra : moz-landing-system : lando
2019-11-12 08:27:38 +00:00
Matt Woodrow 3f876da3c7 Bug 1589270 - Part 1: Allow passing a specific status when disconnecting the child side, but only pass it to nsDocumentOpenInfo, not the load group. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D49526

--HG--
extra : moz-landing-system : lando
2019-11-11 21:02:46 +00:00
Valentin Gosu d1ae9bf1e6 Bug 1567346 - Prevent stack overflow in TRRService::IsTRRBlacklisted r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D50248

--HG--
extra : moz-landing-system : lando
2019-11-11 21:11:18 +00:00
Dorel Luca 9afadd1cdd Backed out changeset 6384318223b4 (bug 1588218) for Linting failure on mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java. CLOSED TREE 2019-11-11 23:16:27 +02:00
Valentin Gosu f4d8a78639 Bug 1588218 - Expose DNS suffix list (Android) r=michal,snorp
Differential Revision: https://phabricator.services.mozilla.com/D51561

--HG--
extra : moz-landing-system : lando
2019-11-11 20:51:42 +00:00
Kristen Wright 2f86289235 Bug 1594858 - Move CanEnableSpeculativeConnect call to the background thread. r=mayhemer
Instead of spinning up a LazyIdleThread for this check, just use the background thread pool.

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

--HG--
extra : moz-landing-system : lando
2019-11-11 18:00:38 +00:00
ffxbld 46cd67e91a No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D52533

--HG--
extra : moz-landing-system : lando
2019-11-11 14:21:48 +00:00
Paul Bone 8b71beb4c5 Bug 1588412 - Fix a spelling error r=mattwoodrow
The already-landed patches contained a spelling error.  This patch fixes it.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 21:45:10 +00:00
Bogdan Tara 80377e90ee Backed out 6 changesets (bug 1552176) for causing Hazard bustages CLOSED TREE
Backed out changeset c79b90bae420 (bug 1552176)
Backed out changeset 4b970cc771ca (bug 1552176)
Backed out changeset de7aa0eaf4c8 (bug 1552176)
Backed out changeset c8e692a40cd3 (bug 1552176)
Backed out changeset 68882d1eccac (bug 1552176)
Backed out changeset 692e5e51e19e (bug 1552176)
2019-11-11 12:11:36 +02:00
Valentin Gosu 60297f04a5 Bug 1552176 - pass TRRMode into nsHTMLDNSPrefetch methods r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49159

--HG--
extra : moz-landing-system : lando
2019-11-10 17:12:19 +00:00
Valentin Gosu 85789f3b62 Bug 1552176 - Pass TRRMode to nsDNSPrefetch r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49158

--HG--
extra : moz-landing-system : lando
2019-11-10 17:12:06 +00:00
Valentin Gosu ff36423116 Bug 1552176 - Captive portal domain should not be automatically excluded from TRR r=mayhemer
Previously we had no way from excluding just one channel from TRR mode3.
The solution was to add the captive portal domain to the exclusion list.
Now the captive portal channel is marked with nsIRequest.DISABLE_TRR_MODE so
the exclusion is not necessary anymore.

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

--HG--
extra : moz-landing-system : lando
2019-11-10 17:11:54 +00:00
Valentin Gosu 4fe6130ec3 Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana
* Makes it possible to selectively enable TRR for pbmode/container/window/etc

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

--HG--
extra : moz-landing-system : lando
2019-11-10 17:11:41 +00:00
Valentin Gosu c12053953f Bug 1552176 - Unit test for TRRMode for individual channels r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D48362

--HG--
extra : moz-landing-system : lando
2019-11-10 17:11:23 +00:00
Valentin Gosu 2240e29928 Bug 1582030 - Enable netwerk/test/unit/test_esni_dns_fetch.js which was disabled for intermittent failures r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D52182

--HG--
extra : moz-landing-system : lando
2019-11-08 19:25:27 +00:00
Randell Jesup a42777ee14 Bug 1594015: Ensure that threads with odd ProcessNextEvent loops get correct event delays r=froydnj
Socket Thread and Worker Threads use custom event loops and don't wait in
calls to ProcessNextEvent all the time; this can lead to odd Responsiveness numbers.

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

--HG--
extra : moz-landing-system : lando
2019-11-08 21:07:52 +00:00
Bogdan Tara 8f38f4a3fb Backed out 6 changesets (bug 1552176) for bustages complaining about ServiceWorkerManager.cpp CLOSED TREE
Backed out changeset bff9110e434e (bug 1552176)
Backed out changeset ac8f8a6dbd98 (bug 1552176)
Backed out changeset 8dd630e7534a (bug 1552176)
Backed out changeset 7ce9e220cdb9 (bug 1552176)
Backed out changeset ee9911acfcd4 (bug 1552176)
Backed out changeset 652b3bd6848d (bug 1552176)
2019-11-08 22:18:05 +02:00
Valentin Gosu 4354a83c3d Bug 1552176 - pass TRRMode into nsHTMLDNSPrefetch methods r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49159

--HG--
extra : moz-landing-system : lando
2019-11-08 17:13:47 +00:00
Valentin Gosu 010c262075 Bug 1552176 - Pass TRRMode to nsDNSPrefetch r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49158

--HG--
extra : moz-landing-system : lando
2019-11-08 17:13:29 +00:00
Valentin Gosu 005744f167 Bug 1552176 - Captive portal domain should not be automatically excluded from TRR r=mayhemer
Previously we had no way from excluding just one channel from TRR mode3.
The solution was to add the captive portal domain to the exclusion list.
Now the captive portal channel is marked with nsIRequest.DISABLE_TRR_MODE so
the exclusion is not necessary anymore.

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

--HG--
extra : moz-landing-system : lando
2019-11-08 17:13:17 +00:00
Valentin Gosu adfeaf25f5 Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana
* Makes it possible to selectively enable TRR for pbmode/container/window/etc

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

--HG--
extra : moz-landing-system : lando
2019-11-08 17:13:05 +00:00
Valentin Gosu aa093f9d4f Bug 1552176 - Unit test for TRRMode for individual channels r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D48362

--HG--
extra : moz-landing-system : lando
2019-11-08 17:12:46 +00:00
Matt Woodrow 0d8858e71c Bug 1594166 - Don't add a manual ref when constructing FileChannelChild, since it's a refcounted IPDL class. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D51904

--HG--
extra : moz-landing-system : lando
2019-11-07 19:13:48 +00:00
Matt Woodrow f96632cb82 Bug 1594166 - Handle channel types that don't implement nsIChildChannel when switching to a real channel from DocumentChannel. r=mayhemer
This mainly shows up when creating a DocumentChannel for a blob URI, and then we try switch to the 'real' blob channel and can't find an nsIChildChannel.

We could instead implement an IDPL parent/child class for this (like FileChannelChild/Parent), but the implementation of those is effectively the same (just call AsyncOpen from CompleteRedirectSetup), and I think is unnecessary boilterplate, since we can't have an actual redirect to a blob URI.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 12:47:34 +00:00
Matt Woodrow 7962854749 Bug 1593560 - Release mListener and break the cycle if AsyncOpen fails in DocumentChannelParent, since OnStopRequest won't be delivered to mListener in this case, which is where we usually break the cycle. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D51552

--HG--
extra : moz-landing-system : lando
2019-11-06 22:37:07 +00:00
Matt Woodrow 8abd316194 Bug 1593560 - Support non-http channels in SendCrossProcessRedirect. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D51550

--HG--
extra : moz-landing-system : lando
2019-11-06 22:37:07 +00:00
Michal Novotny 2d153a80d4 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 15:16:36 +00:00
Ciure Andrei b7c3599997 Backed out 3 changesets (bug 1572337, bug 1594015) for causing linting failures and build bustages CLOSED TREE
Backed out changeset 25f074eb5074 (bug 1594015)
Backed out changeset fc8a37c2c22c (bug 1572337)
Backed out changeset 913d6bd82284 (bug 1572337)
2019-11-07 16:37:00 +02:00
Randell Jesup 2d00745133 Bug 1594015: Ensure that threads with odd ProcessNextEvent loops get correct event delays r=froydnj
Socket Thread and Worker Threads use custom event loops and don't wait in
calls to ProcessNextEvent all the time; this can lead to odd Responsiveness numbers.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 12:53:41 +00:00
Ciure Andrei e16f37061a Backed out changeset 755655b3175a (bug 1593693)for causing NetlinkService.cpp build bustages CLOSED TREE 2019-11-07 15:40:49 +02:00
Michal Novotny a85ff06ef1 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 11:45:13 +00:00
Dragana Damjanovic 8edccbe4af Bug 1594398 - Update http3 error codes. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D51993

--HG--
extra : moz-landing-system : lando
2019-11-06 17:53:27 +00:00
Paul Zuehlcke 4ea3fd0b57 Bug 1571003 - Added pref to disable warning prompts for SuperfluousAuth and AutomaticAuth. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D51989

--HG--
extra : moz-landing-system : lando
2019-11-06 22:50:58 +00:00
Coroiu Cristina cbdbc8bc4b Backed out 7 changesets (bug 1593560) for crashtest failures at tests/layout/base/crashtests/446328.html on a CLOSED TREE
Backed out changeset 7dfae085a4cb (bug 1593560)
Backed out changeset 9842c80c98d8 (bug 1593560)
Backed out changeset d67a10437af7 (bug 1593560)
Backed out changeset 3e3948e9531c (bug 1593560)
Backed out changeset a7d04e276b44 (bug 1593560)
Backed out changeset 9f52c9f6dc54 (bug 1593560)
Backed out changeset 90572c49d464 (bug 1593560)
2019-11-07 00:32:53 +02:00
Coroiu Cristina 27a753cc4a Backed out changeset 96048cce4b80 (bug 1571656) for xpcshell failures at toolkit/components/places/tests/unifiedcomplete/test_autofill_origins.js on a CLOSED TREE 2019-11-06 22:59:45 +02:00
Matt Woodrow ff7fece5b2 Bug 1593560 - Release mListener and break the cycle if AsyncOpen fails in DocumentChannelParent, since OnStopRequest won't be delivered to mListener in this case, which is where we usually break the cycle. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D51552

--HG--
extra : moz-landing-system : lando
2019-11-06 18:23:00 +00:00