Commit Graph

18327 Commits

Author SHA1 Message Date
Michal Novotny
e2a1205f6d Bug 1544757 - Failed assertion MOZ_ASSERT(mRaceCacheWithNetwork || !(mTransactionPump && mCachePump) || mCachedContentIsPartial), r=mayhemer
When revalidated cache entry is used, normally the sequence is:
 OnStartRequest(mTransactionPump)
 OnStopRequest(mTransactionPump)
 OnStartRequest(mCachePump)
 OnStopRequest(mCachePump)

When doing cross process redirect, the call to OnStopRequest(mTransactionPump) might get delayed, so we can still have mTransactionPump in OnStartRequest(mCachePump).

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:40:41 +00:00
Kershaw Chang
fb1430c0de Bug 1553267 - Cancel the redirect load if docshell is being destroyed r=mayhemer
When the docshell is being destroyed, HttpChannelChild::CompleteRedirectSetup is not called and HttpChannelChild::mListener is not also assigned. In this case, I think we should cancel the channel and propagate the error to the http channel parent.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 11:41:04 +00:00
Abdoulaye O. Ly
cbbacc1e6a Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780

--HG--
extra : moz-landing-system : lando
2019-08-15 19:51:42 +00:00
Christoph Kerschbaumer
554015cccb Bug 1404367: Pass LoadInfo of channel to nsViewSourceChannel::Init. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D42296

--HG--
extra : moz-landing-system : lando
2019-08-16 11:35:57 +00:00
Gabriele Svelto
14db2c37b8 Bug 1571711 - Factorize crash handling out of the various process IPC classes r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41657

--HG--
extra : moz-landing-system : lando
2019-08-15 12:06:51 +00:00
Oana Pop Rus
8f85c499fe Backed out 3 changesets (bug 1559244) for browser chrome failure in browser_background_tab_crash.js on a CLOSED TREE
Backed out changeset 1ce7d9bbe7a1 (bug 1559244)
Backed out changeset dced8cea7b23 (bug 1559244)
Backed out changeset dabda4e90259 (bug 1559244)
2019-08-15 22:21:26 +03:00
Abdoulaye O. Ly
8aec5ed540 Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780

--HG--
extra : moz-landing-system : lando
2019-08-15 17:16:26 +00:00
Perry Jiang
deae3fab14 Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-15 17:26:42 +00:00
Perry Jiang
8682aaf225 Bug 1231213 - Correctly choose nsBufferedStream's underlying nsIInputStream after initialization. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26159

--HG--
extra : moz-landing-system : lando
2019-08-15 17:25:51 +00:00
Sebastian Streich
a71872d1de Bug 1572032 - Provide Unknown-MIME-Type in case of Nosniff + no mime r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41943

--HG--
extra : moz-landing-system : lando
2019-08-15 13:06:57 +00:00
Paul Zuehlcke
89fb47a8d9 Bug 1531303 - Refactored tests using PermissionManager URI methods to use PermissionTestUtils. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41029

--HG--
extra : moz-landing-system : lando
2019-08-15 14:32:48 +00:00
Kershaw Chang
91a654a9e3 Bug 1542037 - Only create nsDNSService on parent process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D41211

--HG--
extra : moz-landing-system : lando
2019-08-14 19:37:13 +00:00
Kershaw Chang
b869172d63 Bug 1456005 - Add captive portal URI to the TRR exclusion list r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D41207

--HG--
extra : moz-landing-system : lando
2019-08-14 19:35:16 +00:00
Kershaw Chang
50cb9b047f Bug 1568898 - Calaulate network id when ip changed r=michal
Differential Revision: https://phabricator.services.mozilla.com/D39699

--HG--
extra : moz-landing-system : lando
2019-08-13 16:48:05 +00:00
Makoto Kato
8dc6501cfc Bug 1572639 - Use std::move to avoid -Wreturn-std-move warning. r=dragana
Actually, compiler outputs the following warning for android build.

```
35:44.69 warning: netwerk/protocol/http/nsHttpHandler.cpp:165:12 [-Wreturn-std-move] local variable 'deviceString' will be copied despite being returned by name
35:44.69 warning: netwerk/protocol/http/nsHttpHandler.cpp:167:10 [-Wreturn-std-move] local variable 'deviceModelId' will be copied despite being returned by name
```

