Commit Graph

18193 Commits

Author SHA1 Message Date
Valentin Gosu
20a97e21d6 Bug 1561005 - Implement nsINetworkLinkService.networkID on Linux r=michal
* calculateNetworkId is now called before sending each ChangeEvent
* mNetworkId is truncated when no IPv4/IPv6 IDs could be computed

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

--HG--
extra : moz-landing-system : lando
2019-06-27 09:02:59 +00:00
Valentin Gosu
6806c4f960 Bug 1561005 - Make windows networkID use the INetworkListManager API r=michal
Depends on D35683

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

--HG--
extra : moz-landing-system : lando
2019-06-28 11:21:59 +00:00
Valentin Gosu
cc4af7a576 Bug 1561005 - Add nsINetworkLinkService.networkID r=michal
Differential Revision: https://phabricator.services.mozilla.com/D35683

--HG--
extra : moz-landing-system : lando
2019-06-28 11:11:19 +00:00
Valentin Gosu
d36aaea3c9 Bug 1395914 - Update histogram with two new values for IPv6 network-id changes r=michal
Differential Revision: https://phabricator.services.mozilla.com/D34905

--HG--
extra : moz-landing-system : lando
2019-06-27 09:02:13 +00:00
Valentin Gosu
b8945b8f06 Bug 1395914 - Figure out network id for IPv6 too (mac) r=michal
Differential Revision: https://phabricator.services.mozilla.com/D34904

--HG--
extra : moz-landing-system : lando
2019-06-27 09:01:56 +00:00
Valentin Gosu
95534fc1ce Bug 1395914 - Figure out network id for IPv6 too (Linux) r=michal
Differential Revision: https://phabricator.services.mozilla.com/D34903

--HG--
extra : moz-landing-system : lando
2019-06-27 09:19:57 +00:00
ffxbld
ab68b05adf 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/D36187

--HG--
extra : moz-landing-system : lando
2019-06-27 12:57:42 +00:00
Nicholas Hurley
281d858112 Bug 1502555 - Match oppsec .wk format to rfc. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D35136

--HG--
extra : moz-landing-system : lando
2019-06-26 11:44:36 +00:00
Julien Wajsberg
21a8eb399c Bug 1546641 - Fix network markers in the redirection case r=mayhemer
Markers were either incorrect or missing when redirecting a request.

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

--HG--
extra : moz-landing-system : lando
2019-06-25 14:17:53 +00:00
Valentin Gosu
8c623c2e91 Bug 1559340 - Make sure NetworkConnectivityService::Init() only gets called once r=michal
Differential Revision: https://phabricator.services.mozilla.com/D35000

--HG--
extra : moz-landing-system : lando
2019-06-24 21:56:50 +00:00
Valentin Gosu
11362784ca Bug 1560703 - Make sure creating an FTP channel throws if FTP is disabled r=michal
Previously we would throw in nsFtpProtocolHandler::NewURI. Since that doesn't exist anymore, and creating FTP URLs always works, we need to make sure creating the FTP channel doesn't work anymore.

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

--HG--
extra : moz-landing-system : lando
2019-06-24 10:20:16 +00:00
Andrea Marchesini
872502eaf3 Bug 1560040 - Introduce 2 new URL-Classifier features to annotate and block social trackers, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D35421

--HG--
extra : moz-landing-system : lando
2019-06-22 16:53:50 +00:00
avneeshsinghal
6b007e9918 Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D33992

--HG--
extra : moz-landing-system : lando
2019-06-21 20:13:40 +00:00
shindli
c0ca77697c Merge inbound to mozilla-central. a=merge 2019-06-21 12:34:14 +03:00
Byron Campen [:bwc]
568b0afffe Bug 1556795: Add some thread assertions, and remove an unused member. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35049

--HG--
extra : moz-landing-system : lando
2019-06-20 20:24:02 +00:00
Byron Campen [:bwc]
3ecf23e57c Bug 1556795: Simplifications related to DataChannel::mFlags. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35048

--HG--
extra : moz-landing-system : lando
2019-06-20 20:24:00 +00:00
Byron Campen [:bwc]
a2d135b8fe Bug 1556795: Allocate stream ids as soon as client/server is negotiated, and try to negotiate id limit increases after. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35047

--HG--
extra : moz-landing-system : lando
2019-06-20 20:23:57 +00:00
Cosmin Sabou
55afe30077 Merge mozilla-central to autoland. CLOSED TREE 2019-06-21 01:44:45 +03:00
Kris Maglione
4c6fa04663 Bug 1530660: Fix registration for nsSafeFileOutputStream. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D35490

--HG--
extra : rebase_source : 7b343c0e77ce49c99303e6383786a1be782cdd42
2019-06-20 15:40:35 -07:00
Ciure Andrei
4ffd609e9c Backed out 4 changesets (bug 1556795)for causing RTCPeerConnection-createDataChannel.html to perma fail CLOSED TREE
Backed out changeset 05898e5d5434 (bug 1556795)
Backed out changeset a87072937e2c (bug 1556795)
Backed out changeset f8ce8930bcab (bug 1556795)
Backed out changeset 112937d690e0 (bug 1556795)
2019-06-20 18:33:22 +03:00
Chris Peterson
d0441eaece Bug 1559747 - Part 2: UA string needn't reveal the user is running 32-bit Firefox on Win64 OS. r=tjr
Change the User-Agent HTTP header and the navigator.userAgent, navigator.platform, and navigator.oscpu APIs to say "Win64" instead "WOW64" (bug 444770) when the user is running 32-bit Firefox on Win64 OS. Software download websites that try to sniff for the user's CPU architecture (so they can serve compatible software) only need to know whether the user has a 32- or 64-bit OS, not whether they are running a 32- or 64-bit Firefox build.

Once upon a time, Mozilla's Plugin Finder Service needed to check whether Firefox was 32- or 64-bit so it could direct the user to a Flash Player plugin compatible with their Firefox build (bug 265536). But these days Adobe's Flash Player installer includes both 32- and 64-bit plugins.

Depends on D35164

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

--HG--
extra : moz-landing-system : lando
2019-06-19 09:56:50 +00:00
Chris Peterson
680bd3820c Bug 1559747 - Part 1: UA string needn't reveal the user is running 32-bit Firefox on a 64-bit Unix OS. r=tjr
Change the User-Agent HTTP header and the navigator.userAgent, navigator.platform, and navigator.oscpu APIs to say "Linux x86_64" instead "Linux i686 on x86_64" (bug 265536) when the user is running 32-bit Firefox on a 64-bit Unix OS (including Android). Software download websites that try to sniff for the user's CPU architecture (so they can serve compatible software) only need to know whether the user has a 32- or 64-bit OS, not whether they are running a 32- or 64-bit Firefox build.

Once upon a time, Mozilla's Plugin Finder Service needed to check whether Firefox was 32- or 64-bit so it could direct the user to a Flash Player plugin compatible with their Firefox build (bug 265536). But these days Adobe's Flash Player installer includes both 32- and 64-bit plugins.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 09:56:50 +00:00
Byron Campen [:bwc]
e3a896998c Bug 1556795: Add some thread assertions, and remove an unused member. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35049

