Commit Graph

14180 Commits

Author SHA1 Message Date
Henry Chang
749573264f Bug 1325054 - Defer any possible connection establishment in BeginConnect until knowing if it's a tracker. r=dragana
MozReview-Commit-ID: 59MzYAVlr6i

--HG--
extra : rebase_source : feb16165876888aac853a9d4c1bb27b553134715
extra : source : bccd6272229ba5a6f4813cd9d54d52a3e19d9fd2
2017-03-06 17:43:11 +08:00
Daniel Stenberg
6ae1479eb9 Bug 1344461 - Keep track of line length to not read beyond eol. r=valentin
--HG--
extra : rebase_source : 662cfbee945210e4fb3a15ef1073bad4afb3c30a
2017-03-20 18:23:18 -04:00
Nicholas Hurley
ba45d4be81 Bug 1343505. r=mcmanus
MozReview-Commit-ID: 7OPJQfzW4FU

--HG--
extra : rebase_source : e05aa6cc88883533171f620a153fedccf5c80efa
2017-03-20 18:01:31 -04:00
Sebastian Hengst
2d4fb783da Backed out changeset 1f0db7810a84 (bug 1344171) for bustage (unused variable 'claimed'). r=backout 2017-03-20 20:29:03 +01:00
Dragana Damjanovic dd.mozilla@gmail.com
6d420690b1 Bug 1344171 - Improve connection management. r=mcmanus 2017-03-20 05:26:00 -04:00
Michal Novotny
b7c9ae474c Bug 1342722 - Firefox cache used all available inodes on the system, r=honzab
When overlimit eviction is too slow the new content might be stored much faster than the old one is deleted. In such case the cache can grow far beyond the cache size limit. This patch implements a hard limit (105% of cache size limit) when we stop caching any new content.
2017-03-20 18:49:04 +01:00
Junior Hsu
202768c0e6 Bug 1347470 - clean mAvailableCachedAltDataType when we get 200, r=valentin 2017-03-15 15:07:21 +08:00
Dragana Damjanovic
4fca90dedd Bug 1348081 - if we call ProcessPendingQForEntry with considerAll=false we should return if we already found a transaction in the urgent queue. r=mayhemer 2017-03-17 10:12:57 +01:00
Dragana Damjanovic
1c99ae8f32 Bug 1341572 - Fix multiple HalfOpen socket for a single transaction. r=mcmanus 2017-03-17 09:00:50 +01:00
Wes Kocher
c5d1991d35 Merge m-c to inbound, a=merge
MozReview-Commit-ID: AuQEHTgSKcO
2017-03-16 14:07:10 -07:00
Dragana Damjanovic
a66f6a3080 Bug 1348016 - nsHttpConnectionMgr::OnMsgCancelTransactions miss to cancel one transaction. r=mayhemer 2017-03-16 21:12:51 +01:00
Dragana Damjanovic
fe46e21bf3 Bug 1347951 - Check if a h2 connection can accept more streams before trying to dispatchach a transaction. r=mayhemer 2017-03-16 21:10:30 +01:00
Carsten "Tomcat" Book
468f7d8e9f merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Ehsan Akhgari
5fcbc5ac5c Bug 1347379 - Don't bother searching for a newly generated UUID in the request context hashtable; r=mcmanus 2017-03-15 23:03:37 -04:00
Blake Kaplan
59c1540717 Bug 1346286 - Remove CPOWs from browser_child_resource.js. r=Gijs
MozReview-Commit-ID: 9GXn1snauxt

--HG--
extra : rebase_source : 3bbb4e973445ff74626f6c04e6e4f52be8704516
2017-03-09 17:18:09 -08:00
Iris Hsiao
a8b3a6da1b Backed out changeset af4ad0346213 (bug 1325054) for mochitest failures in test_classify_ping.html 2017-03-16 15:12:17 +08:00
David Major
ed12ea611f Bug 1346078: Remove nsAString_internal and just use the nsAString name directly. r=bsmedberg
MozReview-Commit-ID: DWDEDMIVKm7

--HG--
extra : rebase_source : 7fe8dc07c816dca234c67761e61cdee372a87e97
2017-03-10 15:17:23 +13:00
Henry Chang
effce52706 Bug 1325054 - Defer any possible connection establishment in BeginConnect until knowing if it's a tracker. r=dragana
MozReview-Commit-ID: 59MzYAVlr6i