We should use std::move to fix this.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 19:38:23 +00:00
Bogdan Tara
f326b67e0e Backed out changeset c60ee628dd0e (bug 1571711) for RemoteSandboxBroker related bustages CLOSED TREE 2019-08-15 01:50:01 +03:00
Gabriele Svelto
d888c0a6b5 Bug 1571711 - Factorize crash handling out of the various process IPC classes r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41657

--HG--
extra : moz-landing-system : lando
2019-08-13 21:43:00 +00:00
Dorel Luca
73975f1d28 Backed out 22 changesets (bug 1231213) for Browser-chrome failures on /workers/remoteworkers/RemoteWorkerChild.cpp
Backed out changeset 7e09ad9ceea6 (bug 1231213)
Backed out changeset a275eb0b1a19 (bug 1231213)
Backed out changeset 906b80778539 (bug 1231213)
Backed out changeset 6a40ab6852cb (bug 1231213)
Backed out changeset 216591953f97 (bug 1231213)
Backed out changeset 1de357bc1921 (bug 1231213)
Backed out changeset 8e3fedf6502a (bug 1231213)
Backed out changeset 1b9a8b022fce (bug 1231213)
Backed out changeset 85df1959eb98 (bug 1231213)
Backed out changeset 666bf4260046 (bug 1231213)
Backed out changeset 0b03a19a6dc1 (bug 1231213)
Backed out changeset 11f010e6d6e7 (bug 1231213)
Backed out changeset 6ed55807374f (bug 1231213)
Backed out changeset 395062aef2ec (bug 1231213)
Backed out changeset bacf8499ba7b (bug 1231213)
Backed out changeset bf5d60c7a85a (bug 1231213)
Backed out changeset cd434b787ce6 (bug 1231213)
Backed out changeset ee4565104217 (bug 1231213)
Backed out changeset 581653ef33dd (bug 1231213)
Backed out changeset 2d5628a0e52d (bug 1231213)
Backed out changeset 3449c2eba4c6 (bug 1231213)
Backed out changeset ae221b628899 (bug 1231213)
2019-08-15 01:04:46 +03:00
Perry Jiang
bc23acda66 Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:53 +00:00
Perry Jiang
12f0d5f8d2 Bug 1231213 - Correctly choose nsBufferedStream's underlying nsIInputStream after initialization. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26159

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:33 +00:00
Sebastian Streich
c0a7a0ac2f Bug 1571415 - Add a Console Message for XTCO-Nosniff r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41550

--HG--
extra : moz-landing-system : lando
2019-08-14 12:44:08 +00:00
Sebastian Streich
6658520ea2 Bug 1571742 - Move Nosniff-Check into Sniffers r=ckerschb,dragana
Differential Revision: https://phabricator.services.mozilla.com/D41504

--HG--
extra : moz-landing-system : lando
2019-08-14 13:59:06 +00:00
Kershaw Chang
91a9c98998 Bug 1564960 - Calaulate network id on stream transport thread r=michal
Differential Revision: https://phabricator.services.mozilla.com/D39020

--HG--
extra : moz-landing-system : lando
2019-08-14 13:20:25 +00:00
Michal Novotny
2336cdb5e5 Bug 1544127 - Backout changeset 15f6b0cf4eb0, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D41293

--HG--
extra : moz-landing-system : lando
2019-08-12 16:17:55 +00:00
Sebastian Streich
d9aecc626c Bug 1570658 - Add a Flag for Navigation-Nosniff r=ckerschb
***
Revert Changes to Test

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

--HG--
extra : moz-landing-system : lando
2019-08-14 07:07:33 +00:00
Honza Bambas
06da3d0888 Bug 1572790 - Add a null check before dereferencing the |trans| argument in nsHttpConnection::CloseTransaction, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D41592