--HG--
extra : moz-landing-system : lando
2019-06-19 18:40:17 +00:00
Byron Campen [:bwc]
2ae75bd3ee Bug 1556795: Simplifications related to DataChannel::mFlags. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35048

--HG--
extra : moz-landing-system : lando
2019-06-19 18:40:05 +00:00
Byron Campen [:bwc]
806b266db5 Bug 1556795: Allocate stream ids as soon as client/server is negotiated, and try to negotiate id limit increases after. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35047

--HG--
extra : moz-landing-system : lando
2019-06-19 20:46:19 +00:00
Michal Novotny
595b225323 Bug 1547266 - Make sure Http2PushedStream is used only on socket thread, r=dragana
Raw pointer to Http2PushedStream is passed to nsHttpChannel and nsHttpTransaction to get it back to a new Http2Stream in the Http2Session. As a result Http2PushedStream's methods can be called on a wrong thread and possibly on already freed object. This patch uses Http2PushedStreamWrapper instead, which takes care about thread safety and checks if the object is still alive.

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

--HG--
extra : moz-landing-system : lando
2019-06-18 23:36:54 +00:00
Valentin Gosu
54d2ce5f01 Bug 1558495 - Make sure we retry the TRR connection if it fails r=agrover
This patch adds:
* tests that we restart the TRR connection if it gets abnormally shut down
* a way to terminate the TRR connection when attempting to resolve closeme.com
* makes sure that resolving excluded domains with the DISABLE_TRR flag does
  not fail. Before this we would return an error code without checking the
  excluded domains first.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 21:49:10 +00:00
Masatoshi Kimura
ab5fd5b6f9 Bug 1410013 - Change aValue parameter of nsICookieManager.add to AUTF8String to align with nsICookie change. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D35150

--HG--
extra : moz-landing-system : lando
2019-06-17 20:48:30 +00:00
Michal Novotny
b24a8cb8e4 Bug 1528481 - Possible use after free in Http2Session::RecvPushPromise() if we have a usable entry in the cache for the resource, r=dragana
If we find a usable cache entry, the stream is closed and release in CachePushCheckCallback::OnCacheEntryCheck(). This patch converts raw pointer to a weak pointer, so we can simply check if the object still exists after AsyncOpenURI() finishes.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 22:54:06 +00:00
Ciure Andrei
667c8abf86 Backed out 2 changesets (bug 1546816) for causing test_navigation.py and test_js_cert_override_service.js to permafail CLOSED TREE
Backed out changeset 4d299dcdcaaa (bug 1546816)
Backed out changeset dbb07b64cdf9 (bug 1546816)
2019-06-15 10:55:58 +03:00
Byron Campen [:bwc]
b53e68f019 Bug 1556109: Socket process does not have a UI event loop, so disconnect from the window server. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D33532

--HG--
extra : moz-landing-system : lando
2019-06-05 15:57:40 +00:00
Dragana Damjanovic
7eedf007fd Bug 1546816 - Part 1: Changes needed for performing cert verification on the parent proces while networking access is on the socket process. r=keeler
This patche changes only security/manager/ssl/SSLServerCertVerification.cpp.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 12:40:12 +00:00
Boris Zbarsky
d40a269ffc Bug 1558735 part 1. Stop using [array] in nsIX509Cert.getRawDER. r=keeler,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D34670

--HG--
extra : moz-landing-system : lando
2019-06-14 18:17:20 +00:00
Junior Hsu
9b0bca3c35 Bug 1504085 - P3 fix test r=tnguyen
Origin: honors ReferrerPolicy: so we should honor defaultPolicy set by user

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

--HG--
extra : moz-landing-system : lando
2019-06-14 20:15:27 +00:00
Junior Hsu
cc64995f75 Bug 1504085 - P2 Let Origin: honor ReferrerPolicy for non-CORS r=tnguyen,valentin
Differential Revision: https://phabricator.services.mozilla.com/D34454

--HG--
extra : moz-landing-system : lando
2019-06-14 22:24:33 +00:00
Haik Aftandilian
ae8cda84c2 Bug 1498742 - Part 1 - Move GetRepoDir() and GetObjDir() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-14 22:19:01 +00:00
Valentin Gosu
2cd34ccec7 Bug 1555036 - If there is a Cross-Origin-Opener-Policy mismatch and the SANDBOXED_AUXILIARY_NAVIGATION is set navigate to a network error r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D34420

--HG--
extra : moz-landing-system : lando
2019-06-14 21:48:51 +00:00
Dorel Luca
93196dddee Backed out changeset 94e779e03d4f (bug 1504085) Requested by the dev. CLOSED TREE 2019-06-15 00:31:57 +03:00
Junior Hsu
40846dd97d Bug 1504085 - P2 Let Origin: honor ReferrerPolicy for non-CORS r=tnguyen,valentin
Differential Revision: https://phabricator.services.mozilla.com/D34454

--HG--
extra : moz-landing-system : lando
2019-06-14 20:15:27 +00:00
Dorel Luca
fb616d00a6 Backed out 2 changesets (bug 1498742) for OSX build bustages. CLOSED TREE
Backed out changeset f6da94d90350 (bug 1498742)
Backed out changeset 4f3e83d8de59 (bug 1498742)
2019-06-15 00:13:05 +03:00
Haik Aftandilian
d49c76ff46 Bug 1498742 - Part 1 - Move GetRepoDir() and GetObjDir() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-14 20:11:48 +00:00
Bogdan Tara
d62176d3d7 Backed out 2 changesets (bug 1498742) for nsMacUtilsImpl.cpp related build bustage a=backout
Backed out changeset 6729dc168afd (bug 1498742)
Backed out changeset e5eed57a9111 (bug 1498742)
2019-06-14 12:50:04 +03:00
Boris Zbarsky
a4410ccb51 Bug 1558726. Stop using [array] in nsISocketTransportService. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D34668

--HG--
extra : moz-landing-system : lando
2019-06-13 04:21:32 +00:00
Boris Zbarsky
e4341aafec Bug 1558536. Stop using [array] in nsINetworkInfoService. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D34557

--HG--
extra : moz-landing-system : lando
2019-06-13 04:25:48 +00:00
Cosmin Sabou
f2f19ca465 Backed out changeset 4c1f06f4775c (bug 1543732) for crashtest failures on 785753-1.html.
--HG--
extra : rebase_source : 954910d236daf65f8b130203bfa4a0aec1da7dd1
2019-06-13 18:17:41 +03:00
Emilio Cobos Álvarez
af1495af8e Bug 1543732 - Re-enable a test to get hopefully useful logs eventually. 2019-06-13 14:14:00 +02:00
Sebastian Streich
5462226932 Bug 1450965 Skip Cors Check for Early WebExtention Redirects r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D30509

