Commit Graph

17061 Commits

Author SHA1 Message Date
Fabian Henneke
e00f50248b Bug 1509493 - Provide basic test coverage for email address parsing r=BenB
Depends on D13511

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

--HG--
extra : moz-landing-system : lando
2018-12-02 22:14:11 +00:00
Fabian Henneke
0d5da0fca2 Bug 1509493 - Always linkify common URL schemes in plain text r=BenB
Differential Revision: https://phabricator.services.mozilla.com/D13511

--HG--
extra : moz-landing-system : lando
2018-12-02 16:20:05 +00:00
Ciure Andrei
2edebf41a2 Merge inbound to mozilla-central. a=merge 2018-12-02 11:46:09 +02:00
Jorg K
3776a84fb4 Bug 1505911 - Follow-up: fix error in part 1. r=valentin 2018-12-02 07:13:50 +01:00
Valentin Gosu
f006cf8ce4 Bug 1511591 - Update rust-url to version 1.7.2 r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D13613

--HG--
extra : moz-landing-system : lando
2018-12-01 14:58:03 +00:00
Simon Montagu
daf683e0db Bug 1505911 - Add struct testing to test_mozTXTToHTMLConv.js. r=valentin
--HG--
extra : rebase_source : a0477242e4f21c56c3523063d893dfa0a0c5fe18
2018-11-30 18:41:55 +01:00
Jorg K
2caa5fbda6 Bug 1505911 - Add glyph testing to test_mozTXTToHTMLConv.js. r=valentin
--HG--
extra : rebase_source : fb3c158cb5b047f3a16360379ee3a3071b0ae488
2018-11-30 18:41:45 +01:00
Andrea Marchesini
b9156a21d1 Bug 1505931 - Channel-Classifier should not skip annotation when TP is enabled, r=francois 2018-12-01 13:04:20 +01:00
Simon Montagu
38f9527fbd Bug 1505911 - Use IsAlpha/IsDigit instead of IsAsciiAlpha/IsAsciiDigit for full Unicode support. r=valentin
--HG--
extra : rebase_source : bb3c6af51aa6f20b4ab4a3f8d538fd71b8f0b0bc
2013-09-01 12:23:43 +03:00
Valentin Gosu
cc7f59b418 Bug 1505911 - Change interfaces to use AString instead of wstring r=juhsu
--HG--
extra : rebase_source : ddca32a4dc8a37445110ce785c87f3d48c4775c3
2018-11-30 18:57:24 +01:00
Tooru Fujisawa
7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0 Bug 1511383: Update vim modelines after clang-format; r=sylvestre
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)

--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +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
Andreea Pavel
50096c9761 Backed out 3 changesets (bug 1509493) for failng win xpcshell at netwerk/test/unit/test_mozTXTToHTMLConv.js on a CLOSED TREE
Backed out changeset 05562b7d3eff (bug 1509493)
Backed out changeset 6498765e1d65 (bug 1509493)
Backed out changeset 5e4a5cf81c26 (bug 1509493)
2018-11-29 20:54:22 +02:00
Fabian Henneke
51d3d2f9c6 Bug 1509493 - Fix markup generation for nested email addresses r=BenB
In mozTXTToHTMLConv, FindURL is not able to correctly calculate replaceBefore for nested email addresses/URLs such as john@doe.org}john@doe.org. As a workaround, we keep track of the end of the last URL HTML markup in the output string and skip any subsequent URLs whose replaceBefore would cut into this markup.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 15:49:29 +00:00
Fabian Henneke
a898f276d0 Bug 1509493 - Do not include unmatched ')' in email addresses r=BenB
Differential Revision: https://phabricator.services.mozilla.com/D13390

--HG--
extra : moz-landing-system : lando
2018-11-29 14:04:57 +00:00
Fabian Henneke
bc7746f52d Bug 1509493 - Provide basic test coverage for email address parsing r=BenB
Differential Revision: https://phabricator.services.mozilla.com/D13389

--HG--
extra : moz-landing-system : lando
2018-11-29 15:49:31 +00:00
Dragana Damjanovic
f4cda9e92e Bug 1502462 - The altSrv checker does not build a uri correctly if origin is ipv6 address. r=valentin
AltSvcMapping::ProcessHeader should use GetAsciiHost instead of GetHost.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 10:15:13 +00:00
Ehsan Akhgari
490e611801 Bug 1508472 - Part 5: Fifth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal. I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 10:30:46 +00:00
Coroiu Cristina
e92b0f1d7f Merge inbound to mozilla-central a=merge 2018-11-29 06:27:40 +02:00
Gabriele Svelto
19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Siddhant085
87b814fa1e Bug 1453264 - Dropping nsIBrowserSearchService::currentEngine in favour of defaultEngine. r=Standard8
All instances of nsIBrowserSearchService::currentEngine have been replaced by nsIBrowserSearchService::defaultEngine. Dropping this variable now.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 15:21:11 +00:00
Cosmin Sabou
e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Dragana Damjanovic
71d81618b1 Bug 1497868 - In nsFtp, close data pipe as well. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D12740