--HG--
extra : moz-landing-system : lando
2019-08-14 10:25:33 +00:00
Ciure Andrei
b454daea7a Backed out 3 changesets (bug 1531303) for causing close_window/close.py and browser_permissions_dialog.js to perma fail CLOSED TREE
Backed out changeset 87305e83174e (bug 1531303)
Backed out changeset 0c75c3bac00b (bug 1531303)
Backed out changeset 865c2a5d40da (bug 1531303)
2019-08-14 13:07:55 +03:00
Paul Zuehlcke
93bacc1004 Bug 1531303 - Refactored tests using PermissionManager URI methods to use PermissionTestUtils. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41029

--HG--
extra : moz-landing-system : lando
2019-08-14 08:31:23 +00:00
Cosmin Sabou
62a26df9c6 Backed out changeset 55df21f1b7d6 (bug 1566342) for causing build bustages on FuzzyLayer.cpp. CLOSED TREE 2019-08-14 02:20:11 +03:00
Christian Holler
295a59729c Bug 1566342 - Implement changes for HTTP2 fuzzing in Necko. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D38182

--HG--
extra : moz-landing-system : lando
2019-08-13 22:00:57 +00:00
Cosmin Sabou
85a8083871 Backed out 22 changesets (bug 1231213) for build bustages on /mozilla/Attributes.h CLOSED TREE
Backed out changeset 4a45f2c447fd (bug 1231213)
Backed out changeset bcb4d348a847 (bug 1231213)
Backed out changeset ae78ac86cc86 (bug 1231213)
Backed out changeset d681c92a7f05 (bug 1231213)
Backed out changeset 1ac9661e7fb4 (bug 1231213)
Backed out changeset 796c617b989f (bug 1231213)
Backed out changeset c46b31113adb (bug 1231213)
Backed out changeset ea7334da65d9 (bug 1231213)
Backed out changeset 6e9273940bf5 (bug 1231213)
Backed out changeset 7df0e0ff9a82 (bug 1231213)
Backed out changeset 12aba06d169c (bug 1231213)
Backed out changeset e7d6d8d64e8a (bug 1231213)
Backed out changeset 097a29f3ff9a (bug 1231213)
Backed out changeset 1b7169b75760 (bug 1231213)
Backed out changeset 0fd1fd7c3f06 (bug 1231213)
Backed out changeset 3d539eb7faff (bug 1231213)
Backed out changeset 419f9bb7be3c (bug 1231213)
Backed out changeset caede0e4e888 (bug 1231213)
Backed out changeset 778eade5085d (bug 1231213)
Backed out changeset a84b262ff6f8 (bug 1231213)
Backed out changeset 97328368da02 (bug 1231213)
Backed out changeset 9c845d7e3b29 (bug 1231213)
2019-08-14 00:10:48 +03:00
Perry Jiang
fe331f45b8 Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-13 19:55:57 +00:00
Perry Jiang
937244af65 Bug 1231213 - Correctly choose nsBufferedStream's underlying nsIInputStream after initialization. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26159

--HG--
extra : moz-landing-system : lando
2019-08-13 19:55:05 +00:00
Jan Andre Ikenmeyer
e92e3d02f6 Bug 1560699 - Download FTP resources instead of rendering them. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D39702

--HG--
extra : moz-landing-system : lando
2019-08-11 20:46:06 +00:00
Cosmin Sabou
f870af790d Backed out 22 changesets (bug 1231213) for build bustages on RemoteWorkerChild.cpp. CLOSED TREE
Backed out changeset 06dba269fcfe (bug 1231213)
Backed out changeset 20b1ec70a6d0 (bug 1231213)
Backed out changeset be99adfb84ab (bug 1231213)
Backed out changeset 8cb30e5ef8d7 (bug 1231213)
Backed out changeset bdeff3d76292 (bug 1231213)
Backed out changeset 783bd2856798 (bug 1231213)
Backed out changeset e52869704d4d (bug 1231213)
Backed out changeset df97ea0bbe79 (bug 1231213)
Backed out changeset 822ade495b97 (bug 1231213)
Backed out changeset 06281fe76994 (bug 1231213)
Backed out changeset c8c1d3aa27c6 (bug 1231213)
Backed out changeset b96a12cd2c73 (bug 1231213)
Backed out changeset a1dcf2ea83be (bug 1231213)
Backed out changeset 6e2934410f95 (bug 1231213)
Backed out changeset d4ffae32539b (bug 1231213)
Backed out changeset d99f2cbe0ed2 (bug 1231213)
Backed out changeset 3bbea49c6d03 (bug 1231213)
Backed out changeset dac29b0340ce (bug 1231213)
Backed out changeset 0591a2a0cc41 (bug 1231213)
Backed out changeset afc3b2b9d472 (bug 1231213)
Backed out changeset 89fffd7b8740 (bug 1231213)
Backed out changeset 30b9a65a6294 (bug 1231213)
2019-08-13 21:30:20 +03:00
Perry Jiang
cecf68627e Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-13 04:57:19 +00:00
Perry Jiang
d68ae2afde Bug 1231213 - Correctly choose nsBufferedStream's underlying nsIInputStream after initialization. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26159

