Commit Graph

17839 Commits

Author SHA1 Message Date
Jeff Walden
c904278324 Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 17:58:52 +00:00
Brindusan Cristian
149c6ee879 Backed out changeset 53e379a5738f (bug 1542910) as requested by waldo on irc. CLOSED TREE
--HG--
extra : histedit_source : 8714b8dac07c146822952ede6a8d85b3bf4caf50
2019-04-09 20:43:52 +03:00
Jeff Walden
9f030a47c2 Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 17:24:31 +00:00
Noemi Erli
4a518ba201 Backed out changeset d470f958ea61 (bug 1542910) for bustages in testEmptyWindowIsOmitted.cpp 2019-04-09 19:24:46 +03:00
Jeff Walden
1a5a3f4e6e Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26616

--HG--
extra : moz-landing-system : lando
2019-04-09 03:50:03 +00:00
Mike Hommey
071a2fe984 Bug 1541792 - Replace linker magic with manual component registration. r=froydnj
Before bug 938437, we had a rather large and error-prone
nsStaticXULComponents.cpp used to register all modules. That was
replaced with clever use of the linker, which allowed to avoid the mess
that maintaining that file was.

Fast forward to now, where after bug 1524687 and other work that
preceded it, we have a much smaller number of remaining static xpcom
components, registered via this linker hack, and don't expect to add
any new ones. The list should eventually go down to zero.

Within that context, it seems to be the right time to get rid of the
magic, and with it the problems it causes on its own.

Some of those components could probably be trivially be converted to
static registration via .conf files, but I didn't want to deal with the
possible need to increase the number of dummy modules in XPCOMInit.cpp.
They can still be converted as a followup.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 02:30:56 +00:00
Geoff Brown
8d88b9a596 Bug 1318091 - Disable failing android gtests; r=bc
Disable gtests observed to fail on Android. Some of these are simple build
failures and failures due to file permissions or paths, while other failures
are more obscure.
Once Android gtests are running on mozilla-central, I will file follow-up
bugs inviting teams to investigate the failures and re-enable Android gtests
that are important to them.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 20:58:21 +00:00
Dorel Luca
7783e898b4 Backed out changeset 471b2063c817 (bug 1540656) for XPCShell failures in dom/push/test/xpcshell/test_register_success_http2.js 2019-04-08 15:49:10 +03:00
Valentin Gosu
de5f594f79 Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671

--HG--
extra : moz-landing-system : lando
2019-04-08 10:42:34 +00:00
Jeremy Lempereur
39b20b1675 Bug 1517797 - Rewrite net_IsValidIPv6Addr in Rust r=valentin,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15737

--HG--
extra : moz-landing-system : lando
2019-04-08 06:33:04 +00:00
Liang-Heng Chen
3ad02f2b09 Bug 1541238 - add pref to delay 3rd-party tracker; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D26266

--HG--
extra : moz-landing-system : lando
2019-04-05 16:30:08 +00:00
Mike Hommey
c8b0debcc0 Bug 1541755 - Remove NSMODULE_DEFN in TestPACMan.cpp. r=mayhemer
The module is manually registered through the component manager in
the gtest setup anyways.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 11:29:05 +00:00
Jeff Walden
5327fe7f3e Bug 1542120 - Add js/public/Warnings.h for warning-related JSAPI. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26273

--HG--
rename : js/src/jsapi.h => js/public/Warnings.h
extra : moz-landing-system : lando
2019-04-05 22:52:04 +00:00
Sylvestre Ledru
03fc65347c Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:42:17 +00:00
Sylvestre Ledru
03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Sylvestre Ledru
b76e026986 Bug 1542237 - nsHTTP.cpp: Remove an unused allocation r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D26308

--HG--
extra : moz-landing-system : lando
2019-04-05 19:25:28 +00:00
Andrea Marchesini
0830861f7e Bug 1536411 - StoragePrincipal - part 6 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24864

--HG--
extra : moz-landing-system : lando
2019-04-11 16:28:51 +00:00
Andrea Marchesini
5cfeeda19e Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24025

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:12 +00:00
Andreea Pavel
cc52ff4ec5 Bug 1536772 - disabled 785753-1.html on all platforms r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D27052

--HG--
extra : moz-landing-system : lando
2019-04-11 12:51:25 +00:00
Csoregi Natalia
ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru
d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Liang-Heng Chen
b56c857b8e Bug 1533363 - Part 2: Add HTTP Traffic category Telemetry; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D25135

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:39 +00:00
Liang-Heng Chen
87aef68061 Bug 1533363 - Part 1: Add HttpTrafficAnalyzer service; r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24517

--HG--
extra : moz-landing-system : lando
2019-04-04 21:38:28 +00:00
Carolina Jimenez Gomez
8093499470 Bug 1512505 - Log a message in web console when a site is only supporting TLS 1.0 or 1.1. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D25660

--HG--
extra : moz-landing-system : lando
2019-04-04 23:37:20 +00:00
Narcis Beleuzu
24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru
399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Brindusan Cristian
6760a04b6a Backed out 2 changesets (bug 1533363) for build bustages at HttpTrafficAnalyzer.cpp.
Backed out changeset 99636457aa95 (bug 1533363)
Backed out changeset c3488f465c29 (bug 1533363)
2019-04-04 21:13:58 +03:00
Ehsan Akhgari
352131739f Bug 1538974 - Ensure that we accept uppercase characters for url-classifier annotation skip URLs; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26019

--HG--
extra : moz-landing-system : lando
2019-04-04 17:38:09 +00:00
Liang-Heng Chen
d1e02bf1bf Bug 1533363 - Part 2: Add HTTP Traffic category Telemetry; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D25135

--HG--
extra : moz-landing-system : lando
2019-04-04 17:31:33 +00:00
Liang-Heng Chen
187eba79a4 Bug 1533363 - Part 1: Add HttpTrafficAnalyzer service; r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24517

--HG--
extra : moz-landing-system : lando
2019-04-04 17:29:36 +00:00
Valentin Gosu
47fe7693ea Bug 1540656 - Modernize test_trr.js r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D25586

--HG--
extra : moz-landing-system : lando
2019-04-04 15:32:23 +00:00
Ehsan Akhgari
f08e2307eb Bug 1533394 - Re-enable browser_serviceWorker.js now that bug 1498102 has been fixed; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26022

--HG--
extra : moz-landing-system : lando
2019-04-04 07:47:43 +00:00
Cosmin Sabou
03a4c6187b Backed out 3 changesets (bug 1540656) for xpcshell failures on test_immutable.js. CLOSED TREE
Backed out changeset 70a90b960aef (bug 1540656)
Backed out changeset 631a1aae6fb0 (bug 1540656)
Backed out changeset 408104f784ef (bug 1540656)
2019-04-04 13:34:35 +03:00
Valentin Gosu
866b54da1a Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671

--HG--
extra : moz-landing-system : lando
2019-04-04 09:30:44 +00:00
Valentin Gosu
0c4d313f27 Bug 1540656 - Modernize test_trr.js r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D25586

--HG--
extra : moz-landing-system : lando
2019-04-04 09:30:27 +00:00
Khyati Agarwal
4a147a68d1 bug 1540283 - 62,700 instances of "NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005" emitted from netwerk/base/nsIOService.cpp during linux64 debug testing r=valentin
Replaced "NS_ENSURE_SUCCESS" with 'if' condition

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

--HG--
extra : moz-landing-system : lando
2019-04-01 05:41:49 +00:00
Andrea Marchesini
10b25d6759 Bug 1539637 - Make cryptomining and fingerprinting annotations use the "strict" list always, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D25266

--HG--
extra : moz-landing-system : lando
2019-04-04 05:31:44 +00:00
Junior Hsu
304908db26 Bug 1539766 - handle the cancel case for e10s bp r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D25315