--HG--
extra : moz-landing-system : lando
2019-06-13 09:57:13 +00:00
Haik Aftandilian
fa1979ab86 Bug 1498742 - Part 1 - Move GetRepoDir() and GetObjDir() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-13 06:32:54 +00:00
Andreea Pavel
307e3f181b Backed out 2 changesets (bug 1498742) for build bustages at GMPProcessParent.cpp on a CLOSED TREE
Backed out changeset 5f9d32e26c71 (bug 1498742)
Backed out changeset ffc8d151cf3a (bug 1498742)
2019-06-13 04:38:56 +03:00
Haik Aftandilian
a195f66f52 Bug 1498742 - Part 1 - Move GetRepoDir(), GetObjDir(), IsDevelopmentBuild() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-12 23:41:39 +00:00
Boris Zbarsky
918f4befd5 Bug 1558877. Remove nsITLSServerSocket.setCipherSuites. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D34746

--HG--
extra : moz-landing-system : lando
2019-06-12 23:21:49 +00:00
Byron Campen [:bwc]
d3597b0e64 Bug 1381136: Stop sending with PPID fragmentation. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D34393

--HG--
extra : moz-landing-system : lando
2019-06-11 19:44:02 +00:00
Valentin Gosu
340e0822c9 Bug 1459573 - Support Cross Origin Resource Policy (CORP) r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D33747

--HG--
extra : moz-landing-system : lando
2019-06-12 13:30:05 +00:00
Boris Zbarsky
8e413da004 Bug 1558738. Stop using [array] in nsIUDPSocket. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34672

--HG--
extra : moz-landing-system : lando
2019-06-12 07:00:01 +00:00
Boris Zbarsky
ec33fbcdf2 Bug 1557904. Stop using [array] in appcache interfaces. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D34308

--HG--
extra : moz-landing-system : lando
2019-06-12 12:02:37 +00:00
Michal Novotny
36833d30c0 Bug 1478950 - Fix parsing filename in OS/2 FTP listing, r=valentin
The parsing code uses filename without checking its presence. This patch ensures that the filename contains at least one non white space character.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 19:18:36 +00:00
Honza Bambas
ee6363e0d7 Bug 1556479 - Fix log in nsHttpConnectionMgr::OnMsgNewTransaction to be trackable in logan, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D33530

--HG--
extra : moz-landing-system : lando
2019-06-11 17:37:11 +00:00
Boris Zbarsky
71e82c0744 Bug 1558553. Stop using [array] in nsIWifiListener. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34558

--HG--
extra : moz-landing-system : lando
2019-06-11 18:59:50 +00:00
Edwin Gao
c2dae416e6 Bug 1555454 - migrate xpcshelltests to macosx1014 r=gbrown
Changes:
- move xpcshell from macosx1010 to macosx1014
- updated regex for macosx1014 xpcshell to run on 2 chunks for all variants (for now)

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

--HG--
extra : moz-landing-system : lando
2019-06-11 18:36:19 +00:00
Gijs Kruitbosch
01a4b7d58f Bug 1555671 - tests, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D33153

--HG--
extra : moz-landing-system : lando
2019-06-11 19:02:50 +00:00
Boris Zbarsky
d5a8a4a595 Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34201

--HG--
extra : moz-landing-system : lando
2019-06-08 21:26:12 +00:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Kershaw Chang
84202aaa22 Bug 1545523 - Set mRaceCacheWithNetwork to true if mCacheOpenFunc is assigned r=michal
Differential Revision: https://phabricator.services.mozilla.com/D33070

--HG--
extra : moz-landing-system : lando
2019-06-10 13:37:04 +00:00
Sylvestre Ledru
f1fbd2ff00 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-06-08 08:26:37 +00:00
Tarek Ziadé
b18ccf9c4e Bug 1529023 - Enable threads on macOS for GetProcInfo r=jld,mstange
To run task_for_pid() on child processes, we need the child task port for
security reasons. This port can be obtained via a Mach IPC exchange.

This is what GeckoChildProcessHost::GetChildTask() provides, so we use it
in cocoa's version of GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-07 19:56:51 +00:00
Gijs Kruitbosch
9d7947d8a1 Bug 1556559 - make about:license non-web-linkable again, r=valentin
This ensures that links in about:license to about:rights and about:buildconfig actually work.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 12:11:34 +00:00
Sebastian Hengst
0d6b93005b Backed out changeset 0635eeb2fad4 (bug 1529023) for bustage in ChromeUtils.cpp. CLOSED TREE 2019-06-07 19:09:41 +02:00
Tarek Ziadé
2f870d3a3e Bug 1529023 - Enable threads on macOS for GetProcInfo r=jld,mstange
To run task_for_pid() on child processes, we need the child task port for
security reasons. This port can be obtained via a Mach IPC exchange.

This is what GeckoChildProcessHost::GetChildTask() provides, so we use it
in cocoa's version of GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-07 07:48:37 +00:00
Kershaw Chang
dc4eac2116 Bug 1556019 - Use int32 to store port number r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34123

--HG--
extra : moz-landing-system : lando
2019-06-07 10:07:37 +00:00
Christoph Kerschbaumer
242bf62249 Bug 1555050: Always (if non null) set any CSP as cspToInherit on the loadinfo of new document load. Update documentation for GetCSP, GetPreloadCSP() and GetCSPToInherit and update two callsites which called GetCSP instead of GetCSPToInherit. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33499

--HG--
extra : moz-landing-system : lando
2019-06-06 20:19:56 +00:00
Valentin Gosu
05f11128da Bug 1554680 - Use WindowGlobalParent::IsInitialDocument instead of WindowGlobalParent::DocumentPrincipal to figure out if the page is the initial about:blank r=nika
For a popup, the principal will be that of the opener, so we can't use that to
determine if the window is about:blank.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 22:08:20 +00:00
Valentin Gosu
48a10d1cfd Bug 1555359 - Treat the ExtensionProtocolHandler as threadsafe r=mayhemer
Since the RESOLVE_JAR_URI flag is not used for moz-extension, ResolveJARURI
would never get called in ExtensionProtocolHandler, so it's OK to consider
it threadsafe.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 20:15:11 +00:00
Valentin Gosu
40d01075ce Bug 1556259 - Make sure CaptiveDetect.jsm interprets any redirect as a locked captive portal r=mayhemer
The problem with CaptiveDetect was that it uses an XMLHttpRequest, and
apparently xhr.status is 0 for failed requests, which here includes cert
errors, redirect loops, etc.
Getting the XHR to not follow redirects was tricky, so a hacky fix was to
set nsIHttpChannel.redirectionLimit = 0;
For any redirect the XHR would now fail with NS_ERROR_REDIRECT_LOOP, which
we need to handle separately.

I also included tests for:
  * redirect to https with invalid cert
  * redirect to same URL causing redirect loop
  * redirect to different URL with different content
  * redirect to different URL with canonical content
