Commit Graph

14456 Commits

Author SHA1 Message Date
Ho-Pang Hsu
c0b53a4f14 Bug 1168875 - Part 5: Copy service worker interception timeStamps during HttpChannel redirection. r=valentin
--HG--
extra : rebase_source : 636b5c6ea19cea61f506e11cb82d829e4b27656e
2017-04-10 21:13:22 +08:00
Ho-Pang Hsu
03a9e02c97 Bug 1168875 - Part 4: Extend related IPDL and implementation to pass service worker interception timestamps. f=bkelly, r=valentin
--HG--
extra : rebase_source : 6b78b0d46d173068c6ea6d2e2148113f10a36d4a
2017-04-10 21:13:21 +08:00
Ho-Pang Hsu
db007e371f Bug 1168875 - Part 2: Add service worker interception timestamp logging APIs to nsIInterceptedChannel. f=bkelly, r=valentin
--HG--
extra : rebase_source : 12fe2df13446960b96ca6deb3b36795c643c6ae5
2017-04-10 21:13:21 +08:00
Ho-Pang Hsu
11560d7c31 Bug 1168875 - Part 1: Extend nsITimedChannel for logging service worker interception related timestamps. f=bkelly, r=valentin
--HG--
extra : rebase_source : 8c20cc8f2014f728038b8b9b214e888cc3215d0c
2017-04-10 21:13:21 +08:00
Yoshi Huang
34f66889f3 Bug 1346713 - Generate unique firstPartyDomain value for NullPrincipal. r=smaug
In the past we used a fixed value for the firstPartyDomain of
NullPrincipal, now we derive it from the path of NullPrincipal, so it
will be unique everytime we create it.
2017-04-11 16:48:34 +08:00
Carsten "Tomcat" Book
ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02:00
Ehsan Akhgari
c0b6db9d07 Bug 1347461 - Part 1: Add a C++ API for the list of DataStorage classes; r=keeler 2017-04-10 22:44:32 -04:00
Wes Kocher
5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Sebastian Hengst
1828ea89ca Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
Bill McCloskey
e63bc5e6d9 Bug 1350436 - Use nsIEventTarget instead of Dispatcher in netwerk code (r=mayhemer)
MozReview-Commit-ID: BM4r8icwMY5
2017-04-10 16:49:39 -07:00
Michael Layzell
465d1b2fae Bug 1352553 - Part 2: Restore previous default port behaviour for RustURL::GetPort on a CLOSED TREE, a=bustage
MozReview-Commit-ID: A0SAYtcttZF
2017-04-10 16:22:35 -04:00
Michael Layzell
fd68582d06 Bug 1352553 - Update rust-url-capi to use the new nserror crate, r=valentin
MozReview-Commit-ID: 3X3MRb9Iujz
2017-04-10 15:21:25 -04:00
Patrick McManus
9d655ea4c6 Bug 1355277 - change h2 origin frame codepoint to 0xc r=nwgh
MozReview-Commit-ID: GPEEmWQOxQ4

--HG--
extra : rebase_source : 20d74e6668219e18fc9f3eaf13898a35f64ae57f
2017-04-10 21:47:07 -04:00
Nicholas Hurley
3e8ff0a8d4 Bug 1352146 - Don't allow status phrases in http/2. r=mcmanus
MozReview-Commit-ID: Cf30tUivhnB

--HG--
extra : rebase_source : d3b64d6ee9077f448ff9b8aaaff3d449655f0b62
2017-04-07 13:18:20 -07:00
Sebastian Hengst
ed655b907f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-08 22:56:39 +02:00
Sebastian Hengst
6a5fe3bae0 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IkoXCAwjjKu
2017-04-08 22:49:04 +02:00
Kris Maglione
8cb2eed52d Bug 1351163: Part 3 - Don't open moz-extension: base channel on NewChannel2(). r=bz
MozReview-Commit-ID: F8H75VM33nz

--HG--
extra : rebase_source : 1c5c61ecd5f4e3c27907feb29f9c07ecaba1bcc6
2017-04-07 22:35:57 -07:00
Kris Maglione
26b71c675c Bug 1351163: Part 2 - Add a nsSimpleChannel helper class for creating simple wrapper channels. r=bz,honzab
This helper class allows us to create simple channels that open an underlying
input stream when the channel is first opened, using a closure function,
without having to expose the nsBaseChannel class to non-necko code.

MozReview-Commit-ID: 6jiImdMXUp0

