Sebastian Hengst
9be17fad9a
Backed out changeset 8405467ea7ad (bug 1211266) for static analysis bustage. r=backout on a CLOSED TREE
2015-11-25 21:17:02 +01:00
Andrea Marchesini
c9ba9a819b
Bug 1211266 - Remote blobs coming from a different thread and a different manager must be kept alive until the creation of depending RemoteBlobs is not completed, r=bent, f=gerard-majax
2015-11-25 17:48:19 +00:00
Andrea Marchesini
24c720366e
Backed out changeset 79004346238d - wrong version of patch for bug 1211266
2015-11-25 17:44:30 +00:00
Andrea Marchesini
bd43353698
Bug 1211266 - Remote blobs coming from a different thread and a different manager must be kept alive until the creation of depending RemoteBlobs is not completed, r=bent, f=gerard-majax
2015-11-25 17:15:16 +00:00
Wes Kocher
176f927280
Backed out changeset cbc2c8a24438 (bug 1211266) for asan failures in test_fileapi_slice.html
...
--HG--
extra : commitid : 6n3H2TgzlUO
2015-11-24 13:25:18 -08:00
Andrea Marchesini
8c1cf23ab6
Bug 1211266 - Remote blobs coming from a different thread and a different manager must be kept alive until the creation of depending RemoteBlobs is not completed, r=bent, f=gerard-majax
2015-11-24 19:51:28 +00:00
Brian R. Bondy
3a4bea677d
Bug 1180288 - Use native filepickers for Graphene. r=khuey
2015-11-06 10:26:15 -05:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Jan Varga
7d81dbbfad
Bug 1068975 - Remove FileInfo from File; r=baku
2015-09-09 13:15:14 +02:00
Jan Varga
2a061d3c3b
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); r=baku
...
--HG--
rename : dom/filehandle/FileHandle.cpp => dom/filehandle/FileHandleBase.cpp
rename : dom/filehandle/FileHandle.h => dom/filehandle/FileHandleBase.h
rename : dom/filehandle/FileRequest.h => dom/filehandle/FileRequestBase.h
rename : dom/filehandle/MutableFile.cpp => dom/filehandle/MutableFileBase.cpp
rename : dom/filehandle/MutableFile.h => dom/filehandle/MutableFileBase.h
2015-09-09 13:15:05 +02:00
Kyle Huey
c5c0116764
Bug 1158031: Don't return empty arrays from MultiPartBlobImpl::GetSubBlobImpls(). r=baku
2015-07-28 15:59:56 -07:00
Jonathan Watt
faca81d049
Bug 1164310, part 3 - Allow the DirState of blobs to be set explicitly. r=baku
2015-07-10 18:55:23 +01:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Jonathan Watt
aaa5cbde27
Bug 1177688, part 6 - Follow-up to provide a default BlobDirState::eUnknownIfDir arg to BlobImplBase's ctor to avoid excessively specifying the same argument. r=baku
2015-06-23 00:31:40 +01:00
Jonathan Watt
2cd9883d4c
Bug 1177688, part 1 - Add API and functionality to the BlobImpl classes so that BlobImpl's that are created from an nsIFile can provide information about whether or not the nsIFile was a directory. r=baku
2015-06-23 00:31:28 +01:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Jonathan Watt
9d4eaf816c
Bug 1173314 - Make GetMozFullPath and GetMozFullPathInternal const. r=sicking
2015-06-03 01:11:16 +01:00
Seth Fowler
8e8f041c52
Bug 1154974 (Part 1) - Give blobs serial numbers. r=bent
2015-05-20 18:49:50 -07:00
Andrea Marchesini
61b9bd0496
Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
2015-05-19 15:36:37 +01:00
Birunthan Mohanathas
735ccdd101
Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj
2015-05-18 13:50:35 -07:00
Andrea Marchesini
338c67e420
Bug 1163388 - patch 1 - make nsIDOMFile an empty interface, r=ehsan
2015-05-18 14:51:54 +01:00
Andrea Marchesini
f4538bb921
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Wes Kocher
6b003ab737
Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
...
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini
49a0ee6938
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
...
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
1540774b0c
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Andrea Marchesini
3c8ee378d5
Bug 1158437 - dom::File should accept negative date values, r=smaug
2015-04-27 12:17:19 +01:00
Mike Hommey
c39e359c7d
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Ehsan Akhgari
883849ee32
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
Ben Turner
b87d829539
Bug 1134309 - Fix slice handling when the first access is from a remote input stream, r=khuey.
2015-03-16 20:52:57 -07:00
Andrea Marchesini
b0c81ef0d3
Bug 939509 - File constuctor should use lastModified attribute, r=bz
2015-02-07 18:29:22 +00:00
Andrew McCreight
2b846790d1
Back out Bug 1127201 (part 1) for various problems.
2015-02-06 15:05:08 -08:00
Nicholas Nethercote
5def42d488
Bug 1127201 (part 1) - Let MOZ_ASSERT take a string variable as the second arg. r=Waldo.
...
ASSERT_UNLESS_FUZZING() (which is defined multiple times!) caused problems due
when __VA_ARGS__ was empty which is most of the time. So I just disallowed the
optional string, which was only used in a small fraction of the occurrences.
I don't particularly like this patch. I'm not convinced its any better than
just removing the nsPrintfCString()s like I did earlier, but I've done it to at
least show what's involved.
--HG--
extra : rebase_source : 10b5bcf8509eaf2fca300b0b8ab1fa130e9f8b8c
2015-02-04 19:42:29 -08:00
Ben Turner
148f9de559
Bug 1122750 - Remove unnecessary destroy calls, r=khuey.
2015-01-21 11:08:31 -08:00
Ben Turner
e49bf1a926
Bug 1120336 - Fix another hang with blobURL+workers+indexedDB+xhr, r=khuey.
...
--HG--
rename : dom/indexedDB/test/test_blob_worker_xhr_post.html => dom/indexedDB/test/test_blob_worker_xhr_post_multifile.html
rename : dom/indexedDB/test/test_blob_worker_xhr_read.html => dom/indexedDB/test/test_blob_worker_xhr_read_slice.html
2015-01-13 14:15:04 -08:00
Andrea Marchesini
0f50edd862
Bug 1113062 - IndexedDB FileSnapshot not CCed, r=janv
2015-01-11 21:35:24 +00:00
Ben Turner
53fb5815be
Bug 1113340
- Make sure blob urls can load same-prcess PBackground blobs, r=khuey.
2014-12-19 11:59:02 -08:00
Ben Turner
974efa8dfb
Bug 1112716 - Blob runnable methods must be cancelable, r=khuey.
2014-12-17 13:52:43 -08:00
Ben Turner
2be368dceb
Bug 701634 - Support IndexedDB in Workers, r=khuey+baku.
2014-12-16 22:26:15 -08:00
Trevor Saunders
12d083ae32
no bug - fix nullptr to bool conversions in Blob.cpp r=themaid
...
--HG--
extra : rebase_source : aa2c9dc11c88beb53b12ddd583121ca90a2f4969
2014-11-03 07:59:27 -05:00
Ehsan Akhgari
f453170f6b
Bug 1090242 - Fix some more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : 22f80376a2ce9415dc9d7fdd2444405d3cd7e011
2014-10-10 17:28:35 -04:00
Ben Turner
d103771dfd
Bug 1076975 - Avoid serializing blobs when passed between threads in the same process, r=khuey.
2014-10-20 17:49:00 -07:00
Ben Turner
381761b9e9
Bug 1079546 - Rework slice handling for remote blobs, r=khuey.
2014-10-07 16:09:55 -07:00
Ben Turner
654a1342d7
Bug 1080867 - Tighten up threadsafety guarantees surrounding remote blobs. r=khuey.
2014-10-13 09:55:52 -07:00
Andrea Marchesini
a03a6d39c9
Bug 1047483 - patch 6 - Fixes for Webplatform tests, r=bz
2014-10-08 17:15:23 +01:00
Andrea Marchesini
8f8ec51372
Bug 1047483 - patch 3 - Renaming DOMFile to File, r=ehsan
...
--HG--
rename : content/base/public/nsDOMFile.h => content/base/public/File.h
rename : content/base/src/nsDOMFile.cpp => content/base/src/File.cpp
2014-10-08 17:15:23 +01:00
Andrea Marchesini
7491bee8c3
Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley
2014-10-08 17:15:22 +01:00