Commit Graph

14592 Commits

Author SHA1 Message Date
Patrick McManus
e7245fc847 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 64449c6bd743119ea7626a3b2b2b91a376280021
2017-05-05 18:12:36 -04:00
Patrick McManus
eab0a004e6 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 01d3020eb952ec286be30b937476161a403215ff
2017-05-05 17:51:13 -04:00
Shih-Chiang Chien
d9626ddc70 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until nsHttpHandler is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of nsHttpHandler in chrome process.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : b516209f96ec81deb54aab3c038803beb3cea441
2017-05-12 17:13:01 +08:00
Shih-Chiang Chien
0381369d6c Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Nicholas Hurley
23ce343ec5 Bug 1360574 - Detect & handle connection auth at the http/2 layer. r=mcmanus
This is also the non-broken way to fix bug 1346392. Instead of waiting
until the auth handler gets its hands on things, we break layering a bit
and inspect the response headers as soon as we decompress them to see if
there's any connection-oriented auth being requested. If there is, we
treat the situation as if we got a RST_STREAM or GOAWAY with
HTTP_1_1_REQUIRED.

We were able to re-purpose the NS_ERROR_ABORT code path that was
previously used with an inappropriate HTTP status code when talking to
an HTTPS proxy over http/2, as that usage was removed a while back from
the stream, though we still had the (dead) code in the session to handle
the stream giving us that return value. The error code was changed to
NS_ERROR_NET_RESET, however, to give a better description of what's
going on.

MozReview-Commit-ID: DLjOIIiXGrV

--HG--
extra : rebase_source : 703fde39432808cabd05b48aa40165e53ebc5ed1
2017-05-11 14:42:05 -07:00
Nicholas Hurley
e34c25dfc7 Bug 1360574 - Backout original fix to bug 1346392 r=mcmanus
MozReview-Commit-ID: 1ljoiCXciRq

--HG--
extra : rebase_source : e7cead30d7e6ffef73a988d3c7afcbafce8baedd
2017-05-11 10:20:14 -07:00
Wes Kocher
8eaf64f920 Backed out 2 changesets (bug 1362388) for android build bustage in nsHttpChannel.cpp a=backout
Backed out changeset f5b4fbe31c01 (bug 1362388)
Backed out changeset 446ecc3f5715 (bug 1362388)

MozReview-Commit-ID: DI01cDPrgM7
2017-05-12 13:58:28 -07:00
Shih-Chiang Chien
0131b8b831 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until first nsHttpChannel is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of the first nsHttpChannel.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : 7c3649b50ad8594dc0968961fbbd2766d0d98b0a
2017-05-16 12:11:12 +08:00
Shih-Chiang Chien
7f847e5b32 Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Patrick McManus
1a4ed2cc65 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 78dbd5cae35bc6cb1ce2f03192226cb85564298e
2017-05-05 18:12:36 -04:00
Patrick McManus
3db60df302 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : ad15d3aad5d0d271acd5cd35dbfbf72e432bcdd7
2017-05-05 17:51:13 -04:00
Milan Sreckovic
43933b80d8 Bug 1358225: Validate characters with a cached lookup array. About 10-15% improvement on TestStandardURL.Perf gtest. r=valentin.gosu
MozReview-Commit-ID: KMABJ3X6IZ1

--HG--
extra : rebase_source : c5bde6642a193e47628226a38d6ec9d8366aaa90
2017-05-15 11:53:40 -04:00
Honza Bambas
70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Wes Kocher
a9e00345ce Merge m-c to autoland, a=merge
MozReview-Commit-ID: IPDj8kOq5ec
2017-05-11 17:43:27 -07:00
Wes Kocher
3416c23dad Backed out changeset 0a25a0fa3b32 (bug 1362822) for osx debug devtools timeouts a=merge
MozReview-Commit-ID: 3LMChZJEBHp