--HG--
extra : moz-landing-system : lando
2018-11-27 19:48:20 +00:00
arthur.iakab
af07f9b9d4 Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE
Backed out changeset c3fe435e473a (bug 1509362)
Backed out changeset 6494840edc17 (bug 1509591)
Backed out changeset 123b5d5a3637 (bug 1509591)
Backed out changeset bce195f98895 (bug 1509930)
Backed out changeset 66db13126408 (bug 1500950)
Backed out changeset 3b5fffae2d2b (bug 1500949)
Backed out changeset 71c3b3677db8 (bug 1500948)
Backed out changeset 784b3b56e2ab (bug 1500944)
Backed out changeset 0bad27401ddb (bug 1500944)
Backed out changeset e0f95dd96d54 (bug 1448426)
Backed out changeset c60fa11538db (bug 1487249)
Backed out changeset 0190d4ffa54f (bug 1487249)
Backed out changeset 3cd10aba9130 (bug 1487249)
2018-11-28 02:57:32 +02:00
Nika Layzell
6bda5576a0 Bug 1509591 - Part 2: Remove now-unnecessary mIPCOpen variable, r=mccr8
This should eliminate most variables which can be replaced with IPCOpen().

Differential Revision: https://phabricator.services.mozilla.com/D12957
2018-11-27 18:09:51 -05:00
Ehsan Akhgari
691c192f43 Bug 1509047 - Part 1: Add a permission manager API for enumerating all permissions with a type prefix r=nika
Differential Revision: https://phabricator.services.mozilla.com/D12862

--HG--
extra : source : f8fc57f3ab6450a5f32e282c4f0d02cc8a9eb73e
2018-11-27 16:50:39 +00:00
Andreea Pavel
eb6a42f46f Backed out changeset f8fc57f3ab64 (bug 1509047) for build bustages on a CLOSED TREE 2018-11-27 19:10:44 +02:00
Ehsan Akhgari
491663338c Bug 1509047 - Part 1: Add a permission manager API for enumerating all permissions with a type prefix r=nika
Differential Revision: https://phabricator.services.mozilla.com/D12862

--HG--
extra : moz-landing-system : lando
2018-11-27 16:50:39 +00:00
Ehsan Akhgari
486b276941 Bug 1509555 - Part 4: Remove nsIWebProgressListener::STATE_BLOCKED_SLOW_TRACKING_CONTENT r=baku
Depends on D12830

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

--HG--
extra : moz-landing-system : lando
2018-11-27 08:56:39 +00:00
Ehsan Akhgari
e8df714b7c Bug 1509555 - Part 3: Remove reporting of tracker statistics to docshell which was added for fastblock r=valentin,baku
Depends on D12829

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

--HG--
extra : moz-landing-system : lando
2018-11-27 08:55:36 +00:00
Ehsan Akhgari
b0af8bcf40 Bug 1509555 - Part 2: Remove the core fastblock code r=valentin
Depends on D12828

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

--HG--
extra : moz-landing-system : lando
2018-11-26 11:37:01 +00:00
Ehsan Akhgari
15bf246249 Bug 1509555 - Part 1: Remove the telemetry probe for measuring the rate at which popular analytics providers get blocked by fastblock r=baku,valentin
Differential Revision: https://phabricator.services.mozilla.com/D12828

--HG--
extra : moz-landing-system : lando
2018-11-27 08:50:36 +00:00
Gabriele Svelto
566f669d07 Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D12728

--HG--
extra : moz-landing-system : lando
2018-11-26 14:49:44 +00:00
Dragana Damjanovic
2e0854b645 Bug 1481947 - When getting eTLD+1 fails, check if uri is an ip literal or localhost. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D12739

--HG--
extra : moz-landing-system : lando
2018-11-26 19:43:57 +00:00
Ehsan Akhgari
2aea5bbb1a Bug 1508044 - Part 4: Make nsChannelClassifier use nsContentUtils::IsThirdPartyWindowOrChannel() in order to avoid having duplicated logic r=francois
Depends on D12853

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