All of these cases should be detected as locked captive portals.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 12:08:35 +00:00
Bogdan Tara
bde97b25f5 Backed out 2 changesets (bug 1555050) for test_reloadInFreshProcess.html failures CLOSED TREE
Backed out changeset f5e954d593f8 (bug 1555050)
Backed out changeset b5b99e78b753 (bug 1555050)
2019-06-06 23:13:52 +03:00
Christoph Kerschbaumer
a9912a9803 Bug 1555050: Always (if non null) set any CSP as cspToInherit on the loadinfo of new document load. Update documentation for GetCSP, GetPreloadCSP() and GetCSPToInherit and update two callsites which called GetCSP instead of GetCSPToInherit. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33499

--HG--
extra : moz-landing-system : lando
2019-06-06 18:09:03 +00:00
Nika Layzell
03a2f40528 Bug 1553272 - Eliminate the unnecessary ProtocolState object, r=froydnj
The vast majority of the virtual methods which were used on ProtocolState were
actually methods which only had meaningful implementations on the toplevel
protocol. This patch adds a new field to IProtocol holding a direct pointer to
the protocol's `IToplevelProtocol`, and the methods formerly implemented with
ProtocolState now directly call the corresponding method on IToplevelProtocol.
IToplevelProtocol then shadows these methods with the toplevel protocol
implementation, meaning that the right code is run in the right places.

In addition, some state was maintained for protocols inside of the separate
ProtocolState allocation, and this patch moves that state back into the actor
itself.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 14:57:34 +00:00
Boris Zbarsky
223721a61e Bug 1557237. Stop using [array] in nsIPrompt and nsIPromptService. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D33909

--HG--
extra : moz-landing-system : lando
2019-06-06 08:03:56 +00:00
Thomas Nguyen
01ff0bf93f Bug 1534681 Use ReferrerInfo class in document r=ckerschb,baku,Gijs
Also, in many place, we use document uri as referrer. It is not right
for the case srdoc iframe. We should use the last non-srdoc parent
document's uri

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

--HG--
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-data.html
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html
extra : moz-landing-system : lando
2019-06-06 07:23:37 +00:00
Michal Novotny
8e84b11096 Bug 1556987 - Invalid assertion in nsHttpChannel::OnPush, r=dragana
NS_HTTP_ONPUSH_LISTENER capability is set in nsHttpChannel::SetupTransaction when notification callbacks implement nsIHttpPushListener, but nsHttpChannel::OnPush event is initiated on socket thread in Http2PushedStream::TryOnPush and the channel can be closed and listeners released before nsHttpChannel::OnPush is called on the main thread.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 06:35:50 +00:00
Valentin Gosu
50fee6b27e Bug 1556911 - Don't instantiate NetworkConnectivityService off-main-thread r=dragana
This patch calls NetworkConnectivityService::GetSingleton() on the main thread
and keeps a ref to the service until shutdown.
Even though calling ncs->GetIPv6() off-main-thread is technically a data-race
in practice that's OK because only the simple decision whether to send
AAAA requests is made based on that value, which in itself is an optimization.
I filed bug 1556967 for making the connectivity service thread safe.

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

--HG--
extra : moz-landing-system : lando
2019-06-05 20:39:12 +00:00
nidhi
8c217493ad Bug 1552658 solved r=valentin
Added python 3 support for prepare_tlds.py

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

--HG--
extra : moz-landing-system : lando
2019-06-05 20:07:40 +00:00
Andrea Marchesini
3b60357ed6 Bug 1551798 - nsICookie.sameSite should return rawSameSite if lax-by-default pref is set to false, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33305

--HG--
extra : moz-landing-system : lando
2019-06-05 12:20:05 +00:00
Andrea Marchesini
0434ad7ecb Bug 1551798 - Test for cookie migration 10, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32483

--HG--
extra : moz-landing-system : lando
2019-06-05 12:19:56 +00:00
Andrea Marchesini
382a3aa030 Bug 1551798 - Store sameSite value as received from the wire in the database - migration 10, r=Ehsan,robwu
Differential Revision: https://phabricator.services.mozilla.com/D32482

--HG--
extra : moz-landing-system : lando
2019-06-05 12:19:54 +00:00
Andrea Marchesini
228b3afe31 Bug 1551798 - SameSite=lax by default and SameSite=none only if secure, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31215

--HG--
extra : moz-landing-system : lando
2019-06-05 12:18:52 +00:00
Valentin Gosu
3eed61b8a1 Bug 1548306 - Do not allow the ^ character to appear in the hostname r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32895

--HG--
extra : moz-landing-system : lando
2019-06-04 13:35:47 +00:00
Valentin Gosu
7d213246fb Bug 1555302 - Ensure that nsStandardURL::Resolve() doesn't parse URLs with a different scheme as relative r=mayhemer
Normally, this method will return the entire in string if it has a scheme.
However, mParser->ParseURL may fail, leading to the scheme to be cleared,
and the result will be the same HTTP URL with the input appended to the
path. This triggers the assertion in NS_NewURI that the scheme should not
change.

As a fix, we bail out of nsStandardURL::Resolve() if the parsed scheme of
the input is different than the base URIs current scheme. This condition
is necessary, because we still need to support a deprecated form of relative
URLs like http:file or http:/path/file

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

--HG--
extra : moz-landing-system : lando
2019-06-04 13:42:37 +00:00
Valentin Gosu
2c2ccd2797 Bug 1533877 - Frame navigations should check their parent's Cross-Origin policy r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32972

--HG--
extra : moz-landing-system : lando
2019-06-04 12:24:56 +00:00
Andrea Marchesini
176b3f8e39 Bug 1556419 - cookie path should not contain the last '/', r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33500

--HG--
extra : moz-landing-system : lando
2019-06-04 02:42:57 +00:00
Andrea Marchesini
b4b9392f9d Bug 1554847 - Improve cross-origin checks in canvas API - propagate allRedirectsSameOrigin to HttpChannelChild actor, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32793

--HG--
extra : moz-landing-system : lando
2019-06-04 06:33:11 +00:00
Valentin Gosu
269fbdbecf Bug 1518730 - Wait for both A and AAAA responses to come back before notifying the listeners r=dragana
This way we preserve the behaviour of getaddrinfo, where both A and AAAA
responses come back at the same time.
Without this Firefox will always be biased, as the first request will usually
be resolved first. So if we requested IPv4 first, we'd mostly be using IPv4.
If we requested IPv6 first, normally we'll wait for the IPv4 response to come
back too, which is functionally equivalent to the new behaviour.
However, if the pref is set network.trr.early-AAAA;true then we'd use the IPv6
response immediately, possibly leading to a failed request if the IPv6
connection fails before we have an IPv4 address to fall back to.

A test for this patch was added in bug 1542561.

Depends on D33476

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

--HG--
extra : moz-landing-system : lando
2019-06-03 21:13:22 +00:00
Valentin Gosu
c3ee743b2d Bug 1518730 - Only send AAAA TRR requests when the system has IPv6 connectivity r=dragana
This is an optimization. If we detect that the system can't use the IPv6
address, there's no point in making a request for it.