--HG--
extra : rebase_source : b8d30a28593940c41109b1352eb0c549213c5f89
2017-04-07 14:35:48 -07:00
Kris Maglione
33760a013c Bug 1351163: Part 1 - Support direct stream listener output in nsBaseChannel. r=honzab
Several of our simple channel implementations work naturally with direct
nsIStreamListener output. Currently, these implementations need to create a
pipe, pump data in to that pipe, and then allow nsBaseChannel to pump data out
of the other side of that pipe, into its own stream listener.

This change allows them to output data directly to nsBaseChannel's stream
listener, which removes unnecessary complexity and overhead.

MozReview-Commit-ID: JCGKTt6Kn9x

--HG--
extra : rebase_source : 200dd2641bfa703f658c2c5171a68df3a035be0a
2017-04-07 14:25:33 -07:00
Christoph Kerschbaumer
fc56451c03 Bug 1353975 - Fix nullPrincipal edge case. r=bz, r=mcmanus 2017-04-07 20:35:00 +02:00
Sebastian Hengst
e71676d7ea Backed out changeset 96596bdeb7ec (bug 1353975) for failing mochitest test_CrossSiteXHR.html and xpcshell test test_allowedDomainsXHR.js. r=backout 2017-04-07 20:00:06 +02:00
Honza Bambas
6e54bcbf74 Bug 1348701 - Calculate HTTP cached content expiration time as 0 when its freshness lifetime is not greater than its current age. r=mcmanus 2017-04-07 07:53:00 -04:00
Christoph Kerschbaumer
5b6c60502e Bug 1353975 - Use a NullPrincipal as the principalToInherit when undergoing an http redirect. r=bz, r=mcmanus
--HG--
extra : rebase_source : b50e4d79123a2f5f53f984f4a7943b4f7684dbc5
2017-04-06 21:35:40 +02:00
Brendan Dahl
79c787d9b4 Bug 1353937 - Expose http server wrapped js object for private apis. r=mcmanus
Slimerjs relies on the hidden _start to create a server with a
port and host.
2017-04-07 09:18:33 -07:00
Dragana Damjanovic
2b3a916d76 Bug 1354233 - Add stream to m0RTTStreams after streamId is set. r=mcmanus 2017-04-07 17:28:21 +02:00
Carsten "Tomcat" Book
3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Valentin Gosu
68caf482f1 Bug 1351301 - Test that '.' is not required to accept subdomains in auth::URIMatchesPrefPattern. r=mayhemer
MozReview-Commit-ID: 4FXBDSo1bVG

--HG--
extra : histedit_source : 7b7f22dbc4dae53e53b68bc07b04dd84052e2bfa
2017-04-07 04:31:22 +03:00
Honza Bambas
86083e6478 Bug 1351301 - Don't require '.' to accept subdomains in *.auth.trusted-uris preferences. r=valentin
--HG--
extra : histedit_source : 7816f1395314ed94d9cb6cb05de4048012e479c5
2017-04-06 11:28:00 -04:00
Andrea Marchesini
732135f026 Bug 1354040 - nsMIMEInputStream should be nsIIPCSerializableInputStream only if the internal stream is serializable, r=qdot 2017-04-07 09:34:13 +02:00
Andrea Marchesini
4b42693957 Bug 1354052 - Remove NS_NO_INPUT_BUFFERING from nsFileStreams.cpp, r=qdot 2017-04-07 09:33:04 +02:00
Michal Novotny
c1be0eb7c3 Bug 1352916 - Add release asserts to try to narrow down the source of the reported crashes. r=valentin
--HG--
extra : rebase_source : 674bc781a8c92e1f7f3dc9e4086ee67cccccd682
2017-04-05 08:13:00 -04:00
Mike Hommey
d6aaa996f4 Bug 1353990 - Stop exporting brotli headers. r=gps
They have generic names, and are potentially conflicting with
in-tree headers with the same name (which is true for at least port.h).

There aren't enough users of brotli to want to avoid LOCAL_INCLUDES
in the directories that use it.

--HG--
extra : rebase_source : 82531ac5961ad80e1b3d0c1484a2f146be194411
2017-04-06 13:44:47 +09:00
Wes Kocher
02ea689f15 Backed out changeset f898176c408d (bug 1281278) for xpcshell failures a=backout 2017-04-06 15:48:18 -07:00
Sebastian Hengst
2bb432f54a Backed out changeset c8199958741a (bug 1352146) 2017-04-08 01:44:22 +02:00
Nicholas Hurley
8a7a1ddf0e Bug 1352146 - Don't allow status phrases in http/2. r=mcmanus
MozReview-Commit-ID: Cf30tUivhnB

