Commit Graph

14161 Commits

Author SHA1 Message Date
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
Valentin Gosu
5847af980b Bug 1324243 - Normalize IPv6 r=manishearth
MozReview-Commit-ID: 1UFIdeWrz1E

--HG--
extra : rebase_source : cb7e44b0afe06426e3268e80d94a2f59af633b9b
2017-03-09 00:55:05 +01:00
Carsten "Tomcat" Book
45b510057b Merge mozilla-central to autoland
--HG--
extra : rebase_source : dcccfd463c74743c692814695c9a7f0cba61e3ee
2017-03-09 11:26:20 +01:00
Carsten "Tomcat" Book
6d06361383 merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
Wes Kocher
5d9e472591 Backed out 3 changesets (bug 1334693) for build failures a=backout
Backed out changeset 8042ff76ef53 (bug 1334693)
Backed out changeset f48b85ae4eca (bug 1334693)
Backed out changeset 85c4356eebea (bug 1334693)

MozReview-Commit-ID: 2VFn68MXSmx
2017-03-08 18:04:30 -08:00
Jonathan Hao
93bb922fe6 Bug 1334693 - Test http2 push and origin attributes. r=mcmanus
MozReview-Commit-ID: 8qrhjyyV6Uc

--HG--
extra : rebase_source : 25832d4330c1c8521e3f3c965575b146c3e84c85
2017-03-08 18:17:10 +08:00
Jonathan Hao
8b9f1fd19c Bug 1334693 - Add origin attributes to Http2Stream::PushHashKey(). r=mcmanus
MozReview-Commit-ID: He9Ha4SOp2O

--HG--
extra : rebase_source : 7f99cc15dfd82ea7b4dfbb860831a0a5f4aff2cd
2017-03-08 18:26:08 +08:00
Jonathan Hao
ae7d21780a Bug 1334693 - Add origin attributes to HTTP2 coalescing keys. r=mcmanus
MozReview-Commit-ID: C4ZbYSxWKLu

--HG--
extra : rebase_source : 166847fdd5c571abcb2b298c1f34c48420f41e21
2017-03-08 16:14:06 +08:00
Wes Kocher
c1d1ad8a06 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1huLsbfIJEB
2017-03-08 17:15:08 -08:00
Cykesiopka
6b0596a14c Bug 1344441 - Move various Necko IDLs that really ought to be PSM IDLs. r=keeler,mcmanus
These IDLs conceptually are PSM APIs, and are implemented in PSM as well.

nsICryptoFIPSInfo.idl is similar but is removed instead because:
1. It's unused even by addons.
2. The only thing it provides is also available through nsIPKCS11ModuleDB.idl.

MozReview-Commit-ID: K8R0wDAhjLq

--HG--
rename : netwerk/base/nsICryptoHMAC.idl => security/manager/ssl/nsICryptoHMAC.idl
rename : netwerk/base/nsICryptoHash.idl => security/manager/ssl/nsICryptoHash.idl
rename : netwerk/base/nsINSSErrorsService.idl => security/manager/ssl/nsINSSErrorsService.idl
extra : rebase_source : 3eca83901e14cea714d402046303790d283cff74
2017-03-05 18:30:31 +08:00
Andrea Marchesini
12b54aa0f5 Bug 1299500 - Get rid of DeviceStorage API - part 10 - DeviceStorage, r=ehsan, r=billm 2017-03-08 20:15:45 +01:00
Michal Novotny
e8184a9cd7 Bug 1343816 - CacheFileIOManager::CloseHandleInternal() can remove file belonging to other handle. r=mayhemer 2017-03-08 05:12:00 -05:00
Carsten "Tomcat" Book
f7810a3e13 Backed out changeset ca1f19ad3de6 (bug 1341572) for causing test failures in test_altsvc.js
--HG--
extra : rebase_source : 7377d5bf1efe761d07af2d64a2a8e8a429687f14
2017-03-08 16:29:50 +01:00
Dragana Damjanovic
d813effa4b Bug 1341572 - Fix multiple HalfOpen socket for a single transaction. r=mcmanus
--HG--
extra : amend_source : 210b719d438b20dcaaae5f8bfff1b1715a9fc3e5
2017-03-08 04:04:00 +01:00
Daniel Stenberg
d8104f97ac Bug 1342661: boundary check before assigning, r=valentin
From 9e7554ae8aa6c09e53207b2271991ec419652e0c Mon Sep 17 00:00:00 2001
---
 netwerk/streamconv/converters/nsBinHexDecoder.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
2017-03-06 13:26:43 +01:00
Thomas Nguyen
2b86f73c62 Bug 1339006 - Specify event target if we run nsIURIClassifier.clasify() from content process.r=ehsan, r=gcp
MozReview-Commit-ID: BztjVMlQngi
2017-03-08 11:06:36 +08:00
Andrea Marchesini
f2a07c0b1c Bug 1344204 - nsBufferedInputStream should be serializable/cloneable following the internal sub streams, r=smaug 2017-03-08 07:48:37 +01:00
Andrea Marchesini
e9195daa8d Bug 1345168 - Get rid of OriginAttributes::Inherit, r=tjr 2017-03-08 07:41:51 +01:00
Andrea Marchesini
8c2ad72d08 Bug 1345168 - Fix the indentation in LoadInfo.cpp, r=tjr 2017-03-08 07:41:20 +01:00