--HG--
extra : moz-landing-system : lando
2019-04-03 20:35:02 +00:00
Ciure Andrei
58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Dave Townsend
3dc26d41d2 Bug 1540854: Add MOZ_DBG support for nsIURI and nsIFile. r=froydnj
I am 90% sure that this is wrong but this is the only way I can get it to
compile and work. Unlike other examples of supporting MOZ_DBG it only declares
an operator for `nsIURI* not` `const nsIURI`. I had to drop the const because
then I couldn't call GetSpec as it isn't marked const. I had to switch to a
pointer since otherwise it would complain about virtual methods.

Still in practice this works, I think it is rare that we hold an nsIURI in
anything other than a pointer and same for the constness.

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

--HG--
extra : rebase_source : 9760674375563ec312568caf4a5ad46facfb6f68
2019-04-01 15:05:37 -07:00
Daniel Varga
14dc5b7d8a Merge mozilla-inbound to mozilla-central. a=merge 2019-04-03 09:05:41 +03:00
Ehsan Akhgari
aeca5512d1 Bug 1535877 - Fail explicitly when creating a second instance of the effective TLD service; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25237
2019-04-02 10:33:50 -04:00
Sebastian Streich
879635b243 Bug 1539853 - Throw Exceptions on null Principal within SpeculativeConnectInternal and Handle on Callsite r=ckerschb,Gijs
***
++Linting

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

--HG--
extra : moz-landing-system : lando
2019-04-02 16:36:09 +00:00
Christoph Kerschbaumer
6094ee4dde Bug 1541161: Use MOZ_DIAGNOSTIC_ASSERT and return error in loadinfo is null within NewChannelFromURIWithProxyFlagsInternal. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25917

--HG--
extra : moz-landing-system : lando
2019-04-03 12:51:51 +00:00
Ian Moody
e6abe56fc4 Bug 1539177 - netwerk/ manual ESLint no-throw-literal fixes. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D25653

--HG--
extra : moz-landing-system : lando
2019-04-02 13:33:42 +00:00
Honza Bambas
1296f23329 Bug 1538812 - Remove the dangerous default 'NS_ASSIGNMENT_DEPEND' of argument 'assignment' on NS_NewByteInputStream to let it be defined expicitly and thus visibly, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D25462

--HG--
extra : moz-landing-system : lando
2019-04-03 11:39:41 +00:00
Honza Bambas
2b587a5803 Bug 1541105 - Cache2 I/O thread may do excessive number of AddRef/Release calls on queued nsCOMPtr's under a lock, blocking main thread under heavy load; use nsTArray APIs allowing mere move of the elements instead, r=michal,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D25815

--HG--
extra : moz-landing-system : lando
2019-04-03 11:27:28 +00:00
Ian Moody
21aefc6b0a Bug 1539177 - netwerk/ automated ESLint no-throw-literal fixes. r=kershaw
Result of running:
$ mach eslint -funix netwerk/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-04-02 12:18:22 +00:00
Eden Chuang
72b79c6fbd Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process

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

--HG--
extra : moz-landing-system : lando
2019-04-01 22:42:34 +00:00
Khyati Agarwal
a5a46d7d06 bug 1524362 - 34,800 instances of "NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111" emitted from netwerk/protocol/res/SubstitutingProtocolHandler.cpp during linux64 debug testing r=valentin
Replaced "NS_ENSURE_SUCCESS" with 'if' condition

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

--HG--
extra : moz-landing-system : lando
2019-04-01 21:06:28 +00:00
Dana Keeler
f8da648dbc bug 1439002 - remove useless debug spew from nsSiteSecurityService r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D25489

--HG--
extra : moz-landing-system : lando
2019-04-01 17:07:20 +00:00
Eric Rahm
415da3a09d Bug 1540300 - Remove more verbose nsIURIMutator warnings. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25484

--HG--
extra : moz-landing-system : lando
2019-04-01 08:25:59 +00:00
ffxbld
c83d5b6a32 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/D25600

--HG--
extra : moz-landing-system : lando
2019-04-01 13:10:51 +00:00
shindli
ce0b5e1927 Backed out 2 changesets (bug 1487113) for causing xpcshell failure in netwerk/test/unit_ipc/test_alt-data_cross_process_wrap.js CLOSED TREE
Backed out changeset 74ae5929e387 (bug 1487113)
Backed out changeset 0ee68b246224 (bug 1487113)
2019-04-01 13:42:38 +03:00
Oana Pop Rus
dfaadda751 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-01 13:01:20 +03:00
Andrea Marchesini
a040cdb236 Bug 1487113 - nsICacheInfoChannel.alternativeDataInputStream as attribute, r=valentin
Depends on D25518

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

--HG--
extra : moz-landing-system : lando
2019-04-01 09:13:10 +00:00
Andrea Marchesini
99002c21c7 Bug 1487113 - nsICacheInfoChannel.originalInputStream as attribute, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25518

--HG--
extra : moz-landing-system : lando
2019-04-01 05:44:45 +00:00
Philip Chimento
7262bcdffb Bug 1506324 - Use DefaultGlobalClassOps in existing code. r=tcampbell
Reviewers: tcampbell

Subscribers: jandem

Bug #: 1506324

Differential Revision: https://phabricator.services.mozilla.com/D11571
2019-03-31 15:30:45 -07:00
Sylvestre Ledru
ef0bfc3822 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Kris Maglione
37ba9dcc45 Bug 1525762: Part 1l - Don't delay serving image resources until extensions are ready. r=aswan
Since we want themes to be loaded before the main browser window is loaded, we
really need their resources to be ready as soon as possible. We typically
delay serving moz-extension: requests until the extension is ready, since
extension page and CSS loads rely on the extension being fully initialized.

Image loads, though, are perfectly safe to load as early as we need, so this
patch whitelists them to bypass the delayed load logic.

--HG--
extra : rebase_source : 0f17a884e2981cc226e0004b40f1cfbb79d66c84
extra : histedit_source : 55d9f5ca67f135b1a62797b673bdb3a4ed8e3de5
2019-03-23 15:26:03 -07:00
Honza Bambas
7788764293 Bug 1538737 - Don't isolate proxy auth credential cache by origin attributes on all places, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25422

--HG--
extra : moz-landing-system : lando
2019-03-29 19:40:34 +00:00
Andrea Marchesini
ac66f432bc Bug 1534538 - Principal serialization should not serialize base domain if not needed, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24710

--HG--
extra : moz-landing-system : lando
2019-03-29 19:20:52 +00:00
Kershaw Chang
c711763836 Bug 1539539 - Add main thread assertion and fix a clang warning r=mayhemer
The resultCallback at [1] should be always executed on main thread, so adding an assertion to enforce this.
This patch also fixes a warning at [2]. This is about moving a const captured variable.


[1] https://searchfox.org/mozilla-central/rev/3d469329a42644b41e66944d8da22d78d8c0f5ec/netwerk/protocol/http/nsHttpChannel.cpp#551-558
[2] https://searchfox.org/mozilla-central/rev/3d469329a42644b41e66944d8da22d78d8c0f5ec/netwerk/base/nsNetUtil.cpp#2808

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

--HG--
extra : moz-landing-system : lando
2019-03-28 15:03:46 +00:00
Gurzau Raul
a3606c1a59 Backed out changeset 5c4845fa789b (bug 1535877) for failing at /browser_child_resource.js on a CLOSED TREE. 2019-03-29 06:04:34 +02:00
Erica Wright
fccf274cc5 Bug 1524883 - Clear storageAccessAPI permissions when history is cleared. r=johannh,Ehsan
When history is cleared, clear the flag that indicates a user has visited the domain.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 18:44:08 +00:00
Ehsan Akhgari
f2cbb76bcd Bug 1535877 - Fail explicitly when creating a second instance of the effective TLD service; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25237

