Commit Graph

16353 Commits

Author SHA1 Message Date
Noemi Erli
9793ca2da4 Merge inbound to mozilla-central. a=merge 2018-07-14 00:52:51 +03:00
Masayuki Nakano
5c3723acb2 Bug 1475461 - part 2: Make callers of PLDHashTable::Search() const methods if possible r=Ehsan
Some callers of PLDHashTable::Search() use const_cast, some others are not
const methods due to non-const PLDHashTable::Search().

This patch removes const_cast from the former and mark some methods of the
latter const.

MozReview-Commit-ID: C8ayoi7mXc1

--HG--
extra : rebase_source : 2cba0339756e3278ba6e5f0e8a11e68217a61d34
2018-07-13 19:01:53 +09:00
Andrea Marchesini
1498612e1b Bug 1474812 - No needs to store granted storage access in nsILoadInfo and in the inner window, r=ehsan 2018-07-13 12:02:19 +02:00
Daniel Stenberg
af7b8b701a bug 1472662 - only send DNS_TRR_NS_VERIFIED telemetry once r=mcmanus
... by making sure we only retry TRR when we go from CP bad=>good.

MozReview-Commit-ID: FcDwzSHm6Ia

--HG--
extra : rebase_source : dce21e18e6a4d854bd2023c61974658b100c1484
2018-07-11 09:43:38 +02:00
Patrick McManus
689f7724db Bug 1475420 - mark the TRR connection as DISABLE_TRR to avoid TXT deadlock r=valentin
MozReview-Commit-ID: 3xF3Hb5rpyh

--HG--
extra : rebase_source : 732e5c440321b8cd6bf9b189c5f97774ae338051
2018-07-12 17:48:54 -04:00
Gurzau Raul
fff6ccd0b0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-12 01:08:09 +03:00
Dragana Damjanovic
66dc0d2b39 Bug 1467102 - Fix the ftp diversion. r=bagder 2018-07-11 10:01:43 -04:00
imjching
01b7c92eb4 Bug 1416066 - Add a new flag to nsIAboutModule to load URIs in privileged content processes if feature is enabled. r=mconley
We will apply the URI_CAN_LOAD_IN_PRIVILEGED_CHILD flag to Activity Stream about: pages instead of hardcoding the URLs in a Set.

MozReview-Commit-ID: F6AGmsKs1SR

--HG--
extra : rebase_source : e0435776b7bd390a2a62190ba6c72d4d312538d1
2018-07-03 19:31:37 -04:00
vinoth
33326b442d Bug 1312864 - Allow redirects for requests that require preflight
Reviewers: ckerschb, mrbkap

Reviewed By: ckerschb, mrbkap

Subscribers: ckerschb

Bug #: 1312864

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

--HG--
extra : rebase_source : 06ae50d91816955ab6bdaa2741ddccb1eb2a3206
2018-07-10 15:48:03 +03:00
Andrea Marchesini
0a542c2c05 Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 7 - cookies, r=ehsan 2018-07-10 10:09:59 +02:00
Andrea Marchesini
2227a5e089 Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 3 - using permissions, r=ehsan 2018-07-10 10:09:59 +02:00
Andrea Marchesini
ba1f8971c7 Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 2 - storing first user interaction in nsILoadInfo, r=ehsan 2018-07-10 10:09:59 +02:00
Margareta Eliza Balazs
c37b51f523 Backed out 9 changesets (bug 1469993) for causing bustage in build/srcdom/base/nsGlobalWindowInner.cpp on a CLOSED TREE
Backed out changeset e89192032fe2 (bug 1469993)
Backed out changeset 4b261595099d (bug 1469993)
Backed out changeset 37182cfe869c (bug 1469993)
Backed out changeset 5b9870995c73 (bug 1469993)
Backed out changeset 55499fcd9738 (bug 1469993)
Backed out changeset 8c1c838d54ba (bug 1469993)
Backed out changeset 12b9c8bfa41f (bug 1469993)
Backed out changeset 04ab7d6c169a (bug 1469993)
Backed out changeset 53885d61244e (bug 1469993)
2018-07-10 11:32:34 +03:00
Andrea Marchesini
de64db476d Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 7 - cookies, r=ehsan 2018-07-10 10:09:59 +02:00
Andrea Marchesini
f34232490a Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 3 - using permissions, r=ehsan 2018-07-10 10:09:59 +02:00
Andrea Marchesini
637cab9bf6 Bug 1469993 - Grant storage access to a 3rd party, tracking resource if a opened document has user-interaction - part 2 - storing first user interaction in nsILoadInfo, r=ehsan 2018-07-10 10:09:59 +02:00
Ciure Andrei
79aa5c6ec9 Merge inbound to mozilla-central. a=merge 2018-07-10 00:59:02 +03:00
Daniel Stenberg
9cdf207464 bug 1473333 - add Telemetry probe HTTP_CHANNEL_ONSTART_SUCCESS r=mcmanus
Measure success rate in nsHttpChannel::OnStartRequest