--HG--
extra : rebase_source : d3b64d6ee9077f448ff9b8aaaff3d449655f0b62
2017-04-07 13:18:20 -07:00
Sebastian Hengst
548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
Patrick McManus
3a1c3e7365 Bug 1281278 - test coverage for h2 push with brotli r=nwgh
MozReview-Commit-ID: 84LZRLsefJD

--HG--
extra : rebase_source : 3e09bebff4b2799471d96e9fcd06925ce36ff251
2017-04-06 13:40:26 -04:00
Patrick McManus
d71e70b941 Bug 1354220 - HttpChannelChild doesn't release listeners on fail case r=schien
MozReview-Commit-ID: 5gixWVg1NR3

--HG--
extra : rebase_source : 09970c37e26b3539a44c3c8b85502b8f912d9868
2017-04-06 14:21:42 -04:00
Valentin Gosu
bb752cebae Bug 1351443 - Only fall back to NewChannel if implementation of NewChannel2 is missing r=mcmanus
If the call to NewChannel2 returns NS_ERROR_NOT_IMPLEMENTED or NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED that means the implementation is actually missing, so it is OK to fall back to NewChannel.
If it fails with any other error code, we just return it.

MozReview-Commit-ID: JmgEmPqu6zJ

--HG--
rename : netwerk/test/unit/test_bug894586.js => netwerk/test/unit/test_1351443-missing-NewChannel2.js
extra : rebase_source : 5d41df330a15ad7b679d9bed52e6fbf90bdc4ed8
2017-04-07 15:25:19 +03:00
Mike Hommey
94c16743bb Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
2017-04-05 14:06:25 +09:00
Mike Hommey
3deb62f2b2 Bug 1344038 - Move the gio protocol handler under netwerk/protocol. r=chmanchester,karlt
Historically, we had support for some GNOME VFS protocols through the
gnomevfs library, and this was under extension. This may not have been
built by default when it was introduced, but GNOME upstream moved those
things into Gtk itself, and we then got support for the new Gio-based
protocol, similar to what we had through the gnomevfs library.

Time passes, and we switched off the gnomevfs library entirely, and
enabled the Gio-based protocol handlers by default. We then removed
everything related to the gnomevfs library.

Fast forward to now, and disabling Gio support in Firefox just doesn't
make sense, and leaving the gio protocol handler as an extension doesn't
make sense either.

As it is a protocol handler, its natural place is under
netwerk/protocol, which is where we're moving it here.

The netwerk/protocol subdirectories being handled automatically, we
don't need to add the moved directory in any DIRS variable.

--HG--
rename : extensions/gio/moz.build => netwerk/protocol/gio/moz.build
rename : extensions/gio/nsGIOProtocolHandler.cpp => netwerk/protocol/gio/nsGIOProtocolHandler.cpp
extra : rebase_source : 071a9cb1769f013717357458df24e2fd9570ccf4
2017-04-05 13:48:52 +09:00
Wes Kocher
4778bff897 Merge m-c to autoland, a=merge 2017-04-06 15:10:53 -07:00
Patrick McManus
01f6a3a07d Bug 1281278 - test coverage for h2 push with brotli r=nwgh
MozReview-Commit-ID: 84LZRLsefJD

--HG--
extra : rebase_source : 44aff3361b08ef412ae747097ab6e68adcabb28f
2017-04-06 13:40:26 -04:00
Carsten "Tomcat" Book
7408344f87 Merge mozilla-central to mozilla-inbound 2017-04-06 13:10:09 +02:00
Liang-Heng Chen
b3e3c65d2e Bug 1351340 - check null pointer before using; r=bagder
MozReview-Commit-ID: LJ0FtjZTKq3

--HG--
extra : rebase_source : 2c6435d50204ad0f845ca9c74aa46bb7e4b20c29
2017-04-01 10:23:03 +08:00
Daniel Stenberg
158a13ee0b Bug 1349419 - Do fallible memory alloc and return failure to avoid OOM crash. r=mcmanus 2017-03-24 02:59:00 -04:00
Iris Hsiao
15a34cacd2 Backed out 3 changesets (bug 1344038) for bustage
Backed out changeset 4befea89d81b (bug 1344038)
Backed out changeset c859506b2e4e (bug 1344038)
Backed out changeset 5d28a6382285 (bug 1344038)