--HG--
extra : moz-landing-system : lando
2019-08-13 04:57:34 +00:00
Sylvestre Ledru
645f2d5773 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-08-13 07:15:25 +00:00
Narcis Beleuzu
f53affe1cb Backed out 22 changesets (bug 1231213) for build bustages on RemoteWorkerChild.cpp . CLOSED TREE
Backed out changeset 6f25a7e73fe2 (bug 1231213)
Backed out changeset 5e88c3855fb6 (bug 1231213)
Backed out changeset a78d7b3e44af (bug 1231213)
Backed out changeset eb7f3a9b0a42 (bug 1231213)
Backed out changeset 87575a180ad5 (bug 1231213)
Backed out changeset 4e8369314e87 (bug 1231213)
Backed out changeset 039c34bc043c (bug 1231213)
Backed out changeset 0528ab68d94e (bug 1231213)
Backed out changeset 670e7d61d95c (bug 1231213)
Backed out changeset d61b9d65bd0a (bug 1231213)
Backed out changeset 9042ea694d40 (bug 1231213)
Backed out changeset bc0607e0d50b (bug 1231213)
Backed out changeset 196ee18781cb (bug 1231213)
Backed out changeset 4b588dec466b (bug 1231213)
Backed out changeset be6031a6fca7 (bug 1231213)
Backed out changeset 12e04c22f52f (bug 1231213)
Backed out changeset fd146f327f2d (bug 1231213)
Backed out changeset f2af7b66f50d (bug 1231213)
Backed out changeset 71d93fc98d3f (bug 1231213)
Backed out changeset 280271806864 (bug 1231213)
Backed out changeset ca4e828345a2 (bug 1231213)
Backed out changeset e41b984510ad (bug 1231213)
2019-08-13 07:47:05 +03:00
Perry Jiang
c0f155ab87 Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-13 04:03:38 +00:00
Perry Jiang
166ecc9374 Bug 1231213 - Correctly choose nsBufferedStream's underlying nsIInputStream after initialization. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26159

--HG--
extra : moz-landing-system : lando
2019-08-13 04:03:12 +00:00
Junior Hsu
645c8b23f7 Bug 1543066 - P2 Do not obtain a cross-origin opener-policy through non-HTTPS r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40671

--HG--
extra : moz-landing-system : lando
2019-08-13 02:03:32 +00:00
Junior Hsu
122ebb1e31 Bug 1543066 - P1 Implement COOP:unsafe-inherit r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40356

--HG--
extra : moz-landing-system : lando
2019-08-10 23:24:41 +00:00
rsbrans
7cc1352f45 Bug 1557222 - Remove AppCacheInsecure deprecated operation r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D41462

--HG--
extra : moz-landing-system : lando
2019-08-12 16:26:44 +00:00
Honza Bambas
1d2e827962 Bug 1554411 - Make sure to deregister each HTTP/2 tunnel with the same key as used for its registration, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40406

--HG--
extra : moz-landing-system : lando
2019-08-05 20:48:22 +00:00
Honza Bambas
6b90e7e687 Bug 1563027 - Properly dequeue tunnel streams that were queued because of high concurrency, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D36749

--HG--
extra : moz-landing-system : lando
2019-08-05 20:05:09 +00:00
ffxbld
21d02cb6fe 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/D41541