--HG--
extra : source : 50940861284c3c6f804a5c7e1ab90b4ddf55b684
2017-05-11 15:23:43 -07:00
Wes Kocher
f1c0f35ea6 Merge inbound to m-c a=merge
MozReview-Commit-ID: HCapLqbD816
2017-05-11 17:30:41 -07:00
Sebastian Hengst
a477978a5d Backed out changeset a418e4a81c02 (bug 1362388) for build bustage from netwerk/protocol/http/nsHttpChannel.cpp:597 not being declared. r=backout 2017-05-11 18:01:01 +02:00
Sebastian Hengst
4dc5072fcb Backed out changeset fef09999e003 (bug 1362388) 2017-05-11 18:00:09 +02:00
Patrick McManus
f48decf9ef Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 6b3b210a8f6736887b5076c90621d678b038bcad
2017-05-05 18:12:36 -04:00
Patrick McManus
20a6e4849c Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 3cd535eb604a78551f6a6043088701e1d1fc40ce
2017-05-05 17:51:13 -04:00
Ryan VanderMeulen
ff1d6f6f88 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Wes Kocher
02bf8c4425 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FfNikA7un6F
2017-05-10 17:31:18 -07:00
Wes Kocher
1b5ad2c128 Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Dragana Damjanovic
1b299341de Bug 1362978 - Remove callbacks on socketInput stream if we cancel a TFO socketTransport. r=mcmanus 2017-05-10 22:54:27 +02:00
Valentin Gosu
4ccb51bae2 Bug 1363700 - Add RCWN stats to about:networking r=bz,michal
MozReview-Commit-ID: GVt1omCfL6t

--HG--
extra : rebase_source : fdb321360f21f0f54692bc6b715abb4c155171b7
2017-05-10 19:23:54 +02:00
Patrick McManus
580ef98764 Bug 1362498 - cache some networking mozilla::services r=bagder
MozReview-Commit-ID: G61lDIOKcm

--HG--
extra : rebase_source : 83d3f8258234f85145f485ae35e6ac07e77bac98
2017-05-05 14:32:19 -04:00
Junior Hsu
d30acfedb7 Bug 1363472 - Ensure that the wyciwyg constructor isn't sent when shutting down. r=valentin 2017-05-09 23:57:00 -04:00
Valentin Gosu
b830ea1f6d Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer
This patch prevents the following error:
AltDataOutputStreamChild::Close -> SendClose()
AltDataOutputStreamChild::Release -> Send__delete__()
AltDataOutputStreamParent::RecvClose() -> SendError()
AltDataOutputStreamParent::ActorDestroy -> mIPCOpen = false
AltDataOutputStreamChild::RecvError -> === Crash - object was deleted ===

We introduce the DeleteSelf message.
AltDataOutputStreamChild::Release -> SendDeleteSelf()
AltDataOutputStreamParent::RecvDeleteSelf -> mIPCOpen = false; SendDeleteSelf()
AltDataOutputStreamChild::RecvDeleteSelf -> Send__delete__()

The parent will not send any more messages after receiving the DeleteSelf message.

MozReview-Commit-ID: I9RQ5I7eSt9

--HG--
extra : rebase_source : 8f918d24595248149ebd3857e05e38dc5237059b
2017-05-11 21:35:37 +02:00
Valentin Gosu
28675dc927 Bug 1360328 - Dispatch a runnable to RecheckCaptivePortal instead of calling it immediately r=mcmanus
MozReview-Commit-ID: HUPJUtho7g8

--HG--
extra : rebase_source : 7e3d9c787569352a598e0efe3393a3d9c14a637a
2017-05-08 13:19:40 +02:00
Milan Sreckovic
725d1c193f Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
MozReview-Commit-ID: 5ugh3Ma0OtH

--HG--
extra : rebase_source : 956a7a0535c3b7433fadfa65d0cfc26d9915f61a
2017-05-10 13:12:36 -04:00
Ralph Giles
f56cb16c14 Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust
compiler and are committed to adding more. Remove this
last vestige of conditional support.

MozReview-Commit-ID: EK6FBnAbR