Depends on D33475

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

--HG--
extra : moz-landing-system : lando
2019-06-03 21:17:08 +00:00
Valentin Gosu
b0786cdfb7 Bug 1518730 - Disable TRR for connectivity checks r=dragana
Depends on D33473

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

--HG--
extra : moz-landing-system : lando
2019-06-03 21:17:57 +00:00
Valentin Gosu
1bb0e080b4 Bug 1542561 - Test that a IPv4 NXDOMAIN still uses the IPv6 response, regardless which one comes back first r=dragana
This test uses prefs added in Bug 1518730, but the pref is ignored when it
doesn't exist, so the test is still valid.

Depends on D33471

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

--HG--
extra : moz-landing-system : lando
2019-06-03 21:20:39 +00:00
Valentin Gosu
15ababeb71 Bug 1542561 - TRR: Don't return NS_ERROR_UNKNOWN_HOST when a AAAA response comes back first, but the second A response is NXDOMAIN r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D33471

--HG--
extra : moz-landing-system : lando
2019-06-03 21:05:27 +00:00
Coroiu Cristina
73edc6621b Backed out 4 changesets (bug 1554847) for wpt failures at /service-workers/service-worker/fetch-canvas-tainting-video-cache.https.html
Backed out changeset 17e36d139ac2 (bug 1554847)
Backed out changeset 101bd1c2d688 (bug 1554847)
Backed out changeset 3ff9a221f3e5 (bug 1554847)
Backed out changeset 946e4d9420dd (bug 1554847)
2019-06-04 03:24:42 +03:00
shindli
b83baa135f Backed out changeset 32f9907bf1f7 (bug 1555302) for causing permafailures in dom/url/tests/test_url.html CLOSED TREE 2019-06-03 23:33:14 +03:00
Valentin Gosu
8c0163caeb Bug 1555302 - Ensure that nsStandardURL::Resolve() doesn't parse URLs with a different scheme as relative r=mayhemer
Normally, this method will return the entire in string if it has a scheme.
However, mParser->ParseURL may fail, leading to the scheme to be cleared,
and the result will be the same HTTP URL with the input appended to the
path. This triggers the assertion in NS_NewURI that the scheme should not
change.

As a fix, we bail out of nsStandardURL::Resolve() if the parsed scheme of
the input is different than the base URIs current scheme. This condition
is necessary, because we still need to support a deprecated form of relative
URLs like http:file or http:/path/file

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

--HG--
extra : moz-landing-system : lando
2019-06-03 19:30:42 +00:00
shindli
18d693fe12 Backed out 5 changesets (bug 1533877) for causing wpt permafailure in /html/cross-origin/anonymous.tentative.html CLOSED TREE
Backed out changeset 1804d3178cd4 (bug 1533877)
Backed out changeset b5a3e938f421 (bug 1533877)
Backed out changeset 08efb10cceb2 (bug 1533877)
Backed out changeset c4b8d755873b (bug 1533877)
Backed out changeset e53056e11429 (bug 1533877)
2019-06-03 22:06:38 +03:00
Valentin Gosu
e1092f8add Bug 1533877 - Frame navigations should check their parent's Cross-Origin policy r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32972

--HG--
extra : moz-landing-system : lando
2019-06-03 14:57:13 +00:00
ffxbld
5cd2a9bc7d 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/D33506

--HG--
extra : moz-landing-system : lando
2019-06-03 15:44:26 +00:00
Andrea Marchesini
0a9fe4ff98 Bug 1553867 - Reduce the number of ClonePrincipalForPermission() call in CookieSettings, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32364

--HG--
extra : moz-landing-system : lando
2019-06-03 11:14:38 +00:00
Andrea Marchesini
21cf95c1c2 Bug 1554847 - Improve cross-origin checks in canvas API - propagate allRedirectsSameOrigin to HttpChannelChild actor, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32793

--HG--
extra : moz-landing-system : lando
2019-06-03 09:55:08 +00:00
Csoregi Natalia
de697c360a Merge mozilla-central to mozilla-inbound. CLOSED TREE
--HG--
rename : layout/generic/nsFrameIdList.h => layout/generic/FrameIdList.h
2019-06-02 00:37:53 +03:00
Valentin Gosu
3cacbcf87b Bug 1552438 - Remove TRR mode 4 (MODE_SHADOW) r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D32997

--HG--
extra : moz-landing-system : lando
2019-06-01 09:44:20 +00:00
Valentin Gosu
4882c4f4ea Bug 1552438 - Remove TRR mode 1 (MODE_PARALLEL) r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D32996

--HG--
extra : moz-landing-system : lando
2019-06-01 09:44:06 +00:00
arthur.iakab
36d75a7e56 Merge mozilla-central to mozilla-inbound 2019-06-01 01:30:47 +03:00
Kartikaya Gupta
0d8a0d2546 Bug 1555966 - Back out cset ecceef291b89 (bug 1551601) for regressions. rs=valentin 2019-05-31 16:07:18 -04:00
Honza Bambas
c35df87597 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817

--HG--
extra : moz-landing-system : lando
2019-05-31 17:29:53 +00:00
Sebastian Hengst
78e651853f Merge mozilla-central to autoland. CLOSED TREE 2019-05-31 19:07:44 +02:00
Sebastian Hengst
5c434d0aa6 Merge autoland to mozilla-central. a=merge 2019-05-31 19:00:53 +02:00
Jorg K
be25a0ae54 Bug 1550945 - Follow-up to part 2, M-C: Move hook in nsNetUtil::NS_NewURI(). r=valentin a=Aryx DONTBUILD NPOTB 2019-05-31 11:53:59 +02:00
Ehsan Akhgari
d74c1d4a0f Bug 1555846 - Block cookies from trackers with dynamic FPI; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33227

--HG--
extra : moz-landing-system : lando
2019-05-31 14:33:36 +00:00
Dorel Luca
5a3296d55a Backed out changeset 910f7703f9f3 (bug 1555846) for Build bustages. CLOSED TREE 2019-05-31 17:24:43 +03:00
Ehsan Akhgari
62aa7c0ec3 Bug 1555846 - Block cookies from trackers with dynamic FPI; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33227

--HG--
extra : moz-landing-system : lando
2019-05-31 06:14:14 +00:00
Ehsan Akhgari
58702e4a1d Bug 1555715 - Remove WebSocketChannelParent::mIPCOpen; r=valentin
It is no longer necesssary for individual actors to do this book-keeping
manually.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 12:08:02 +00:00
ffxbld
669d19df08 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/D33154

--HG--
extra : moz-landing-system : lando
2019-05-30 13:07:37 +00:00
Honza Bambas
d47b46c009 Bug 1553927 - Do not do immediate captive portal check on certificate/ssl errors when connecting a plain URL to prevent loops, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D33032

--HG--
extra : moz-landing-system : lando
2019-05-29 16:13:46 +00:00
Christian Holler
d67b031492 Bug 1528950 - Implement HTTP fuzzing target for Necko. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32755