--HG--
extra : moz-landing-system : lando
2019-08-12 13:08:23 +00:00
Honza Bambas
c0709d6dc5 Bug 1571405 - Remove "Active connection not found" assertion from nsHttpConnectionMgr::OnMsgReclaimConnection for being too excessive, r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D40632

--HG--
extra : moz-landing-system : lando
2019-08-06 15:25:22 +00:00
Kershaw Chang
b72ba3a9e2 Bug 1572292 - Rewrite EnsureHSTSDataReadyNative r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D41171

--HG--
extra : moz-landing-system : lando
2019-08-08 23:47:38 +00:00
Csoregi Natalia
c1b14876f2 Backed out 2 changesets (bug 1543066) for COOP related failures on new_window_null.tentative.html. CLOSED TREE
Backed out changeset 8b50000b89dd (bug 1543066)
Backed out changeset 20f44d88ae9c (bug 1543066)
2019-08-11 02:18:57 +03:00
Junior Hsu
fdc7be95aa Bug 1543066 - P2 Do not obtain a cross-origin opener-policy through non-HTTPS r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40671

--HG--
extra : moz-landing-system : lando
2019-08-10 18:00:01 +00:00
Junior Hsu
2e3d48bb52 Bug 1543066 - P1 Implement COOP:unsafe-inherit r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40356

--HG--
extra : moz-landing-system : lando
2019-08-10 18:16:20 +00:00
Gabriele Svelto
beb62c4c31 Bug 1282776 - Finalize crash reports for child process crashes happening too early r=froydnj
This changes the way crash reports for child processes happening too early
during the child process' startup. Before bug 1547698 we wrote a partial
.extra file with those crashes that lacked the process type. The user would
not be notified of those crashes until she restarted Firefox and even when
submitted those crashes would be erroneously labeled as browser crashes.

After bug 1547698 we stopped writing .extra files entirely for those crashes
which left orphaned .dmp files among the pending crash reports.

This patch does three things to improve the situation:

* It writes a partial .extra file so that the crashes are detected at the next
  startup. So the user is still not notified directly of these crashes but she
  can report them later.
* It adds the process type to the .extra file so that the crash reporters are
  labelled correctly.
* It fixes a leak in the `pidToMinidump` hash-map. Since the crashes were
  not finalized the `ChildProcessData` strucutre associated with them would
  never be fred.

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

--HG--
extra : moz-landing-system : lando
2019-08-09 14:23:19 +00:00
Geoff Brown
a0f2f6aebd Bug 1572610 - Change xpcshell android_version to string type; r=jmaher
Change the xpcshell android_version to string type, consistent with mochitest:
https://searchfox.org/mozilla-central/rev/9775cca0a10a9b5c5f4e15c8f7b3eff5bf91bbd0/testing/mochitest/runtestsremote.py#102
test_backgroundfilesaver.js is the only xpcshell test that uses android_version; once bug 1572434
lands, that skip-if will not be required, so I am removing it here. (I'll be sure to rebase
and land on top of 1572434.)

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

--HG--
extra : moz-landing-system : lando
2019-08-09 22:25:22 +00:00
Jon Coppeard
5b47729d23 Bug 1572434 - Make test_backgroundfilesaver.js faster to hopefully fix timeouts r=gbrown?
Differential Revision: https://phabricator.services.mozilla.com/D41206

--HG--
extra : moz-landing-system : lando
2019-08-08 18:33:20 +00:00
Nicholas Nethercote
f6e8f9fa92 Bug 1570212 - Remove content.cors.no_private_data pref. r=dragana
It's never modified anywhere, and so there's no real point in having it.

The patch also removes the now-empty nsCORSListenerProxy::Startup().

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

--HG--
extra : moz-landing-system : lando
2019-08-09 00:58:43 +00:00
Nicholas Nethercote
c07a7357a2 Bug 1570212 - Convert content.cors.disable to a static pref. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40341

--HG--
extra : moz-landing-system : lando
2019-08-09 00:58:31 +00:00
Ehsan Akhgari
54f399c914 Bug 1569224 - Part 2: Add a unit test for examining the alt-svc cache isolation for third-party trackers; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D41141