--HG--
extra : moz-landing-system : lando
2018-11-27 00:46:50 +00:00
Valentin Gosu
a6efc6d0af Bug 1260527 - Change HttpChannelChild to open IPDL earlier than AsyncOpen r=kershaw,dragana
Since we need the loadInfo to set up the IPDL connection, we move the logic to
do so from HttpChannelChild::AsyncOpen to HttpChannelChild::SetLoadInfo
via InitIPCChannel.
It would have been nicer to do so in HttpChannelChild::Init, but
I ran into issues with view-source channels, which required an ugly hack.

Also note that RemoteChannelExists() preserves the existing contract - it is
true between asyncOpen and onStopRequest - but the name is slightly off, as
the channel has already been open by the time we call asyncOpen. We will fix
this in a follow-up.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 17:38:42 +00:00
Valentin Gosu
66d5164c37 Bug 1502097 - (Part 2) Define IDN blocklist as ranges of characters [ {firstChar, lastChar}* ] r=jfkthame,dragana
* Changes the format of the blocklist from a list of characters to a list of
  character ranges. Binary search still works, and it is easier to include
  large ranges of characters in the blocklist.
* Moves logic for handling the blocklist to IDNBlocklistUtils.h/.cpp
* Changes NS_EscapeURL to take a function that determines if a character
  is blocked. This way the type of the array doesn't matter.

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

--HG--
extra : moz-landing-system : lando
2018-11-24 12:04:34 +00:00
Valentin Gosu
5f1a383a19 Bug 1502097 - (Part 1) Move pref network.IDN.blacklist_chars to separate hardcoded file IDNCharacterBlocklist.inc r=jfkthame,dragana
* Moves the value of the pref and also the fallback definition in nsTextToSubURI.cpp to a separate file.
* The file has better formatting, so we may follow its history more easily. Each range of consecutive values is defined on a separate line.
* Renames `blacklist` to `blocklist` for pref and variable names (for this individual pref. network.IDN.whitelist.* needs to be handled in a separate bug)
* Changes nsIDNService::mIDNBlocklist from being an nsString to sorted nsTArray<char16> and uses mozilla::BinarySearch() to check for characters.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 22:40:29 +00:00
Valentin Gosu
8e3e7b2a3e Bug 1510715 - Backed out changeset d15f0ac561d9 (bug 1260527) a=backout 2018-11-28 21:40:35 +01:00
Andrea Marchesini
a91ebb7cd1 Bug 1510580 - Use nsIURIFixup in netwerk/protocol/http, r=valentin 2018-11-28 18:05:52 +01:00
Cosmin Sabou
1b7e778d69 Merge mozilla-central to mozilla-inbound. 2018-11-28 00:04:55 +02:00
Razvan Maries
a6f88b57a1 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-27 19:38:10 +02:00
Geoff Brown
172d5d491d Bug 1507207 - Skip some tests on Android/e10s; r=snorp
When the Android harness e10s support was fixed, a few crashtests started failing.
2018-11-27 09:41:13 -07:00
Eric Rahm
78491d6518 Bug 1435899 - Use nsStringStream for the data channel buffer. r=bz
A pipe is no longer used for the input stream, instead we use a string stream
which in most cases will be able to share the string data buffer rather than
copying it.

--HG--
extra : rebase_source : 592af1d2f55b7964d2b84c8e6f3def310557a866
2018-02-02 12:42:55 -08:00
Ehsan Akhgari
c964f1264c Bug 1508044 - Check the return values of mozIThirdPartyUtil::IsThirdPartyFoo() in IsThirdParty() inside nsChannelClassifier.cpp r=francois
Differential Revision: https://phabricator.services.mozilla.com/D12784

--HG--
extra : moz-landing-system : lando
2018-11-24 00:49:03 +00:00
Byron Campen [:bwc]
e6218aee8a Bug 1494312 - Part 2: Make the internal PC stats API based on MozPromise. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D11776

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:52 +00:00
Byron Campen [:bwc]
69e7155b3a Bug 1494312 - Part 1: Remove unused nsresult returns from MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11775

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:23 +00:00
Peter Van der Beken
025219f350 Bug 1507604 - Remove nsINetworkProperties. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D12135

--HG--
extra : moz-landing-system : lando
2018-11-23 15:53:01 +00:00
Nazım Can Altınova
5b5f30a1bb Bug 1507043 - Add profiler labels to annotate some HttpChannelChild methods with profiler category NETWORK r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D12568

--HG--
extra : moz-landing-system : lando
2018-11-22 10:02:15 +00:00
Valentin Gosu
e823bab3cc Bug 1487964 - Do not report resource-timing subdocument loads triggered by that subdocument r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D9503