--HG--
extra : moz-landing-system : lando
2019-03-28 23:12:52 +00:00
Christoph Kerschbaumer
c3a6d6d2f4 Bug 1537883: Silently fail in case aPrincipal is null within SpeculativeConnectInternal. r=valentin,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D25218

--HG--
extra : moz-landing-system : lando
2019-03-28 16:40:27 +00:00
Valentin Gosu
785fc97f60 Bug 1518208 - Respect network.trr.excluded-domains in TRR-only mode r=dragana
Normally you wouldn't want localhost or *.local domain to be resolved by a
remote resolver.
This patch makes sure that even if we are in TRR-only mode, we still
successfully resolve the domains specified by network.trr.excluded-domains
using native DNS.

Also fixes bug in TRRService::ReadPrefs where we didn't clear mExcludedDomains
before reading the pref.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 13:15:05 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Haik Aftandilian
77b79862cf Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj
Add a new nsExternalHelperAppService derived class named nsOSHelperAppServiceChild to be used for the MIME service, external helper app service, and external protocol service interfaces in child processes. nsOSHelperAppServiceChild overrides some methods used to get MIME and external protocol handler information from the OS and implements these methods by remoting the calls to the parent process.

This is necessary because, on Mac, querying the OS for helper application info from sandboxed content processes is unreliable and has buggy side effects.

For now, only use the new class on Mac.

Android and unix file changes r+ by gcp.
Windows files changes r+ by bobowen.
Sync messages review r+ by nfroyd.

MozReview-Commit-ID: 63BiS6VCxfn

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

--HG--
extra : moz-landing-system : lando
2019-03-27 22:49:33 +00:00
arthur.iakab
7654bfed1e Backed out 2 changesets (bug 1452278) for mingwclang build bustages on win/nsOSHelperAppService.h CLOSED TREE
Backed out changeset f11d78387bd9 (bug 1452278)
Backed out changeset 656f17a2553b (bug 1452278)
2019-03-27 22:03:07 +02:00
Haik Aftandilian
b8118af581 Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj
Add a new nsExternalHelperAppService derived class named nsOSHelperAppServiceChild to be used for the MIME service, external helper app service, and external protocol service interfaces in child processes. nsOSHelperAppServiceChild overrides some methods used to get MIME and external protocol handler information from the OS and implements these methods by remoting the calls to the parent process.

This is necessary because, on Mac, querying the OS for helper application info from sandboxed content processes is unreliable and has buggy side effects.

For now, only use the new class on Mac.

Android and unix file changes r+ by gcp.
Windows files changes r+ by bobowen.
Sync messages review r+ by nfroyd.

MozReview-Commit-ID: 63BiS6VCxfn

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

--HG--
extra : moz-landing-system : lando
2019-03-27 19:23:32 +00:00
Michal Novotny
98cbfe2ba6 Bug 1533369 - Add content type to cache index, r=mayhemer
This patch adds content-type to metadata in cache entry and it is then propagated down to the cache index.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:32:12 +00:00
Andrea Marchesini
b4a2e3cb6d Bug 1536488 - Tracking-annotation should use strict list always, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D24053

--HG--
extra : moz-landing-system : lando
2019-03-27 13:51:27 +00:00
Kershaw Chang
2efb2d1bce Bug 1539148 - Make sure http channel is release on main thread when calling NS_ShouldSecureUpgrade r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25028

--HG--
extra : moz-landing-system : lando
2019-03-27 12:09:01 +00:00
Sebastian Streich
82fb5d3ddf Bug 1386214 - Remove require-sri from the CSP-Module r=ckerschb,qdot
Differential Revision: https://phabricator.services.mozilla.com/D24880

--HG--
extra : moz-landing-system : lando
2019-03-26 21:58:48 +00:00
Matthew Noorenberghe
edd6809d0c Bug 1533925 - Allow about: pages to be forced into the extension process. r=kmag
Some extensions want to implement about: pages and we want those pages to be loaded in the extension process, not in the web content process, so that:
1) a compromised web process won't get access to the about: page content
2) the extension page can use all the APIs that extension pages normally get, instead of only content script APIs.

Post-Fission we will need to know which extension process to choose.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 04:07:15 +00:00
Cosmin Sabou
78fc71e3c3 Backed out changeset 7fa7d6e6dedc (bug 1442778) for devtools failures on browser_webconsole_check_stubs_console_api.js CLOSED TREE 2019-03-26 20:27:55 +02:00
Eden Chuang
5e4df764d9 Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process

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

--HG--
extra : moz-landing-system : lando
2019-03-26 15:18:20 +00:00
Andrea Marchesini
a8466fb647 Bug 1487113 - nsHttpChannel should return the Content-Length even when alt-data is available if not delivered, r=valentin
Without this patch, content-length getter returns 0 if we have an available
alt-data because we don't distinguish between having and using it.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 12:00:42 +00:00
Honza Bambas
0d286523d2 Bug 1527712 - Move I/O in nsFileChannel::OpenContentStream to a background thread, r=kershaw,dragana
Differential Revision: https://phabricator.services.mozilla.com/D23352

--HG--
extra : moz-landing-system : lando
2019-03-25 19:31:06 +00:00
Valentin Gosu
784b4209b8 Bug 1532395 - Clear the DNS cache before each TRR test r=JuniorHsu
It is likely that the test is flaky because we resolve the same host with a different TRR endpoint and sometimes we use a cached record.
We should clear the DNS cache before each test to ensure that we're actually checking the right thing.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 17:55:45 +00:00
Christoph Kerschbaumer
6417ca1ace Bug 1537883: Dump JS Stacktace in case aPrincipal is null within nsIOService::SpeculativeConnectInternal. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D24704

--HG--
extra : moz-landing-system : lando
2019-03-25 14:08:13 +00:00
dlee
dabe54958d Bug 1522412 - P5. Do not use system principal in testcase to test tracking protection. r=Ehsan
Some testcases are chrome scope testcase hence the resources it loads are triggered by
"system principal". This will exempt the resource from classification.

So in this patch, we used a new window to for the tracker test frame.
The window creation code is referenced from test_privatebrowsing_trackingprotection.html.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:49:28 +00:00
dlee
d7d67be8c9 Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.

See Bug 1442496 for the list of the call sites should use this flag.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:48:25 +00:00
dlee
9878ae650d Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:47:57 +00:00
dlee
5f710bb93b Bug 1522412 - P1. Replace LOAD_CLASSIFY_URI flag with a heuristic algorithm. r=Ehsan,mayhemer
In this patch, we move from a model where URL classification is opt-in
(by specifying LOAD_CLASSIFIER_URI) to a model where it is enforced by
default unless a channel opts out or is deemed to be a critical channel
based on simple heuristics.

The heuristics exempt a channel from classification if it is triggered
by system with an exception when it is a top level load.

To ensure critical channels are never classified, we also exempt
channels which are flagged as "BeConservative" (implemented in bug 1321783).
Another load flag LOAD_BYPASS_URL_CLASSIFIER is also introduced
for the same reason.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:47:29 +00:00
Kershaw Chang
4311c49299 Bug 1536236 - Make sure mDNSPrefetch is always released on main thread r=valentin
This patch should make mDNSPrefetch to be released always on main thread.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:39:45 +00:00
Honza Bambas
5d737c4b15 Bug 1538535 - backout bug 1527712 2019-03-24 11:51:36 +01:00
Sylvestre Ledru
289f40d6de Bug 1538199 - Remove an useless declaration in TRR.cpp r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D24506

--HG--
extra : moz-landing-system : lando
2019-03-23 18:24:04 +00:00
Honza Bambas
3db65d831e Bug 1536387 - Part 2: enhance the range for allowed http cache storage key tag character values, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D24342