--HG--
rename : netwerk/protocol/gio/moz.build => extensions/gio/moz.build
rename : netwerk/protocol/gio/nsGIOProtocolHandler.cpp => extensions/gio/nsGIOProtocolHandler.cpp
2017-04-06 10:35:56 +08:00
Mike Hommey
0543a25916 Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : b380d5ebfc3689a9d8d4e3825c83028f837838f2
2017-04-05 14:06:25 +09:00
Mike Hommey
753d2ac01e Bug 1344038 - Move the gio protocol handler under netwerk/protocol. r=karlt
Historically, we had support for some GNOME VFS protocols through the
gnomevfs library, and this was under extension. This may not have been
built by default when it was introduced, but GNOME upstream moved those
things into Gtk itself, and we then got support for the new Gio-based
protocol, similar to what we had through the gnomevfs library.

Time passes, and we switched off the gnomevfs library entirely, and
enabled the Gio-based protocol handlers by default. We then removed
everything related to the gnomevfs library.

Fast forward to now, and disabling Gio support in Firefox just doesn't
make sense, and leaving the gio protocol handler as an extension doesn't
make sense either.

As it is a protocol handler, its natural place is under
netwerk/protocol, which is where we're moving it here.

The netwerk/protocol subdirectories being handled automatically, we
don't need to add the moved directory in any DIRS variable.

--HG--
rename : extensions/gio/moz.build => netwerk/protocol/gio/moz.build
rename : extensions/gio/nsGIOProtocolHandler.cpp => netwerk/protocol/gio/nsGIOProtocolHandler.cpp
extra : rebase_source : fe3c9480cee468aa2a24fd34e569b58e4f2c9c9a
2017-04-05 13:48:52 +09:00
Carsten "Tomcat" Book
7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
Wes Kocher
f18ad1cfc8 Merge m-c to autoland, a=merge 2017-04-04 11:28:54 -07:00
Carsten "Tomcat" Book
a0fea1ad49 Merge mozilla-central to mozilla-inbound 2017-04-04 12:37:56 +02:00
Carsten "Tomcat" Book
14e0b51ace merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Christoph Kerschbaumer
78d8448ba5 Bug 1352778 - Do not reset triggeringPrincipal but only principalToInherit within loadInfo when forced to. r=gijs 2017-04-03 20:06:53 +02:00
Hideki Takeoka
613f5321ec Bug 1351948 - Refuse ws messages that don't use minimal encoding. r=michal
--HG--
extra : rebase_source : 269bb3854d523e4100e5c1eda65b006bb15ae00d
2017-04-03 10:49:22 -04:00
Paul Bignier
166ed99e17 Bug 1352805 - Typo fixes in comments around "unfortunately". r=MattN
MozReview-Commit-ID: B76JuHabq9T
2017-04-03 09:23:00 -07:00
Nicholas Hurley
89c508224f Bug 1348462 - Use a process-unique uint64 instead of a uuid for request context ids r=mcmanus
--HG--
extra : rebase_source : 84541f78eeec1a5e202c12b57131ede9834f687a
2017-03-23 07:40:36 -07:00
Ehsan Akhgari
929501a6eb Bug 1351980 - Initialize and uninitialize UserAgentOverrides.jsm for Firefox; r=mconley 2017-04-04 21:18:21 -04:00
Patrick McManus
2011955e49 Bug 1353497 - h2 pushes against origin set need implicit SNI r=nwgh 2017-04-04 14:51:32 -04:00
Patrick McManus
67312678e2 bug 1337791 - disable h2 origin test for android that has no server r=test-only 2017-04-04 17:01:37 -04:00
Patrick McManus
0ef4fc0939 Bug 1337791 - Part 3: http/2 origin frame extension test. r=nwgh 2017-04-03 17:24:49 -04:00
Patrick McManus
06bd9a4bae Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
Patrick McManus
58fc1b834e Bug 1337791 - Part 1: JoinConnection() from psm. r=keeler 2017-04-03 17:23:09 -04:00
Nicholas Hurley
0d16807831 Bug 1353082 - don't prefetch is there's a query string r=mcmanus
--HG--
extra : rebase_source : 585c5dadd4ae2fbf3520498bad5c0a2ab9f8eb97
2017-03-27 14:56:05 -07:00
Daniel Stenberg
2cf3b46872 Bug 1344467 - Clear the format type for unknown types. r=valentin
To make sure the last (unknown) entry is always -1.

Also, nsDirIndexParser::ParseFormat() must return OK even when bailing
out early to not cause subsequent problems.

--HG--
extra : rebase_source : fea969159e73ff2f438dd42559e87ad8eb183acf
2017-03-31 17:34:57 -04:00
Daniel Stenberg
267eba61cb Bug 1346419 - Bail out on zero length data. r=valentin
Since we cannot call .First() on it and since it clearly contains
nothing to show anyway!