--HG--
extra : moz-landing-system : lando
2018-11-21 16:28:20 +00:00
Cosmin Sabou
79b7d9fe91 Backed out changeset 395b95afd795 (bug 1487964) for mochitest failures on test_resource_timing_nocors. 2018-11-21 17:14:29 +02:00
Dragana Damjanovic
1687671372 Bug 1508288 - nsHostResolver::mOriginSuffix is not used, we should remove it. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D12301

--HG--
extra : moz-landing-system : lando
2018-11-20 21:58:17 +00:00
Valentin Gosu
a80d7bf63e Bug 1487964 - Do not report resource-timing subdocument loads triggered by that subdocument r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D9503

--HG--
extra : moz-landing-system : lando
2018-11-17 19:30:36 +00:00
Ehsan Akhgari
9459a6554e Bug 1506947 - Part 1: Add a pref for site-specific workarounds for blocking cookies from trackers; r=francois
Differential Revision: https://phabricator.services.mozilla.com/D11979
2018-11-20 23:00:30 -05: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
Boris Zbarsky
9691e7ba88 Bug 1507540 part 3. Use more notxpcom attributes in netwerk/. r=valentin 2018-11-19 20:17:53 -05:00
Razvan Maries
3b217cc771 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-20 00:36:35 +02:00
Tarek Ziadé
139a810511 Bug 1508257 - Remove io.activity.intervalMilliseconds - r=valentin
This preference is not used. Let's get rid of it.

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

--HG--
extra : moz-landing-system : lando
2018-11-19 14:52:26 +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
Dragana Damjanovic
428228861f Bug 1502641 - Change ref-counting for nsHostRecord, change nsCOMPtr<*HostRecord> into RefPtr<*HostRecord>, remove pure virtual functions from nsHostRecord. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D12121

--HG--
extra : moz-landing-system : lando
2018-11-19 15:23:39 +00: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
Gurzau Raul
6d17917258 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 19:54:35 +02:00
Andrew Osmond
968f9abb55 Bug 1501482. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D11897
2018-11-16 09:41:27 -05:00
Kershaw Chang
1d281934cf Bug 1452535 - Move some logs to level 1 r=mayhemer
WPT parses HTTP log and create a HAR file. To reduce the overhead of logging, this patch moves some logs that are used by WPT parser to level 1.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 16:35:52 +00:00
Dragana Damjanovic
37b8159b48 Bug 1506612 - Check whether the tunnel connection is initiated. r=bagder
Differential Revision: https://phabricator.services.mozilla.com/D12003

--HG--
extra : moz-landing-system : lando
2018-11-16 10:42:56 +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
Junior Hsu
f6d5762e57 Bug 1503736 - Origin header honors network.http.referer.hideOnionSource r=ckerschb,dragana
Differential Revision: https://phabricator.services.mozilla.com/D11265

--HG--
extra : moz-landing-system : lando
2018-11-14 21:39:13 +00:00
Csoregi Natalia
c9b70719c8 Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +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
Dragana Damjanovic
694ce65937 Bug 1507139 - Fix h2 push for esni r=bagder
Differential Revision: https://phabricator.services.mozilla.com/D11881

--HG--
extra : moz-landing-system : lando
2018-11-15 13:10:54 +00:00
arthur.iakab
c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Andreea Pavel
9cabbb0b47 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-15 00:35:07 +02:00
Magnus Melin
1fe4ae86be Bug 1506390 - ensure the default permissions do not intefer with the permission tests that assume no defaults. r=johannh 2018-11-14 14:55:22 +02:00
Valentin Gosu
1c5f254e6b Bug 1495313 - Allow password with empty username in URLs r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D11254

--HG--
extra : moz-landing-system : lando
2018-11-14 19:10:42 +00:00
Andreea Pavel
7c4a91dd37 Backed out changeset 9ad299b5161b (bug 1495313) for failing mochitest dom/security/test/cors/test_CrossSiteXHR.html on a CLOSED TREE 2018-11-14 20:55:00 +02:00
Valentin Gosu
3777cffb41 Bug 1495313 - Allow empty username in URLs r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D11254

--HG--
extra : moz-landing-system : lando
2018-11-14 15:24:21 +00:00
Sylvestre Ledru
2b4847d320 Bug 1506538 - Remove +x permissions on C++ source files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D11609

--HG--
extra : moz-landing-system : lando
2018-11-13 15:32:08 +00:00
ffxbld
a8c4d8395e No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D11629