MozReview-Commit-ID: Ia8h8acIvSA
2018-07-08 23:02:00 +03:00
vinoth
a3ef79c1d0 Bug 1471502 - Misleading console error message fixed r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: ckerschb, Pike, flod

Bug #: 1471502

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

--HG--
extra : rebase_source : 717404c6661192cec34c85e93354bc59165cc2f8
extra : amend_source : 3aad1b8a31e97accdd7d994e0cdc1c5bfa385996
2018-07-08 02:16:12 +03:00
Francois Marier
cae189fda8 Bug 1461534 - Improve logging for the channel classifier. r=dimi
This patch reduces the level of noise in MOZ_LOG messages by:

- splitting log messages into Warning, Info, and Debug levels
- truncating long URIs down to the first 128 bytes
- not mentioning suspended channels on NS_OK results

It also introduces new log messages for the outcome of a
match against the blacklist:

- dropping the channel priority (tracking annotations)
- cancelling the channel (tracking protection)
- no match (i.e. not a tracker)

MozReview-Commit-ID: wSQChJkMKv

--HG--
extra : rebase_source : 620c0b8f7094fa001d2389c99cbee6d547627fd9
2018-07-09 09:42:31 -07:00
Francois Marier
c6b7a3206d Bug 1461534 - Enable user/add-on overrides of tracking annotations. r=dimi
MozReview-Commit-ID: GQfIGirbSuW

--HG--
extra : rebase_source : d25ce41b88663e862c8221772d3b3cb670f55f02
2018-07-03 17:32:29 -07:00
Bogdan Tara
d628012cab Backed out 2 changesets (bug 1461534) for nsChannelClassifier.cpp related build bustages CLOSED TREE
Backed out changeset 152002e28671 (bug 1461534)
Backed out changeset b4818535bde9 (bug 1461534)
2018-07-09 20:01:05 +03:00
Francois Marier
7bf9a0bdd0 Bug 1461534 - Improve logging for the channel classifier. r=dimi
This patch reduces the level of noise in MOZ_LOG messages by:

- splitting log messages into Warning, Info, and Debug levels
- truncating long URIs down to the first 128 bytes
- not mentioning suspended channels on NS_OK results

It also introduces new log messages for the outcome of a
match against the blacklist:

- dropping the channel priority (tracking annotations)
- cancelling the channel (tracking protection)
- no match (i.e. not a tracker)

MozReview-Commit-ID: wSQChJkMKv

--HG--
extra : rebase_source : ce8229414a3e3f4335af23253a6dc0c55fa9118a
2018-07-09 09:42:31 -07:00
Francois Marier
6de941bdd0 Bug 1461534 - Enable user/add-on overrides of tracking annotations. r=dimi
MozReview-Commit-ID: GQfIGirbSuW

--HG--
extra : rebase_source : d25ce41b88663e862c8221772d3b3cb670f55f02
2018-07-03 17:32:29 -07:00
Tarek Ziadé
8533ddcaac Bug 1472718 - Convert ChromeUtils.requestIOActivity to a Promise - r=baku,valentin
Changes:

- The API now returns a Promise containing a sequence of IOActivityData dictionnaries.
- All the code related to notifications and XPCOM is removed.
- The counters are no longer reset to 0 when the API is called