--HG--
extra : source : ecd714c21c5bd643875d85101dccaaeff18bd350
extra : amend_source : 22307168ed9289c36dade3f33a7c3ded93b5612c
2017-03-22 10:08:47 +01:00
Eric Rahm
5e28f26c18 Bug 1351820 - Build more more netwerk files in unified mode. r=mcmanus
This updates the unifed sources for a few netwerk build files. In some cases
files were excluded because we thought they used plarena.h, but that turned
to be false.

A few files needed to be updated to add missing imports/exports due to shifting
of compilation units.

MozReview-Commit-ID: 4mh8VApFoe1
2017-03-31 11:00:10 -07:00
Sebastian Hengst
d4679cd05d Backed out changeset 15e815413234 (bug 1351980) for asserting on Android, e.g. in test_pseudoElement-get-animations.html. r=backout 2017-03-31 18:39:46 +02:00
Ehsan Akhgari
a3580de587 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 09:54:28 -04:00
Sebastian Hengst
e3bcc5dcd8 Backed out 2 changesets (bug 1351980) for asserting in Android tests, e.g. test_hc_noderemovechildnode.html. r=backout
Backed out changeset fbc8e05e5251 (bug 1351980)
Backed out changeset 1c7c92033bb1 (bug 1351980)
2017-03-31 15:38:38 +02:00
Carsten "Tomcat" Book
4ac9c2ffb1 Merge mozilla-central to mozilla-inbound 2017-03-31 14:47:54 +02:00
Carsten "Tomcat" Book
095969b8ee merge mozilla-inbound to mozilla-central a=merge 2017-03-31 14:45:33 +02:00
Ehsan Akhgari
af1cabba18 Bug 1351980 - Initialize the UserAgentOverrides.jsm module at startup and shut it down at shutdown for all Gecko applications instead of relying on each one to do it on its own; r=schien 2017-03-31 07:37:59 -04:00
Phil Ringnalda
4cb08c4110 Backed out 2 changesets (bug 1351831, bug 1351820) for Windows build bustage
CLOSED TREE

Backed out changeset 91c2f1592df1 (bug 1351831)
Backed out changeset f825bdbb2ece (bug 1351820)
2017-03-30 19:21:06 -07:00
Eric Rahm
e5c9b989b3 Bug 1351820 - Build more more netwerk files in unified mode. r=mcmanus
This updates the unifed sources for a few netwerk build files. In some cases
files were excluded because we thought they used plarena.h, but that turned
to be false.

A few files needed to be updated to add missing imports/exports due to shifting
of compilation units.

MozReview-Commit-ID: 4mh8VApFoe1
2017-03-30 18:32:17 -07:00
Dragana Damjanovic dd.mozilla@gmail.com
83c58678dc Bug 1344171 - Improve connection management. r=mcmanus 2017-03-30 11:08:00 -04:00
Valentin Gosu
85ac9821e0 Bug 1354245 - Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref r=mcmanus
MozReview-Commit-ID: 4xCkBgWDZ2b

--HG--
extra : rebase_source : 8bce4e1fb98e9c8dd2c8119ee59df2cfbb62efb3
2017-04-12 17:52:14 +03:00
Nicholas Hurley
717c8bdd83 Bug 1346392 - force non-spdy on sticky auth connections. r=dragana
MozReview-Commit-ID: IkYTVgetKsn

--HG--
extra : rebase_source : 18a903dec51e152688e045eeb410541b219a6189
2017-03-28 17:15:23 -07:00
Cervantes Yu
364e524eca Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Valentin Gosu
223b5464d4 Bug 1325341 - Query the cache index to get if the entry has alt data and its fileSize r=michal
MozReview-Commit-ID: 6wqsexqJq3u
2017-04-10 14:22:23 +03:00
Valentin Gosu
484c99c581 Bug 1325341 - Add code that triggers racing the network and cache requests r=michal
The racing algorithm is quite simple at this point:
If racing is enabled, the request is allowed to hit the network, and the cache queue size is bigger than a certain threshold, then we trigger the network right before we query the cache.

MozReview-Commit-ID: JklG4P1eRyO
2017-04-10 14:22:20 +03:00
Carsten "Tomcat" Book
02ddc23c74 Backed out changeset 7a52d887bcea (bug 1024669) for bustage 2017-04-10 11:43:49 +02:00
Cervantes Yu
ece1ce1a7d Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Kris Maglione
9e5e71f548 Bug 1350680: Correctly handle null loadInfo in SubstituteChannel. r=ckerschb
MozReview-Commit-ID: 7aWuc874lTO

