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

7543 Коммитов

Автор SHA1 Сообщение Дата
Christian Holler 95fc013b8b Bug 1528951 - Implement Websocket fuzzing target for Necko. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D42816

--HG--
extra : moz-landing-system : lando
2019-09-05 16:28:42 +00:00
Christian Holler d5d628a5fb Bug 1577571 - Add OnUpgradeFailed to nsIHttpUpgradeListener. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D44680

--HG--
extra : moz-landing-system : lando
2019-09-05 12:10:27 +00:00
Bogdan Tara 37b20c9b16 Backed out 2 changesets (bug 1405971) for test_sanityRegisteredServiceWorker2.html failures a=backout
Backed out changeset 71d1cf219835 (bug 1405971)
Backed out changeset 207b97835f60 (bug 1405971)
2019-09-05 06:45:40 +03:00
hb f05c8469c7 Bug 1575217, r=michal,dragana
Differential Revision: https://phabricator.services.mozilla.com/D43761

--HG--
extra : moz-landing-system : lando
2019-09-02 18:06:09 +00:00
Tom Schuster 68ebc30ae5 Bug 1405971 - Strip existing disallowed schemes in Origin header. r=JuniorHsu,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D39781

--HG--
extra : moz-landing-system : lando
2019-09-03 18:58:18 +00:00
Andrea Marchesini d5803b5f62 Bug 1563313 - URL-Classifier should process nsIChannel before the proxy, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D36872

--HG--
extra : moz-landing-system : lando
2019-09-03 10:50:40 +00:00
Dorel Luca 15fefbe415 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-03 07:03:04 +03:00
Matt Woodrow 4151ea2a94 Bug 1556489 - P21 - Cache the original referrer before url classification has been applied to send back to the content process, since the docshell expects to find the original. r=mayhemer,tnguyen
Differential Revision: https://phabricator.services.mozilla.com/D42258
2019-09-03 10:19:52 +10:00
Jean-Yves Avenard 9cdcb33634 Bug 1556489 - P20 - Remove unused method. r=mayhemer 2019-09-03 10:19:52 +10:00
Jean-Yves Avenard d65c5e0309 Bug 1556489 - P19. Fix devtools stack traces. r=honza,ochameau
DevTools rely on events when a new HttpChannel is opened, it needs to know when a DocumentChannel is.

Differential Revision: https://phabricator.services.mozilla.com/D40975
2019-09-03 10:19:46 +10:00
Matt Woodrow 1b5f7c772a Bug 1556489 - P18. Add DocumentChannel and hook it up. r=nika,mayhemer
DocumentChannel acts as a replacement for HttpChannel where redirects are now entirely handled in the DocumentChannelParent. The ContentChild will receive the final nsIChannel once all redirects have been handled.

Differential Revision: https://phabricator.services.mozilla.com/D37490
2019-09-03 10:19:38 +10:00
Jean-Yves Avenard f0b40a38d7 Bug 1556489 - P15. Move methods into dedicated nsI* interface. r=mayhemer
This allows in the future for the nsHttpChannel to deal with things others than the HttpChannelParent.

Differential Revision: https://phabricator.services.mozilla.com/D40972
2019-09-03 10:19:37 +10:00
Matt Woodrow 8a54afbb4c Bug 1556489 - P14. No longer pass nsILoadInfo to TriggerCrossProcessRedirect. r=mayhemer
We can deduct it from the nsIChannel argument already. In the future, the httpParent may be either HttpChannelParent or DocumentChannelParent.

Differential Revision: https://phabricator.services.mozilla.com/D40971
2019-09-03 10:19:36 +10:00
Jean-Yves Avenard b43fd91ea2 Bug 1556489 - P11. Add nIIdentChannel interface. r=mayhemer
The devtools listens to http-on-opening-request event which is expected to receive a nsIHttpChannel. However future changes will make it that it's not always a nsIHttpChannel that can fire such event.

As such we create an intermediary interface nsIIdentChannel and move the subset generating such event in nsIHttpChannel there.

Differential Revision: https://phabricator.services.mozilla.com/D40968
2019-09-03 10:19:34 +10:00
Jean-Yves Avenard a23b70b74e Bug 1556489 - P3. Move logic on when to return the PerformanceStorage into nsILoadInfo. r=mayhemer
This more closely follow the code as earlier documented. To remove all ambiguities, the idl documentation was amended.

