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

6759 Коммитов

Автор SHA1 Сообщение Дата
Gurzau Raul 2a77281049 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-21 19:30:44 +02:00
Christoph Kerschbaumer a6c1ffb498 Bug 1434357: Exempt Web Extensions from insecure redirects to data: URIs. r=kmag,mayhemer 2018-02-18 19:52:52 +01:00
Jonathan Kingston 8afc412494 Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
MozReview-Commit-ID: ETIgVF3zhRu

--HG--
extra : rebase_source : e4c59f50584158f4b31527347b10424b56692fa1
2018-02-05 15:37:27 +00:00
Gurzau Raul 082f8e6d89 Merge inbound to mozilla-central. a=merge 2018-02-21 12:01:33 +02:00
Valentin Gosu 55a7a824c6 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : f2a17aee7bb66a7ba8652817d43b9aa7ec7ef710
2018-02-21 01:00:54 +01:00
nbeleuzu@mozilla.com 01eef6aff1 Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE 2018-02-21 00:06:46 +02:00
Valentin Gosu f1850e9354 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : 592d13349a8c4627c7ce3146ec592f577b39f3cc
2018-02-20 22:39:40 +01:00
Honza Bambas df2fd1d44c Bug 1434609 - Add TFO_DISABLED as one of possible states after finishing TCP Fast Open (TFO) connection, r=valentin 2018-02-20 05:41:00 +02:00
Tom Schuster db56d2ee65 Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec. r=ckerschb
--HG--
extra : rebase_source : e4047e619b88bbb025f3eab27e8e1a826a9429b7
2018-02-16 19:32:11 +01:00
Honza Bambas 83162dfc6a Bug 1433557 - Add a null-check for transaction when setting TCP Fast Open state on an associated connection, r=valentin 2018-02-16 07:48:00 +02:00
Chris Peterson 0129d900f3 Bug 1436263 - Part 2: Replace `override final` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson d09123f248 Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Gurzau Raul 0fbbd0fd8e Merge inbound to mozilla-central. a=merge 2018-02-17 00:09:28 +02:00
vinoth 2d87cc24f5 Bug 1399990 - Files added for New Categorical telemetry SCRIPT_BLOCK_INCORRECT_MIME_2 and same origin check done r=ckerschb,mayhemer
Summary: MozReview-Commit-ID: JKHxmIdtzIN

Reviewers: mayhemer, ckerschb

Reviewed By: mayhemer, ckerschb

Subscribers: ckerschb, mayhemer

Bug #: 1399990

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

--HG--
extra : rebase_source : 4f8e476b33ca0b862ca2d828d3e3d2a1eba5d725
extra : amend_source : 406cb5349e0c8e29af8a7d0cfbceedc580b2463e
2018-02-16 16:53:46 +02:00
Thomas Wisniewski 1e7a2879c3 Bug 792808 - Change netwerk/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=valentin
MozReview-Commit-ID: LHiYPIkG0i2

--HG--
extra : rebase_source : 25368b1edad92a6c4aa5ca4242427fd18b578db8
2017-09-19 11:36:43 -04:00
Nicholas Hurley c8b7ecd0d4 Bug 1429973 part 3 - Remove hidden pref to allow plaintext server-timing. r=bagder
MozReview-Commit-ID: 2MfcvRXq7We

--HG--
extra : rebase_source : adf042cba94eecd6c56ba359a68b23d0867f1f8f
2018-02-15 10:30:44 -08:00
Nicholas Hurley be1b7537f2 Bug 1429973 part 1 - plumb through trailers in h2 to support server-timing. r=bagder
MozReview-Commit-ID: JV1Ikb9cYCV

--HG--
extra : rebase_source : fa67fef606fc02355579dae42f8e66c4754d60a0
2018-02-01 15:14:23 -08:00
Kirk Steuber 04e4231688 Bug 1421707 - Implement a system for disabling about: pages via Policy r=bz,Felipe
Additionally adds the enterprise policy for disabling about:config.

MozReview-Commit-ID: 7bT8eV3tRnN

--HG--
extra : rebase_source : a54cc94ea9dbecdfd37a17c96e5048a5d20c6411
2018-02-06 10:00:56 -08:00
Margareta Eliza Balazs bb7afb1c0b Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/webidl/DataChannel.webidl => dom/webidl/RTCDataChannel.webidl
2018-02-15 22:41:28 +02:00
Valentin Gosu f4c1136d9d Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
2018-02-11 03:51:09 +01:00
Valentin Gosu da17e84fb1 Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : source : bd315ae86709c3459a3dbf0778022ff3b1908723
2018-02-09 13:20:04 +01:00
Daniel Stenberg e5d3226694 bug 1434852 - introducing TRR (DOH); r=mcmanus,valentin
Provides an optional resolver mechanism for Firefox that allows running
together with or instead of the native resolver.

TRR offers resolving of host names using a dedicated DNS-over-HTTPS server
(HTTPS is required, HTTP/2 is preferable).

DNS-over-HTTPS (DOH) allows DNS resolves with enhanced privacy, secure
transfers and improved performance.

To keep the failure rate at a minimum, the TRR system manages a dynamic
persistent blacklist for host names that can't be resolved with DOH but works
with the native resolver. Blacklisted entries will not be retried over DOH for
a couple of days. "localhost" and names in the ".local" TLD will not be
resolved via DOH.

TRR is preffed OFF by default and you need to set a URI for an available DOH
server to be able to use it. Since the URI for DOH is set with a name itself,
it may have to use the native resolver for bootstrapping. (Optionally, the
user can set the IP address of the DOH server in a pref to avoid the required
initial native resolve.)

When TRR starts up, it will first verify that it works by checking a
"confirmation" domain name. This confirmation domain is a pref by default set
to "example.com". TRR will also by default await the captive-portal detection
to raise its green flag before getting activated.

All prefs for TRR are under the "network.trr" hierarchy.

The DNS-over-HTTPS spec: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

MozReview-Commit-ID: GuuU6vjTjlm

--HG--
extra : rebase_source : 53fcca757334090ac05fec540ef29d109d5ceed3
2018-02-01 10:20:49 +01:00
Gijs Kruitbosch 1d8cd72e69 Bug 1429379, r=aswan,bz
--HG--
extra : rebase_source : 534aa354afa7d23484a6b1d8aabef36c14784df7
2018-02-06 15:00:25 +00:00
Boris Zbarsky 9bdcffc985 Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Coroiu Cristina d99b5855c8 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-02-12 20:02:58 +02:00
Sebastian Hengst 9d47b5fb14 Backed out 2 changesets (bug 1334465) for frequently failing marionette\test_refresh_firefox.py a=Aryx
Backed out changeset fc4ad53516e0 (bug 1334465)
Backed out changeset bd315ae86709 (bug 1334465)