--HG--
extra : rebase_source : 72e518ebe9343b5f42590b4772e77198c4d657cb
2017-03-28 13:01:48 -07:00
Michal Novotny
791ecf863b Bug 1342360 - "Crash in mozilla::net::WyciwygChannelParent::ActorDestroy" .r=valentin.gosu 2017-03-02 05:00:00 +08:00
Shih-Chiang Chien
500ffabe47 Bug 1351558 - make sure PHttpChannel destroy procedure will only be done once. r=dragana
MozReview-Commit-ID: 34RIiNpwmea

--HG--
extra : rebase_source : cb08c78d5f4af3a79aa2d5b0e4a6d911b2e4c499
2017-03-29 17:34:12 +08:00
Shih-Chiang Chien
61d37d2376 Bug 1351558 - double check mIPCOpen flag before we send IPC message. r=dragana.
MozReview-Commit-ID: 3CqA3e4frd8

--HG--
extra : rebase_source : 813fe86a8721ca3735aee211ba48c0a9d88d0d1b
2017-03-29 16:34:15 +08:00
Tim Huang
5b58823c38 Bug 1349903 - Remove the code section of getting originAttributes from loadInfo in HttpChannelParent::DoAsyncOpen() and add a null check for loadInfo. r=mayhemer
The code section of getting originAttributes from loadInfo in HttpChannelParent
::DoAsyncOpen() is no longer needed since AppId is gone and the originAttributes
here is for AppId.

And we also need a null check for loadInfo that every channel should have a
loadInfo.

MozReview-Commit-ID: CQe8wlEo0GP
2017-03-29 17:45:26 +08:00
Dragana Damjanovic dd.mozilla@gmail.com
1b122c8a97 Bug 1351392 - Fix NS_STATUS_TLS_HANDSHAKE_STARTING/ENDED transport status events for http2 and ftp. r=mcmanus 2017-03-28 10:36:00 +08:00
Phil Ringnalda
93abf48bf7 Backed out changeset d11fb28f9b9c (bug 1344171) for crashes in test_altsvc.js 2017-03-28 21:04:43 -07:00
Ehsan Akhgari
f2a992e41a Bug 1347425 - Part 3: Remove the site-specific user agent service; r=baku,jchen
This used to be the glue layer between DOM and Necko which is no longer
being used.
2017-03-28 22:10:53 -04:00
Ehsan Akhgari
30f6ca0075 Bug 1347425 - Part 2: Add a test for replacing multiple occurrences of a regex in the site-specific UA override; r=mcmanus 2017-03-28 22:10:51 -04:00
Ehsan Akhgari
c2e08ee61a Bug 1347425 - Part 1: Move site-specific Navigator.userAgent overrides to a more efficient C++ implementation; r=baku,schien
Necko computes this information in order to set the User-Agent header in
the parent process.  This header is set on all outgoing requests, and
therefore in the content process we can easily copy the value of this
header from the document channel object instead of the inefficient sync
IPC that currently happens in order to access the JavaScript
implementation living in the parent process.
2017-03-28 22:10:33 -04:00
Michal Novotny
bf0e813741 Bug 1347948 - Report time that channel spent suspended between AsyncOpen and OnStartRequest. r=honzab, data-review=bsmedberg 2017-03-24 07:37:00 -04:00
Amy Chung
9d5b5e4ec2 Bug 1348041 - Change default value of network.http.max-urgent-start-excessive-connections-per-host to 3. r=mayhemer 2017-03-29 01:47:18 +08:00
Dragana Damjanovic dd.mozilla@gmail.com
2228833a21 Bug 1344171 - Improve connection management. r=mcmanus
--HG--
extra : rebase_source : 987fc7c7b9b3a5f3b55954ae9f976d7266b726de
2017-03-28 10:19:00 -04:00
Wes Kocher
914dd4b76c Merge inbound to m-c a=merge 2017-03-28 13:30:56 -07:00
Patrick McManus
ebb183c37d Bug 1350719 injected http response header 0rtt r=dragana 2017-03-26 14:28:20 -04:00
Carsten "Tomcat" Book
1bff8bff6d Merge mozilla-central to autoland 2017-03-28 13:06:52 +02:00
Carsten "Tomcat" Book
5b9719c5fc merge mozilla-inbound to mozilla-central a=merge 2017-03-28 13:03:25 +02:00
Shih-Chiang Chien
306b7f81c6 Bug 1320744 - Part 3, implement nsIThreadRetargetableRequest in HttpChannelChild. r=mayhemer
MozReview-Commit-ID: FyLXlkQde3h

--HG--
extra : rebase_source : 88e9c56a73d268e1313c654c78a14e7b7d04fd9b
2017-03-20 17:29:07 +08:00
Shih-Chiang Chien
6223873c22 Bug 1320744 - Part 2, Allow ChannelEventQueue to perform flush on multiple threads. r=mayhemer
MozReview-Commit-ID: Egu2mvwFTUF