--HG--
rename : toolkit/components/antitracking/test/browser/browser_tlsSessionTickets.js => toolkit/components/antitracking/test/browser/browser_networkIsolation.js
extra : moz-landing-system : lando
2019-08-08 22:04:25 +00:00
Ehsan Akhgari
c4a278dd27 Bug 1569224 - Part 1: Isolate Alt-Svc mappings for third-party tracker channels based on the origin of the top-level document; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D41139

--HG--
extra : moz-landing-system : lando
2019-08-08 22:04:24 +00:00
Junior Hsu
66e435a6d7 Bug 1543068 - P4 pass COEP check if target is not a nested browsing context r=nika
https://mikewest.github.io/corpp/#abstract-opdef-process-navigation-response

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

--HG--
extra : moz-landing-system : lando
2019-08-08 19:01:55 +00:00
Junior Hsu
15adda2765 Bug 1543068 - P3 Take COEP into account for COOP mismatch r=nika
Step 9 in obtain a cross-origin opener-policy
https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e

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

--HG--
extra : moz-landing-system : lando
2019-08-08 19:00:00 +00:00
Junior Hsu
f83eff1c6f Bug 1543068 - P2 Take COEP into account in CORP check r=nika
Implement https://mikewest.github.io/corpp/#corp-check

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

--HG--
extra : moz-landing-system : lando
2019-08-08 18:58:56 +00:00
Junior Hsu
895ebba7c1 Bug 1543068 - P1.5 Remove InheritedEmbedderPolicy r=nika
I believe it's the right thing to do.
COEP inherits opener's COEP and is overwritten if COEP by response is stricter.
i.e., we no more need the inherited one.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 18:56:30 +00:00
Junior Hsu
2247427ef2 Bug 1543068 - P1 Substitute Cross-Origin header with COEP r=nika
(a) Substitute Cross-Origin header with COEP
(b) Forcing cors in FetchDriver is removed since COEP doesn't need to IIUC

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

--HG--
extra : moz-landing-system : lando
2019-08-08 18:38:03 +00:00
Nika Layzell
667f8e129d Bug 1566643 - Part 3: Remove CPM::GetTabContextByContentProcess, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D39258

--HG--
extra : moz-landing-system : lando
2019-08-08 16:07:30 +00:00
Jared Wein
9ad3ab33b5 Bug 1571567 - Fix no-fallthrough errors in /netwerk. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40877

--HG--
extra : moz-landing-system : lando
2019-08-08 15:18:38 +00:00
Bogdan Tara
844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Tom Schuster
d2d9c3ff60 Bug 1558915 - Use infallible nsIURI::SchemeIs in netwerk/. r=baku
Sorry I had some problems figuring out who can review netwerk/. Most people seem to be on PTO.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 13:02:36 +00:00
Jared Wein
9c73e2262f Bug 1571567 - Fix no-fallthrough errors in /netwerk. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40877

--HG--
extra : moz-landing-system : lando
2019-08-08 10:53:00 +00:00
Thomas Nguyen
034395aea7 Bug 1572082 - Remove unused params in HttpChannelOpenArgs r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D41000

--HG--
extra : moz-landing-system : lando
2019-08-07 13:47:03 +00:00
Ehsan Akhgari
b05ce1a78b Bug 1571893 - Remove the prefs that can cause Gecko to stop honouring the Content Blocking allow list; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40895

--HG--
extra : moz-landing-system : lando
2019-08-07 15:54:54 +00:00
Ciure Andrei
adef2661b1 Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
Kris Maglione
c01ad83372 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

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

--HG--
extra : source : 03acb28ab60fb77fa06064385a62cc46cf4ad1bd
extra : amend_source : 0a71625d99951bebe45ee6f62570de491a714e97
2019-08-02 18:19:53 -07:00
Kershaw Chang
5036125ab8 Bug 1542037 - Avoid accessing nsDNSService on middleman process r=dragana
- This patch makes sure that we don't create nsDNSService on both child process and middleman process.
- gNeckoChild won't be created in middleman process, so it's fine to create ChildDNSService on middleman process.
- Add some MOZ_DIAGNOSTIC_ASSERT in TRR, so we know where TRR is used on child process.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 12:09:19 +00:00
Mihai Alexandru Michis
4bcc3ac00a Backed out changeset 8de4baa1dee3 (bug 1570658) for causing mochitest failures. CLOSED TREE 2019-08-06 14:19:31 +03:00
Sebastian Streich
6f2b641d45 Bug 1570658 - Add a Flag for Navigation-Nosniff r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D40618