--HG--
extra : source : f49cf3d147dee2eb1fd2b726cfbae6d01b719d55
2018-02-12 18:52:25 +02:00
Valentin Gosu 427838fddc Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder a=Aryx
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
extra : intermediate-source : fc4ad53516e01095be35542fd979c9e16d6e6b16
2018-02-11 03:51:09 +01:00
arthur.iakab 650430f45c Backed out changeset 4ebdab0e3328 (bug 1334465) for frequently failing marionette\test_refresh_firefox.py a=backout 2018-02-12 12:00:40 +02:00
Valentin Gosu b7deca6e95 Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : rebase_source : 609b9d111d97a8e4a60117dd79ecd741725ec611
2018-02-11 03:51:09 +01:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Valentin Gosu 6782014750 Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : rebase_source : 7b49738d4ca1d58f90d2563a6367743fd0e2663f
2018-02-09 13:20:04 +01:00
Georg Koppen e2cc84ce65 Bug 1433507 - Forbid GIO supported protocols by default with --proxy-bypass-protection r=mayhemer
--HG--
extra : rebase_source : 3b6badbc1b56c09b74d5be3ddbf9ac157f4891c3
2018-02-06 15:07:00 +02:00
Ben Kelly 4a261ee476 Bug 1437080 P3 Make SetFetchCacheMode() to clear other cache flags and assert the final value. r=valentin 2018-02-09 13:17:14 -08:00
Ben Kelly f114de487f Bug 1437080 P2 Remove the HttpBaseChannel::mFetchCacheMode override to avoid possibility it can get out of sync with load flags. r=valentin 2018-02-09 13:17:14 -08:00
Ben Kelly 482f2c3a30 Bug 1437080 P1 Correctly check cache related bit flags on HttpBaseChannel::mLoadFlags. r=valentin 2018-02-09 13:17:14 -08:00
Daniel Stenberg 15940df95a bug 1437513 - do not require push cache for ::OnPush enabled transactions r=mcmanus
MozReview-Commit-ID: CLFh8bQW5WT