--HG--
extra : moz-landing-system : lando
2019-05-31 09:34:00 +00:00
Andrea Marchesini
aa84d3c812 Bug 1436674 - nsICookieService.idl should use ACString XPIDL type in place of the string type, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32662

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Andrea Marchesini
b1b122fb20 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Andrea Marchesini
68fbe6f8ca Bug 1554377 - Cleanup nsCookie implementation - Removed mIPCOpen, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32616

--HG--
extra : moz-landing-system : lando
2019-05-31 09:32:51 +00:00
Andrea Marchesini
fd927a96aa Bug 1554377 - Cleanup nsCookie implementation - network_cookie_thirdparty_nonsecureSessionOnly to StaticPrefs, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32615

--HG--
extra : moz-landing-system : lando
2019-05-31 09:32:33 +00:00
Andrea Marchesini
1040f3de6a Bug 1554377 - Cleanup nsCookie implementation - network.cookie.thirdparty.sessionOnly to StaticPrefs, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32614

--HG--
extra : moz-landing-system : lando
2019-05-31 09:32:13 +00:00
Andrea Marchesini
ff8aaf2236 Bug 1554377 - Cleanup nsCookie implementation - simpler nsCookie, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32562

--HG--
extra : moz-landing-system : lando
2019-05-31 09:31:47 +00:00
Andrea Marchesini
8bcf905e12 Bug 1554377 - Cleanup nsCookie implementation - Get rid of nsCookieAttributes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32561

--HG--
extra : moz-landing-system : lando
2019-05-31 09:31:30 +00:00
Andrea Marchesini
a1e12567f6 Bug 1554377 - Cleanup nsCookie implementation - Get rid of ConstCookie, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32560

--HG--
extra : moz-landing-system : lando
2019-05-31 09:31:12 +00:00
Thomas Nguyen
cd48bd6695 Bug 1554289 - Add non-null checks around assignment referrerInfo to preflight HTTP channel r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D32976

--HG--
extra : moz-landing-system : lando
2019-05-31 09:39:51 +00:00
Gijs Kruitbosch
e561d233e9 Bug 1552993 - r=valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D32066

--HG--
extra : moz-landing-system : lando
2019-05-27 09:14:33 +00:00
Csoregi Natalia
a51ae3670f Backed out 5 changesets (bug 1551798) for failures on test_rawSameSite.js. CLOSED TREE
Backed out changeset 11ddc433b632 (bug 1551798)
Backed out changeset f2ac8efb023d (bug 1551798)
Backed out changeset 0f6e797b434f (bug 1551798)
Backed out changeset eae7f88660c8 (bug 1551798)
Backed out changeset 2ba747afb3d0 (bug 1551798)
2019-05-30 10:17:01 +03:00
Andrea Marchesini
ef73f6105f Bug 1551798 - Add comments about the next removing patches, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33037

--HG--
extra : moz-landing-system : lando
2019-05-29 16:34:27 +00:00
Andrea Marchesini
d513a67ed4 Bug 1551798 - Test for cookie migration 10, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32483

--HG--
extra : moz-landing-system : lando
2019-05-29 15:56:22 +00:00
Andrea Marchesini
84e139e50b Bug 1551798 - Store sameSite value as received from the wire in the database - migration 10, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32482

--HG--
extra : moz-landing-system : lando
2019-05-29 16:34:33 +00:00
Andrea Marchesini
ae8ab513d8 Bug 1551798 - SameSite=lax by default and SameSite=none only if secure, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31215

--HG--
extra : moz-landing-system : lando
2019-05-30 00:48:41 +00:00
Byron Campen [:bwc]
2d6cf50175 Bug 1551589: readyState fixes r=ng
Depends on D31085

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

--HG--
extra : moz-landing-system : lando
2019-05-29 21:27:18 +00:00
Andrea Marchesini
4c6ace6ac6 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-29 15:55:03 +00:00
arthur.iakab
944263f18a Backed out 5 changesets (bug 1551798) for multiple build bustages on StaticPrefList.h CLOSED TREE
Backed out changeset c89daff34d97 (bug 1551798)
Backed out changeset bbc3f88b8c03 (bug 1551798)
Backed out changeset b87996b8a411 (bug 1551798)
Backed out changeset d88b0002d736 (bug 1551798)
Backed out changeset 0fe740c90e2b (bug 1551798)
2019-05-29 18:07:26 +03:00
Andrea Marchesini
08c8aa4d6d Bug 1551798 - Test for cookie migration 10, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32483

--HG--
extra : moz-landing-system : lando
2019-05-27 01:46:11 +00:00
Andrea Marchesini
d5fdfc9e8c Bug 1551798 - Store sameSite value as received from the wire in the database - migration 10, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32482

--HG--
extra : moz-landing-system : lando
2019-05-27 05:11:54 +00:00
Andrea Marchesini
7a79f55da4 Bug 1551798 - SameSite=lax by default and SameSite=none only if secure, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31215

--HG--
extra : moz-landing-system : lando
2019-05-24 15:44:00 +00:00
Andrea Marchesini
e9bbb85ed1 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-24 15:18:49 +00:00
Honza Bambas
912f874cb7 Bug 1509827 - Document nsIClassOfService flags, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D31067

--HG--
extra : moz-landing-system : lando
2019-05-29 14:02:26 +00:00
Tom Ritter
b8705a8481 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-29 11:31:31 +00:00
Noemi Erli
395fa026e1 Merge autoland to mozilla-central. a=merge 2019-05-29 12:47:04 +03:00
Jorg K
b4c9e9391c Bug 1550945 - Part 2, M-C part: Hook into nsNetUtil::NS_NewURI(). r=valentin a=aryx,npotb DONTBUILD 2019-05-29 11:23:04 +02:00
Cosmin Sabou
482c1fdb41 Backed out 2 changesets (bug 1554527, bug 1553867) as requested by Sylvestre for causing huge perf regressions. a=backout
Backed out changeset 1e85291f97de (bug 1554527)
Backed out changeset daf113171d63 (bug 1553867)
2019-05-29 09:57:29 +03:00
Sebastian Hengst
fba75a919c Backed out 4 changesets (bug 1539595) for build bustage in nsAboutRedirector.cpp. CLOSED TREE
Backed out changeset 2b0bb889b087 (bug 1539595)
Backed out changeset 95f0b82ec253 (bug 1539595)
Backed out changeset 6310e6dabceb (bug 1539595)
Backed out changeset ba3e353c6957 (bug 1539595)