--HG--
extra : moz-landing-system : lando
2019-03-22 23:22:37 +00:00
Emilio Cobos Álvarez
a841bd0f2a Bug 1538207 - Don't call into the prefs service OMT. r=decoder
Use a VarCache instead.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 16:29:27 +00:00
Valentin Gosu
2bcda024e0 Bug 1536236 - Release mDNSPrefetch in OnStopRequest (on the main thread) r=kershaw
nsDNSPrefetch holds a weak reference to nsHttpChannel. Weak references are not thread safe so, nsDNSPrefetch needs to be released on the main thread, in OnStopRequest.
Otherwise it gets released when the last reference to nsHttpChannel is dropped, which could be from another thread.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 16:48:32 +00:00
Christian Holler
91f594a077 Bug 1526258 - Implement fuzzing layer in networking for socket emulation. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D23194

--HG--
extra : moz-landing-system : lando
2019-03-20 14:40:44 +00:00
Gurzau Raul
f6782a38fb Backed out changeset 3e21362cd4dc (bug 1536387) for build bustage at CacheFileUtils.cpp on a CLOSED TREE. 2019-03-21 18:21:43 +02:00
Valentin Gosu
8a11162b6b Bug 1450893 - Add pref for list of domains excluded from TRR r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24291

--HG--
extra : moz-landing-system : lando
2019-03-21 12:41:41 +00:00
Valentin Gosu
50597c68ef Bug 1450893 - Add way to clear DNS cache r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24300

--HG--
extra : moz-landing-system : lando
2019-03-21 12:41:39 +00:00
Honza Bambas
dee2f46076 Bug 1536387 - Part 2: enhance the range for allowed http cache storage key tag character values, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D24342

--HG--
extra : moz-landing-system : lando
2019-03-21 13:01:15 +00:00
Gurzau Raul
2666e16a53 Backed out 7 changesets (bug 1522412) for xpcshell failures at test_shouldclassify.js on a CLOSED TREE.
Backed out changeset 7c998456e1fd (bug 1522412)
Backed out changeset ebb581ddf1d1 (bug 1522412)
Backed out changeset 850e1c68d978 (bug 1522412)
Backed out changeset fe288a48cecb (bug 1522412)
Backed out changeset 5399bca472b1 (bug 1522412)
Backed out changeset 91e5b339fe11 (bug 1522412)
Backed out changeset b80098d0a5c4 (bug 1522412)
2019-03-21 11:02:09 +02:00
dlee
baafcf7605 Bug 1522412 - P5. Do not use system principal in testcase to test tracking protection. r=Ehsan
Some testcases are chrome scope testcase hence the resources it loads are triggered by
"system principal". This will exempt the resource from classification.

So in this patch, we used a new window to for the tracker test frame.
The window creation code is referenced from test_privatebrowsing_trackingprotection.html.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:34:17 +00:00
Dimi Lee
fe284ca3d4 Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.

See Bug 1442496 for the list of the call sites should use this flag.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:32:46 +00:00
Dimi Lee
8f1caf4049 Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:30:51 +00:00
Dimi Lee
d97a1a7436 Bug 1522412 - P1. Replace LOAD_CLASSIFY_URI flag with a heuristic algorithm. r=Ehsan,mayhemer
In this patch, we move from a model where URL classification is opt-in
(by specifying LOAD_CLASSIFIER_URI) to a model where it is enforced by
default unless a channel opts out or is deemed to be a critical channel
based on simple heuristics.

The heuristics exempt a channel from classification if it is triggered
by system with an exception when it is a top level load.

To ensure critical channels are never classified, we also exempt
channels which are flagged as "BeConservative" (implemented in bug 1321783).
Another load flag LOAD_BYPASS_URL_CLASSIFIER is also introduced
for the same reason.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:29:48 +00:00
Andrea Marchesini
6449f116c4 Bug 1534343 - Document should check if its mCookieSettings exists before using it, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23764

--HG--
extra : moz-landing-system : lando
2019-03-21 06:44:00 +00:00
Alex Gaynor
1ad3f60e94 Bug 1536163 - Part 2 - use native Maybe syntax in place of MaybePrefValue in IPDL; r=mccr8
--HG--
extra : rebase_source : 9c93e3b61ceef67e33242af4415e144ff16ba49d
2019-03-21 06:51:43 +02:00
Mark Goodwin
50887394d6 Bug 1429796 Cleanup storage in CertBlocklist to allow easy addition of new types of pair (e.g. whitelist entries) r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D17668

--HG--
extra : moz-landing-system : lando
2019-03-20 17:00:47 +00:00
Honza Bambas
5ffebc7b88 Bug 1536387 - Append a regular HTTP cache key tag of value 0x7f to distinguish memory-only entries, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D24170

--HG--
extra : moz-landing-system : lando
2019-03-20 13:54:57 +00:00
Andreea Pavel
c3cd918c5c Backed out 2 changesets (bug 1429796) for failing xperf on a CLOSED TREE
Backed out changeset b0d08863f7a5 (bug 1429796)
Backed out changeset 1bd54f8dfd9e (bug 1429796)
2019-03-20 00:03:49 +02:00
Edwin Gao
fed5f980bc Bug 1536211 - disable tests in netwerk/test/unit/ that requires http/2 server r=jmaher
Disable the following tests, with 1536211 serving as the tracking bug:
- test_header_Server_Timing.js (1530871)
- test_trr.js (1532395)
- test_esni_dns_fetch.js (1530752)

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

--HG--
extra : moz-landing-system : lando
2019-03-19 01:12:28 +00:00
Mark Goodwin
59e0c373c3 Bug 1429796 Cleanup storage in CertBlocklist to allow easy addition of new types of pair (e.g. whitelist entries) r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D17668

--HG--
extra : moz-landing-system : lando
2019-03-19 17:48:04 +00:00
Rob Wu
0bf802b216 Bug 1536504 - Update outdated comment about _blank.html r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D24058

--HG--
extra : moz-landing-system : lando
2019-03-19 16:51:50 +00:00
Honza Bambas
87dbb69b5b Bug 1535361 - Let stream transport service idle with 5 threads instead of only one to not create/kill threads in quick bursts; add option to thread pool to shorten the idle timeout progressively with number of idle thread to save memory, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D23845

--HG--
extra : moz-landing-system : lando
2019-03-19 14:35:12 +00:00
Honza Bambas
44f895e1f6 Bug 1527712 - Move I/O in nsFileChannel::OpenContentStream to a background thread, r=kershaw,dragana
Differential Revision: https://phabricator.services.mozilla.com/D23352

--HG--
extra : moz-landing-system : lando
2019-03-19 15:25:47 +00:00
Coroiu Cristina
5f875389c3 Backed out changeset bdefd9c7fc99 (bug 1534343) for mochitest failures at netwerk/cookie/test/mochitest/test_xmlDocument.html on Android on a CLOSED TREE 2019-03-19 17:50:08 +02:00
Valentin Gosu
b7c2ade2f2 Bug 1532253 - Add threadsafe BlobURLProtocolHandler::CreateNewURI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D22135

--HG--
extra : moz-landing-system : lando
2019-03-19 15:13:47 +00:00
Valentin Gosu
87e9bbff49 Bug 1532253 - Add NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D22137

--HG--
extra : moz-landing-system : lando
2019-03-19 15:11:31 +00:00
Andrea Marchesini
7f2e25b635 Bug 1534340 - Fix a nullptr check in CookieServiceChild::RequireThirdPartyCheck, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D23873

--HG--
extra : moz-landing-system : lando
2019-03-19 13:23:28 +00:00
Andrea Marchesini
11de36bb5e Bug 1534343 - Document should check if its mCookieSettings exists before using it, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23764