--HG--
extra : moz-landing-system : lando
2019-08-05 14:58:13 +00:00
Emilio Cobos Álvarez
6da1e7506f Bug 1499000 - Make CORS use the right security flags to check whether an URL can be loaded. r=ckerschb
This fixes at least part of the problem. Without this patch, some of the flags
may get lost, like the ALLOW_CHROME flag which controls whether stuff like
resource:// URLs can be loaded or not.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 19:28:00 +00:00
Andrea Marchesini
01a1f139a1 Bug 1570971 - Enable all the annotation URL-Classifier features and remove their prefs, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40420

--HG--
extra : moz-landing-system : lando
2019-08-05 11:34:24 +00:00
Ehsan Akhgari
6eeefccacb Bug 1566825 - Part 2: Support storing and querying for anti-tracking permission grants in private windows; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40363

--HG--
extra : moz-landing-system : lando
2019-08-06 20:07:21 +00:00
Andreea Pavel
f6c90e68d3 Backed out 2 changesets (bug 1566825) for build bustages on a CLOSED TREE
Backed out changeset 7fcd3effcc45 (bug 1566825)
Backed out changeset 15de0b815be9 (bug 1566825)
2019-08-06 21:17:16 +03:00
Ehsan Akhgari
725049201c Bug 1566825 - Part 2: Support storing and querying for anti-tracking permission grants in private windows; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40363

--HG--
extra : moz-landing-system : lando
2019-08-05 08:30:22 +00:00
Andreea Pavel
53820aa30c Backed out 9 changesets (bug 1564221) xpcshell failures on a CLOSED TREE
Backed out changeset 36e33a3b59f0 (bug 1564221)
Backed out changeset 12d1607c1415 (bug 1564221)
Backed out changeset 8c3157ad3ac9 (bug 1564221)
Backed out changeset ad7a644c5a8d (bug 1564221)
Backed out changeset 31f730109760 (bug 1564221)
Backed out changeset a140da3467e0 (bug 1564221)
Backed out changeset 02a324e713d6 (bug 1564221)
Backed out changeset dc76eeb3a74a (bug 1564221)
Backed out changeset bc933f236434 (bug 1564221)
2019-08-06 20:49:21 +03:00
Barret Rennie
3df3c840f0 Bug 1564221 - Make nsITransportSecurityInfo builtinclass r=keeler
There are no longer any consumers of the JS-implemented
`FakeTransportSecurityInfo` class, so it can be removed. That removes the last
JS-implemented `nsITransportSecurityInfo` instance and it therefore can be
marked `builtinclass`.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 15:36:52 +00:00
Kershaw Chang
93e82cb323 Bug 1569196 - Make ChildDNSService run on socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40592

--HG--
extra : moz-landing-system : lando
2019-08-05 20:54:01 +00:00
Honza Bambas
501e5f99cc Bug 1565242 - Remove HTTP/2 connection (e2e or proxy) from the opposite (an)onymous connection entry in case it cannot be found in the entry the connection is associated with because of HTTP/2 (an)onymous connection pool sharing, r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D37881

--HG--
extra : moz-landing-system : lando
2019-08-02 11:04:20 +00:00
Dragana Damjanovic
fa88ecef4b Bug 1570227 - NIT: do not call AsyncWait if we are calling ForceRecv. r=mayhemer mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40007

--HG--
extra : moz-landing-system : lando
2019-07-31 10:47:21 +00:00
Razvan Maries
518b15a876 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-08-02 01:52:58 +03:00
Sebastian Streich
6917b697b8 Bug 1428473 Support X-Content-Type-Options: nosniff when navigating r=ckerschb,dragana,alchen
***
Apply Requested Revision

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

