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

72 Коммитов

Автор SHA1 Сообщение Дата
Junior Hsu 069f0d6456 Bug 1646592 - P3 Sending endpoint of stream filter via PHttpBackgroundChannel, r=mayhemer,necko-reviewers
Endpoint would be passed by a series of std::move via
nsHttpChannel -> HttpChannelParent -> HttpBackgroundChannelParent ---> HttpBackgroundChannelChild -> HttpChannelChild
												|
												|
   Resolve promise after successfully send IPC<-/

Depends on D81273

Differential Revision: https://phabricator.services.mozilla.com/D81274
2020-07-07 21:46:01 +00:00
Junior Hsu 257fe0c281 Bug 1646592 - P1 Use nsISerialEventTarget for HttpBackgroundChannelParent, r=valentin,necko-reviewers
Like bug 1647133, we need this to be nsISerialEventTarget for the InvokeAsync

Differential Revision: https://phabricator.services.mozilla.com/D81272
2020-07-07 21:44:50 +00:00
Butkovits Atila b75fb2d3e0 Backed out 4 changesets (bug 1646592) for xpcshell failures on test_ext_webRequest_filterResponseData.js CLOSED TREE
Backed out changeset cc60e258290e (bug 1646592)
Backed out changeset 3a514b227127 (bug 1646592)
Backed out changeset de9ba1eaded1 (bug 1646592)
Backed out changeset 31aab78792d8 (bug 1646592)
2020-06-30 21:50:45 +03:00
Junior Hsu b5d505b9d7 Bug 1646592 - P3 Sending endpoint of stream filter via PHttpBackgroundChannel, r=mayhemer,necko-reviewers
Endpoint would be passed by a series of std::move via
nsHttpChannel -> HttpChannelParent -> HttpBackgroundChannelParent ---> HttpBackgroundChannelChild -> HttpChannelChild
												|
												|
   Resolve promise after successfully send IPC<-/

Differential Revision: https://phabricator.services.mozilla.com/D81274
2020-06-30 00:35:12 +00:00
Junior Hsu 2a27443b11 Bug 1646592 - P1 Use nsISerialEventTarget for HttpBackgroundChannelParent, r=valentin,necko-reviewers
Like bug 1647133, we need this to be nsISerialEventTarget for the InvokeAsync

Differential Revision: https://phabricator.services.mozilla.com/D81272
2020-06-30 00:34:47 +00:00
Junior Hsu 95428cdcb2 Bug 1633935 - P11 Move classification IPC methods back to PHttpChannel. r=mayhemer,necko-reviewers
Bug 1015466 move them from PContent to Pbg since it believes those events are fine
to received before OnStopRequest. Bug 1588241 move it back to PContent since those
events are before OnStartRequest.

Now we're moving OnStartRequest to pBg, so here's another ping-pong time :)

Differential Revision: https://phabricator.services.mozilla.com/D79587
2020-06-30 00:34:24 +00:00
Junior Hsu 418e51dbe6 Bug 1633935 - P9 send OnAfterLastPart via pBg IPC to avoid race between OS*R, r=mayhemer,necko-reviewers
Depends on D77750

Differential Revision: https://phabricator.services.mozilla.com/D77751
2020-06-30 00:33:54 +00:00
Junior Hsu dc20f95dd5 Bug 1633935 - P5 allow OnProgress/OnStatus going thru pBg IPC, r=mayhemer,necko-reviewers
Depends on D76971

Differential Revision: https://phabricator.services.mozilla.com/D76972
2020-06-30 00:33:19 +00:00
Junior Hsu 3b2af10bb7 Bug 1633935 - P2 remove OnStartRequestSent since OnStartRequest is passed thru pBg, r=mayhemer,necko-reviewers
Depends on D73529

