Patrick McManus
943a320a50
Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
...
MozReview-Commit-ID: AFM4R0M7dmj
2017-05-05 17:51:13 -04:00
Wes Kocher
bfcdda8f89
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
Patrick McManus
f3e2c282bd
Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
...
MozReview-Commit-ID: AFM4R0M7dmj
2017-05-05 17:51:13 -04:00
Sebastian Hengst
d4427ce280
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
Patrick McManus
1dd7fb6b13
Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
...
MozReview-Commit-ID: AFM4R0M7dmj
2017-05-05 17:51:13 -04:00
Andrea Marchesini
07b259abe7
Bug 1361654 - Initializing all the member variables in SlicedInputStream, r=qdot
2017-05-04 08:36:35 +02:00
Phil Ringnalda
68ba3c8477
Backed out 2 changesets (bug 1360992, bug 1361654) for a 70% failure rate in test_fileReader.html on ASan e10s
...
Backed out changeset ab9fdee3a6a4 (bug 1360992)
Backed out changeset 141c2dfd49ff (bug 1361654)
MozReview-Commit-ID: 3rSzvmc5FPx
2017-05-05 12:35:57 -07:00
Nathan Froyd
123e799a58
Bug 1362390 - make Base64Encode tolerant of allocation failures; r=mccr8
2017-05-05 11:33:36 -04:00
Nathan Froyd
36c33324ef
Bug 1362194 - part 3 - make Base64Decode even more tolerant of allocation failures; r=mccr8
...
The lossy conversion to ASCII here can also fail; we should handle that
as well. Rewriting the code to use MakeScopeExit also avoids tangled
logic and/or duplicating calls to ensure the destination string is
truncated on failure.
2017-05-05 11:33:36 -04:00
Nathan Froyd
af357cb0f4
Bug 1362194 - part 2 - make Base64Decode tolerant of allocation failures; r=mccr8
...
We need to use a fallible CopyASCIItoUTF16 function, since we might not
have enough memory to perform the copy.
2017-05-05 11:33:36 -04:00
Andrea Marchesini
90c288389f
Bug 1361443 - nsMultiplexInputStream should implement nsIAsyncInputStream, r=smaug
2017-05-04 14:44:35 +02:00
Carsten "Tomcat" Book
4414feb4fb
Backed out changeset c0e3f3edf36a (bug 1361443) for crashes in [@ mozilla::Base64EncodeInputStream] and test failures in test_fileReaderSync.xul
2017-05-04 16:40:14 +02:00
Andrea Marchesini
edf3d7b93b
Bug 1361443 - nsMultiplexInputStream should implement nsIAsyncInputStream, r=smaug
2017-05-04 14:44:35 +02:00
Andrea Marchesini
4e1e564570
Bug 1361654 - Initializing all the member variables in SlicedInputStream, r=qdot
2017-05-04 08:36:35 +02:00
Chris Peterson
3dd1ba2915
Bug 1356843 - Fix -Wcomma warnings in xpcom/io/nsLocalFileUnix.cpp. r=froydnj
...
clang's -Wcomma warning warns about suspicious use of the comma operator such as calling a function for side effects within an expression. Check NS_SUCCEEDED() to use HasMoreElement() in an expression and confirm that it actually returned a legitimate out parameter.
xpcom/io/nsLocalFileUnix.cpp:725:48 [-Wcomma] possible misuse of comma operator here
xpcom/io/nsLocalFileUnix.cpp:1053:39 [-Wcomma] possible misuse of comma operator here
MozReview-Commit-ID: aebrgc5Wqk
2017-04-03 11:05:57 -07:00
Andrea Marchesini
27a8f8bdb4
Bug 1355369 - SlicedInputStream must implement AsyncWait correctly, r=smaug
2017-04-12 13:49:08 +02:00
Andrea Marchesini
69223f7b26
Bug 1355369 - SlicedInputStream should expose nsIAsyncInputStream interface only when needed, r=smaug
2017-04-12 13:49:08 +02:00
Eric Rahm
f60adcc637
Bug 1353544 - Replace usage of PR_BEGIN_MACRO in xpcom. r=froydnj
2017-04-05 18:06:44 -07:00
Paolo Amadini
c66f0c70aa
Bug 1346716 - Remove the entry for "mimeTypes.rdf" in the directory service. r=mak
...
This improves performance because we won't try to fix the permissions of the file every time the nsIHandlerService implementation wants to open it, and makes it easier to access the file path from xpcshell tests.
MozReview-Commit-ID: DZmLa92qUnZ
2017-03-30 15:51:18 +01:00
Andrea Marchesini
cf50407739
Bug 1350239 - SlicedInputStream::Seek must set correct position in the source stream, r=smaug
2017-03-27 11:48:06 +02:00
Ehsan Akhgari
1f06c7a749
Bug 1346583 - Remove the PContent::Msg_OpenAnonymousTemporaryFile sync IPC; r=billm
2017-03-21 09:27:48 -04:00
Andrea Marchesini
8dcd278c86
Bug 1347557 - Move 2 static methods about the IPC serialization of streams into an helper class, r=qdot
2017-03-21 07:47:25 +01:00
David Major
7c0497b430
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
2017-03-14 15:26:27 +13:00
Iris Hsiao
22d2818760
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
a660713d2b
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
2017-03-14 15:26:27 +13:00
Andrea Marchesini
03b3e89b11
Bug 1344204 - nsMultiplexInputStream should be serializable/cloneable following the internal sub streams, r=smaug
2017-03-08 07:48:16 +01:00
Sebastian Hengst
074b17a4f0
Backed out changeset 5739a7f790f2 (bug 1333899) for failing reftest svg-image-datauri-1.html on Linux opt and pgo. r=backout
2017-02-22 10:00:50 +01:00
Andrea Marchesini
2e34ed89e2
Bug 1339710 - Remove the implementation of SlicedInputStream::ReadSegments, r=smaug
2017-02-22 09:42:27 +01:00
Andrea Marchesini
6305941d12
Bug 1339710 - SlicedInputStream should be nsISeekableStream, r=smaug
2017-02-22 09:41:59 +01:00
Andrea Marchesini
9e63830670
Bug 1339710 - SlicedInputStream should be an nsIIPCSerializableInputStream, r=smaug
2017-02-22 09:41:05 +01:00
Andrea Marchesini
919ec678d4
Bug 1339710 - SlicedInputStream should not be nsICloneableInputStream if the source stream is not, r=smaug
2017-02-22 09:40:46 +01:00
Iris Hsiao
0230dfa2c7
Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
...
Backed out changeset 7c0ec55b44dc (bug 1339710 )
Backed out changeset cbb4e1c2aada (bug 1339710 )
Backed out changeset c685dca493f5 (bug 1339710 )
Backed out changeset 4761a15d45fd (bug 1339710 )
Backed out changeset 7561692c1bc7 (bug 1339710 )
2017-02-22 16:19:50 +08:00
Andrea Marchesini
671ef871ca
Bug 1339710 - Remove the implementation of SlicedInputStream::ReadSegmenets, r=smaug
2017-02-22 07:57:54 +01:00
Andrea Marchesini
4162b26d95
Bug 1339710 - SlicedInputStream should be nsISeekableStream, r=smaug
2017-02-22 07:57:14 +01:00
Andrea Marchesini
d56f4170ce
Bug 1339710 - SlicedInputStream should be an nsIIPCSerializableInputStream, r=smaug
2017-02-22 07:55:50 +01:00
Andrea Marchesini
e137e36420
Bug 1339710 - SlicedInputStream should not be nsICloneableInputStream if the source stream is not, r=smaug
2017-02-22 07:54:46 +01:00
Eric Rahm
a20c0e770a
Bug 1333899 - Part 1: Add a fallible NS_UnescapeURL. r=froydnj
...
This adds a fallible version of |NS_UnescapeURL| that can be used to
gracefully handle allocation failures when the string needs to be unescaped.
MozReview-Commit-ID: 1eXPzeB2yrI
2017-02-21 17:56:34 -08:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Tom Tromey
48da5b7de4
Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj
...
MozReview-Commit-ID: JifhpA3oOeH
2016-12-09 10:00:01 -10:00
Michał Górny
93aa352f2f
Bug 1329798 - Include sys/sysmacros.h for major(), minor() on Linux. r=glandium
...
Include sys/sysmacros.h explicitly as that will be required by future
glibc versions to expose major() and minor() macros.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1329798
2017-02-15 00:49:00 +01:00
Sylvestre Ledru
e72335f6cf
Bug 1338086 - Remove useless else blocks in order to reduce complexity in xpcom/ r=froydnj
...
MozReview-Commit-ID: JUJARn5Nspp
2017-02-09 15:31:35 +01:00
Sebastian Hengst
82c05cde11
Backed out changeset c8fe57b085bd (bug 1333631)
2017-01-30 23:17:34 +01:00
Masatoshi Kimura
ded7cb2cec
Bug 1333631 - Disallow nsIFile::GetNativeTarget on Windows. r=froydnj
...
MozReview-Commit-ID: 4igXHPtQu4x
2017-01-25 23:36:50 +09:00
Chris Peterson
e1678e8f01
Bug 1331171 - Part 2: Remove Windows shell integration checks for Windows Vista. r=jimm
...
MozReview-Commit-ID: 8B6HnnpVP4L
2017-01-14 01:19:22 -08:00
Chris Peterson
84f6950c2d
Bug 1331171 - Part 1: Remove StartupSpecialSystemDirectory() workaround for Windows XP. r=jimm
...
SHGetKnownFolderPath() is available on Windows Vista+ so we no longer need to GetProcAddress("SHGetKnownFolderPath"). We can set _WIN32_WINNT 0x0600 to expose the SHGetKnownFolderPath function declaration in shlobj.h and call it directly.
Also remove a redundant #include <shlobj.h>.
MozReview-Commit-ID: AoAlrfvQ5AB
2017-01-14 01:12:02 -08:00
Bill McCloskey
a82c8d5566
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 16:34:37 -08:00
Wes Kocher
ac78cfc4f2
Backed out 8 changesets (bug 1331804, bug 1332100) for windows vm debug dt5 failures a=backout
...
Backed out changeset 8bf7f0e27c6c (bug 1331804)
Backed out changeset 600c0b9026c2 (bug 1331804)
Backed out changeset 3a5b5b9ecace (bug 1331804)
Backed out changeset c76432c9954e (bug 1331804)
Backed out changeset 46a9096745e7 (bug 1332100)
Backed out changeset 8b751230fa23 (bug 1331804)
Backed out changeset 2810212347fd (bug 1331804)
Backed out changeset be72b7763910 (bug 1331804)
MozReview-Commit-ID: Ywdsr4GZ4a
2017-01-24 15:12:21 -08:00
Bill McCloskey
e584c01765
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 10:04:55 -08:00
Randell Jesup
3a9200bb48
Bug 1332167: Unix major() and minor() return unsigned r=froydnj
2017-01-20 10:38:43 -05:00
Ben Kelly
8de4008826
Bug 1331038 Make nsPipe handle OOM conditions gracefully. r=froydnj
2017-01-13 17:11:01 -08:00