MozReview-Commit-ID: 7J2EgFqDgf

--HG--
extra : rebase_source : eb7dc3e0921b12bbb3715a90863dc8e2a60c1c09
2018-07-06 13:43:08 +02:00
Margareta Eliza Balazs
4ee26c6e5e Backed out changeset c22aa9571139 (bug 1472718) for failures in browser/browser_test_io_activity.js on a CLOSED TREE 2018-07-06 11:04:39 +03:00
Tarek Ziadé
12c531f562 Bug 1472718 - Convert ChromeUtils.requestIOActivity to a Promise - r=baku,valentin
Changes:

- The API now returns a Promise containing a sequence of IOActivityData dictionnaries.
- All the code related to notifications and XPCOM is removed.
- The counters are no longer reset to 0 when the API is called

MozReview-Commit-ID: 7J2EgFqDgf

--HG--
extra : rebase_source : 4e16640a3f52fd7c042687471153971a66158623
2018-07-06 02:10:33 +02:00
Andreea Pavel
1193ef6a61 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-05 19:26:15 +03:00
Daniel Stenberg
cf42e18246 bug 1470813 - Telemetry::DNS_TRR_RACE2 adds two new categories r=francois
... compared to DNS_TRR_RACE, to also count when either of the resolves
were more than 100 milliseconds faster.

MozReview-Commit-ID: FNZa7ZVuJPv
2018-07-04 23:26:00 +03:00
Ciure Andrei
2198f99f97 Merge inbound to mozilla-central. a=merge 2018-07-05 12:51:41 +03:00
Kris Maglione
17578086c0 Bug 1472523: Part 4 - Avoid unnecessary domain string duplication in preference observers. r=njn
MozReview-Commit-ID: EMCgMRTDqDn

--HG--
extra : rebase_source : 11731e5a7c53c725396a9c8b46f116071d0c6e31
2018-07-04 14:52:48 -07:00
Daniel Stenberg
dd6df388fc bug 1472659 - add Telemetry::DNS_TRR_FIRST and Telemetry::DNS_TRR_DISABLED r=mcmanus
To help evaluate TRRfirst sucess/error rates.

MozReview-Commit-ID: Ljrbed6UDG2

--HG--
extra : rebase_source : ac604fda9610997cde5aa2993ca15319e6213e89
2018-07-02 13:50:21 +02:00
Daniel Stenberg
62e576e79d bug 1472656 - only do DNS_TRR_COMPARE in shadow or parallel mode r=mcmanus
MozReview-Commit-ID: 5eQb3pCNIwK

--HG--
extra : rebase_source : 95b197684c74d48ef37cade44d548536e4371409
2018-07-02 13:04:11 +02:00
Robert Bartlensky
50df265ee1 Bug 1471943: Remove release call to ensure socket is closed. r=valentin
MozReview-Commit-ID: 8RC4YdaqAdX

--HG--
extra : rebase_source : 029eeaad0a1eea60a9dce56756160a827b522d30
2018-07-02 11:45:39 +01:00
Daniel Stenberg
1fabe10330 bug 1470215 let Telemetry::DNS_NATIVE_QUEUING measure queue times r=mcmanus
MozReview-Commit-ID: 77FE4SJOXMG

--HG--
extra : rebase_source : 545961452d5d32b2ce65376e8ed680d6413eaa30
2018-06-25 08:03:44 +02:00
Sylvestre Ledru
b4f411b274 Bug 1472945 - Remove some deadcode introduced by bug 1470355 r=valentin
MozReview-Commit-ID: 46IcpU2uw5o

--HG--
extra : rebase_source : 325bb7d66519376858c250626cfc0cffff98a88f
2018-07-03 10:38:46 +02:00
arthur.iakab
de2ee4f3a3 Merge mozilla-central to autoland 2018-07-03 11:57:10 +03:00
Tiberius Oros
93bed26733 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-03 00:59:47 +03:00
Tiberius Oros
65a30935a5 Merge inbound to mozilla-central. a=merge 2018-07-03 00:53:57 +03:00
Valentin Gosu
eb373305f2 Bug 1472788 - Use smart pointers in nsHostResolver::Create r=bagder
Small patch to test out phabricator

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