--HG--
extra : moz-landing-system : lando
2019-03-19 12:24:20 +00:00
Valentin Gosu
599df523e1 Bug 1420677 - Make sure to update addr_info_gencnt each time we change addr_info r=dragana
When changing addr_info we didn't always update addr_info_gencnt, so when it the old AddrInfo was freed, even though we lock in nsDNSRecord::GetNextAddr, mIter would still point to the old AddrInfo.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 12:21:07 +00:00
Valentin Gosu
a2d6b63946 Bug 1420677 - Make AddrInfo.mAddresses an AutoCleanLinkedList r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D22960

--HG--
extra : moz-landing-system : lando
2019-03-19 12:22:10 +00:00
Valentin Gosu
fc90cbe9f5 Bug 1420677 - Make AddrHostRecord.addr_info a RefPtr r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D22961

--HG--
extra : moz-landing-system : lando
2019-03-19 12:22:12 +00:00
Coroiu Cristina
6e856bf267 Backed out changeset a0fb9b7bcfe7 (bug 1534343) for mochitest failures at netwerk/cookie/test/mochitest/test_xmlDocument.html on a CLOSED TREE 2019-03-19 14:17:03 +02:00
Valentin Gosu
561bc48679 Bug 1512472 - Hold nsHttpConnectionInfo in a RefPtr to avoid leak when returning early r=dragana
nsHttpConnectionMgr::SpeculativeConnect may return early, without assigning ci to a RefPtr. In that case, we'd leak the nsHttpConnectionInfo. We need to have it in a RefPtr from the start to make sure we can't leak it.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 12:03:23 +00:00
Andrea Marchesini
13f97ffdb7 Bug 1534343 - Document should check if its mCookieSettings exists before using it, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23764

--HG--
extra : moz-landing-system : lando
2019-03-19 06:27:45 +00:00
Bogdan Tara
8e54dd49f7 Backed out changeset 74b3da8c8c6c (bug 1534343) for test_xmlDocument.html failures CLOSED TREE 2019-03-18 23:30:57 +02:00
Andrea Marchesini
5e54909a70 Bug 1534343 - Document should check if its mCookieSettings exists before using it, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23764

--HG--
extra : moz-landing-system : lando
2019-03-18 17:12:10 +00:00
Kershaw Chang
111ff1b2e8 Bug 1521729 - P2: Fix failure tests r=mayhemer
Due to the p1 patch, the first time we get the result back from NS_ShouldSecureUpgrade is always asynchronously.
This means that the first http request could be completed slower than the http requests opened after the first one. There are some tests affected by this change, since these tests assume that http requests should be completed in the same order as these requests were created.
This patch fixes the tests by introducing a new method in nsIHttpProtocolHandler. This method returns a promise and makes sure the HSTS data is ready to read synchronously when the promise is resolved.
Once the HSTS is ready to read, the order of open/close channels will be the same.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:50:56 +00:00
Kershaw Chang
50316df2bb Bug 1521729 - P1: Support to get the result from NS_ShouldSecureUpgrade asynchronously r=mayhemer
1. Make nsHttpChannel::OnBeforeConnect async.
2. There are two ways to get the result from NS_ShouldSecureUpgrade. One is getting the result synchronously from the input reference and the other is via the provided callback.
Note that the callback is only used when the storage is not ready to read at startup.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:48:21 +00:00
dlee
b713c23c08 Bug 1532765 - Do not show warning message for top-level load in URL classifier. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D23236

--HG--
extra : moz-landing-system : lando
2019-03-12 23:23:21 +00:00
Andrea Marchesini
5bb6c49ba8 Bug 1535799 - nsIHttpChannel.isTrackingResource should be a method, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23765

--HG--
extra : moz-landing-system : lando
2019-03-17 06:55:50 +00:00
Gurzau Raul
0414b39799 Bug 1533394 - Disable browser_serviceWorker.js on Linux, Mac and Windows 7. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D23793

--HG--
extra : moz-landing-system : lando
2019-03-16 16:40:25 +00:00
Andrea Marchesini
5c87a3da7e Bug 1533312 - Expose tracking annotation categories, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22475

--HG--
extra : moz-landing-system : lando
2019-03-15 18:38:27 +00:00
Andrea Marchesini
42688a705f Bug 1535525 - Rename TrackingDummyChannel to ClassifierDummyChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23616

--HG--
rename : netwerk/protocol/http/TrackingDummyChannel.cpp => netwerk/protocol/http/ClassifierDummyChannel.cpp
rename : netwerk/protocol/http/TrackingDummyChannel.h => netwerk/protocol/http/ClassifierDummyChannel.h
rename : netwerk/protocol/http/TrackingDummyChannelChild.cpp => netwerk/protocol/http/ClassifierDummyChannelChild.cpp
rename : netwerk/protocol/http/TrackingDummyChannelChild.h => netwerk/protocol/http/ClassifierDummyChannelChild.h
rename : netwerk/protocol/http/TrackingDummyChannelParent.cpp => netwerk/protocol/http/ClassifierDummyChannelParent.cpp
rename : netwerk/protocol/http/TrackingDummyChannelParent.h => netwerk/protocol/http/ClassifierDummyChannelParent.h
rename : netwerk/protocol/http/PTrackingDummyChannel.ipdl => netwerk/protocol/http/PClassifierDummyChannel.ipdl
extra : moz-landing-system : lando
2019-03-15 18:55:10 +00:00
Alex Gaynor
aad50392d8 Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23013

--HG--
extra : moz-landing-system : lando
2019-03-15 12:55:10 +00:00
Andreea Pavel
af20d1c10b Backed out changeset a5beba8cc190 (bug 1534364) for assertion failures 2019-03-14 23:14:31 +02:00
Alex Gaynor
2b1e080e64 Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23013

--HG--
extra : moz-landing-system : lando
2019-03-14 19:40:20 +00:00
Andrew McCreight
f1d3c79527 Bug 1535357 - Make nsHttpConnectionInfo::Clone() return already_AddRefed<>. r=valentin
This will make it harder for callers of this method to accidentally
leak the connection info.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 19:42:23 +00:00
Nika Layzell
1ebd4ff025 Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre
Depends on D22190

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:05 +00:00
Andrea Marchesini
afed8a0a37 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 5 - Correct pref checks, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D23104

--HG--
extra : moz-landing-system : lando
2019-03-14 17:49:05 +00:00
Andrea Marchesini
43f63d46a3 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 3 - Cryptomining-annotation, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22344

--HG--
extra : moz-landing-system : lando
2019-03-14 17:48:33 +00:00
Andrea Marchesini
fcf2cc8123 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 2 - Fingerprinting-annotation, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22342

--HG--
extra : moz-landing-system : lando
2019-03-14 17:48:20 +00:00
Andrea Marchesini
c39dc7f1aa Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 1 - Classification flags in nsIHttpChannel, r=valentin,dimi
Differential Revision: https://phabricator.services.mozilla.com/D22341

--HG--
extra : moz-landing-system : lando
2019-03-14 17:47:59 +00:00
Dorel Luca
0e9ffb4c4f Merge mozilla-inbound to mozilla-central. a=merge 2019-03-14 18:25:40 +02:00
Christoph Kerschbaumer
459ec2f354 Bug 1533159: Add MOZ_RELEASE_ASSERT to all SetLoadInfo implementations to ensure loadinfo is never null. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23302

--HG--
extra : moz-landing-system : lando
2019-03-14 11:38:23 +00:00
Sylvestre Ledru
4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Dorel Luca
3ef1df6038 Backed out 5 changesets (bug 1533074) for eslint failure
Backed out changeset 36c6a7178a5c (bug 1533074)
Backed out changeset 7e6a8fadff5b (bug 1533074)
Backed out changeset 2a0494fed543 (bug 1533074)
Backed out changeset 38470d2dd98c (bug 1533074)
Backed out changeset af4e03d1f5c8 (bug 1533074)
2019-03-14 09:14:15 +02:00
Andrea Marchesini
21180cb43c Bug 1534538 - Avoid sending CookieSettings from parent to child if not needed, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23121