--HG--
extra : moz-landing-system : lando
2018-11-12 13:57:43 +00:00
Junior Hsu
1dbcaab155 Bug 1504323 - P2 Enable ESLint for netwerk/test/httpserver/ (manual changes) r=Standard8,dragana
Differential Revision: https://phabricator.services.mozilla.com/D10986

--HG--
extra : moz-landing-system : lando
2018-11-09 11:28:32 +00:00
Junior Hsu
964925b6fe Bug 1504323 - P1 Enable ESLint for netwerk/test/httpserver/ (automatic changes) r=Standard8,dragana
Differential Revision: https://phabricator.services.mozilla.com/D10985

--HG--
extra : moz-landing-system : lando
2018-11-11 21:25:52 +00:00
Nicholas Hurley
a4d48c1eb9 Bug 1505867 - Add pref for hpack table dumps. r=bagder
Now that h2 is pretty well stable, and we're fairly confident in our hpack table implementation, it's worth hiding this logging without some extra hoops, as it's just a lot of noise in logs.

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

--HG--
extra : moz-landing-system : lando
2018-11-09 07:23:17 +00:00
Dorel Luca
2f261feba3 Backed out changeset 365e0d2414bf (bug 1504728) for browser-chrome failures. CLOSED TREE 2018-11-09 18:48:39 +02:00
Mark Banner
d5550b277c Bug 1501445 - Remove unused netwerk/wifi/tests/wifi_access_point_test.html. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D11443

--HG--
extra : moz-landing-system : lando
2018-11-09 15:29:43 +00:00
Ehsan Akhgari
b11a25f3c6 Bug 1504728 - Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin
Differential Revision: https://phabricator.services.mozilla.com/D11122

--HG--
extra : moz-landing-system : lando
2018-11-09 15:36:02 +00:00
Ciure Andrei
2b079b82ee Backed out 2 changesets (bug 1506324) for bustages error: redefinition of 'DefaultGlobalClassOps' CLOSED TREE
Backed out changeset 412920e602fa (bug 1506324)
Backed out changeset f00f5277735f (bug 1506324)
2018-11-19 23:07:34 +02:00
Honza Bambas
a102a4969c Bug 1358043 - Produce only warning when appcache/old cache backend I/O thread can't be created for lack of resources, r=michal 2018-11-15 08:44:00 +02:00
Philip Chimento
31c3522845 Bug 1506324 - Use DefaultGlobalClassOps in existing code. r=jorendorff
Summary: Depends on D11570

Reviewers: tcampbell, jorendorff

Reviewed By: tcampbell, jorendorff

Subscribers: jandem

Bug #: 1506324

Differential Revision: https://phabricator.services.mozilla.com/D11571
2018-11-19 09:05:07 -05:00
Kershaw Chang
f0bd5e236c Bug 1504512 - Do not delete mTrailers explicitly, r=valentin
Since mTrailers is nsAutoPtr, there is no need to delete it explicitly.

--HG--
extra : rebase_source : 0928c18382ef4820ca7379810becacfd7e18eff0
2018-11-09 02:53:00 +02:00
Randell Jesup
8773e64196 Bug 1505948: Add cache info to network profiler markers r=mstange,nwgh 2018-11-14 15:54:22 -05:00
Ciure Andrei
92c9686945 Backed out changeset e157b95e9b5e (bug 1505948) for HttpChannelChild.cpp build bustages CLOSED TREE 2018-11-14 23:41:01 +02:00
Randell Jesup
286dfeada3 Bug 1505948: Add cache info to network profiler markers r=mstange,nwgh 2018-11-14 15:54:22 -05:00
ffxbld
3a972019e4 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/D11314

--HG--
extra : moz-landing-system : lando
2018-11-08 13:54:03 +00:00
Daniel Stenberg
c76f47455a bug 1505752 - fix whitespace trim of Timing-Allow-Origin header value r=dragana
StripWhitespace() is not suitable for HTTP whitespace trimming.

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

--HG--
extra : moz-landing-system : lando
2018-11-08 13:14:43 +00:00
Daniel Stenberg
8da710e1bf bug 1503517 - do not strip 0x0c from X-Content-Type-Options header fields r=dragana
The nsCSstring's StripWhitespace() method is not very HTTP "friendly".

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

--HG--
extra : moz-landing-system : lando
2018-11-08 11:30:13 +00:00
Nicholas Hurley
bbe78e41bf Bug 1505388 - fix crash introduced by bug Bug 1434137. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D11184

--HG--
extra : moz-landing-system : lando
2018-11-07 16:52:57 +00:00
Nicholas Hurley
27190f4a59 Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana
https://tools.ietf.org/html/rfc8441