--HG--
extra : moz-landing-system : lando
2018-07-02 21:46:16 +00:00
Michal Novotny
92e0c48aaf Bug 1470355 - Firefox is unresponsive when visiting https://www.youtube.com/premium, r=valentin
This patch avoids returning NS_BASE_STREAM_WOULD_BLOCK from CacheFileInputStream::ReadSegments when it was called with aCount=0.
2018-07-02 00:26:00 +03:00
Andrea Marchesini
a1a6028669 Bug 1470355 - BufferWriter should stop reading data when the wanted amount has been reached, r=michal 2018-07-02 02:00:00 +03:00
Dorel Luca
9a50b6f6de Backed out 2 changesets (bug 1470355) for causing multiple failures
Backed out changeset 50b0bfa64b2c (bug 1470355)
Backed out changeset 198a4644c09a (bug 1470355)

--HG--
extra : amend_source : 10f20801a4e72fec17d53f6428d1c983a908a771
2018-07-02 15:06:11 +03:00
Andrea Marchesini
9b09232ce9 Bug 1470355 - BufferWriter should stop reading data when the wanted amount has been reached, r=michal 2018-07-02 02:00:00 +03:00
Michal Novotny
dd9505228b Bug 1470355 - Firefox is unresponsive when visiting https://www.youtube.com/premium, r=valentin
This patch avoids returning NS_BASE_STREAM_WOULD_BLOCK from CacheFileInputStream::ReadSegments when it was called with aCount=0.
2018-07-02 00:26:00 +03:00
Valentin Gosu
e6ea31c9c7 Bug 1471628 - Use singleton for captive portal constructor r=bagder
This is to make sure that the test is using the same Captive Portal Service that nsIOService initializes.

--HG--
extra : rebase_source : 62bd371b8d510f596d3484aec6fad997739ada8b
2018-07-02 15:30:33 +02:00
Valentin Gosu
57418912d1 Bug 1471628 - Add test for Captive Portal Service r=bagder
--HG--
extra : rebase_source : 08c0990f945fe6cdbaf405e257f8c35edd2e191f
2018-07-02 15:26:48 +02:00
Rob Wu
d987da8b60 Bug 1351663 - Ensure that OriginAttributes is initialized when nsCookieService::Add receives a SameSite parameter r=valentin
InitializeOriginAttributes takes aArgc and only initializes the
parameter when aArgc is 1. nsCookieService::Add takes another optional
parameter, namely aSameSite. If a caller sets this SameSite flag, then
InitializeOriginAttributes would skip the initialization of the
OriginAttributes.

This was caught by a private browsing test in
toolkit/components/extensions/test/mochitest/test_ext_cookies.html
(after I added support for SameSite flag in the extension API)

MozReview-Commit-ID: HLfte7x1X7T

--HG--
extra : rebase_source : 1feb84ceca157d8c5ec8575c6336cc606c3504fe
2018-06-09 01:21:02 +02:00
Rob Wu
a1cd43731e Bug 1351663 - Skip "optimization" if SameSite flag changes r=valentin
After writing a unit test I discovered that updating a cookie's samesite
flag did not work. This is caused by an "optimization" that avoids
modifying a cookie if any of the cookie attributes were not changed.
This check did not account for the SameSite flag, until now.

A unit test for this will be added in a later commit, at
toolkit/components/extensions/test/xpcshell/test_ext_cookies_samesite.js

MozReview-Commit-ID: ChiwwqqOE57

--HG--
extra : rebase_source : f6bd9bd650f6db50a0726451cd781ca7984962a1
2018-06-09 00:23:45 +02:00
Mark Banner
82aadc6ada Bug 1470455 - Add the 'expected' arguments to throws/rejects for netwerk. r=mcmanus
MozReview-Commit-ID: 40K0YkBQfue

--HG--
extra : rebase_source : 22276acde28f0152963324d176e6925e9b69f374
2018-06-21 17:08:24 +01:00