Differential Revision: https://phabricator.services.mozilla.com/D76969
2020-06-30 00:32:38 +00:00
Junior Hsu c8c2496fa1 Bug 1633935 - P1 allow OnStartRequest go thru pBg IPC, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D73529
2020-06-30 00:32:25 +00:00
Butkovits Atila 6d4dc7f680 Backed out 13 changesets (bug 1633935) as requested by Junior. CLOSED TREE
Backed out changeset 398fc19f5f6a (bug 1633935)
Backed out changeset 25822279ba5b (bug 1633935)
Backed out changeset e87b11c172b9 (bug 1633935)
Backed out changeset 709f8d50aa33 (bug 1633935)
Backed out changeset 3b268ac50692 (bug 1633935)
Backed out changeset ac9c5c1e5162 (bug 1633935)
Backed out changeset 292a5b34e9f7 (bug 1633935)
Backed out changeset 6251c22cc8f1 (bug 1633935)
Backed out changeset 73b51a139c91 (bug 1633935)
Backed out changeset 2a9873ad6856 (bug 1633935)
Backed out changeset be03e0e7b645 (bug 1633935)
Backed out changeset df5abc2c0734 (bug 1633935)
Backed out changeset 19dcca77a1cf (bug 1633935)
2020-06-25 20:25:36 +03:00
Junior Hsu c95a90a842 Bug 1633935 - P11 Move classification IPC methods back to PHttpChannel. r=mayhemer,necko-reviewers
Bug 1015466 move them from PContent to Pbg since it believes those events are fine
to received before OnStopRequest. Bug 1588241 move it back to PContent since those
events are before OnStartRequest.

Now we're moving OnStartRequest to pBg, so here's another ping-pong time :)

Differential Revision: https://phabricator.services.mozilla.com/D79587
2020-06-23 16:58:38 +00:00
Junior Hsu 25d87d22ae Bug 1633935 - P9 send OnAfterLastPart via pBg IPC to avoid race between OS*R, r=mayhemer,necko-reviewers
Depends on D77750

Differential Revision: https://phabricator.services.mozilla.com/D77751
2020-06-23 16:58:33 +00:00
Junior Hsu b90ea93ae9 Bug 1633935 - P5 allow OnProgress/OnStatus going thru pBg IPC, r=mayhemer,necko-reviewers
Depends on D76971

Differential Revision: https://phabricator.services.mozilla.com/D76972
2020-06-23 16:57:10 +00:00
Junior Hsu f49f6361a4 Bug 1633935 - P2 remove OnStartRequestSent since OnStartRequest is passed thru pBg, r=mayhemer,necko-reviewers
Depends on D73529

Differential Revision: https://phabricator.services.mozilla.com/D76969
2020-06-23 16:56:32 +00:00
Junior Hsu 8d354f9a81 Bug 1633935 - P1 allow OnStartRequest go thru pBg IPC, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D73529
2020-06-23 16:56:15 +00:00
Kershaw Chang 2531104710 Bug 1623380 - Send ODA directly to content process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67609
2020-05-07 14:39:21 +00:00
Dorel Luca ed73e1d6d4 Backed out changeset 2b9fc84a789b (bug 1623380) for Mochitest failures in dist/include/mozilla/RefPtr.h. CLOSED TREE 2020-05-07 15:17:30 +03:00
Kershaw Chang 467f6725fc Bug 1623380 - Send ODA directly to content process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67609
2020-05-07 11:12:46 +00:00
Simon Giesecke 1b626dfe50 Bug 1626570 - Improve handling of copying arrays in netwerk/protocol/. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D73677
2020-05-06 11:50:57 +00:00
Andrea Marchesini fc29d15f51 Bug 1619971 - Clear-site-data operations show appear in the console - part 1 - report and flush console events, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D65243

--HG--
extra : moz-landing-system : lando
2020-03-04 15:12:05 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Matt Woodrow 60f2305143 Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer
It turns out we can send messages over PHttpBackgroundChannel before OnStartRequest, in the case where we have content process serviceworkers generating a synthetic response.
This triggers diversion without sending OnStartRequest. We can remove this code again when we remove diversion.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 22:01:28 +00:00
Andreea Pavel e371758133 Backed out changeset d746c1641f6f (bug 1601243) for failing HttpBackgroundChannelChild.cpp on a CLOSED TREE 2019-12-19 22:58:29 +02:00
Matt Woodrow 78b62d4d1b Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer
It turns out we can send messages over PHttpBackgroundChannel before OnStartRequest, in the case where we have content process serviceworkers generating a synthetic response.
This triggers diversion without sending OnStartRequest. We can remove this code again when we remove diversion.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 16:27:13 +00:00
Matt Woodrow a26e9542d2 Bug 1600211 - Send OnDataAvailable and OnStopRequest on the main-thread channel when in multi-part mode to avoid complicated races across the two channels. r=mayhemer
This also removes OnStartRequestSent from PHttpBackgroundChannel, since there should never be any messages sent earlier on this channel, so we can just assume the waiting state initially.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 03:18:38 +00:00
Kershaw Chang 750f73dbb2 Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54290