--HG--
extra : rebase_source : feb16165876888aac853a9d4c1bb27b553134715
extra : source : bccd6272229ba5a6f4813cd9d54d52a3e19d9fd2
2017-03-06 17:43:11 +08:00
Michal Novotny
e92895d647 Bug 1342366 - Crash in nsWyciwygChannel::GetCharsetAndSource, r=honzab 2017-03-15 08:40:56 +01:00
Eric Rahm
4e9a6f1d89 Bug 1344305 - Part 2: Update size calculation for base64 encode in nsHttpNTLMAuth::GenerateCredentials. r=jduell
MozReview-Commit-ID: 11CK452mzXL
2017-03-14 18:54:18 -07:00
Eric Rahm
ddb7ada84d Bug 1344305 - Switch to Base64Decode in nsHttpNTLMAuth::GenerateCredentials. r=jduell
MozReview-Commit-ID: DK6yx4PAYzi
2017-03-14 18:54:17 -07:00
Sebastian Hengst
1bb61f6114 Backed out changeset 2d2d603dbdaf (bug 1337056) 2017-03-15 00:46:35 +01:00
Sebastian Hengst
8b0ff01934 Backed out changeset c9674c8a9d4f (bug 1337056) 2017-03-15 00:46:30 +01:00
Sebastian Hengst
e96286a94b Backed out changeset 40b8605b5e48 (bug 1337056) 2017-03-15 00:46:06 +01:00
Michael Layzell
a5740e4923 Bug 1337056 - Part 8: Add nsIRequest::LOAD_HTML_OBJECT_DATA flag to identify requests loaded by nsObjectLoadingContent, r=mcmanus
MozReview-Commit-ID: 3hgLRCeuiyD
2017-03-14 14:56:09 -04:00
Michael Layzell
d861bbc093 Bug 1337056 - Part 3: Send down http[s] and ftp permissions as they are needed. Send down other permissions at startup, r=baku
MozReview-Commit-ID: CUKPvFp6zpF
2017-03-14 14:56:03 -04:00
Michael Layzell
e7fb4ee297 Bug 1337056 - Part 2: Replace the synchronous ReadPermissions API with async APIs, r=baku
These APIs are intended to use the mechanism defined in Part 1.

Part 3 implements the usage of these APIs to synchronize permissions.

MozReview-Commit-ID: HNKyDPtoaHl
2017-03-14 14:55:49 -04:00
Valentin Gosu
724d134c92 Bug 1346711 - Backout changeset 36839839cfa7 (bug 1334443) a=backout
proxy_GetStringPref also strips whitespace, thus it breaks parsing a space separated list

MozReview-Commit-ID: F9SoMkbI28z
2017-03-14 15:28:48 +01:00
Carsten "Tomcat" Book
fb74131fe7 Merge mozilla-central to mozilla-inbound 2017-03-14 14:26:07 +01:00
Carsten "Tomcat" Book
dba578960e merge mozilla-inbound to mozilla-central a=merge 2017-03-14 14:23:03 +01:00
Yoshi Huang
996e0349b3 Bug 1300671 - set firstPartyDomain on about: pages. r=smaug
When we load about:blank in a remote tab, it will have
LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL flag set, which will make
NullPrinicipal as its document principal. So we add
NULL_PRINCIPAL_FIRST_PARTY_DOMAIN as its firstPartyDomain.

So when we load data:, or javascript: URI in a remote tab, it will inherit the
principal from about:blank, hence also inherit the origin attributes.

There are also some about: pages will use codebase principal, so we also
set ABOUT_URI_FIRST_PARTY_DOMAIN as firstPartyDomain on their
principals.
2017-03-14 16:22:02 +08:00
Carsten "Tomcat" Book
fdb7f606e2 Backed out changeset 985d9b83325f (bug 1337043) for causing bug 1337043 2017-03-14 07:02:02 +01:00
Wes Kocher
bdd77feb24 Merge m-c to inbound, a=merge
MozReview-Commit-ID: GiMyITxSevR
2017-03-13 16:39:38 -07:00
Felipe Gomes
202823730b Bug 1337043 - Don't bother classifying about: URLs. r=tnguyen r=francois
MozReview-Commit-ID: Dz9XcepYWjh
2017-03-13 20:07:30 -03:00
Carsten "Tomcat" Book
1ddeca78fa Merge mozilla-central to autoland 2017-03-13 15:26:50 +01:00
Valentin Gosu
a42ca87b4d Bug 1341343 - Make sure the channel returns the correct contentLength for alt-data without saving it to the metadata r=michal
MozReview-Commit-ID: 1pXspJwLfJa
* * *
[mq]: fixing.patch