--HG--
extra : moz-landing-system : lando
2019-03-14 06:57:45 +00:00
Andrea Marchesini
69c2a0a877 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 5 - Correct pref checks, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D23104

--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:42 +00:00
Andrea Marchesini
5423d1a772 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 3 - Cryptomining-annotation, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22344

--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:38 +00:00
Andrea Marchesini
505ab331fd Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 2 - Fingerprinting-annotation, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22342

--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:33 +00:00
Andrea Marchesini
84f30a4b42 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 1 - Classification flags in nsIHttpChannel, r=valentin,dimi
Differential Revision: https://phabricator.services.mozilla.com/D22341

--HG--
extra : moz-landing-system : lando
2019-03-14 06:31:17 +00:00
Alex Gaynor
a5de0693af Bug 1535046 - Part 4 - remove unused 'using' statements from IDPL; r=valentin
Depends on D23346

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

--HG--
extra : moz-landing-system : lando
2019-03-13 18:50:26 +00:00
Alex Gaynor
affa7878d2 Bug 1535046 - Part 3 - use native Maybe syntax in place of OptionalTransportProvider in IDPL; r=valentin
Depends on D23345

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

--HG--
extra : moz-landing-system : lando
2019-03-13 18:48:55 +00:00
Alex Gaynor
c3cb34c967 Bug 1535046 - Part 2 - use native Maybe syntax in place of OptionalCorsPreflightArgs in IDPL; r=valentin
Depends on D23344

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

--HG--
extra : moz-landing-system : lando
2019-03-13 18:48:06 +00:00
Alex Gaynor
0a7f3758a4 Bug 1535046 - Part 1 - use native Maybe syntax in place of OptionalHttpResponseHead in IDPL; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23344

--HG--
extra : moz-landing-system : lando
2019-03-13 18:46:59 +00:00
Michal Novotny
8f0afd4311 Bug 1151815 - Remove expiration time from the cache index, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D22499

--HG--
extra : moz-landing-system : lando
2019-03-11 14:29:34 +00:00
Alex Gaynor
456bcf6c38 Bug 1534666 - replace OptionalInputStreamParams with InputStreamParams? in IPDL; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D23153

--HG--
extra : moz-landing-system : lando
2019-03-12 15:52:26 +00:00
Bogdan Tara
78cf6ce329 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-12 12:01:18 +02:00
Bogdan Tara
89414a1df5 Backed out 2 changesets (bug 1420677) for causing bug 1534550 a=backout
Backed out changeset cf114035c79f (bug 1420677)
Backed out changeset edff1f39d426 (bug 1420677)
2019-03-12 11:54:19 +02:00
Valentin Gosu
e17d0363fe Bug 1525036 - Respect CrossOriginPolicy in nsHttpChannel r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21415

--HG--
extra : moz-landing-system : lando
2019-03-12 08:05:03 +00:00
Valentin Gosu
21bfdeb265 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-12 08:04:01 +00:00
Valentin Gosu
fb98cd9527 Bug 1420677 - Make AddrHostRecord.addr_info a RefPtr r=dragana
Depends on D22960

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

--HG--
extra : moz-landing-system : lando
2019-03-11 12:59:55 +00:00
Valentin Gosu
7be123d24c Bug 1420677 - Make AddrInfo.mAddresses an AutoCleanLinkedList r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D22960

--HG--
extra : moz-landing-system : lando
2019-03-11 13:00:35 +00:00
Johann Hofmann
c676b40b18 Bug 1511111 - Optimize UrlClassifierSkipListService listening for RemoteSettings sync and fall back to empty collection in case of DB errors. r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D22292

--HG--
extra : moz-landing-system : lando
2019-03-08 22:21:48 +00:00
Johann Hofmann
1a4514ad76 Bug 1511111 - Convert UrlClassifierSkipListService to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D20318

--HG--
rename : netwerk/url-classifier/UrlClassifierSkipListService.js => netwerk/url-classifier/UrlClassifierSkipListService.jsm
extra : moz-landing-system : lando
2019-03-08 22:21:39 +00:00
Johann Hofmann
fde7df021a Bug 1511111 - Add nsIUrlClassifierSkipListService to integrate url-classifier with RemoteSettings and pref list updates. r=Ehsan,baku,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D18597

--HG--
extra : moz-landing-system : lando
2019-03-08 22:21:32 +00:00
Csoregi Natalia
d086070187 Backed out 5 changesets (bug 1525036) for browser_httpCrossOriginHeader.js failures. CLOSED TREE
Backed out changeset 6717beb3ac53 (bug 1525036)
Backed out changeset 0c05686bd62a (bug 1525036)
Backed out changeset 502b0bb796cd (bug 1525036)
Backed out changeset fa0363d33dbd (bug 1525036)
Backed out changeset 6391f42aaa6d (bug 1525036)
2019-03-09 02:39:11 +02:00
Valentin Gosu
d12177cb53 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-08 15:34:54 +00:00
Valentin Gosu
72fa3d8365 Bug 1525036 - Respect CrossOriginPolicy in nsHttpChannel r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21415

--HG--
extra : moz-landing-system : lando
2019-03-08 15:33:56 +00:00
Andrea Marchesini
edf65bad95 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 15 - Comments, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D21906

--HG--
extra : moz-landing-system : lando
2019-03-08 09:06:20 +00:00
Andrea Marchesini
b27c7a2194 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 14 - Test for cookies policy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21697

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:57 +00:00
Andrea Marchesini
a78d942c6b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 13 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21696

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:34 +00:00
Andrea Marchesini
8e20bbbc9a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:11 +00:00
Andrea Marchesini
bbbb6b3c68 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-03-08 09:03:38 +00:00
Andrea Marchesini
33a7c6ba37 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 9 - Tests for DOM Cache and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18957

--HG--
extra : moz-landing-system : lando
2019-03-08 09:02:53 +00:00
Andrea Marchesini
3d8f2f34f2 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 8 - Tests for ServiceWorkers and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18956

--HG--
extra : moz-landing-system : lando
2019-03-08 09:02:30 +00:00
Andrea Marchesini
d2af0d7a3e Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 7 - Tests for IndexedDB and cookie settings changing, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D18955

--HG--
extra : moz-landing-system : lando
2019-03-08 09:02:12 +00:00
Andrea Marchesini
9538bf47e4 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 6 - Tests for SharedWorker and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18954

--HG--
extra : moz-landing-system : lando
2019-03-08 09:01:55 +00:00
Andrea Marchesini
7d2fff7ba8 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 5 - BroadcastChannel must be blocked when cookie jar access is denied to avoid communication between live and new documents, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18953

--HG--
extra : moz-landing-system : lando
2019-03-08 09:01:32 +00:00
Andrea Marchesini
039d278116 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 4 - Storage tests, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D18952

--HG--
extra : moz-landing-system : lando
2019-03-08 09:01:09 +00:00
Andrea Marchesini
43beb5b35b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-08 09:00:06 +00:00
Dragana Damjanovic
1f783b0261 Bug 1528317 - Return NS_ERROR_NET_HTTP2_SENT_GOAWAY only when we have a protocol error. r=valentin
In bug 1050329 we have introduced a new error and an error page to show that there is a h2 protocol error. The problem is that we show that error when we close a h2 connection for any reason, like a network timeout. Also Http2Session::SessionError does not return NS_ERROR_ILLEGAL_VALUE error but NS_ERROR_NET_HTTP2_SENT_GOAWAY.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 21:03:27 +00:00
Valentin Gosu
28c9aa9535 Bug 1437661 - Use fallible AppendUTF16toUTF8 to avoid OOM crash r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D22412