--HG--
extra : moz-landing-system : lando
2019-12-03 13:42:15 +00:00
Jean-Yves Avenard 0676841662 Bug 1588241 - P3. Move classification methods to PHttpChannel. r=mayhemer
We can guarantee that those callbacks will occur prior the call to OnStartRequest.
But running them all on the PHttpChannel we remove the potential race between the PHttpChannel which runs on the main thread and PHttpBackroundChannel which runs on the necko thread.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 02:42:03 +00:00
Narcis Beleuzu e7c61f4a68 Backed out 8 changesets (bug 1588241) for wpt leaks on ChannelEvent/ChannelEventQueue. CLOSED TREE
Backed out changeset 6a4727c44078 (bug 1588241)
Backed out changeset 125430c4316a (bug 1588241)
Backed out changeset 449606f22baf (bug 1588241)
Backed out changeset c9a6203582ac (bug 1588241)
Backed out changeset 48362412c9d5 (bug 1588241)
Backed out changeset a21cd1c41c6c (bug 1588241)
Backed out changeset 8d2cf0fc6b9b (bug 1588241)
Backed out changeset 17e7f137067f (bug 1588241)
2019-11-13 09:24:22 +02:00
Jean-Yves Avenard eb8d755d99 Bug 1588241 - P3. Move classification methods to PHttpChannel. r=mayhemer
We can guarantee that those callbacks will occur prior the call to OnStartRequest.
By running them all on the PHttpChannel we remove the potential race between the PHttpChannel which runs on the main thread and PHttpBackroundChannel which runs on the necko thread.

Depends on D52261

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

--HG--
extra : moz-landing-system : lando
2019-11-12 18:06:04 +00:00
Kershaw Chang a25daf5a9e Bug 1370132 - Refactor how we send OnStatus and OnProgress events r=mayhemer
1. Send OnStatus and OnProgress IPC events over main thread.
2. Merge HttpChannelChild::OnProgress and HttpChannelChild::DoOnProgress into one function, since these two basically do the same thing.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 10:12:53 +00:00
Oana Pop Rus d4714f6b29 Backed out changeset 582ee0d10d0c (bug 1370132) requested by kershaw 2019-11-04 11:30:56 +02:00
Kershaw Chang 1eeb789488 Bug 1370132 - Refactor how we send OnStatus and OnProgress events r=mayhemer
1. Send OnStatus and OnProgress IPC events over main thread.
2. Merge HttpChannelChild::OnProgress and HttpChannelChild::DoOnProgress into one function, since these two basically do the same thing.

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

--HG--
extra : moz-landing-system : lando
2019-11-03 23:28:33 +00:00
dlee 2baaee894b Bug 1545033 - P2. Add SetMatchedTrackingInfo in nsIClassifiedChannel. r=baku
This patch adds |setMatchedTrackingInfo| to channel to report matches that
are found in tracking annotation tables.

We have done something similar in nsIClassifiedChannel::setMatchedInfo to
report phishing protection matches.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 13:03:50 +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 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 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
Andrea Marchesini e9ac7d9ef2 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 5 - generalize content blocking notification, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17838
2019-01-28 16:44:38 +01:00
Andrea Marchesini bf8c0e40e2 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 4 - abstract blocking state codes, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17639
2019-01-28 16:43:15 +01:00
Andrea Marchesini e34612e16e Bug 1514202 - Port flash url-classifier to nsIUrlClassifierFeature - part 1 - Flash feature, r=dimi, r=edgar, r=valentin 2019-01-04 14:45:42 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Ehsan Akhgari 5a990aab93 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122

--HG--
extra : moz-landing-system : lando
2018-11-20 14:34:49 +00:00
Andreea Pavel d6d00510a1 Backed out changeset 94efd169438e (bug 1504728) for mochitest AddressSanitizer failures on a CLOSED TREE 2018-11-20 02:12:47 +02:00
Ehsan Akhgari 2517eb0fd0 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122

--HG--
extra : moz-landing-system : lando
2018-11-19 20:31:16 +00:00
Dorel Luca 3a97449464 Backed out changeset dfc775a144ad (bug 1504728) for Brwoser-chrome failure in browser/base/content/test/trackingUI/browser_trackingUI_trackers_subview.js. CLOSED TREE 2018-11-19 18:34:50 +02:00
Ehsan Akhgari abc8be6d57 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122

--HG--
extra : moz-landing-system : lando
2018-11-19 15:25:33 +00:00
Narcis Beleuzu c8215609ff Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE
Backed out changeset 26318538f077 (bug 1505198)
Backed out changeset fc39602006be (bug 1504728)
2018-11-16 02:34:15 +02:00
Ehsan Akhgari 7f3a7b13de Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122

--HG--
extra : moz-landing-system : lando
2018-11-14 17:19:25 +00:00