--HG--
extra : rebase_source : 5627acad147bb0881897d93a7eddd2715cf9f3c5
2017-03-18 11:36:08 +08:00
Zibi Braniecki
5b976eeccb Bug 1347272 - Move ChromeRegistry::IsLocaleRTL to LocaleService::IsAppLocaleRTL. r=jfkthame
MozReview-Commit-ID: BDhgIKNSOEL

--HG--
extra : rebase_source : 6a009ba4d397e6794e86c87c10982fdfb8e7ba08
2017-03-14 12:35:06 -07:00
Iris Hsiao
394f455b8e Backed out changeset c7174ac72d14 (bug 1347272) for build bustage
--HG--
extra : amend_source : b4f3d5997190ce3db799e3586131cc3cb9ce034d
2017-03-28 18:16:33 +08:00
Zibi Braniecki
70c168c03f Bug 1347272 - Move ChromeRegistry::IsLocaleRTL to LocaleService::IsAppLocaleRTL. r=jfkthame
MozReview-Commit-ID: BDhgIKNSOEL

--HG--
extra : rebase_source : 8440ae6b21887bae5142c86220f02092d1b12aed
2017-03-14 12:35:06 -07:00
Shih-Chiang Chien
44d29bb3d9 Bug 1320744 - Part 1, make refcounter of HttpChannelChild thread-safe. r=mayhemer
MozReview-Commit-ID: 5Br1WLlpvcR

--HG--
extra : rebase_source : 568b0e6178389222197bfbc0093e05fc6cae0794
2017-02-07 17:25:45 +08:00
Wes Kocher
c802acc868 Merge m-c to inbound, a=merge
MozReview-Commit-ID: L6QuPmxL0XP
2017-03-27 17:18:39 -07:00
Kershaw Chang
b9c0cd1f09 Bug 1312782 - Part 3: Test case. r=honzab 2017-03-27 04:10:00 -04:00
Kershaw Chang
790b8fd7ef Bug 1312782 - Part 2: Create urgent http requests until server receive all common http requests. r=honzab 2017-03-27 04:10:00 -04:00
Kershaw Chang
99ed04a411 Bug 1312782 - Part 1: Implement window id to pending transactions table. r=honzab 2017-03-27 04:09:00 -04:00
Michael Froman
31e4ce10aa Bug 1350055 - fix --disable-webrtc build with new PStunAddrsRequest.ipdl r=jduell
MozReview-Commit-ID: 5oxJtUppHWC

--HG--
extra : rebase_source : 7cfbddb1168711439530b3ead47bd35bec70ab80
2017-03-23 20:04:41 -05:00
Honza Bambas
457d2d7ac1 Bug 1316358 - Mark HSTS priming requests as urgent start. r=kmckinley 2017-03-01 06:12:00 -05:00
Carsten "Tomcat" Book
b8968ab8de Backed out changeset 5ddd3bdbb8d4 (bug 1344467) for suspicion this cause timeouts in browser chrome tests 2017-03-27 13:59:10 +02:00
Carsten "Tomcat" Book
44d8602f66 Backed out changeset ecd714c21c5b (bug 1346419) 2017-03-27 13:58:38 +02:00
Carsten "Tomcat" Book
153e8c9aba Backed out changeset 9a714b38cd55 (bug 1349419) 2017-03-27 13:58:35 +02:00
Daniel Stenberg
1bdeb0ab34 Bug 1349419: do fallible memory alloc and return failure, r=mcmanus
...to avoid OOM crash.
2017-03-24 02:59:00 +01:00
Daniel Stenberg
32d6aae91a Bug 1346419 - bail out on zero length data, r=valentin
Since we cannot call .First() on it and since it clearly contains
nothing to show anyway!
---
 netwerk/streamconv/converters/nsIndexedToHTML.cpp | 4 ++++
 1 file changed, 4 insertions(+)
2017-03-22 10:08:47 +01:00
Daniel Stenberg
1ccb30842b Bug 1344467 - clear the format type for unknown types r=valentin
To make sure the last (unknown) entry is always -1
---
 netwerk/streamconv/converters/nsDirIndexParser.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
2017-03-23 15:56:32 +01:00
Liang-Heng Chen
6ef4dc3d4d Bug 1348841 - switch on blocking mode for named-pipe only on windows; r=bagder,mayhemer
MozReview-Commit-ID: Gvm88q26VHK