--HG--
extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
2017-05-09 11:36:13 -07:00
Carsten "Tomcat" Book
d66b9f27d5 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Bill McCloskey
c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Wes Kocher
e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Andi-Bogdan Postelnicu
dae38132c5 Bug 1363336 - eliminate useless null-check in for |fd|. r=dragana
MozReview-Commit-ID: KQGPjDMviuj

--HG--
extra : rebase_source : beb126a082f95de25d5c6b08496c1fc54b4b21d9
2017-05-09 16:37:05 +03:00
Dragana Damjanovic
1385efd212 Bug 1362959 - Call SetFastOpenConnected only if socketTransport has TFO in progress. r=mcmanus 2017-05-10 00:24:48 +02:00
Dragana Damjanovic
5512738e6d Bug 1363448 - Let nsHttpConnectionMgr behave properly if StartFastOpen fails (which is conn->Activate() failing). r=mcmanus 2017-05-10 00:18:27 +02:00
Michael Layzell
d50b0587a8 Bug 1363243 - Avoid checking nsPermissionManager in nsContentBlocker when no preload permissions are set, r=ehsan
MozReview-Commit-ID: B8A8QXie8SX
2017-05-11 10:06:25 -04:00
Ehsan Akhgari
40f9159875 Bug 1362822 - Avoid needlessly holding locks when setting headers during the initialization of HTTP channel objects; r=schien,dragana
The channel objects cannot be handed off to other threads before the creation
process has been finished, so there is no point in trying to hold these locks
while the initialization code is running.  These lockings have shown up in
profiles as being expensive.
2017-05-11 09:23:30 -04:00
Jonathan Kingston
d9b9a81f4e Bug 1334587 - Fix cookie store removal and updating to use originAttributes. r=baku
MozReview-Commit-ID: HpdlT4gxrl0

--HG--
extra : rebase_source : e34967207ee07f30f236402a24212eeb810c6b1b
2017-04-16 17:58:53 +01:00
Carsten "Tomcat" Book
76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
62b9fc4ab8 Bug 1357835 - Extend telemetry for http autentication dialog prompt to show the subresource cross-origin auth dialog prompt per suresource type. Also add a pre to putentially disable auth propts for the cross-origin images. r=mayhemer r=ckerschb r=francois 2017-05-09 12:36:21 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
bf4c15a65c Bug 136178 - Keep list of weakPtrs instead of streamIds of streams started during 0rtt. r=mcmanus 2017-05-09 11:37:45 +02:00
Wes Kocher
73b318df0a Backed out changeset 7cd208304d1f (bug 1363472) for being a possible cause of failures in test_animSVGImage.html a=backout
MozReview-Commit-ID: KU4GKyDD2ne

--HG--
extra : rebase_source : d66a936a81723d1dcb7032f28d50b5582d748fa9
2017-05-10 10:15:39 -07:00
Wes Kocher
0070a44b21 Backed out 3 changesets (bug 469228) for being a possible cause of frequent test_animSVGImage.html failures a=backout
Backed out changeset 1431c80b02ef (bug 469228)
Backed out changeset 8d46046a7367 (bug 469228)
Backed out changeset 2e22c0308a7e (bug 469228)

MozReview-Commit-ID: AMRASDPCWu3

--HG--
extra : rebase_source : 46b5ee0f67ffeaec31e1ef379a2e86c20cdee989
2017-05-10 10:13:54 -07:00
Carsten "Tomcat" Book
455239782b Merge mozilla-central to mozilla-inbound 2017-05-10 15:30:44 +02:00
Kershaw Chang
2dd6b7d519 Bug 469228 - Part2: Modify tests that can not pass, r=Waldo 2017-05-10 03:49:00 +02:00
Kershaw Chang
5a57a9f87d Bug 469228 - Part1: Support keep-alive, r=Waldo 2017-05-10 03:48:00 +02:00
Junior Hsu
d9ef6fd797 Bug 1363472 - Ensure not sending wyciwyg constructor when shutting down, r=valentin 2017-05-09 23:57:00 +02:00
Kershaw Chang
9ea8bbb5d9 Bug 1352176 - Part2: Pass an event target when calling nsInputStreamPump::Create, r=mayhemer 2017-05-09 20:05:00 +02:00
Kershaw Chang
2d78667ba8 Bug 1352176 - Part1: Pass a labeled event target when initializing nsInputStreamPump, r=mayhemer
Since the mTargetThread in nsInputStreamPump is directly acquired from current or main thread, we need to pass another labeled main thread target to dispatch runnables to the correct tab/doc group.
2017-05-09 19:59:00 +02:00
Jonathan Watt
33cfc4aa43 Bug 1362891, part 2 - Make use of XRE_IsE10sParentProcess in code that could use it. r=froydnj
MozReview-Commit-ID: 81PFEgNH37m