This uses our existing http/2 CONNECT infrastructure (modified) to
enable the new extended CONNECT form defined by 8441, and pretend for
the websocket's sake that an http/2 stream is actually a socket. From
the websocket's point of view, this is relatively non-invasive - a few
things have changed (http response code, absence of some headers) versus
http/1.1 websockets, but for the most part, the websocket code doesn't
care.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 19:29:57 +00:00
Gurzau Raul
1da9ef02c4 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html
2018-11-06 11:57:49 +02:00
Junior Hsu
3986ef8afc Bug 1277496 - use nsHttp::Origin instead of literal cstring r=francois
Differential Revision: https://phabricator.services.mozilla.com/D10752

--HG--
extra : moz-landing-system : lando
2018-11-05 21:40:36 +00:00
Narcis Beleuzu
9b3f73e696 Merge mozilla-central to inbound. CLOSED TREE 2018-11-05 23:54:03 +02:00
vinoth
e14aa2974e Bug 1504605 - Add Prefs to xpcshell test files for allowing usage of eval. r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: ckerschb

Bug #: 1504605

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

--HG--
extra : rebase_source : 9abb395224bdfa7795516295babfd847ea2553f4
2018-11-05 16:41:45 +02:00
ffxbld
de627b48fd No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D10879

--HG--
extra : moz-landing-system : lando
2018-11-05 13:27:19 +00:00
Gerald Squelart
69cacfa74d Bug 1504347 - Add IDLE markers and AUTO_PROFILER_THREAD_SLEEP around Necko waits - r=mayhemer
IDLE markers help with categorizing threads in the profiler UI.
_SLEEP makes the profiler spend less time sampling threads that haven't changed.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 12:58:51 +00:00
Ciure Andrei
46f758b8b5 Backed out changeset cb84a3ed7bdd (bug 1504557) for nsErrorService leakcheck failures CLOSED TREE 2018-11-05 05:17:40 +02:00
Ehsan Akhgari
e95c3cca7d Bug 1504557 - Remove the XPCOM registration for nsErrorService r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10848