MozReview-Commit-ID: KKS2x2aeHY3

--HG--
extra : rebase_source : b6deb2a1caead735356aa4079462abc6f46c25e4
2017-03-13 12:06:55 +01:00
Valentin Gosu
119e9abd82 Bug 1341343 - Don't send AltDataOutputStreamConstructor IPC message if mIPCOpen is false r=mayhemer,michal
MozReview-Commit-ID: 2cVpB2HOgSG

--HG--
extra : rebase_source : e69c34714f5afd065c6b0ecfd47cf07ba2ab877a
2017-03-13 12:06:52 +01:00
Valentin Gosu
62ea9feefd Bug 1341343 - Test for overwriting alt-data r=michal
MozReview-Commit-ID: HljsfPNtN42

--HG--
extra : rebase_source : d7f412e7aaf563b6083c0f5811f52605ccb4c5da
2017-03-13 11:38:38 +01:00
Andrea Marchesini
f9cbf66dfd Bug 1274343 - Add parent-to-child pipe streaming to IPCStream - part 2 - PParentToChild, r=smuag
--HG--
rename : ipc/glue/SendStreamAlloc.h => ipc/glue/IPCStreamAlloc.h
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamChild.cpp
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamDestination.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamDestination.h
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamParent.cpp
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamSource.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamSource.h
rename : ipc/glue/PChildToParentStream.ipdl => ipc/glue/PParentToChildStream.ipdl
2017-03-14 12:29:43 +01:00
Andrea Marchesini
6ced9f8a25 Bug 1274343 - Add parent-to-child pipe streaming to IPCStream - part 1 - renaming PSendStream to PChildToParentStream, r=smaug
--HG--
rename : ipc/glue/PSendStream.ipdl => ipc/glue/PChildToParentStream.ipdl
2017-03-14 12:28:58 +01:00
David Major
92cb9d6615 Bug 1344629 - Part 7: Fix up a couple of pointers to literal strings. r=dbaron
These would fail to compile once nsTLiteralString stops inheriting from nsTString.

MozReview-Commit-ID: DFvuESN8G5s

--HG--
extra : rebase_source : 14f4ea7b59d14786949a2d57c40f4e740b1aa34a
2017-03-14 15:26:36 +13:00
David Major
dc67bfc9a3 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Iris Hsiao
5cece96e1c Backed out 12 changesets (bug 1344629) for stylo build bustage
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
a2d284604f Bug 1344629 - Part 7: Fix up a couple of pointers to literal strings. r=dbaron
These would fail to compile once nsTLiteralString stops inheriting from nsTString.

MozReview-Commit-ID: DFvuESN8G5s

--HG--
extra : rebase_source : 14f4ea7b59d14786949a2d57c40f4e740b1aa34a
2017-03-14 15:26:36 +13:00
David Major
40f4821701 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Amy Chung
2ac1ba03cf Bug 1312774 - Allow channels marked as urgentStart to bypass connection limits. r=mayhemer
--HG--
extra : rebase_source : 31612010ceb050a70ed4bd74cca8ccec8a21b07d
2017-03-12 01:31:13 +08:00
Kershaw Chang
3310ba5db8 Bug 1309653 - Part1: Add new API for updating current top level outer content windowId - v2, r=honzab
--HG--
extra : rebase_source : a7a9797ad94d66e9ecb9b13a6d7103c0af2303ff
2017-03-10 01:32:00 +01:00
Wes Kocher
65140a44e3 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: Gj4s6DtqKmw
2017-03-09 16:33:31 -08:00
Kershaw Chang
3cf721745a Bug 1326339 - Store top level outer content window id in http transaction and connMgr. r=mayhemer
--HG--
extra : rebase_source : 0ad395edaa8ae7760fb0057084f353d977964234
2017-03-09 02:55:00 -05:00
Valentin Gosu
1c5fbd8c6e Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.

MozReview-Commit-ID: LhAHkYmv0TR

--HG--
extra : rebase_source : 8f2d50d5633496cf165b3925d952bb6475bce3e0
2017-03-08 22:19:34 +01:00