--HG--
extra : rebase_source : 350b11b3bec652472565bd590ef13680e480a75e
2017-04-24 10:40:12 +01:00
Wes Kocher
f5ba7a67d6 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9QuGHXqdxTb
2017-05-08 16:14:34 -07:00
Wes Kocher
cbfdaf8fb2 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 5kxOZZxjMEl
2017-05-08 16:07:25 -07:00
Dragana Damjanovic
b035817315 Bug 1362821 - Properly destroy a HalfOpeSocket that is used as a backup for a TFO connection if another H2 connection is established for the same host. r=mcmanus 2017-05-08 18:22:45 +02:00
Amar Lakshya
077409e068 Bug 633747 - about:cache now displays 'Expired Immediately' for 1970-01-01 01:00:00 r=mayhemer
MozReview-Commit-ID: 89CX7UqwuXl

--HG--
extra : rebase_source : b8d9a8fba8ff017b5633c093c57127076c77757a
2017-05-02 20:48:34 +05:30
Dragana Damjanovic dd.mozilla@gmail.com
87f75e4bea Bug 1362861 - Call SetFastOpenStatus only if we have httpTransaction. r=mcmanus 2017-05-08 15:33:44 +02:00
Amar Lakshya
badcf950f5 Bug 633747 - about:cache displays "Expires: 1970-01-01 01:00:00" r=mayhemer
MozReview-Commit-ID: BAn8EFYGeux

--HG--
extra : rebase_source : 1bf1626578e22f14ee3c7511227c4106758d07b3
2017-04-29 01:24:29 +05:30
Dragana Damjanovic
6ad0af18de Bug 1363108 - Fix some small bugs connectied to tcp fast open. r=mcmanus 2017-05-08 22:15:26 +02:00
Gijs Kruitbosch
2c13f23a54 Bug 1360842, r=valentin
MozReview-Commit-ID: B7uG3ShaGuH

--HG--
extra : rebase_source : 92813be22a7554fec17981bf14903a526145fed2
extra : amend_source : 30643e1d5a4b942d4069e3dd28b5f736cb7fdc18
2017-05-04 11:28:04 +01:00
Dragana Damjanovic
7a6c685fd1 Bug 1363034 - Do not make new transactions for backupSocketTransport, behave as nsHttpConnectionMgr used to behave. r=mcmanus 2017-05-08 20:17:47 +02:00
Ehsan Akhgari
e0f12d7786 Bug 1362806 - Optimize NS_GetDefaultPort() for HTTP(S); r=mcmanus 2017-05-07 22:34:02 -04:00
Carsten "Tomcat" Book
fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Valentin Gosu
3ccc45df23 Bug 1359697 - Make CaptivePortalService not poll for status when it is in the NOT_CAPTIVE state r=mcmanus
MozReview-Commit-ID: BrxJfipydEj