--HG--
extra : moz-landing-system : lando
2019-03-07 17:23:35 +00:00
Valentin Gosu
24a1ef834b Bug 1435141 - Check for user certificates on a background thread to avoid main thread IO r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D22488

--HG--
extra : moz-landing-system : lando
2019-03-07 20:34:12 +00:00
arthur.iakab
93997623bd Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-08 00:14:12 +02:00
Valentin Gosu
8c1966b736 Bug 1530691 - Ignore OnStartRequest/StopRequest/DataAvailable after HttpChannelChild::ActorDestroy(Deletion) is called r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D21908

--HG--
extra : moz-landing-system : lando
2019-03-07 20:59:56 +00:00
Ciure Andrei
712dd2bb8c Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
Andrea Marchesini
b5e89a20d6 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 15 - Comments, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D21906

--HG--
extra : moz-landing-system : lando
2019-03-07 10:22:30 +00:00
Andrea Marchesini
f5aaaac0e2 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 14 - Test for cookies policy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21697

--HG--
extra : moz-landing-system : lando
2019-03-07 10:22:18 +00:00
Andrea Marchesini
54a53b2d9e Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 13 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21696

--HG--
extra : moz-landing-system : lando
2019-03-07 10:21:50 +00:00
Andrea Marchesini
6856f88972 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-07 10:21:15 +00:00
Andrea Marchesini
78f43c5536 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-03-07 10:18:45 +00:00
Andrea Marchesini
5fccb35782 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 9 - Tests for DOM Cache and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18957

--HG--
extra : moz-landing-system : lando
2019-03-07 10:17:57 +00:00
Andrea Marchesini
9668d47aab Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 8 - Tests for ServiceWorkers and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18956

--HG--
extra : moz-landing-system : lando
2019-03-07 10:17:55 +00:00
Andrea Marchesini
9334965076 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 7 - Tests for IndexedDB and cookie settings changing, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D18955

--HG--
extra : moz-landing-system : lando
2019-03-07 10:17:50 +00:00
Andrea Marchesini
4fa0ec8a85 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 6 - Tests for SharedWorker and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18954

--HG--
extra : moz-landing-system : lando
2019-03-07 10:16:31 +00:00
Andrea Marchesini
f02eab2c7d Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 5 - BroadcastChannel must be blocked when cookie jar access is denied to avoid communication between live and new documents, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18953

--HG--
extra : moz-landing-system : lando
2019-03-07 10:16:13 +00:00
Andrea Marchesini
012a1b062f Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 4 - Storage tests, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D18952

--HG--
extra : moz-landing-system : lando
2019-03-07 10:15:50 +00:00
Andrea Marchesini
f44f894eb1 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-07 10:14:36 +00:00
Jan Varga
4ecb0bc14c Bug 1526891 - Part 2: Make it possible to use MozURL by QuotaManager for all URIs (instead of using nsIPrincipal); r=nika,asuth
Differential Revision: https://phabricator.services.mozilla.com/D20906
2019-02-23 10:13:08 +01:00
Kershaw Chang
2870a6daed Bug 1532231 - Properly check if a DNSRequest is in array r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D21902

--HG--
extra : moz-landing-system : lando
2019-03-06 22:15:41 +00:00
Alex Gaynor
9a784d8ef8 Bug 1533066 - replace OptionalIPCClientInfo with IPCClientInfo? in IPDL; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D22332

--HG--
extra : moz-landing-system : lando
2019-03-06 17:57:04 +00:00
Dorel Luca
ac34e1d973 Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Dorel Luca
4b0b9944c9 Backed out 2 changesets (bug 1516325) for xpcshell failures in netwerk/test/unit/test_udpsocket.js. CLOSED TREE
Backed out changeset 7f9508dc59e1 (bug 1516325)
Backed out changeset 28eb88277ffc (bug 1516325)
2019-03-06 20:51:39 +02:00
Andrea Marchesini
f3be1866e2 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 15 - Comments, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D21906

--HG--
extra : moz-landing-system : lando
2019-03-06 17:05:17 +00:00
Andrea Marchesini
4643d957ad Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 14 - Test for cookies policy, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21697

--HG--
extra : moz-landing-system : lando
2019-03-06 17:04:55 +00:00
Andrea Marchesini
89b7c3883a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 13 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21696

--HG--
extra : moz-landing-system : lando
2019-03-06 17:04:29 +00:00
Andrea Marchesini
4fabb4a2a8 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-06 17:04:06 +00:00
Andrea Marchesini
cc423cd937 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-03-06 17:03:33 +00:00
Andrea Marchesini
89ed086455 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 9 - Tests for DOM Cache and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18957

--HG--
extra : moz-landing-system : lando
2019-03-06 17:02:43 +00:00
Andrea Marchesini
7433e39d29 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 8 - Tests for ServiceWorkers and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18956

--HG--
extra : moz-landing-system : lando
2019-03-06 17:02:25 +00:00
Andrea Marchesini
1367c07970 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 7 - Tests for IndexedDB and cookie settings changing, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D18955

--HG--
extra : moz-landing-system : lando
2019-03-06 17:02:04 +00:00
Andrea Marchesini
b2540a417d Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 6 - Tests for SharedWorker and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18954

--HG--
extra : moz-landing-system : lando
2019-03-06 17:01:42 +00:00
Andrea Marchesini
6373795d50 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 5 - BroadcastChannel must be blocked when cookie jar access is denied to avoid communication between live and new documents, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18953

--HG--
extra : moz-landing-system : lando
2019-03-06 17:01:24 +00:00
Andrea Marchesini
241c861dc5 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 4 - Storage tests, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D18952