Differential Revision: https://phabricator.services.mozilla.com/D40961
2019-09-03 09:50:05 +10:00
Jean-Yves Avenard de650bb217 Bug 1556489 - P2. Use ReplacementChannelConfig across HttpChannelParent and ContentChild. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40960
2019-09-03 09:49:46 +10:00
Jean-Yves Avenard cc07990908 Bug 1556489 - P1. Introduce ReplacementChannelConfig. r=mayhemer
This class allows to encapsulate all the information required in order to create a new HttpChannel object following a redirect.

Differential Revision: https://phabricator.services.mozilla.com/D40959
2019-09-03 09:47:17 +10:00
Honza Bambas 26889bce93 Bug 1578136 - Add a non-null check before dereferencing TLSFilterTransaction::Connection(), r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D44391

--HG--
extra : moz-landing-system : lando
2019-09-02 17:22:23 +00:00
Ehsan Akhgari 52b58160a7 Bug 1576109 - Ensure that the content blocking allow list principal is set correctly during HTTP redirects; r=baku,dragana
Differential Revision: https://phabricator.services.mozilla.com/D43541

--HG--
extra : moz-landing-system : lando
2019-08-29 18:48:43 +00:00
Nika Layzell bf4d274ec0 Bug 1570369 - Part 15: Use IPDL refcounted for PHttpChannel, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40264

--HG--
extra : moz-landing-system : lando
2019-08-16 10:54:23 +00:00
Nika Layzell 696b024d27 Bug 1570369 - Part 14: Use IPDL refcounted for PHttpBackgroundChannel, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40263

--HG--
extra : moz-landing-system : lando
2019-08-16 10:50:08 +00:00
Nika Layzell cac925ef9d Bug 1570369 - Part 12: Use IPDL refcounted for PDataChannel, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40257

--HG--
extra : moz-landing-system : lando
2019-08-16 10:45:57 +00:00
Honza Bambas eb406bc935 Bug 1562276 - Proper transaction restart on HTTP_1_1_REQUIRED and h2 proxy, r=dragana.
1. Unsticky connection from a transaction we disable SPDY on to restart
2. Call OnReadSegment from TLSFilterTransaction;FilterOutput to push written data out (renegotiation)
3. Break indefinite loop that may occur during renegotiation by propagating WOULD_BLOCK via mFilterReadCode

Differential Revision; https;\\phabricator.services.mozilla.com\D40409

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

--HG--
extra : moz-landing-system : lando
2019-08-24 13:21:37 +00:00
Kershaw Chang 1ee6c512c5 Bug 1571356 - Add TRANSPARENT_PROXY_RESOLVES_HOST flag to connection info's hash key r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D43043

--HG--
extra : moz-landing-system : lando
2019-08-22 15:13:36 +00:00
Junior Hsu 0e6b4ffc45 Bug 1574676 - Obtaining COEP from the document through which target is nested r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D42397

--HG--
extra : moz-landing-system : lando
2019-08-22 15:45:19 +00:00
Sebastian Streich 444eb9179d Bug 1536058 - Add Cache-Isolation behind a pref r=ckerschb,Ehsan
***

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

--HG--
extra : moz-landing-system : lando
2019-08-22 15:20:53 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Junior Hsu cd2404613c Bug 1574603 - recognize COOP:unsafe-allow-outgoing r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D42367

--HG--
extra : moz-landing-system : lando
2019-08-21 13:37:07 +00:00
Thomas Nguyen cf20303f06 Bug 1528697 - Remove ReferrerPolicy.h and add utils to ReferrerInfo r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41956

--HG--
extra : moz-landing-system : lando
2019-08-21 12:09:06 +00:00
Thomas Nguyen 32ab8293ff Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Ehsan Akhgari 575c480fc5 Bug 1572240 - Part 3: Introduce nsIHttpChannelInternal.contentBlockingAllowListPrincipal; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D42204

--HG--
extra : moz-landing-system : lando
2019-08-19 19:38:50 +00:00
Michal Novotny 2624e66847 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 : rebase_source : c4887343fa6ac95695df3b456f761c4ad3217511
extra : source : 3feee5147ab0c9a7647f920bb0dde9950c836bed
2019-08-16 10:40:41 +00:00
Razvan Maries 308996b4e3 Backed out changeset 3feee5147ab0 (bug 1544757) for perma dt failures on browser_parsable_css.js. CLOSED TREE 2019-08-17 03:18:36 +03:00
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
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
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
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
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
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
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
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
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