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

19300 Коммитов

Автор SHA1 Сообщение Дата
Tom Ritter 0de066f265 Bug 1614008 - Disable eval checks for PAC Scripts r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D63558

--HG--
extra : moz-landing-system : lando
2020-02-24 19:37:41 +00:00
Michal Novotny ae154f5e8f Bug 1617036 - Remove NETWORK_TIME_BETWEEN_NETWORK_CHANGE_EVENTS probe r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D63571

--HG--
extra : moz-landing-system : lando
2020-02-24 15:09:40 +00:00
Sylvestre Ledru ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Cosmin Sabou 922d7d1c75 Backed out changeset 39ac1f7241ee (bug 1617036) for android bustages on nsAndroidNetworkLinkService.cpp.
CLOSED TREE
2020-02-24 16:43:08 +02:00
Michal Novotny 4928a446af Bug 1617036 - Remove NETWORK_TIME_BETWEEN_NETWORK_CHANGE_EVENTS probe r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D63571

--HG--
extra : moz-landing-system : lando
2020-02-24 13:44:21 +00:00
Michal Novotny 47f2a10a01 Bug 1614610 - Have cache occupancy for each content-type in cache index r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D63624

--HG--
extra : moz-landing-system : lando
2020-02-24 09:09:54 +00:00
Matt Woodrow 230ce652a1 Bug 1614847 - Copy the load type across to the new nsDocShellLoadState. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63268

--HG--
extra : moz-landing-system : lando
2020-02-24 02:17:01 +00:00
Matt Woodrow f5dd8136c6 Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63040

--HG--
extra : moz-landing-system : lando
2020-02-24 02:15:03 +00:00
Eric Rahm b9ba9be64d Bug 1322095 - Part 1b: Update callbacks to support moved args and convert nsAutoPtr usage. r=jya
In order to support the update to move args when invoking callbacks we:
 - Convert anything that was using WrapRunnable with `nsAutoPtr` to `UniquePtr`
 - Convert anything that was using a non-const ref as a param to either a
   const ref or a by-val copy

Addtionally we convert the remaining `nsAutoPtr` usage to `UniquePtr`.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:43:53 +00:00
Michael Froman e5696f1486 Bug 1611290 - Windows sandbox for socket process. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D62772

--HG--
extra : moz-landing-system : lando
2020-02-21 15:49:54 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02: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
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
ffxbld 60706288cf 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/D63465

--HG--
extra : moz-landing-system : lando
2020-02-20 13:40:32 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Andrea Marchesini 688f40008c Bug 1577040 - Part 7: Get rid of nsIClassifiedChanel::IsTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63305

--HG--
extra : moz-landing-system : lando
2020-02-20 07:30:30 +00:00
Andrea Marchesini 58c13b1a1e Bug 1577040 - Part 4: Get rid of nsIClassifiedChannel::IsSocialTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63302

--HG--
extra : moz-landing-system : lando
2020-02-20 07:29:24 +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
Ehsan Akhgari c8bd96de51 Bug 1577040 - Part 1: Remove the usages of nsIHttpChannel::IsTrackingResource() in the cookie service, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63299

--HG--
extra : moz-landing-system : lando
2020-02-20 07:27:24 +00:00
Andrea Marchesini 09465dbf49 Bug 1577040 - Part 0: nsIClassifiedChannel.isThirdPartySocialTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63298

--HG--
extra : moz-landing-system : lando
2020-02-20 07:26:54 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Andrea Marchesini d9a4c8b19f Bug 1608384 - Implement sameSite lax-by-default 2 minutes tolerance for unsafe methods, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D62885

--HG--
extra : moz-landing-system : lando
2020-02-19 17:43:52 +00:00
Andrea Marchesini 2665e4a062 Bug 1595661 - Cookie names and values must exclude NULL char, r=mayhemer,annevk
Differential Revision: https://phabricator.services.mozilla.com/D63205

--HG--
extra : moz-landing-system : lando
2020-02-19 12:52:38 +00:00
Kershaw Chang 583ae04d36 Bug 1607445 - Clear tokens cache at places where SSL_ClearSessionCache() is called r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D62021

--HG--
extra : moz-landing-system : lando
2020-02-18 19:04:28 +00:00
Andrea Marchesini bd69c0127b Bug 1612476 - Introduce telemetry id COOKIE_SAMESITE_SET_VS_UNSET to count cookies without sameSite attribute, r=Ehsan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D61351

--HG--
extra : moz-landing-system : lando
2020-02-12 14:47:57 +00:00
Boris Zbarsky d82355eb35 Bug 1615481. Throw the right exception from DataChannel.send() when the message is too big. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D62850

--HG--
extra : moz-landing-system : lando
2020-02-18 20:34:28 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Jed Davis ee171b6406 Bug 1615155 - Don't generate default `Recv__delete__` if there are args. r=nika
The default method implementations cause problems when trying to
override them with different types in a direct call class.

For the `Recv__delete__` case there's a simple solution: omit it if
there are any arguments, because it doesn't make much sense to specify
arguments and then completely ignore them, and the no-arg case isn't a
problem for overriding.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 20:46:21 +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
Ehsan Akhgari 84d84455c5 Bug 1614646 - Fix a data race in the cookie service initialization code; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D62941