--HG--
extra : rebase_source : 188b65cba6b4ecb243b4b6ab8c55733f82217567
2017-03-22 14:58:03 +08:00
Dão Gottwald
e70333a23d Bug 1348359 - Remove unused files from chrome://global/skin/dirListing/. r=florian
MozReview-Commit-ID: 4n8KxGUvyVE

--HG--
extra : rebase_source : 450d98c329590260e707731b9c4afc277a67edc8
2017-04-21 16:14:49 +02:00
Carsten "Tomcat" Book
7eb0555001 Merge mozilla-central to autoland 2017-04-21 12:12:08 +02:00
Thomas Nguyen
ae9e3b7638 Bug 1353853 - Cache preferences when doing channel classify r=francois
We will cache all preferences which will be read during classifing channel
- Store them into static variables nsUrlClassifierDBService
- Use a singleton class to manage/update preferrences in nsChannelClassifier

MozReview-Commit-ID: GvyBI3rVpYh

--HG--
extra : rebase_source : 0cec0724bd47f55c7b1666e700d172698a708efb
2017-04-18 17:00:27 +08:00
Florian Queze
ea6ac7cbf2 Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws. 2017-04-14 21:51:40 +02:00
Florian Queze
f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
693365fa1c merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-15 00:10:03 +02:00
Sebastian Hengst
159215e6f4 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst
738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Sebastian Hengst
42df6d8c4d Backed out changeset f85a9a62c5bb (bug 1356569) 2017-04-14 23:39:15 +02:00
Ehsan Akhgari
ad11e2f4ca Remove a stale comment, no bug, DONTBUILD 2017-04-14 16:03:57 -04:00
Ehsan Akhgari
95653b9117 Bug 1355631 - Cache the network.cookie.staleThreshold in nsCookie, and compute it lazily; r=jdm 2017-04-14 16:02:02 -04:00
Florian Queze
284974064e Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws. 2017-04-14 21:51:40 +02:00
Florian Queze
3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze
a363fb8c8b Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Michael Layzell
661470315c Bug 1349634 - Ensure that HttpChannelParent isn't closed before accessing its Manager(), r=billm
MozReview-Commit-ID: EXHeRpN36yU
2017-03-24 15:53:00 -04:00
Carsten "Tomcat" Book
5f408d092d Merge mozilla-central to mozilla-inbound 2017-03-24 14:29:00 +01:00
Carsten "Tomcat" Book
7419b36815 merge mozilla-inbound to mozilla-central a=merge 2017-03-24 14:24:21 +01:00
Kris Maglione
3107e48e00 Bug 1348442: Part 4 - Remove support for synchronously loading localized extension CSS. r=jdm
After switching to loading content stylesheets asynchronously, there are no
longer any consumers that require a synchronous channel to load localized CSS,
so these workarounds are no longer necessary.

MozReview-Commit-ID: AwLSmYf9qL3

--HG--
extra : rebase_source : d5f34c37e91478bb656014d53011ba2f504fe0e8
2017-03-17 16:46:59 -07:00
Valentin Gosu
85893b625c Bug 1344498 - Use fallible string.StripWhitespace to avoid OOM r=mcmanus
MozReview-Commit-ID: 9wosC46DNcX

--HG--
extra : rebase_source : 266a4c722d32d9e924d5450c000740f80c145bc3
2017-03-23 12:54:38 +01:00
Thinker K.F. Li
837f48f1f8 Bug 1323076 - Part 5: Necko with flag checking for TaskTracer. r=mayhemer 2017-03-22 21:53:00 +01:00
Kershaw Chang
3b3bf39b5a Bug 1343761 - Use SystemGroup to dispatch runnables in DNSRequestChild, r=mayhemer
--HG--
extra : rebase_source : b2d0aa4e0ed2aca8b79b9c3ff024609b717c0ead
2017-03-23 23:33:00 +01:00
Kershaw Chang
07398398a4 Bug 1343750 - Part2: Label runnable and IPC actor in FTPChannelChild, r=mayhemer
--HG--
extra : rebase_source : ea62f6fcdc87545028ef754a054e944775b26d42
2017-03-23 23:31:00 +01:00
Kershaw Chang
7f62e4602e Bug 1343750 - Part1: Add an API to get Dispatcher from nsILoadInfo, r=mayhemer
--HG--
extra : rebase_source : 5fba371b7bfe8b4704b346f57953aa447662aef8
2017-03-23 23:31:00 +01:00
Carsten "Tomcat" Book
9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Carsten "Tomcat" Book
534f3aebc6 Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
Carsten "Tomcat" Book
62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Andrea Marchesini
507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Andrea Marchesini
1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00