--HG--
extra : moz-landing-system : lando
2018-11-05 00:43:41 +00:00
Brindusan Cristian
350fbdf6f5 Backed out 2 changesets (bug 1501503) as requested by bradwerth on the ticket.
Backed out changeset 814414676c25 (bug 1501503)
Backed out changeset c2d9f82adf43 (bug 1501503)
2018-11-03 15:03:29 +02:00
Ehsan Akhgari
49523b05c4 Bug 1502240 - Ensure that Content Blocking allow list is applied to all cookie policies r=baku
Unfortunately we can't test BEHAVIOR_REJECT using the AntiTracking framework,
because the AntiTracking callbacks are incompatible with it.  (The tracking
callbacks expect to be able to unblock themselves, but under BEHAVIOR_REJECT,
that can't happen.)

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

--HG--
extra : moz-landing-system : lando
2018-11-02 20:14:57 +00:00
Daniel Stenberg
19f477f4ea Bug 1449355 - Use the right free function in DecodeQOrBase64Str. r=valentin
Memory returned from PL_Base64Decode() is allocated with PR_MALLOC and
therefore needs to be freed with PR_FREE(), not free().

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

--HG--
extra : amend_source : 820c1b987ed179e6f5ff51ec2ec91696588b6fa0
2018-11-02 14:21:28 -04:00
Ciure Andrei
e16ad7a8a8 Backed out changeset 462c7102e2db (bug 1502240) for failures related to nsICookieService CLOSED TREE 2018-11-02 19:24:40 +02:00
Ciure Andrei
26f3fc7fec Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-02 18:48:12 +02:00
Ciure Andrei
83010e5db0 Merge inbound to mozilla-central. a=merge 2018-11-02 18:44:43 +02:00
Ehsan Akhgari
795d456a70 Bug 1502240 - Ensure that Content Blocking allow list is applied to all cookie policies r=baku
Unfortunately we can't test BEHAVIOR_REJECT using the AntiTracking framework,
because the AntiTracking callbacks are incompatible with it.  (The tracking
callbacks expect to be able to unblock themselves, but under BEHAVIOR_REJECT,
that can't happen.)

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

--HG--
extra : moz-landing-system : lando
2018-11-02 12:55:01 +00:00
Andrea Marchesini
6a82516944 Bug 1502055 - test for Clear-Site-Data + 304 http status r=mayhemer
--HG--
extra : histedit_source : d0fece4fbb82cca9e70e851d18f40f6edb8cf868
2018-10-31 06:46:00 +02:00
Honza Bambas
f9a8f6aba1 Bug 1502055 - Make nsHttpChannel::ResumeInternal keep order of transaction pump OnStopRequest before cache pump OnStartRequest, r=dragana
--HG--
extra : histedit_source : a578146bb50df79f060e341fe9a2fa8be8224aa0
2018-10-31 05:36:00 +02:00
Ehsan Akhgari
abebd286d4 Bug 1503201 - Add a crash test for fetching a subresource served with an invalid authentication realm r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D10570

--HG--
extra : moz-landing-system : lando
2018-11-01 16:36:52 +00:00
Ehsan Akhgari
1f7708bb64 Bug 1502774 - Part 3: Remove nsAuthModule r=valentin
Depends on D10026

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

--HG--
rename : extensions/auth/nsAuthFactory.cpp => extensions/auth/nsIAuthModule.cpp
extra : moz-landing-system : lando
2018-11-01 10:39:58 +00:00
Ehsan Akhgari
164805ba94 Bug 1502774 - Part 2: Remove XPCOM component registrations for auth module classes r=valentin
Depends on D10025

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

--HG--
extra : moz-landing-system : lando
2018-11-01 10:39:58 +00:00
Ehsan Akhgari
001d26e9ea Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D10025

--HG--
extra : moz-landing-system : lando
2018-11-01 14:21:47 +00:00
ffxbld
1a798e34d6 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D10545

--HG--
extra : moz-landing-system : lando
2018-11-01 12:52:20 +00:00
Thomas Nguyen
6221a528ab Bug 1501206 - Get referrer policy string in js
MozReview-Commit-ID: 2bbk0LkwcXG

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

--HG--
extra : moz-landing-system : lando
2018-11-01 12:09:15 +00:00
Daniel Stenberg
f784e9ae6a bug 1503502 - TRR: use blank originSuffix without mRec r=valentin
For resolves that aren't associated with a hostrecord (like the initial
NS verification) there is no mRec pointer so set a blank originSuffix
then.

MozReview-Commit-ID: FuTP9qCm2Iu

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

--HG--
extra : moz-landing-system : lando
2018-11-01 10:12:48 +00:00
Michael Kohler
a2423373a9 Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (manual changes) r=dragana,Standard8
Depends on D10590

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

--HG--
extra : moz-landing-system : lando
2018-11-02 10:38:14 +00:00
Michael Kohler
d7204e528f Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (automatic changes) r=dragana,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D10590

--HG--
extra : moz-landing-system : lando
2018-11-02 10:38:01 +00:00
Gabriele Svelto
266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Brad Werth
d2f14e17cc Bug 1501503: Report cross-origin load failures in more cases. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D9807

--HG--
extra : moz-landing-system : lando
2018-10-31 18:56:10 +00:00
Jonathan Kingston
3501594596 Bug 1447784 - Upgrade insecure requests should not be applied to potentially trustworthy loopback r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10367

--HG--
extra : moz-landing-system : lando
2018-10-31 16:04:58 +00:00
Ehsan Akhgari
3da9ced0c9 Bug 1503697 - Record trackers being loaded on a site in the content blocking log; r=baku,francois
Differential Revision: https://phabricator.services.mozilla.com/D10439
2018-11-05 13:44:29 -05:00
Cosmin Sabou
f341826914 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-05 18:20:54 +02:00
Ehsan Akhgari
7e258df307 Bug 1504557 - Remove the XPCOM registration for nsErrorService; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10848
2018-11-05 09:44:58 -05:00
Dragana Damjanovic
a65c0c1cb1 Bug 1497994 - Disable TFO for socks proxies. r=nwgh
Differential Revision: https://phabricator.services.mozilla.com/D10248

--HG--
extra : moz-landing-system : lando
2018-10-30 17:38:05 +00:00
Kershaw Chang
070976655b Bug 1484947 - Close the transaction if PR_Read/PR_Write failed, r=nwgh
When PR_Read/PR_White returns -1, we have to use ErrorAccordingToNSPR to get the error code. We need to close the transaction if the real error happens.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 09:32:40 +00:00
Kershaw Chang
fc9640b527 Bug 1496422 - Use top level content window id if the request's window id is not available r=mayhemer
The inner window id here is used to log the error message to the right web console.
So, top level content window id should work properly if we can't get the inner window id directly from the request.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 17:11:17 +00:00
Ciure Andrei
57619c2e49 Merge autoland to mozilla-central. a=merge 2018-10-31 00:04:23 +02:00
Andreea Pavel
3770da1a92 Backed out 3 changesets (bug 1502774) for causing multiple crashes - bug 1503201 a=backout
Backed out changeset 6b821f5b12ae (bug 1502774)
Backed out changeset b3bf57d996a7 (bug 1502774)
Backed out changeset 32a581482291 (bug 1502774)

--HG--
rename : extensions/auth/nsIAuthModule.cpp => extensions/auth/nsAuthFactory.cpp
2018-10-30 21:18:29 +02:00
Daniel Stenberg
c20de1888f bug 1501302 - TRR: pass on correct originSuffix for NS checks r=valentin
... when that NS check is used to check the "parent" domain of a
blacklisted host.

Previously, additional TRRblacklist entries due to this would always be
added with the originSuffix "" which was incorrect for all uses of other
suffxes.

MozReview-Commit-ID: EeorQuuRCRX

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

--HG--
extra : moz-landing-system : lando
2018-10-30 13:06:24 +00:00
Dragana Damjanovic
dd7c87fd1f Bug 1503011 - Make sure DNSPrefetch is called. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D10118

--HG--
extra : moz-landing-system : lando
2018-10-30 10:27:28 +00:00
Ehsan Akhgari
5fef8e924c Bug 1501978 - Part 1: Stop honouring the browser.contentblocking.enabled pref in Gecko r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10074

--HG--
extra : moz-landing-system : lando
2018-10-30 14:30:15 +00:00
Ehsan Akhgari
f5264f90b2 Bug 1502774 - Part 3: Remove nsAuthModule r=valentin
Depends on D10026

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

--HG--
rename : extensions/auth/nsAuthFactory.cpp => extensions/auth/nsIAuthModule.cpp
extra : moz-landing-system : lando
2018-10-29 14:59:24 +00:00
Ehsan Akhgari
51908697bd Bug 1502774 - Part 2: Remove XPCOM component registrations for auth module classes r=valentin
Depends on D10025

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

--HG--
extra : moz-landing-system : lando
2018-10-29 14:59:16 +00:00
Ehsan Akhgari
a064a33bed Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D10025

--HG--
extra : moz-landing-system : lando
2018-10-29 14:59:14 +00:00
Narcis Beleuzu
3467484554 Backed out 3 changesets (bug 1502774) for mingwclang bustages on include/sspi.h. CLOSED TREE
Backed out changeset a1f9c4666855 (bug 1502774)
Backed out changeset 07648e9d8400 (bug 1502774)
Backed out changeset b403c3c786ee (bug 1502774)

--HG--
rename : extensions/auth/nsIAuthModule.cpp => extensions/auth/nsAuthFactory.cpp
2018-10-29 17:01:21 +02:00
Ehsan Akhgari
25048d2d01 Bug 1497014 - Part 1: Pass in a URI hint for all content blocking state notifications r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9984

--HG--
extra : moz-landing-system : lando
2018-10-29 14:47:55 +00:00
Ehsan Akhgari
7d9df9b0ec Bug 1502774 - Part 3: Remove nsAuthModule r=valentin
Depends on D10026

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

--HG--
rename : extensions/auth/nsAuthFactory.cpp => extensions/auth/nsIAuthModule.cpp
extra : moz-landing-system : lando
2018-10-29 14:40:30 +00:00
Ehsan Akhgari
acc9a12f81 Bug 1502774 - Part 2: Remove XPCOM component registrations for auth module classes r=valentin
Depends on D10025

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

--HG--
extra : moz-landing-system : lando
2018-10-29 14:40:29 +00:00
Ehsan Akhgari
7a780d8462 Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D10025

--HG--
extra : moz-landing-system : lando
2018-10-29 14:40:29 +00:00
ffxbld
36c0312102 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D10049

--HG--
extra : moz-landing-system : lando
2018-10-29 12:26:11 +00:00
Valentin Gosu
9a1d38c1a0 Bug 1460537 - Connectivity Service - Add check for IPv4/v6 connectivity r=dragana
This is likely not the best approach to detecting IP connectivity.
The check has a slight delay until the failure counter reaches the threshold.
A more reliable way will be added in a follow-up.

Depends on D7844

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

--HG--
extra : moz-landing-system : lando
2018-10-29 11:22:58 +00:00
Valentin Gosu
3753105b42 Bug 1460537 - Connectivity Service - Add DNSv4 and DNSv6 checks r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D7844

--HG--
extra : moz-landing-system : lando
2018-10-29 11:22:40 +00:00
Jorg K
e001b522ac Bug 1501617 - Enhance test_mozTXTToHTMLConv.js by adding more cases for RFC 2396 Appendix-E. r=valentin 2018-10-27 12:25:00 +03:00
Csoregi Natalia
a21ac3d8e5 Merge inbound to mozilla-central. a=merge 2018-10-27 12:48:40 +03:00