--HG--
extra : rebase_source : 780f49bd3b6dcf0682f9368c53c0a04c03e0616b
2017-05-04 11:43:25 +02:00
Honza Bambas
a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Ehsan Akhgari
c696722eda Bug 1360973 - Don't do the work needed for same origin referrer policies unless if we need to; r=tnguyen
CheckSameOriginURI() can be expensive and shows up under profiles, so we
should try to avoid calling it unless if we are going to use
isCrossOrigin.
2017-05-04 13:30:13 -04:00
Michal Novotny
133308dd0d Bug 1361435 - Remove references to unused pref network.http.bypass-cachelock-threshold, r=mcmanus
Removes references to now unused pref that was added in bug 868441 and removed in bugs 913807 and 1054572. It also removes some leftovers from http channel which have not been removed in those 2 bugs.
2017-05-04 17:37:42 +02:00
Junior Hsu
5130d2e6d3 Bug 1359951 - Ensure that the WebSocket not sending constructor when shutting down, r=nwgh
--HG--
extra : rebase_source : c11a6d29d6da9a83f15a00f02c877960a0d5bf06
2017-05-02 19:50:00 +02:00
Junior Hsu
6f2d5288c1 Bug 1360163 - Add test for altData of cache index, r=michal
--HG--
extra : rebase_source : fcd588c232364fa7fc4cbd4e133bd32557231b3c
2017-04-28 17:14:21 +08:00
Dragana Damjanovic
0f080b064b Bug 1360515 - During TCP Fast Open let necko works as it is used to, but only limit amount of data we write to lower layers, i.e. nss, tcpFastOpenLayer, tcp socket. r=mcmanus 2017-05-04 12:15:33 +02:00
Dragana Damjanovic
2c802ffe1c Bug 1360570 - Make sure to write as much data as possible during FastOpen. r=mcmanus 2017-05-04 12:15:23 +02:00
Dragana Damjanovic
a6965692d1 Bug 1359938 - Fix socket status events for TCP Fast Open. r=mcmanus 2017-05-04 12:15:16 +02:00
Dragana Damjanovic
fc3b8dbe53 Bug 1359847 - Improve transaction restart if tfo is not supported. r=mcmanus 2017-05-04 12:15:10 +02:00
Dragana Damjanovic
6fb8664ccb Bug 1352271 - Add telemetry about TCP Fast Open. r=mcmanus r=francois 2017-05-04 12:15:01 +02:00
Dragana Damjanovic
099e776a6d Bug 1352274 - Add response header indicator for TCP FastOpen suceeded. r=mcmanus 2017-05-04 12:14:54 +02:00
Dragana Damjanovic
04e98c441a Bug 1188435 - Fix http2 restart on net-reset and fix activeConn count. r=mcmanus 2017-05-04 12:14:41 +02:00
Dragana Damjanovic
33ad6af7aa Bug 1188435 - Check if sendto is implemented. r=mcmanus 2017-05-04 12:14:36 +02:00
Dragana Damjanovic
abf0402f0a Bug 1188435 - Make TFO work with 0RTT and H2 work. r=mcmanus 2017-05-04 12:14:29 +02:00
Dragana Damjanovic
827d3bbab5 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-05-04 12:14:13 +02:00
Dragana Damjanovic
accc6e95b1 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-05-04 12:14:04 +02:00
Iris Hsiao
553dbd294c Merge mozilla-central to mozilla-inbound 2017-05-04 11:29:49 +08:00
Wes Kocher
4e89a77541 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Honza Bambas
124792a6b7 Bug 1354796 - Close unconnected HTTP connection with NS_ERROR_NET_TIMEOUT after 90s timeout. r=mcmanus 2017-05-03 08:31:00 -04:00
Yoshi Huang
db11c81921 Bug 1284579 - Part 3: remove IsPrivate arg from nsCookieService. r=valentin
Since we already passed origin attributes into these functions, we can
remove the extra isPrivate argument.
2017-05-04 09:40:21 +08:00
Yoshi Huang
7652396698 Bug 1284579 - Part 2: revise NS_ShouldCheckAppCache. r=valentin
There's one redudant NS_ShouldCheckAppCache(nsIURI*, bool) is not used
anymore. Also we remove the extra usePrivateBrowsing argument, since we
can get this information from nsIPrincipal.
2017-05-04 09:40:00 +08:00
Yoshi Huang
339c4768ca Bug 1284579 - Part 1:revise NS_UsePrivateBrowsing to get PB from origin attributes. r=valentin 2017-05-04 09:39:17 +08:00
Patrick McManus
26f948c0f3 Bug 1361495 - trigger winsock init early on STS to avoid main thread jank r=nwgh
MozReview-Commit-ID: 9HhHWBwF47Z