--HG--
extra : moz-landing-system : lando
2019-07-31 16:59:53 +00:00
Irakli Gozalishvili
7bc070b022 Bug 1271553 - Add known dweb protocols and ext+ to the standard list r=kershaw
Fix for the Bug 1536744 removed abiliti for nsIProtocolHandler to parse URLs of the
custom protocols & broke libdweb. In order to fix followup change for Bug 1559356 introduced a
whitelist for dweb: and dat: protocols to parse those as nsIStandardURLs. This change extends
whitelist with ipfs: ipns: ssb: schemes and ext+ prefix scheme.

This would allow Bug 1271553 to progress until better more general solution can be implemnted.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 19:52:30 +00:00
Christian Holler
d7765e1c1c Bug 1566482 - Properly calculate end in SetHttpTrailers. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D38272

--HG--
extra : moz-landing-system : lando
2019-07-31 07:53:17 +00:00
Christian Holler
e58e513d34 Bug 1566465 - Fix crash in Http2Session::RecvAltSvc. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D38197

--HG--
extra : moz-landing-system : lando
2019-07-31 07:51:05 +00:00
Johann Hofmann
7b984428e8 Bug 1567826 - Don't mark any secureContext pages as insecure. r=nhnt11,keeler,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D39012

--HG--
extra : moz-landing-system : lando
2019-07-30 12:31:22 +00:00
Ciure Andrei
e432090afa Backed out changeset ded87cc3f3ee (bug 1567826) for causing browser_check_identity_state.js to perma fail CLOSED TREE 2019-07-30 12:50:29 +03:00
Johann Hofmann
04c28108fc Bug 1567826 - Don't mark any secureContext pages as insecure. r=nhnt11,keeler,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D39012

--HG--
extra : moz-landing-system : lando
2019-07-30 07:52:59 +00:00
Nicholas Nethercote
cd426e3ad2 Bug 1569526 - Remove return values from Add*VarCache(). r=KrisWright
They're infallible in practice and always `NS_OK`. (This stems from
`AddVarCacheNoAssignment()` always returning `NS_OK`.)

As a result, the commit removes lots of unnecessary checks.

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

--HG--
extra : moz-landing-system : lando
2019-07-30 06:19:46 +00:00
Mihai Alexandru Michis
b644b1615f Backed out changeset 8d6593460b06 (bug 1271553) for mochitest failures. 2019-07-30 07:46:46 +03:00
Irakli Gozalishvili
e83a6e8364 Bug 1271553 - Add known dweb protocols and ext+ to the standard list r=kershaw
Fix for the Bug 1536744 removed abiliti for nsIProtocolHandler to parse URLs of the
custom protocols & broke libdweb. In order to fix followup change for Bug 1559356 introduced a
whitelist for dweb: and dat: protocols to parse those as nsIStandardURLs. This change extends
whitelist with ipfs: ipns: ssb: schemes and ext+ prefix scheme.

This would allow Bug 1271553 to progress until better more general solution can be implemnted.

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

--HG--
extra : moz-landing-system : lando
2019-07-29 23:58:08 +00:00
Thomas Nguyen
2bfaa83f89 Bug 1567573 - Apply Referrer-Policy header from redirect response r=michal
Differential Revision: https://phabricator.services.mozilla.com/D38879

--HG--
extra : moz-landing-system : lando
2019-07-29 13:51:17 +00:00
Junior Hsu
5932647860 Bug 1566295 - Do not send Origin: if we can't extract a valid origin r=ckerschb,tnguyen
Sometimes we don't have origin like OCSP requests, or a fetch issues from web extension.
We should not send `Origin:`

Spec doesn't specify how to treat other protocol like moz-extension.
IMO we should also prevent sending `Origin:` to keep web-compat.

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

--HG--
extra : moz-landing-system : lando
2019-07-29 08:00:35 +00:00
Kris Maglione
85c7f7187f Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika
This functionality is currently unused, and blocks work needed to support
Fission.

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

--HG--
extra : rebase_source : 1d8fdea73d48c714112d13844f5110f7f1892dda
2019-07-16 16:40:19 -07:00