--HG--
extra : moz-landing-system : lando
2019-03-06 17:01:07 +00:00
Andrea Marchesini
2fb61cb48b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-06 17:00:39 +00:00
Jed Davis
0004ada24c Bug 1516325 - Don't poll for POLLPRI on Necko self-pipe on Unix. r=dragana
Necko uses a pipe-to-self pattern in its event loop, except that on
Windows the pipe is a socket, and we're checking for PR_POLL_EXCEPT for
Windows-specific reasons and treating it as an error.  On Unix this
isn't necessary, and it causes interoperability problems with MacOS,
which asserts POLLPRI (which is what PR_POLL_EXCEPT maps to) as well
as POLLIN on pipes whenever normal data can be read.  (This may be a
standards violation by MacOS, but it's simple enough to work around.)

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

--HG--
extra : moz-landing-system : lando
2019-03-04 15:39:15 +00:00
Alex Gaynor
e5279ff3f7 Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22138

--HG--
extra : moz-landing-system : lando
2019-03-06 14:05:50 +00:00
Andrea Marchesini
c93bd63729 Bug 1532734 - Rename Cryptomining to CryptominingProtection, r=dimi
Depends on D22144

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

--HG--
rename : netwerk/url-classifier/UrlClassifierFeatureCryptomining.cpp => netwerk/url-classifier/UrlClassifierFeatureCryptominingProtection.cpp
rename : netwerk/url-classifier/UrlClassifierFeatureCryptomining.h => netwerk/url-classifier/UrlClassifierFeatureCryptominingProtection.h
extra : moz-landing-system : lando
2019-03-05 19:11:06 +00:00
Andrea Marchesini
45fe87a8dc Bug 1532734 - Rename Fingerprinting to FingerprintingProtection, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22144

--HG--
rename : netwerk/url-classifier/UrlClassifierFeatureFingerprinting.cpp => netwerk/url-classifier/UrlClassifierFeatureFingerprintingProtection.cpp
rename : netwerk/url-classifier/UrlClassifierFeatureFingerprinting.h => netwerk/url-classifier/UrlClassifierFeatureFingerprintingProtection.h
extra : moz-landing-system : lando
2019-03-05 19:10:43 +00:00
Valentin Gosu
49ba8dc323 Bug 1532324 - Remove manual NS_RELEASE from netwerk/* r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D22005

--HG--
extra : moz-landing-system : lando
2019-03-05 18:43:02 +00:00
Alex Gaynor
d3a1bdd83c Bug 1532368 - replace OptionalPrincipalInfo with PrincipalInfo? in IPDL; r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D21972

--HG--
extra : moz-landing-system : lando
2019-03-05 14:41:42 +00:00
Jeff Walden
3f385ffa33 Bug 1532005 - Implement a new js/public/ArrayBuffer.h header to centralize functionality for creating and interacting with ArrayBuffers. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D21827

--HG--
extra : rebase_source : 833bbfce12d90bcb92f7cd88ec65247e48c024c0
2019-03-04 15:19:16 -08:00
Luke Wagner
80a840b62f Bug 1487113 - Use CloseWithStatus in ScriptLoader.cpp to indicate failure (r=baku) 2019-03-04 19:35:41 -06:00
Razvan Maries
65e4948ca0 Backed out 4 changesets (bug 1532005, bug 1531638) for causing perma fails and Spidermonkey fail. CLOSED TREE
Backed out changeset 4913d941de92 (bug 1532005)
Backed out changeset 9635abe5bf24 (bug 1532005)
Backed out changeset 738cf4b1126a (bug 1532005)
Backed out changeset e5d9f2ee7ac7 (bug 1531638)
2019-03-05 01:07:28 +02:00
Ciure Andrei
5ebab45abd Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-04 23:54:12 +02:00
Dana Keeler
8393579e78 bug 1531958 - make http2 test certificates more consistent with existing test certificate infrastructure r=dragana
This patch uses the existing xpcshell test certificate infrastructure
(pycert/pykey) to manage the http2 test certificates (and gets rid of some uses
of nsIBadCertListener2 as a bonus).

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

--HG--
rename : netwerk/test/unit/CA.cert.der => netwerk/test/unit/http2-ca.pem
rename : testing/xpcshell/moz-http2/http2-key.pem => testing/xpcshell/moz-http2/http2-cert.key
extra : moz-landing-system : lando
2019-03-04 15:42:07 +00:00
Alex Gaynor
dccb3bee8b Bug 1531827 - replace OptionalLoadInfoArgs with LoadInfoArgs? in IPDL; r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D21722

--HG--
extra : moz-landing-system : lando
2019-03-04 06:30:00 +00:00
Michal Novotny
b22590cbfb Bug 1527293 - Loading a large script transferred with Content-Range from cache returns empty file, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D21403

--HG--
extra : moz-landing-system : lando
2019-03-01 13:04:36 +00:00
Jeff Walden
ecb4e10bda Bug 1532005 - Implement a new js/public/ArrayBuffer.h header to centralize functionality for creating and interacting with ArrayBuffers. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D21827

--HG--
extra : rebase_source : 36c43233ad6d804bd691c8c40d6a6984331c7162
2019-02-28 17:00:56 -08:00
Byron Campen [:bwc]
3b19aecf4f Bug 1528352: Logging improvements in nsUDPSocket, and handle negative returns from PR_RecvFrom properly. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20565

--HG--
extra : moz-landing-system : lando
2019-02-28 15:17:27 +00:00
Gurzau Raul
6b94d177d1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-01 09:28:28 +02:00
Alex Gaynor
f789c68941 Bug 1531476 - replace MaybeFileDesc with FileDescriptor? in IPDL; r=mccr8
Also contains a small amount of unrelated devirtualization of IPC methods.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 21:20:40 +00:00
Narcis Beleuzu
407ce9fb1a Backed out 4 changesets (bug 1525458) for mochitest failures on test_chrome_ext_trackingprotection.html . CLOSED TREE
Backed out changeset 96c38e4a3d23 (bug 1525458)
Backed out changeset 1755b771e8c7 (bug 1525458)
Backed out changeset c6177206b968 (bug 1525458)
Backed out changeset 5ce026db31b0 (bug 1525458)
2019-02-28 20:35:58 +02:00
Ehsan Akhgari
cfb1b88614 Bug 1525458 - Part 1: Only emit the loaded events for various content blocking categories in the presence of an allow-list entry for the top-level document when content would have been blocked otherwise; r=baku,dimi
Previously the code here used to emit the loaded events for every
resource examined by the URL Classifier Features (in other words, every
third party resource).  But we only need to emit the events in cases
where without the presence of the allow-list we would have blocked the
content.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 15:29:10 +00:00
Cosmin Sabou
00f3836a87 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-28 12:57:50 +02:00
Boris Zbarsky
9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Jonathan Kingston
f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston
dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
Jonathan Kingston
c4853316e7 Bug 1525319 - Removing context from OnStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20770

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:31 +00:00
Jonathan Kingston
f7e35ae39e Bug 1525319 - Removing context from OnStartRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20769

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:04 +00:00
Ciure Andrei
a5c0678ae4 Backed out changeset d158405da514 (bug 1528352) for perma failing test_udpsocket.js CLOSED TREE 2019-02-28 01:58:42 +02:00
Byron Campen [:bwc]
973021e793 Bug 1528352: Logging improvements in nsUDPSocket, and handle negative returns from PR_RecvFrom properly. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20565

--HG--
extra : moz-landing-system : lando
2019-02-27 15:39:57 +00:00
Ciure Andrei
8d2894e70d Backed out 12 changesets (bug 1525245) for failing worker-interception.https.html CLOSED TREE
Backed out changeset 009e7457b990 (bug 1525245)
Backed out changeset efb2e8fca464 (bug 1525245)
Backed out changeset 6a8401de3237 (bug 1525245)
Backed out changeset 38e802661b14 (bug 1525245)
Backed out changeset d02e3f436390 (bug 1525245)
Backed out changeset 10afd61b7582 (bug 1525245)
Backed out changeset 6b92fb3666d1 (bug 1525245)
Backed out changeset 476af2d7efe5 (bug 1525245)
Backed out changeset 43ad14e323a1 (bug 1525245)
Backed out changeset 94295e3fb027 (bug 1525245)
Backed out changeset d01ead2270e9 (bug 1525245)
Backed out changeset 6bdda622a04a (bug 1525245)
2019-02-28 00:55:39 +02:00
Andrea Marchesini
26364d101d Bug 1487113 - AltDataOutputStreamChild must be nsIAsyncOutputStream, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D21379

--HG--
extra : moz-landing-system : lando
2019-02-27 20:50:48 +00:00
Andrea Marchesini
6dd0ecd7d0 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - new CookieSettings for SharedWorkers and ServiceWorkers, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21357

--HG--
extra : moz-landing-system : lando
2019-02-27 19:58:26 +00:00
Andrea Marchesini
477f2b65c3 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 11 - windows/workers/documents must keep the current cookie settings and ignore changes, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18960

--HG--
extra : moz-landing-system : lando
2019-02-27 19:58:07 +00:00
Andrea Marchesini
1b7b09b29f Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 9 - Tests for DOM Cache and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18957

--HG--
extra : moz-landing-system : lando
2019-02-27 19:57:27 +00:00
Andrea Marchesini
13d01cb0bd Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 8 - Tests for ServiceWorkers and cookie settings changing, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D18956

--HG--
extra : moz-landing-system : lando
2019-02-27 19:57:09 +00:00
Andrea Marchesini
bbf2814e97 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 7 - Tests for IndexedDB and cookie settings changing, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D18955

--HG--
extra : moz-landing-system : lando
2019-02-27 19:56:57 +00:00