--HG--
extra : rebase_source : d232313f040371a9fe716e248d48be00cb992c3b
2018-02-10 17:00:45 +01:00
Nicholas Hurley 036c8b605d Bug 1416529 r=mcmanus
MozReview-Commit-ID: CD1l5vLB4yy
2018-02-09 09:22:18 -08:00
Narcis Beleuzu fd3f072bea Backed out changeset 1fa8c5b051ac (bug 1435899) for mochitest failures on /test_bug1325080.html. CLOSED TREE 2018-02-09 06:05:13 +02:00
Eric Rahm f4075ffe91 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 : 75c9954154acd78b48ccfef61ad9cd9403218f96
2018-02-02 12:42:55 -08:00
Nicholas Hurley 8b3c3ef6cf Bug 1436517 - Limit access to the server-timing header to HTTPS contexts. r=mcmanus
This also introduces a hidden pref to allow server-timing access from
HTTP contexts for the purposes of our xpcshell tests. We'll remove that
once we get h2 (and therefore tls test) support for server-timing
trailers (https://bugzilla.mozilla.org/show_bug.cgi?id=1436601).

This does not reject or otherwise error when receiving server-timing
headers or trailers on non-HTTPS contexts, it just makes it unavailable
outside the channel.

MozReview-Commit-ID: qi4h0VQknE

--HG--
extra : rebase_source : 6e6f139cff04f224878ecbf2bcbc84963221cfb6
2018-02-07 16:05:38 -08:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Patrick McManus 0206b90cc2 Bug 1436134 - disable rcwn for non-safe http methods r=valentin
MozReview-Commit-ID: 3Ip1M7L3gUl

--HG--
extra : rebase_source : b6afff75bc0d151efd4e89e80b59b8a41a42124d
2018-02-06 14:16:03 -05:00
Eric Rahm bb9b0ac27e Bug 1333899 - Part 3: Avoid extra copies in nsDataChannel::OpenContentStream. r=bz
This switches over to cloning the URI without it's ref which will most likely
avoid a copy. The new |ParsePathWithoutRef| is used, again to avoid needing a
copy of the path substring.

--HG--
extra : rebase_source : 7ed0eded8a9f5b9df1857bfa8004dac0dfe5ff78
2018-02-02 12:59:38 -08:00
Eric Rahm de1fa46cb6 Bug 1333899 - Part 2: Add nsDataHandler::ParsePathWithoutRef. r=valentin
This adds a version of |ParseURI| that only deals with the path portion of the
URI and expects the ref not to be present. It's mainly copy and pasted from
|ParseURI| but updated to use nsString methods rather than NSPR.

Additionaly it only returns a substring to the path passed in for the data
buffer if requested.

|ParseURI| is updated to advance past the scheme and trim the ref, then it
just uses |ParseURIWithoutRef|.

--HG--
extra : rebase_source : 10f02c8d32a15cd520d943e0231459dce75366c5
2018-02-02 12:50:10 -08:00
Jonathan Kingston 53c9c480b7 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 9a600559a9d61c42baf9e3e5fde6e35d5adeaf90
2018-01-12 19:09:30 +00:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Valentin Gosu 033570496c Bug 1432602 - Add nsIFileURLMutator.setFile() r=mayhemer
MozReview-Commit-ID: EF2vVYoN8bg

--HG--
extra : rebase_source : 5d2b6fa353f0a0eb189fd08f9fda2bbf1ced30bb
2018-01-31 22:40:45 +01:00
shindli f0168929ca Backed out changeset e401076359c6 (bug 1354175) for M(8) failures on a CLOSED TREE 2018-01-31 21:26:42 +02:00
Jonathan Kingston 8e24b20ae1 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 19e2663304c582fdb20a45efc3e9b55fd43fa286
2018-01-12 19:09:30 +00:00
Valentin Gosu d4c640e9f7 Bug 1432320 - (Part 1) Add nsIURLMutator r=mayhemer
MozReview-Commit-ID: 8GYru46kFQE

--HG--
extra : rebase_source : 064fae8d2e31db071da524b1946f135dda01cc1a
2018-01-31 02:32:27 +01:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Dragana Damjanovic dd.mozilla@gmail.com bb6ba73484 Bug 1432254 - In SetFastOpenConnected, mFastOpenStatus may be TFO_DATA_COOKIE_NOT_ACCEPTED as well. r=mayhemer 2018-01-23 02:20:00 -05:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
vinoth 7b23ba9165 Bug 1397740 - Removed security.xcto_nosniff_block_images from about:config r=ckerschb,fkiefer
MozReview-Commit-ID: HTalMWq694W

--HG--
extra : rebase_source : 0ce03ae0ed6bb754791f7aadb52bc6c55aa6c7cd
2018-01-05 10:43:17 +01:00
Masatoshi Kimura 32bbccbd78 Bug 685236 - Stop using GetNativePath in netwerk/. r=mayhemer
MozReview-Commit-ID: JdHhXPiS0fv

--HG--
extra : source : ef77ec8c110852b74e251c28753467a79bad7d2a
extra : intermediate-source : 7e5b9d09196916daac73b23c58c6fe870f223970
2017-12-15 20:21:19 +09:00
arthur.iakab 94ab855658 Merge inbound to mozilla-central. a=merge 2018-01-26 02:21:47 +02:00
Andrea Marchesini 2f72a5e897 Bug 1425458 - Resource timing entries Workers - part 1 - PerformanceStorage on main-thread, r=smaug 2018-01-24 17:17:31 +01:00
Andrea Marchesini c6da271117 Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Kris Maglione aec63e140c Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9

--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione 30b3a49bfd Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP

--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Jonathan Kingston e1223b7941 Bug 1374114 - Add a pref to disable ftp. r=valentin
MozReview-Commit-ID: ckzZ8bOKlk

--HG--
extra : rebase_source : 9070f2c1a1491836cc96e646fe526022d16d72a0
2017-11-26 20:46:31 +00:00
Cosmin Sabou 6cfb14fd97 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-01-25 00:07:47 +02:00
Narcis Beleuzu 9279994eae Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
Valentin Gosu 0ec04b6d9e Bug 1432187 - Add missing SubstitutingURL::Mutator r=mayhemer
* Makes the implementation of nsStandardURL::Mutator into a template called TemplatedMutator<T>
* Makes both nsStandardURL::Mutator and SubstitutingURL::Mutator extend TemplatedMutator<T>

MozReview-Commit-ID: EpxFpBkrdSK

--HG--
extra : rebase_source : 07d568ff84fb199c7549ae5f402e01e4b86c1c37
2018-01-24 20:33:06 +01:00
Valentin Gosu b53812bfed Bug 1432187 - Change code to use nsIStandardURLMutator.{init,setDefaultPort} r=mayhemer
MozReview-Commit-ID: K2Uy9ET3Ay6

--HG--
extra : rebase_source : fb5e19bc7b71a6f0264471bf8f07febf1bc55900
2018-01-24 20:33:02 +01:00
Brindusan Cristian 368c3d5b6b Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Ben Kelly 81f9741573 Bug 1431847 P5 Perform service worker interception in the parent if ServiceWorkerParentInterceptEnable() returns true. r=asuth 2018-01-24 12:47:16 -05:00
Ben Kelly 8ad5935797 Bug 1431847 P2 Surface the ApplyConversion state from HttpChannelParent to HttpChannelChild. r=valentin 2018-01-24 12:47:16 -05:00
Ben Kelly aa6ea3fbdd Bug 1431847 P1 Send mCorsMode, mRedirectMode, and mFetchCacheMode to HttpChannelParent. r=valentin 2018-01-24 12:47:15 -05:00
Andrea Marchesini 6ade04534b Bug 1425458 - Resource timing entries Workers - part 1 - PerformanceStorage on main-thread, r=smaug 2018-01-24 17:17:31 +01:00
Andrea Marchesini 6480b95ba3 Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
Ben Kelly 2dc82400a7 Bug 1231211 P7 Pass the nsIChannel to ShouldPrepareForIntercept(). r=asuth 2018-01-23 10:38:53 -05:00
Ben Kelly 8e535f8460 Bug 1231211 P2 Pass the controller ServiceWorkerDescriptor on the channel LoadInfo and back in PHttpChannel's OnStartRequest message. r=valentin 2018-01-23 10:38:52 -05:00
Dragana Damjanovic dd.mozilla@gmail.com 401373dbe5 Bug 1430738 - Fix the channel timing info if a halfOpenSocket is opened with a non-null httpTransaction. r=mcmanus 2018-01-22 12:10:00 -05:00
Boris Zbarsky bb72d7fd1d Bug 1431846 part 4. Remove nsIDOMNavigator and nsIMozNavigatorNetwork. r=mystor
MozReview-Commit-ID: LSgeY2dM6gv
2018-01-22 12:59:15 -05:00
Boris Zbarsky b5937fb6a0 Bug 1431846 part 3. Make nsPIDOMWindowOuter::GetNavigator return dom::Navigator*. r=mystor
MozReview-Commit-ID: DgZWMcSg0PT
2018-01-22 12:59:15 -05:00
Luke Crouch 30b0ae88f8 Bug 587523: remove branching logic; comment fixups r=valentin
MozReview-Commit-ID: J8LGTUMehZA

--HG--
extra : rebase_source : bd14c0a652c06e6cdb73c6c52034a4fd2f3abbef
2018-01-18 09:57:14 -06:00
Luke Crouch a102c64ea0 Bug 587523: update test_referrer.js to include pbmode tests r=valentin
MozReview-Commit-ID: FXUMi9Q3S3P

--HG--
extra : rebase_source : 5fabbd2ed3aa04eb68d4e1e43ef0b710125ffee5
2018-01-16 15:25:09 -06:00
Luke Crouch 878706a5f8 Bug 587523 - strict-origin-when-cross-origin referer policy in pbmode r=valentin
Adds new network.http.referer.defaultPolicy.pbmode pref which defaults to 2.

When setting referrer from default policy, checks mLoadInfo OriginAttributes
for mPrivateBrowsingId > 0 to detect PBM.

MozReview-Commit-ID: 7SfNk0dO1rW

--HG--
extra : rebase_source : a050a61cad005740edde99f846a69c6a7568dbc6
2018-01-10 16:33:52 -06:00
Gurzau Raul b7e3ec2468 Merge inbound to mozilla-central. a=merge 2018-01-20 11:38:58 +02:00
Dragana Damjanovic dd.mozilla@gmail.com da357cb9bc Bug 1430768 - Refine TFO telemetry. r=mcmanus 2018-01-17 06:47:00 +02:00
Valentin Gosu da90b10e9f Bug 1431204 - Change calls to nsIURI.spec setter to use nsIURIMutator instead r=mayhemer
* changes call to use nsIURIMutator.setSpec()
* Add new NS_MutateURI constructor that takes new Mutator object
* Make nsSimpleNestedURI::Mutate() and nsNestedAboutURI::Mutate() return mutable URIs
* Make the finalizers for nsSimpleNestedURI and nsNestedAboutURI make the returned URIs immutable

MozReview-Commit-ID: 1kcv6zMxnv7

--HG--
extra : rebase_source : 99b13e9dbc8eaaa9615843b05e1539e19b527504
2018-01-19 15:19:42 +01:00
Dragana Damjanovic dd.mozilla@gmail.com 67b4ae20e8 Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus
--HG--
extra : rebase_source : 68ee6e8b59821adc13a5fb6077af28c32e16c338
2018-01-17 06:58:00 +02:00
Dragana Damjanovic ef300e6ca6 Bug 1426408 - Remove some code for the TCP fast open for Windows 10 that is not neede any more. r=mayhemer
--HG--
extra : rebase_source : 8ab4fbe254eaaca0595cfbcd6ba527810ecc5102
2017-12-20 08:39:00 +02:00
Sebastian Hengst 214d7e7953 Backed out changeset 070b636b242b (bug 1425097) for bustage at netwerk/protocol/http/nsHttpTransaction.cpp:1668: lvalue required as left operand of assignment. CLOSED TREE 2018-01-16 20:15:04 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 5c20da8b6c Bug 1425097 - We do not to close h2 connection in case one stream gets 425. r=mcmanus
--HG--
extra : rebase_source : c4b2a5633fbe74a9dfa4be419f0444cbc3eda234
2018-01-15 08:20:00 -08:00
Honza Bambas 5d0de25dc2 Bug 1430197 - Remove the HTTP cache half-live experiment, r=michal 2018-01-12 11:51:00 +02:00
Kris Maglione bef381375c Bug 1430508: Return 0 for ProcessId() when channel IPC is closed. r=dragana
There are some corner cases where we try to attach StreamFilter endpoints to a
channel after its IPC has been closed from from the other side, but request
listeners haven't been notified. This causes crashes in any of several places.

This patch changes nsHttpChannel::ProcessId to return 0 when IPC is closed, so
callers can detect that it's no longer possible to attach endpoints to it.

MozReview-Commit-ID: BZTOqezih0P

--HG--
extra : rebase_source : dfdb5bf7a11fccea51a1fbb161e688f10167da30
2018-01-14 17:40:09 -08:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Shih-Chiang Chien b8abf494f9 Bug 1401459 - always run HttpChannelChild::Release on main thread. r=mayhemer
--HG--
extra : rebase_source : 21705641833e1ad0cb0a3b45f8f0006d29246160
2018-01-11 10:40:29 +08:00
Dragana Damjanovic dd.mozilla@gmail.com 37608e7519 Bug 1429859 - Check mDoNotTryEarlyData in Do0RTT(). r=mcmanus
--HG--
extra : rebase_source : 799854532375d54765fd682cb9f648549b2c6b90
2018-01-11 10:17:00 +02:00
Ben Kelly 88cfd7461c Bug 1425965 P2 Add nsIConsoleReportCollector::FlushReportsToConsoleForServiceWorkerScope(). r=baku 2018-01-12 12:16:04 -05:00
Narcis Beleuzu 4de0807d09 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 13:25:57 +02:00
Dragana Damjanovic 2dce8cd834 Bug 1429830 - Enable TFO is a cross-compiler is used.r=nwgh 2018-01-11 23:17:44 +01:00
Andrew Sutherland 2da7a3c221 Bug 1416879 - Part 3: (Also Bug 1418795) SyntheticDiversionListener should handle !mIPCOpen. r=bkelly
The SyntheticDiversionListener needs to handle the case where the IPC
connection is gone.  This patch avoids calling Send* methods which will
crash the content process if the actor has already been destroyed.
Additionally, OnDataAvailable will return an error in such a case so
that the caller can properly handle the error rather than continuing to
attempt to send data to a listener that doesn't care.  This latter
change is an artifact of a previous hack attempt to fix a related
diversion issue that is probably not required for this stack, but makes
sense as a fix, so I've left it in.

--HG--
extra : rebase_source : 44ee7941be7619a8532c5194eca88fb0ca6323f7
extra : source : 5453b8a58f0c2c28dc7c407c531c266972bff423
2018-01-04 13:59:13 -05:00
Andrew Sutherland 6684613c61 Bug 1416879 - Part 2: Allow for diversion cancellation and trigger for intercepted channels. r=bkelly, r=mayhemer
The diversion mechanism never expected to be dealing with data sourced
from the content process, but that's exactly what happens with
ServiceWorker-intercepted channels with the current child-intercept
situation (which is being fixed).

In order to allow timely cancellation of diverted intercepted
channels, there needs to be a way to relay to the HttpChannelChild
that it needs to be canceled so that the synthesized pump can be
canceled and diversion can be marked as complete.  This patch adds
such a mechanism to ADivertableParentChannel and PHttpChannel for the
exclusive use of InterceptedHttpChannel and then uses it.

--HG--
extra : rebase_source : db71e927bd1837c6a67f6d56df52cfbb7294df73
extra : source : d156f6b687e1cd8717bf813ab1b944e87b67ed5d
2018-01-04 18:38:07 -05:00
Andrew Sutherland 1b42d677f3 Bug 1416879 - Part 1: DivertComplete should only be sent at OnStopRequest for synthesized responses. r=bkelly
Diversion for intercepted channels with a synthesized response is a
special case.  It is not appropriate to send DivertComplete when
mEventQ has been drained, because we are not dealing with the usual
mEventQ-enqueued OnDataAvailable payloads that had been received over
the network and sent down to the child.  In this case, all the data
originates in the child and does not go through mEventQ.  As such,
the correct place to send DivertComplete is at OnStopComplete for the
synthesized response.

--HG--
extra : rebase_source : a4e1593d38629173b829014a3c316ad156094580
extra : source : 714d3942fb10a96e60e14c475e24e640b9ddd8cc
2018-01-04 18:56:46 -05:00
Nicholas Hurley 670ad53036 Bug 1367861 - enable throttling for http/2. r=mayhemer
This also fixes the bug that prevented throttled http/2 streams from
ever re-starting by calling TransactionHasDataToRecv.

MozReview-Commit-ID: 5dFotZGhQk9

--HG--
extra : rebase_source : 2ba35bef4e17d90fc2abe52958bb6459b052b7e7
2018-01-10 13:35:02 -08:00
Dragana Damjanovic dd.mozilla@gmail.com 88d0518368 Bug 1429426 - Disable TFO if pmls64.dll and rlls64.dll are detected. r=valentin 2018-01-11 15:10:12 +01:00
Ciure Andrei f7400ad72e Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
Kate McKinley e97980a95e Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Dorel Luca ccebfc1873 Merge mozilla-central to autoland r=merge 2018-01-11 00:03:38 +02:00
Shane Caraveo 29b0901e54 Bug 1418275 Fix timing of STS header processing for webextensions r=mayhemer
STS header checking was happening before http-on-examine-response which prevents
an observer from adding the STS headers to enforce STS.  This moves the header
processing to after the notification occurs.  In a webextension,
WebRequest.onHeadersReceived can now be used to inject STS and have that
recognized by HttpChannel.

MozReview-Commit-ID: KYZCSTBnZL7

--HG--
extra : rebase_source : 7a36fab9361e1da0223a4e63fe770228ea99538f
2018-01-10 13:21:08 -08:00
Dragana Damjanovic 205fa0bf38 Bug 1429106 - Fix TFO telemetry. r=nwgh 2018-01-10 12:39:55 +01:00
Margareta Eliza Balazs fe2caaa266 Merge inbound to mozilla-central r=merge a=merge 2018-01-09 11:52:55 +02:00
Bogdan Tara cd1c3cc5dd Merge mozilla-central to autoland, r=merge a=merge on a CLOSED TREE 2018-01-09 00:16:46 +02:00
Honza Bambas 95b32effe1 Bug 1423550 - Lookup regula HTTP cache on appcache NETWORK namespace match, r=michal 2018-01-08 07:26:00 +02:00
Honza Bambas d53e911aed Bug 1425301 - Progressively decrease the 6 seconds maximum quantum delay of tracker script tailing, r=dragana 2018-01-08 06:01:00 +02:00
Brindusan Cristian f42618c99d Backed out 6 changesets (bug 1416879) for bc permafailures on windows on browser_multie10s_update.js r=backout a=backout
Backed out changeset 840a6e04bcea (bug 1416879)
Backed out changeset 994dc643a2ab (bug 1416879)
Backed out changeset 8e4fd74e7f5e (bug 1416879)
Backed out changeset 5453b8a58f0c (bug 1416879)
Backed out changeset d156f6b687e1 (bug 1416879)
Backed out changeset 714d3942fb10 (bug 1416879)
2018-01-07 11:55:44 +02:00
Andrew Sutherland 35d9749e9b Bug 1416879 - Part 3: (Also Bug 1418795) SyntheticDiversionListener should handle !mIPCOpen. r=bkelly
The SyntheticDiversionListener needs to handle the case where the IPC
connection is gone.  This patch avoids calling Send* methods which will
crash the content process if the actor has already been destroyed.
Additionally, OnDataAvailable will return an error in such a case so
that the caller can properly handle the error rather than continuing to
attempt to send data to a listener that doesn't care.  This latter
change is an artifact of a previous hack attempt to fix a related
diversion issue that is probably not required for this stack, but makes
sense as a fix, so I've left it in.

--HG--
extra : rebase_source : 824d4ab64e92ebb04d8d1ecd4df6d03a2cb37d2f
2018-01-04 13:59:13 -05:00
Andrew Sutherland 5272d9c40a Bug 1416879 - Part 2: Allow for diversion cancellation and trigger for intercepted channels. r=bkelly, r=mayhemer
The diversion mechanism never expected to be dealing with data sourced
from the content process, but that's exactly what happens with
ServiceWorker-intercepted channels with the current child-intercept
situation (which is being fixed).

In order to allow timely cancellation of diverted intercepted
channels, there needs to be a way to relay to the HttpChannelChild
that it needs to be canceled so that the synthesized pump can be
canceled and diversion can be marked as complete.  This patch adds
such a mechanism to ADivertableParentChannel and PHttpChannel for the
exclusive use of InterceptedHttpChannel and then uses it.

--HG--
extra : rebase_source : 59d3aa5e541d2a404c6320ae9fce03e7c9cd8b81
2018-01-04 18:38:07 -05:00
Andrew Sutherland 7f86d0ce4a Bug 1416879 - Part 1: DivertComplete should only be sent at OnStopRequest for synthesized responses. r=bkelly
Diversion for intercepted channels with a synthesized response is a
special case.  It is not appropriate to send DivertComplete when
mEventQ has been drained, because we are not dealing with the usual
mEventQ-enqueued OnDataAvailable payloads that had been received over
the network and sent down to the child.  In this case, all the data
originates in the child and does not go through mEventQ.  As such,
the correct place to send DivertComplete is at OnStopComplete for the
synthesized response.

--HG--
extra : rebase_source : 2209c25ad6f2b5655728d8dc07ef7f8b64df6ea6
2018-01-04 18:56:46 -05:00
Dragana Damjanovic 4b6b71262b Bug 1426710 - The telemetry on how often a backup connection wins should be histogram. r=mayhemer 2018-01-08 19:28:10 +01:00
Honza Bambas bc1c741e25 Bug 1405446 - Connections created for urgent-start requests are of limits for non-urgent-start ones, r=dragana 2018-01-09 07:58:00 -05:00
Ben Kelly 41a01f019b Bug 1429542 Make HttpChannelChild::OverrideRunnable check for nullptr before using mNewChannel. r=asuth 2018-01-10 14:45:17 -05:00
Valentin Gosu 0203cc4abd Bug 1426501 - Change C++ code to use NS_MutateURI when changing URI r=mayhemer
MozReview-Commit-ID: 4VzZlhWrtSJ

--HG--
extra : rebase_source : 9c872dc14c8e5f03e6354ab76c8bf750a7e10260
2018-01-08 15:20:35 +01:00
Kershaw Chang 62a41d6974 Bug 1413999 - Part3: IPC part, send trailers to child process r=dragana
The aim of this patch is to send trailers to child process via SendOnStopRequest.

--HG--
extra : rebase_source : 1a5e16e140ef20cfe2e723c3800d7feeebd9a5af
2018-01-03 02:05:00 +02:00
Kershaw Chang 73d9823e67 Bug 1413999 Part2: Take http trailers from chunk decoder and add serverTiming attribute in nsITimedChannel r=dragana
This patch includes:
1. Save http trailers in the header array in chunk decoder.
2. Take trailers from chunk decoder in OnStopRequest().
3. Add serverTiming attribute in nsITimedChannel.
4. Parse server timing header when GetServerTiming() is called.

--HG--
extra : rebase_source : 77c92b8a31d3d7eebb33aea266888f944af33327
2018-01-03 02:04:00 +02:00
Kershaw Chang 39f697a80b Bug 1413999 - Part1: Parse Serve-Timing header r=dragana
1. Add a helper function Tokenize() which is able to handle quoted-string and quoted-pair.
2. Modify ParsedHeaderValueListList
 - Use Tokenize() to split string by ','.
3. Modify ParsedHeaderValueList
 - Use Tokenize() to split string by ';'.
 - Function ParseNameAndValue() is for getting name and value from the string containing '='.
4. Handle backslash escapes for quoted string.
5. Reuse ParsedHeaderValueListList to parse server-timing header.

--HG--
extra : rebase_source : 7802a1ae9a6410c4ea992b1197018c5a3f994fa0
2018-01-03 02:04:00 +02:00
Honza Bambas d7dde42948 Bug 1422467. r=michal 2017-12-21 14:39:42 -05:00
Dragana Damjanovic 7149091b44 Bug 1426474 - Turn on TFO only for Darwin 17.3 and later. r=hurley 2017-12-21 18:59:05 +01:00
Dragana Damjanovic 93626c6bec Bug 1426367 - Turn on TFO for Windows. r=hurley 2017-12-21 18:43:57 +01:00
Dragana Damjanovic 66a1074054 Bug 1426366 - Detect http transaction stalls with TFO. r=hurley 2017-12-21 18:32:28 +01:00
Eden Chuang 3fd3115e94 Bug 1423623 - Add telemetry for alternate data stream on service worker synthesized channels. r=bkelly, data-r=francois
1. Create a new telemetry scalar SW_ALTERNATIVE_BODY_USED_COUNT to count the
       number of the alternative body used in service worker synthesized channels.

    2. To report values of fetching related time of InterceptChannel according to
       the detail subresource type. Now subresource/script, subresource/other,
       subresource/image and subresource/stylesheet are provided, and keep using
       subresource for other types.
2017-12-15 14:35:44 +08:00
Dragana Damjanovic 45d67964d6 Bug 1422895 - TFO should be possible only on Windows 10 Fall Creators Update or later. r=mcmanus 2017-12-20 16:45:30 +01:00
Dragana Damjanovic 00a47a6f30 Bug 1422545 - Do not close connection between a httpChannelChild and its httpChannelParent if we need to divert to parent.r=mayhemer
If UnknowDecoder is involved and the received content is short we will know whether we need to divert to parent only after OnStartRequest of the listener chain is called. Therefore do not do cleanup if we detect diversion.
2017-12-20 16:13:36 +01:00
Dragana Damjanovic 34afbed5d9 Bug 1402811 - Collect telemetry on how often a backup connection wins. r=mcmanus 2017-12-20 15:56:28 +01:00
Dragana Damjanovic 266c2b2aea Bug 1402879 - Make small changes to TFO: telemetry and use of backup socket that already has started. r-mcmanus 2017-12-20 15:40:07 +01:00
Amy Chung d0eb2b7593 Bug 1413512 -- Added a telemtry for counting of the HTTP redirection that triggered by top-level document or by subresource. r=schien data=francois 2017-12-15 10:50:19 -06:00
Dragana Damjanovic 07543200e4 Bug 1425156 - Fix bug in the http-auth dialog blocking. r=ckerschb 2017-12-14 20:22:56 +01:00
Dragana Damjanovic 220fd9a72a Bug 1424915 - Close a httpTransaction from a http2session with the right error code if the error code is NS_BINDING_RETARGETED. Otherwise the transaction will be restarted twice. r=mcmanus 2017-12-14 10:35:54 +01:00
Cosmin Sabou b0098afaea Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-12-13 12:14:29 +02:00
Andrea Marchesini 5f1be317f0 Bug 1421094 - nsIUploadChannel2.cloneUploadStream returns the length of the stream, r=smaug 2017-12-12 18:38:19 -06:00
Tom Tung f268a3c7c9 Bug 1420672 - P1: Propagate the uri reference to the redirect uri if the redirect uri doesn't have one. r=beklly
--HG--
extra : rebase_source : 5c2d137a03118b932631bbb52d640f34e269e86f
2017-12-08 15:42:30 +08:00
Andrea Marchesini badd489870 Bug 1424808 - Get rid of isFileStream in nsHttpChannel.cpp, r=valentin 2017-12-12 06:01:18 -06:00
Dragana Damjanovic 86a9ddb711 Bug 1409449 - Do not show auth-dialog for triggeringPrincipal==SystemPrincipal. r=ckerschb r=valentin r=francois 2017-12-12 10:34:12 +01:00
Margareta Eliza Balazs c4027ebd8f Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-13 00:04:54 +02:00
Gurzau Raul 15f8898e50 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-09 00:56:50 +02:00
Gurzau Raul 91d3bc0100 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 00:36:15 +02:00
Honza Bambas 1ee6257bc3 Bug 1386746 - Throttle HTTP response by allowing only small amount of data to read periodically, r=mcmanus 2017-11-28 05:37:00 +02:00
Shane Caraveo 76ee06b331 Bug 1149250 add support for https upgrades from webextensions, r=bz,mayhemer,rpl
MozReview-Commit-ID: ChIs2Q6bgEn

--HG--
extra : rebase_source : 942d6ee111df39fdd19d1d035e8eefa9280430f3
2017-12-08 12:12:37 -08:00
Patrick McManus dc7b5677f7 Bug 1411316 - necko api for cancelling all transactions r=dragana
test by: :kershaw

MozReview-Commit-ID: BwjsDMiEGZY

--HG--
extra : rebase_source : 5f2bdc49295d19179e26f9c72204e1d8a9fb698a
2017-10-24 09:17:02 -07:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Junior Hsu 344e2267f3 Bug 1419658 - let Basic http auth support ISO-8859-1 user/password, r=honzab
--HG--
extra : rebase_source : a3fdf8a70281775961277a0bcbf0645291f7b2b3
2017-12-07 01:31:00 +02:00
Dragana Damjanovic 6faa3298a5 Bug 1423522 - We should not block http-authentication prompts for proxies. r=ckerschb 2017-12-06 14:13:32 +01:00
Tiberius Oros be4fc858c5 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-12-06 12:35:04 +02:00
Gurzau Raul f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
Valentin Gosu 5a83d2bc0b Bug 1420954 - Make nsIURIMutator setters return nsIURIMutator so we can chain setters r=bagder
MozReview-Commit-ID: 53BD91hB2yi

--HG--
extra : rebase_source : 3c4f5b9ad8820353ae108b982026048dbf599d95
2017-12-05 02:35:21 +01:00
Honza Bambas 03b39896a0 Bug 1340197 - Don't wait for concurrent HTTP cache entry when the depending load is a top-level navigation. r=michal 2017-11-27 07:26:00 -05:00
Bogdan Tara ebe0a1a20c Merge inbound to mozilla-central r=merge a=merge 2017-12-04 22:20:49 +02:00
Michal Novotny 4e89b320f9 Bug 1394564 - Delete current outgoing message when PrimeNewOutgoingMessage fails. r=mcmanus
--HG--
extra : amend_source : 6ac45c6b007dac89195529a2e57ccfbd7ca88b8f
2017-11-22 05:17:00 -05:00
Honza Bambas 4eab23cce4 Bug 1411632 - Introduce onload and DOMContentLoaded telemetry for active tab and network optimization. r=valentin, r=francois 2017-12-02 18:13:43 -05:00
Junior Hsu 61807cdb5d Bug 1420334 - protect timestamp setting in a critical section, r=michal 2017-11-30 19:45:00 +02:00
Jonathan Watt b02fcd6df0 Bug 1180145, part 1 - Add a 'reportResourceTiming' member to the nsITimedChannel interface. r=mayhemer
MozReview-Commit-ID: 3poTmHWKs4K
2017-11-07 15:58:31 +00:00
Eden Chuang 7f3b4d6b1a Bug 1350359 - Part 4: Fix a crash caused by off-main-thread destruction of a HttpChannelChild. r=bkelly
Setting the InternalResponse's mCacheInfoChannel while needed, to avoid
    keeping unnecessary nsICacheInfoChannel alive.

--HG--
extra : histedit_source : 39f9339b69db52b0278495d5247bc99ffd1d8f79
2017-12-04 14:39:26 +08:00
Eden Chuang 2f08862cf1 Bug 1350359 - Part 3: Place the alternative data to the InterceptedChannel. r=bkelly 2017-12-04 14:39:21 +08:00
Eden Chuang 7211e8c25c Bug 1350359 - Part 1: Set alternative data type from InterceptedChannel to InternalRequest. r=bkelly 2017-12-04 14:39:10 +08:00
Francois Marier 5d8fa6f351 Bug 446344 - Implement Origin header CSRF mitigation. r=ckerschb,dragana
MozReview-Commit-ID: EZpGo0UfmUP

--HG--
extra : rebase_source : dce83c8314148c104e47ae322c4d578e96986ea3
extra : source : d4747fd86a331aed7b524b509f915f0c9dd6044f
2017-11-24 17:35:05 -08:00
Honza Bambas be74fa61ca Bug 1416682 - Don't allow writing alt-data to HTTP cache entry when the loading channel has failed to release the entry, r=michal 2017-12-01 11:01:00 +02:00
Honza Bambas 3fa9ca21fd Bug 1416682 - Add nsICacheEntry.drop() to explicitly release HTTP cache entries from channels to avoid logical deadlocks, r=michal 2017-11-30 12:03:00 +02:00
Tom Tung afa535333a Bug 1222008 - P1: Propagate the URLs from respondWith() if the response's URL is different from the request's. r=bkelly
--HG--
extra : rebase_source : 97bc74f18e734673ab598925410c8b284c4aaba8
2017-11-01 15:45:35 +08:00
Bogdan Tara 7d5d1bc25f Backed out 1 changesets (bug 1340197) for failing reftests on /tests/dom/base/crashtests/504224.html r=backout a=backout on a CLOSED TREE
Backed out changeset 42fc2739a333 (bug 1340197)
2017-11-30 00:58:17 +02:00
Nika Layzell d004fe115e Bug 1415158 - Don't notify ContentParent of a load if our IPC channel is closed. r=billm
MozReview-Commit-ID: 4HBIalVCfno
2017-11-28 15:30:56 -05:00
Honza Bambas 794a11e78e Bug 1340197 - Don't wait for concurrent HTTP cache entry when the depending load is a top-level navigation. r=michal 2017-11-27 07:26:00 -05:00
Brindusan Cristian 9f3bd430c2 Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
Dragana Damjanovic 3de66b952d Bug 1404069 - Revert bug 1363372. r=mayhemer 2017-11-27 21:12:31 +01:00
Andrea Marchesini 442a9cd5f0 Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 4 - Get rid of NS_NewAsyncStreamCopier, r=smaug 2017-11-22 11:19:25 +01:00
Andrea Marchesini 1fd1731f81 Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug 2017-11-22 11:18:57 +01:00
Andrea Marchesini 8a7dedba69 Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 1 - NS_NewInputStreamChannelInternal, r=smaug 2017-11-22 11:18:18 +01:00
Valentin Gosu d2d8524673 Bug 1415205 - Add nsIURIMutator impls for all objects implementing nsIURI r=bagder
This also changes URIUtils.cpp:DeserializeURI() to use the mutator to instantiate new URIs, instead of using their default constructor.

MozReview-Commit-ID: JQOvIquuQAP

--HG--
extra : rebase_source : e146624c5ae423f7f69a738aaaafaa55dd0940d9
2017-11-20 17:11:30 +01:00
Nika Layzell a7666fd8fe Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
Johann Hofmann d28b4dd837 Bug 1374574 - Remove the FlyWeb service and DOM interfaces. r=bz,djvj
MozReview-Commit-ID: 4hp9pLbMh4R

--HG--
extra : rebase_source : 82f417640211ede4fd7aa290c1f2609b07f38025
2017-11-22 15:00:10 +01:00
Thomas Nguyen 5bd3a1a2c6 Bug 1416344 - refactor computing referrer policy and remove uninitilized maybe value r=valentin
MozReview-Commit-ID: 7VoRaUSE096

--HG--
extra : rebase_source : 2c0aa81b5751fe187494df75e6d853b64f5b9b47
2017-11-13 19:23:47 +08:00
Chris Peterson feb58d9d37 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY

--HG--
extra : rebase_source : 56bef4eead24901191f190e31d2841710097cdcf
2017-10-25 00:37:02 -07:00
Geoff Brown cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Andrea Marchesini 6fd88f7ffb Bug 1415081 - part 3 - WebSocketChannel cannot use ::Available() to know the size of a nsIAsyncInputStream, r=smaug 2017-11-09 11:18:08 +01:00
Nicholas Hurley 52ce8728f8 Backout e15196e25f9e for causing bug 1415387 2017-11-08 10:30:58 -08:00
Margareta Eliza Balazs fe45ae3748 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-08 00:08:26 +02:00
Nicholas Hurley 29bf3169ae Bug 1409570 - Ensure a pushed stream knows we've reached EOS. r=mcmanus
Previously, if a pushed stream was ended with a padding-only DATA frame
with the FIN bit set, and that stream didn't have a Content-Length,
there would be no way of knowing that the stream was finished. Now we
force-mark the push as complete if we hit a padding-only DATA frame with
the FIN bit set.

MozReview-Commit-ID: 7tk8x2FNgSj

--HG--
extra : rebase_source : b95f635b4bb0b4743cf81e888a455365ef561c22
2017-10-18 12:34:42 -07:00
Nicholas Hurley b45caf2d01 Bug 1402014 - Don't (try to) write to the network when we're already closed. r=mcmanus
MozReview-Commit-ID: CkGuzlzDToj
2017-11-07 07:57:37 -08:00
Chris H-C 4bf8e88346 bug 1413258 - Collect SSL Telemetry on all channels r=mcmanus
Ever since bug 1340021 we were supposed to be collecting *_IS_SSL probes on
release, but the code in nsHttpChannel prevented it from happening.

MozReview-Commit-ID: IdU4Gppos6E

--HG--
extra : rebase_source : d8260883287eea1b6a651f1f89dcca9d06fd6cce
2017-11-03 15:06:59 -04:00
Ben Kelly 8a04f60def Bug 1412015 P3 Check ResetInterception result and CancelInterception if a failure occurs. r=asuth 2017-10-30 10:30:01 -04:00
Ben Kelly 1fe291d902 Bug 1412015 P2 Create a shared method in HttpBaseChannel to check the redirection limit. r=valentin 2017-10-30 10:30:01 -04:00
Ben Kelly 871bdfbb8b Bug 1412015 P1 Propagate mRedirectCount and mInternalRedirectCount across all redirects. r=valentin 2017-10-30 10:30:01 -04:00
Nicholas Nethercote 9252435548 Bug 1410794 (attempt 2) - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm.
This makes the code nicer. In particular, it removes many getter_Copies()
calls. The patch also converts a lot of nsCStrings to nsAutoCString, which will
avoid heap allocation in the common case.

The patch also renames PREF_CopyCharPref() as PREF_GetCStringPref(), because
it's actually getting a string, not a char, and that matches the existing
GetCString() and GetDefaultCString() methods. Correspondingly, it also renames
PREF_SetCharPref() as PREF_SetCStringPref().

The |aPrefName| arguments in nsIPrefBranch.idl remain as |string| because they
almost always involve passing in C string literals, and passing "foo" is much
nicer than passing NS_LITERAL_CSTRING("foo").

It's worth noting that early versions of this patch used |AUTF8String| instead
of |ACString|. But it turns out that libpref stores prefs internally as Latin1.
And |ACString| is compatible with Latin1 but |AUTF8String| isn't, because
non-ASCII Latin1 strings are not valid UTF-8!

MozReview-Commit-ID: D3f7a1Vl1oE

--HG--
extra : rebase_source : e6e4b15d6d210cfd93686f96400281f02bd1d06b
2017-10-27 10:30:33 +11:00
Valentin Gosu 3680a69516 Bug 1408990 - Only add the entry to the performance object if the loading document's principal is the same as the triggering principal. r=bz, r=dragana
MozReview-Commit-ID: 7o8XKHioP1p
2017-10-28 00:15:01 +02:00
Sebastian Hengst 831f2ed98f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: oIdBL7fmlE
2017-10-28 10:31:58 +02:00
Liang-Heng Chen 3cf13fc905 Bug 1410257 - make non-connection-based connections restartable; r=mayhemer
MozReview-Commit-ID: 1hEk7mT6mzZ

--HG--
extra : rebase_source : 4c7507adb820b1760309fc1cfb1210cdf03c2d6e
2017-10-26 14:23:05 +08:00
Ben Kelly 1d874e8c70 Bug 1411528 Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth 2017-10-27 16:11:57 -04:00
Dragana Damjanovic 63a20964af Bug 1412260 - Initialize mFastOpenStatus in NullHttpTransaction. r=bagder 2017-10-27 14:05:31 +02:00
Dragana Damjanovic b10887c6ac Bug 1406908 - Implement 425 (Too Early). r=mcmanus 2017-10-27 12:17:56 +02:00
Phil Ringnalda 81afb7d3f2 Backed out changeset 6e2c105f5730 (bug 1402014) for marionette, talos, and dom/push/ crashes @ mozilla::net::Http2Session::ReadSegmentsAgain
MozReview-Commit-ID: 4mZXcBAma9d
2017-10-26 19:22:08 -07:00
Nicholas Hurley 139e43e0fd Bug 1402014 - Don't (try to) write to the network when we're already closed. r=mcmanus
MozReview-Commit-ID: CkGuzlzDToj

--HG--
extra : rebase_source : 0992bb22b01ce6d80e0e11b66bf14bb072be453c
2017-10-26 19:05:37 -04:00
Sebastian Hengst d10e26c913 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-27 00:00:25 +02:00
Valentin Gosu 996793e8e8 Bug 1411697 - Make sure to SendDocumentChannelCleanup even when mPreferredCachedAltDataType is set r=michal
MozReview-Commit-ID: ApXNqS9tcfh

--HG--
extra : rebase_source : 6ef619331af3f3dd3424c5ac932a2c828bd9d50f
2017-10-26 15:54:37 +02:00
Patrick McManus f99705311c Bug 1409858 - H2 CONNECT Tunnel Marked Plaintext Too Late r=nwgh
MozReview-Commit-ID: IjuYDuvufRd

--HG--
extra : rebase_source : ab7773dc015c31d6ba1eb8c933efc79c38b29d06
2017-10-20 13:39:49 -04:00
Sebastian Hengst c84fe67114 Backed out 2 changesets (bug 1406908) for failing own xpcshell test. r=backout
Backed out changeset 6941e33afc7d (bug 1406908)
Backed out changeset 291c46b79fa2 (bug 1406908)
2017-10-25 17:39:15 +02:00