--HG--
rename : browser/base/content/test/tabs/browser_e10s_about_page_triggeringprincipal.js => browser/base/content/test/general/browser_e10s_about_page_triggeringprincipal.js
rename : browser/base/content/test/tabs/browser_e10s_about_process.js => browser/base/content/test/general/browser_e10s_about_process.js
rename : browser/base/content/test/tabs/browser_e10s_chrome_process.js => browser/base/content/test/general/browser_e10s_chrome_process.js
rename : browser/base/content/test/tabs/browser_e10s_javascript.js => browser/base/content/test/general/browser_e10s_javascript.js
rename : browser/base/content/test/tabs/browser_e10s_switchbrowser.js => browser/base/content/test/general/browser_e10s_switchbrowser.js
rename : browser/base/content/test/tabs/file_about_child.html => browser/base/content/test/general/file_about_child.html
rename : browser/base/content/test/tabs/file_about_parent.html => browser/base/content/test/general/file_about_parent.html
rename : browser/base/content/test/tabs/test_process_flags_chrome.html => browser/base/content/test/general/test_process_flags_chrome.html
rename : browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js
2019-05-28 19:49:17 +02:00
Tom Ritter
03b41fa512 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-28 14:19:11 +00:00
Valentin Gosu
124a1062f6 Bug 1536744 - Rename NS_NewURIOnAnyThread to NS_NewURI. r=baku
The only protocol that can't be created off the main thread at the moment is
moz-extension, and that can be handled at a later time.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 14:17:04 +00:00
Valentin Gosu
fd0006a0bf Bug 1536744 - Add ssh scheme to NS_NewURIOnAnyThread r=baku
This is needed to pass a web-platform-test. Since unknown protocols use
nsSimpleURI and nsSimpleURI::GetHost returns an error code, that will fail.
Instead, we instantiate an nsStandardURL for the ssh scheme.
Once we change nsSimpleURI to be backed by MozURL we can probably remove this.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:50:43 +00:00
Valentin Gosu
393c44437c Bug 1536744 - Add nsGIOProtocolHandler::GetSingleton(). Make sure nsIOService::GetProtocolHandler only returns it when it's supported. r=baku
Before, we'd try to create a URI using the GIO protocol handler, and if that
succeeded, we'd return the protocol handler.
Now we can't return it if NS_NewURI succeeds, because NS_NewURI doesn't check
the protocol handler anymore. So instead we just instantiate the handler,
check if the scheme is supported, and if so return it.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:50:20 +00:00
Valentin Gosu
e117171c5d Bug 1536744 - Fix test by adding a proper implementation of nsSimpleURI::Resolve that uses MozURL r=baku
nsSimpleURI doesn't really have the concept of a relative URI.
Since unknown protocol schemes will ultimately fall back to using nsSimpleURI,
we need to make sure that resolving a URI with certain base still works as
before, when those URIs were nsStandardURLs, created by the protocol handlers.

To achieve this we check to see if the "relative path" has a scheme. If it
does, we just return it, to be parsed by NS_NewURI. Otherwise, we use
MozURL (based on rust-url) to figure out the correct relative URL we should
return. This by itself manages to fix several failing web-platform tests.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:50:00 +00:00
Valentin Gosu
37cf1a4629 Bug 1536744 - Add indexeddb and android schemes to NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30704

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:45 +00:00
Valentin Gosu
b8bdfab7c9 Bug 1536744 - Remove nsIProtocolHandler.newURI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30703

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:27 +00:00
Valentin Gosu
016cf57214 Bug 1536744 - Add "moz-icon" to NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30702

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:19 +00:00
Valentin Gosu
875ad56974 Bug 1536744 - Add "about" protocol to NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30701

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:17 +00:00
Valentin Gosu
eb24233246 Bug 1536744 - Add "jar" to NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30700

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:07 +00:00
Valentin Gosu
1c26cb2cac Bug 1536744 - Make resource protocol handler thread safe r=baku
This is achieved by adding a RWLock to SubstitutingProtocolHandler

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:05 +00:00
Valentin Gosu
43021cd88a Bug 1536744 - Add "resource" and "moz-extension" to NS_NewURIOnAnyThread. r=baku
* Add main thread assertions for "resource" and "moz-extension" protocols
* Use ::GetSingleton() for resource and moz-extension protocol handlers

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:48:56 +00:00
Valentin Gosu
8ce8ef49f6 Bug 1536744 - Add {nsAboutProtocolHandler,nsViewSourceHandler,SubstitutingProtocolHandler}::CreateNewURI() static methods r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30697

--HG--
extra : moz-landing-system : lando
2019-05-28 13:48:49 +00:00
Valentin Gosu
6226941606 Bug 1536744 - Make nsIOService.newURI call NS_NewURI, and NS_NewURI call NS_NewURIOnAnyThread r=baku
This way all of the nsIURI creation will go through NS_NewURIOnAnyThread.
NS_NewURIOnAnyThread will be renamed to NS_NewURI in the final patch.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:48:47 +00:00
Valentin Gosu
804b1c0cb2 Bug 1536744 - NS_NewURIOnAnyThread should construct nsStandardURLs for smb and sftp URLs r=baku
These URL types need both specific applications to be installed on Linux, and for the pref to list them as supported.
We do these checks in nsGIOProtocolHandler::NewChannel instead of performing them when creating the URLs.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:47:18 +00:00
Valentin Gosu
10a3eb98ad Bug 1536744 - Make SubstitutingProtocolHandler::NewURI only call ResolveJARURI if the host is android r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30694

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:55 +00:00
Valentin Gosu
552486a275 Bug 1536744 - Add nsAboutProtocolHandler::CreateNewURI() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30693

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:35 +00:00
Valentin Gosu
ef2b6cf771 Bug 1536744 - Add nsResProtocolHandler::GetSingleton() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30692

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:17 +00:00
ffxbld
dafef8c4a2 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/D32686

--HG--
extra : moz-landing-system : lando
2019-05-28 20:34:21 +00:00
Ehsan Akhgari
6c4174f1f6 Bug 1554713 - Remove HttpChannelChild::mIPCOpen; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D32717

--HG--
extra : moz-landing-system : lando
2019-05-28 17:06:01 +00:00
Kris Maglione
ffe2477ea3 Bug 1555439: Store enterprise policy about: whitelist in static array. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D33058

--HG--
extra : rebase_source : 68ee1c16d2008a3766faad2b661788ee0a381db1
2019-05-29 11:21:06 -07:00
Valentin Gosu
33c3bf5390 Bug 1551601 - Do process switch _before_ processing cached redirect r=mayhemer
This patch splits ReadFromCache in two - by adding ContinueReadFromCache.
ContinueReadFromCache is called asycly when a cross-process-redirect is
complete.

Sometimes, the channel will be cancelled before the cross-process-redirect
is complete, such as in:
testing/firefox-ui/tests/functional/safebrowsing/test_notification.py
In that case we must make sure to call HandleAsyncAbort if the listener's
onStart/StopRequest callbacks haven't been called.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 09:37:06 +00:00
Honza Bambas
8e33c5a50b Bug 1554953 - Fix test_captive_portal_service.js intermittent timeout at shutdown, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D32814

--HG--
extra : moz-landing-system : lando
2019-05-28 12:31:31 +00:00
Valentin Gosu
cc2ad47710 Bug 1552886 - Modernize test_trr.js (part 2) r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D31801