--HG--
extra : rebase_source : 63cc79d36fdf713ecb6e513fecd77fffa43bf182
2017-05-02 17:22:53 -04:00
Carsten "Tomcat" Book
b0e1da2a90 merge mozilla-inbound to mozilla-central a=merge 2017-05-03 10:11:26 +02:00
Wes Kocher
e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Wes Kocher
df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Kershaw Chang
d8ed9c0d8a Bug 1355539 - Test case, r=mayhemer 2017-05-02 00:31:00 +02:00
Kershaw Chang
ca7ad21c91 Bug 1355539 - Insert blocking transactions in the front of pendingQ, r=mayhemer
The blocking transactions should be dispatched before other transactions. So, this patch aims to put those transactions in front of the pending queue.
Moreover, also give the rest available connections to background tab when processing pendingQ for all entries.
2017-05-02 00:30:00 +02:00
Wes Kocher
5b73758a65 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ILz91Vj4gT5
2017-05-02 17:39:58 -07:00
Andrea Marchesini
d591d3c595 Bug 1360887 - nsBufferedInputStream must be able to read from nsIAsyncInputStream, r=smaug
Currently nsBufferedInputStream is able to Fill() data only from sync
inputStream. When a page uses XHR to upload something, it creates a
nsBufferedInputStream around the source inputStream. This stream can be a
IPCBlobInputStream, and in that case, the reading is only supported using
nsIAsyncInputStream interface. nsBufferedInputStream must support it.
2017-05-02 19:32:42 +02:00
Nathan Froyd
0a713b4ab2 Bug 1360538 - convert SimpleBuffer to use NS_DECL_OWNINGTHREAD; r=hurley
The pattern we're using here has a name, so let's use that instead.
2017-05-02 12:46:36 -04:00
Patrick McManus
d1c557fcfe Bug 1361099 - provide a way to map all dns to constant r=valentin
// When non empty all non-localhost DNS queries (including IP addresses)
// resolve to this value. The value can be a name or an IP address.
// domains mapped to localhost with localDomains stay localhost.
pref("network.dns.forceResolve", "");

Testing is the primary use case here - replay captive data on a 'fake
server' by directing all traffic to it at the DNS level. Chrome has
something similar.

MozReview-Commit-ID: 7AOgQZpZKec

--HG--
extra : rebase_source : ad2648a701fffecaae47cbfae17e7aa6badd50ee
2017-05-01 13:51:55 -04:00
Nicholas Hurley
7440d1d042 Bug 1348278 - Limit speculative connections to http[s] only. r=mcmanus
Some protocol handlers don't handle speculative connections too well
(they crash). So, we limit to the most useful protocols. This patch
brought to you by
https://bugzilla.mozilla.org/show_bug.cgi?id=1348278#c21

MozReview-Commit-ID: 8dWGdVtalIS

--HG--
extra : rebase_source : 9ba674282e40d8313fdb8fbd2f1b9ae7567d299d
2017-04-28 11:37:24 -07:00
Ehsan Akhgari
b3c48a1104 Bug 1360723 follow-up: Rename ContentParent::AboutToLoadDocumentForChild to ContentParent::AboutToLoadHttpFtpWyciwygDocumentForChild 2017-05-01 15:44:01 -04:00
Ehsan Akhgari
88089b7bf1 Bug 1360723 - Rename ContentParent::TransmitPermissionsFor() to ContentParent::AboutToLoadDocumentForChild(); r=mystor 2017-04-28 18:05:32 -04:00
Jonathan Kew
ed530ec201 Bug 1353000 - Preparatory patch, explicitly make the Script enum a 16-bit type, so we can add a field to gfxShapedWord without making it bigger. r=jrmuizel 2017-04-12 14:55:10 +01:00