--HG--
extra : moz-landing-system : lando
2020-02-17 11:52:06 +00:00
Valentin Gosu 1ced192f38 Bug 1607460 - Align with Cross-Origin-Opener-Policy changes r=michal
See: https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e/f39cac7bf3a8a894059879f15c5b7b41f0195e29
The definition of the header is now:
Cross-Origin-Opener-Policy = %s"same-origin" / %s"same-origin-allow-popups" / %s"unsafe-none"; case-sensitive

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

--HG--
extra : moz-landing-system : lando
2020-02-18 16:39:08 +00:00
Dan Minor d7acfc2b3b Bug 1613765 - Cherry pick upstream sctp revision 0d166e; r=ng
Depends on D62071

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

--HG--
extra : moz-landing-system : lando
2020-02-15 14:29:03 +00:00
Dan Minor 397f865671 Bug 1613765 - Cherry pick upstream sctp revision 790a7a2; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D62071

--HG--
extra : moz-landing-system : lando
2020-02-15 14:29:03 +00:00
Valentin Gosu 482d3cd412 Bug 1543331 - Add a null check before calling mHostResolver->FlushCache() r=dragana
frame #5 of report https://crash-stats.mozilla.org/report/index/4dca6cb1-8d45-4bf5-8836-216810200217

This crash was rather obvious in retrospect, but I missed it because I was
looking at the wrong thing. We're not actually crashing in FlushCache,
instead mHostResolver is null in nsDNSService::Observe

What made it obvious is frame #5 of report https://crash-stats.mozilla.org/report/index/4dca6cb1-8d45-4bf5-8836-216810200217
Included here because crash reports expire:

```
1   libxul.so   nsHostResolver::FlushCache(bool)  netwerk/dns/nsHostResolver.cpp:740
2   libxul.so   nsDNSService::Observe(nsISupports*, char const*, char16_t const*)   netwerk/dns/nsDNSService2.cpp:1132
3   libxul.so   nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*)   xpcom/ds/nsObserverList.cpp:66
4   libxul.so   nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*)  xpcom/ds/nsObserverService.cpp:295
5   libxul.so   DecreasePrivateDocShellCount()  docshell/base/nsDocShell.cpp:306
6   libxul.so   nsDocShell::Destroy()   docshell/base/nsDocShell.cpp:5076
```

See the code points to this line:
ef373efc99/docshell/base/nsDocShell.cpp (l306)

As we can see, it emits the "last-pb-context-exited" notification,
and nsDNSService tries to call FlushCache.
However, it appears this notification may be called after we get the shutdown
notification and we null out the pointer. It's unclear why this crash was not
noticed before bug 1450893 landed.

Depends on D63107

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

--HG--
extra : moz-landing-system : lando
2020-02-17 22:20:12 +00:00
Valentin Gosu 541f162e0b Bug 1543331 - clang-format nsDNSService2.cpp r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D63107

--HG--
extra : moz-landing-system : lando
2020-02-17 22:20:55 +00:00
Michal Novotny 5cd74804aa Bug 1614637 - ThreadSanitizer: data race [@ assign_assuming_AddRef] vs. [@ operator bool] in CacheStorageService r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D62550

--HG--
extra : moz-landing-system : lando
2020-02-17 18:44:21 +00:00
Sebastian Streich 7800cfd4ef Bug 1615029 - Remove GetURI calls from CorsListenerProxy r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D62630

--HG--
extra : moz-landing-system : lando
2020-02-17 13:57:41 +00:00
ffxbld c8bab6f1bf 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/D63065

--HG--
extra : moz-landing-system : lando
2020-02-17 14:03:43 +00:00
Ehsan Akhgari 4bdcfe0033 Bug 1615653 - Remove an unused variable; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D62943

--HG--
extra : moz-landing-system : lando
2020-02-14 17:29:45 +00:00
Kershaw Chang 7be7c9ae1d Bug 1614730 - Make sure NSS is initialized before updating preference r=dragana
It is possible that NSS is not initialized when receiving a preference update from parent process, so we have to call `EnsureNSSInitializedChromeOrContent()` before updating the preference.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 12:33:53 +00:00
Bogdan Tara 82f531821d Backed out 2 changesets (bug 1607999) for test_fetch_cors_sw_reroute.html & test_fetch_event.html failures CLOSED TREE
Backed out changeset 3dd8004b9b6c (bug 1607999)
Backed out changeset 470e927e5f3f (bug 1607999)
2020-02-14 16:00:51 +02:00
Cosmin Sabou 8b4eabd7c2 Merge mozilla-central to autoland. 2020-02-14 15:17:39 +02:00
Cosmin Sabou ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Daisuke Akatsuka 72674a43a0 Bug 1607999: Convey User-Agent request header to a channel which is for redirection. r=dragana
For now, when redirecting before creating docshell, the custom user agent is not conveyed to a channel for the redirection. In this patch, fix that.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 11:55:13 +00:00
Valentin Gosu fc5a5e5952 Bug 1615058 - Do not load library for DnsQuery_A at runtime r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D62652

--HG--
extra : moz-landing-system : lando
2020-02-14 11:40:57 +00:00
Mike Shal ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Andy Grover bb914e65cb Bug 1614711 - Update to Neqo 0.1.14 for support for QUIC draft 25 r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D62655

--HG--
extra : moz-landing-system : lando
2020-02-13 22:18:07 +00:00