--HG--
extra : moz-landing-system : lando
2019-05-29 21:40:11 +00:00
Andrea Marchesini
4bbb03b93b Bug 1554527 - Clone the principal for permission checks in CookieSettings only if needed, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32660

--HG--
extra : moz-landing-system : lando
2019-05-27 13:45:42 +00:00
Andrea Marchesini
67e56bf7fb Bug 1191313 - Get rid of third-party-cookie-accepted and third-party-cookie-rejected notifications, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32665

--HG--
extra : moz-landing-system : lando
2019-05-27 13:27:47 +00:00
Andrea Marchesini
c355651b11 Bug 1416657 - Avoid calling IsThirdPartyChannel() with a nullptr channel in nsCookieService, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32672

--HG--
extra : moz-landing-system : lando
2019-05-27 13:25:12 +00:00
Kershaw Chang
5d000eeb62 Bug 1544619 - Ignore response body if method is HEAD or CONNECT r=mayhemer
According to the spec, we should ignore the response body for the HEAD and CONNECT requests.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:08:50 +00:00
Sylvestre Ledru
d57d4905f1 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
Julien Wajsberg
b63e2a6156 Bug 1543040 - Report timings for redirects in the child as well r=mayhemer
Depends on D31486

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:38:32 +00:00
Julien Wajsberg
6073a0fd93 Bug 1543040 - Report transaction timings in the redirect marker r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D31486

--HG--
extra : moz-landing-system : lando
2019-05-22 12:38:25 +00:00
Andrea Marchesini
1f043863ca Bug 1554138 - nsCookie::Create should return an already_AddRef<> instead of a raw pointer, r=Ehsan
Depends on D32461

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

--HG--
extra : moz-landing-system : lando
2019-05-25 01:32:24 +00:00
Ehsan Akhgari
a5fe850945 Bug 1547813 - Part 9: Ensure the cookie service does third-party checks when the cookie policy is set to nsICookieService::BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30118

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:46 +00:00
Ehsan Akhgari
70dba3be94 Bug 1547813 - Part 8: Introduce a CookieSettings API to query whether cookies from third-party trackers must be rejected and use it in Gecko; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30117

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:43 +00:00
Ehsan Akhgari
ab20502fb9 Bug 1547813 - Part 7: Introduce a storage partitioning API; r=baku
This API abstracts away the details of the decision on what context should be
partitioned away from the consumers and centralizes the decision making into
the same location in the code base.

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

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:41 +00:00
Ehsan Akhgari
e2a2c24b6e Bug 1547813 - Part 1: Introduce nsICookieService::BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN; r=baku
This new code designates our new cookie policy for blocking cookies and
storage access from third-party trackers and partitioning the cookie jar
of the rest of third-party resources.

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

--HG--
extra : moz-landing-system : lando
2019-05-25 01:25:23 +00:00
Andrea Marchesini
c926d65d2f Bug 1553867 - Reduce the number of ClonePrincipalForPermission() call in CookieSettings, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32364

--HG--
extra : moz-landing-system : lando
2019-05-24 19:05:35 +00:00
Andrea Marchesini
52816e049d Bug 1554137 - nsICookie and nsICookie2 should be builtinclass interfaces, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32461

--HG--
extra : moz-landing-system : lando
2019-05-24 17:01:21 +00:00
arthur.iakab
af8e458c5f Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE 2019-05-24 14:26:01 +03:00
Sylvestre Ledru
c82ea97226 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Dzmitry Malyshau
d3f4d3cc1c Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

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

--HG--
rename : third_party/rust/scopeguard/.cargo-checksum.json => third_party/rust/scopeguard-0.3.2/.cargo-checksum.json
rename : third_party/rust/scopeguard/Cargo.toml => third_party/rust/scopeguard-0.3.2/Cargo.toml
rename : third_party/rust/scopeguard/README.rst => third_party/rust/scopeguard-0.3.2/README.rst
rename : third_party/rust/scopeguard/examples/readme.rs => third_party/rust/scopeguard-0.3.2/examples/readme.rs
rename : third_party/rust/scopeguard/src/lib.rs => third_party/rust/scopeguard-0.3.2/src/lib.rs
extra : moz-landing-system : lando
2019-05-23 19:54:25 +00:00
Sylvestre Ledru
993c03acb1 Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31769

--HG--
extra : moz-landing-system : lando
2019-05-22 22:37:14 +00:00
Bogdan Tara
fa8d90211a Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-05-23 07:44:57 +03:00
Valentin Gosu
b4b25d6861 Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20499

--HG--
extra : moz-landing-system : lando
2019-05-22 13:48:59 +00:00
Valentin Gosu
33c73bd3eb Bug 1529911 - Add more tests for cancelling the channel r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20500

--HG--
extra : moz-landing-system : lando
2019-05-22 13:58:55 +00:00
Valentin Gosu
9f3b339e68 Bug 1529911 - Make the httpcancel unit test run in e10s r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20501

--HG--
extra : moz-landing-system : lando
2019-05-22 13:48:31 +00:00
Andrea Marchesini
7b8a38ee05 Bug 1551729 - Revert bug 1548432 - Re-introducing the support for cookies without values, r=mayhemer
This patch reverts the second part of bug 1548432.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 06:31:22 +00:00
Christoph Kerschbaumer
b633427366 Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D27654

--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:27 +00:00
Cosmin Sabou
bdf1d2a559 Backed out changeset a10cdf32fb5a (bug 1552549) for causing a spike in xpcshell failures. CLOSED TREE 2019-05-22 02:05:22 +03:00
Dzmitry Malyshau
1298c14a90 Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

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

--HG--
rename : third_party/rust/scopeguard/.cargo-checksum.json => third_party/rust/scopeguard-0.3.2/.cargo-checksum.json
rename : third_party/rust/scopeguard/Cargo.toml => third_party/rust/scopeguard-0.3.2/Cargo.toml
rename : third_party/rust/scopeguard/README.rst => third_party/rust/scopeguard-0.3.2/README.rst
rename : third_party/rust/scopeguard/examples/readme.rs => third_party/rust/scopeguard-0.3.2/examples/readme.rs
rename : third_party/rust/scopeguard/src/lib.rs => third_party/rust/scopeguard-0.3.2/src/lib.rs
extra : moz-landing-system : lando
2019-05-21 19:36:56 +00:00
Nika Layzell
30555bd898 Bug 1540731 - Part 3: Stop releasing actors within ActorDestroy, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D29606

--HG--
extra : moz-landing-system : lando
2019-05-21 17:04:23 +00:00
Liang-Heng Chen
d77a6249b5 Bug 1552431 - handle first/third party correctly; r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D31590

--HG--
extra : moz-landing-system : lando
2019-05-21 14:41:58 +00:00
Mihai Alexandru Michis
68421ffba4 Backed out changeset 754426d70d28 (bug 1551729) for causing wpt failures. CLOSED TREE 2019-05-21 15:17:37 +03:00