Wes Kocher
7a6bc6dbdb
Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout
...
Backed out changeset 67a27cf0ab80 (bug 1371699)
Backed out changeset 7e494fa90087 (bug 1371699)
Backed out changeset 30405ec37e1e (bug 1371699)
Backed out changeset 2d67624a01dc (bug 1371699)
Backed out changeset 503c9d22e6bb (bug 1371699)
Backed out changeset eedcb67a9fb6 (bug 1371699)
MozReview-Commit-ID: 4HydLjK7Ond
2017-06-13 17:50:11 -07:00
Boris Zbarsky
4b55407a12
Bug 1371699 part 4. Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
...
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream. This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting. This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-06-13 16:16:39 -04:00
Boris Zbarsky
bea9ad0005
Bug 1371699 part 2. Implement nsICancelableRunnable on AsyncWaitRunnable. r=bkelly
...
It's just luck that we haven't ended up with a multiplex stream on workers that contains at least one async stream.
2017-06-13 16:16:07 -04:00
Andrea Marchesini
cdcf0257ee
Bug 1372272 - AsyncStreamHelper::OnInputStreamReady() should be NOP if calling AsyncWait() in one of the substreams fails in ::Run(), r=bz
2017-06-12 19:45:05 +02:00
Bryce Van Dyk
cfe1defa1d
Bug 1272371 - Update multiplexed input stream seek behaviour. r=froydnj
...
This patch is originally from :baku and updates the seek behaviour of
nsMulitplexInputStream. This fixes an issue with absolute seeking where if a
seek is performed and the correct offset reached, the members of the multiplex
stream were not updated to reflect this.
MozReview-Commit-ID: 7lEvuXxzYkI
2017-05-25 13:38:01 +12: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
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
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
Josh Matthews
7709e1fa44
Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=nfroydj
2016-09-29 06:20:00 +02:00
Wes Kocher
de82ae2a15
Backed out changeset 57e78c503c4e (bug 1294450) for build bustage a=backout
2016-09-28 17:38:00 -07:00
Josh Matthews
d8d9b9aaf6
Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=froydnj
2016-09-28 18:38:51 -04:00
Nicholas Nethercote
8f3c6e7c32
Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
...
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.
This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.
2016-08-12 17:36:22 +10:00
Andrea Marchesini
ad75044c45
iBug 1122788 - patch 2 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz
2015-12-05 09:36:51 +00:00
Andrea Marchesini
a3eae96e36
Bug 1122788 - patch 1 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz
2015-12-05 09:35:49 +00:00
Wes Kocher
8e1efa5fcd
Backed out changeset d271b9e473fd (bug 1122788) for being a possible cause of test_fileapi.html bustage CLOSED TREE
2015-12-04 15:21:24 -08:00
Andrea Marchesini
92a5bc79a6
Bug 1122788 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz
2015-12-04 21:17:44 +00:00
Birunthan Mohanathas
d382a21947
Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
...
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Chris Peterson
db45e51be4
Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8
2015-09-07 23:56:16 -07:00
Nathan Froyd
b4d7119949
Bug 1192230 - clean up reference-counting in xpcom/; r=erahm
2015-07-01 12:27:43 -04:00
Birunthan Mohanathas
a0f7c73250
Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Nikhil Marathe
4c9b5b13d2
Bug 1166504 - Make nsMultiplexInputStream cloneable. r=bkelly,froydnj
2015-06-02 16:12:57 -07:00
Wes Kocher
ce011a95b0
Backed out changeset 47a103414177 (bug 1166504) for mochitest-e10s-4 permafail CLOSED TREE
2015-06-01 17:59:17 -07:00
Nikhil Marathe
effa32eeda
Bug 1166504 - Make nsMultiplexInputStream cloneable. r=bkelly,froydnj
2015-05-19 14:28:32 -07:00
Ryan VanderMeulen
5e3b7e53e2
Bug 1059081 - More non-unified bustage fixage.
...
CLOSED TREE
2015-05-28 15:00:36 -04:00
Josh Matthews
565ab231f1
Bug 1059081 - Fix non-unified bustage. a=bustage
2015-05-28 13:23:56 -04:00
Josh Matthews
357edba76e
Bug 1059081 - Add a threadsafe wrapper for persistent nsMultiplexStream queues. r=nfroyd
2015-05-14 07:55:57 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Thomas Baquet
8428ccac3e
Bug 1132078 - Remove useless null checks after allocating memory with |new| from xpcom/io. r=nfroyd
2015-03-02 11:59:36 +01:00
Ehsan Akhgari
1f3339e5ab
Bug 1123004 - Mark ReadSegmentsState as stack class, and its mThisStream member as nsCOMPtr; r=froydnj
2015-01-21 22:42:38 -05:00
Birunthan Mohanathas
6e9ec233ed
Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj
2014-08-25 12:17:15 -07:00
Birunthan Mohanathas
10838f95c7
Bug 995730 - Fix style violations in xpcom/io/. r=froydnj
2014-05-14 23:15:46 +03:00
Birunthan Mohanathas
b7e2587f32
Bug 995730 - Change xpcom/io/ to use 2 space indentation
...
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:43 +03:00
Bruce Sun
7fba8238d3
Bug 990957 - Seek again in Tell(), Available(), Seek() of nsMultiplexInputStream. r=mcmanus
2014-05-05 12:22:16 +08:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Andrea Marchesini
95913f6157
Bug 910010 - Implementation of PFileDescriptorSet - part 1, r=khuey
2014-03-25 18:37:13 +00:00
Chris Peterson
267d3c3cac
Bug 942400 - Fix -Wunused-variable warning in xpcom/io/nsMultiplexInputStream.cpp. r=nfroyd
2013-11-22 19:39:47 -08:00
Benjamin Smedberg
29d63f056d
Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric
2013-11-19 16:27:37 -05:00
Birunthan Mohanathas
d655a19190
Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan
2013-10-10 16:41:39 -04:00
Joshua Cranmer
1c073a2540
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
2013-07-18 21:31:26 -05:00
Jeff Walden
ae46876880
Bug 847480 - Blindly convert all existing mozilla::Abs users to mozilla::DeprecatedAbs. Individualized conversions to the reformed mozilla::Abs will continue until mozilla::DeprecatedAbs is unused, at which point it will be removed. r=Ms2ger
2013-03-05 15:43:30 -08:00
Jeff Walden
8be01906e2
Bug 835542 - Implement mozilla::Abs. r=Ms2ger
2013-02-15 19:55:36 -08:00
David Zbarsky
b0fa1128b0
Bug 847239 - Mark SeekableStreamAtBeginning #ifdef DEBUG r=kinetik
2013-03-04 10:40:24 -05:00
Mats Palmgren
fce4a6c022
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
2013-01-15 13:22:03 +01:00
Mats Palmgren
18a9006d8e
Bug 817574 - Replace NS_ABS with std::abs. r=roc
2012-12-04 13:33:33 +01:00
Matthew Gregan
73c0d73efd
Bug 799234 - Fix seeking within a single stream's range within a multiplexed stream. r=biesi,amarchesini
2012-10-20 08:29:41 +13:00
Andrea Marchesini
c8d39d8594
Bug 797871 - Fix nsMultiplexInputStream.Seek. r=dougt
2012-10-11 06:26:30 -04:00
Paul Adenot
cf406565bf
Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi
2012-09-04 14:53:52 -07:00