gecko-dev/dom/file
Valentin Gosu 406b079c8d Bug 1453633 - Make nsHostObjectURI hold its principal wrapped in a nsMainThreadPtrHandle r=baku
nsIPrincipal is not yet threadsafe (bug 1443925). This is a problem in the context of threadsafe nsIURI, where cloning an nsIURI would also AddRef the principal.
To get around this problem, we use nsMainThreadPtrHandle<nsIPrincipal>. This means cloning the URI would not AddRef the principal (it addrefs the nsMainThreadPtrHolder that holds the principal). When the last ref is dropped, the principal is released on the main thread.

We should get rid of this once principals become thread-safe

MozReview-Commit-ID: AbJEhTNXVv6

--HG--
extra : rebase_source : 14808be2815aaeb2f017fc04d28aa03b9f4bbcd5
2018-04-12 22:37:41 +02:00
..
ipc Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku 2018-04-10 17:49:48 -04:00
tests Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout 2018-03-01 11:51:09 +02:00
BaseBlobImpl.cpp Bug 1440195 For timestamps that are absolute, specify a null context pointer r=baku 2018-02-28 15:37:26 -06:00
BaseBlobImpl.h Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Blob.cpp Bug 792808 - Migrate BodyExtractor away from using nsIXHRSendable; r=baku 2017-09-19 21:32:12 -04:00
Blob.h Bug 792808 - Purge nsIXMLHttpRequest, nsIXMLHttpRequestUpload, nsIXMLHttpRequestEventTarget, nsIXHRSendable XPCOM interfaces; r=baku 2017-11-19 17:11:41 -05:00
BlobImpl.cpp Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug 2017-02-16 18:26:38 +01:00
BlobImpl.h Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
BlobSet.cpp Bug 1427091 - BlobSet must use nsCString instead of nsAutoCString, r=me 2018-01-05 15:38:06 +01:00
BlobSet.h Bug 1358410 - Gt rid of CX parameter in BlobSet::AppendString(), r=qdot 2017-04-25 22:30:23 +02:00
EmptyBlobImpl.cpp Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
EmptyBlobImpl.h Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
File.cpp Bug 1358410 - Gt rid of CX parameter in BlobSet::AppendString(), r=qdot 2017-04-25 22:30:23 +02:00
File.h Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug 2017-02-16 18:26:38 +01:00
FileBlobImpl.cpp Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
FileBlobImpl.h Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
FileCreatorHelper.cpp Bug 1344957 - Enabling File.createFromNsIFile and File.createFromFileName only for testing and file-content-process, r=ehsan, r=bobowen 2017-03-21 11:11:06 +01:00
FileCreatorHelper.h Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-03 09:42:54 +01:00
FileList.cpp Bug 1446515 - Remove nsIDOMFileList. r=bz 2018-03-16 20:55:32 +01:00
FileList.h Bug 1446515 - Remove nsIDOMFileList. r=bz 2018-03-16 20:55:32 +01:00
FileReader.cpp Bug 1452010 part 2. Remove nsIDOMDOMException members. r=qdot 2018-04-06 23:27:56 -04:00
FileReader.h Bug 1436784 - Use WorkerRef in FileReader, r=smaug 2018-03-13 21:17:06 +01:00
FileReaderSync.cpp Bug 1453134 - part 1 - add a string input stream constructor that accepts move references; r=baku 2018-04-11 10:06:17 -04:00
FileReaderSync.h Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
MemoryBlobImpl.cpp Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
MemoryBlobImpl.h Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
MultipartBlobImpl.cpp Bug 1442039 part 14. Remove nsDOMClassInfoID.h. r=peterv 2018-03-21 23:13:30 -04:00
MultipartBlobImpl.h Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
MutableBlobStorage.cpp Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug 2018-02-14 13:23:01 +01:00
MutableBlobStorage.h Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug 2018-02-14 13:23:01 +01:00
MutableBlobStreamListener.cpp Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug 2018-02-14 13:23:01 +01:00
MutableBlobStreamListener.h Bug 1437640 - Implement nsIThreadRetargetableStreamListener in MutableBlobStreamListener, r=smaug 2018-02-14 13:23:01 +01:00
StreamBlobImpl.cpp Backed out changeset 66d49b9e8217 (bug 1414767) for build bustage on OS X: CoreServices.framework/Frameworks/AE.framework/Headers/AERegistry.h:693: reference to 'TextRange' is ambiguous. r=backout on a CLOSED TREE 2017-11-06 17:51:56 +01:00
StreamBlobImpl.h Bug 1403771 - SlicedInputStream takes ownership of the underlying stream and it propagates the Close() call, r=smaug 2017-10-05 07:38:48 +02:00
StringBlobImpl.cpp Bug 1413112 - Move FileReaderSync into dom/file, r=me 2018-01-30 10:13:29 +01:00
StringBlobImpl.h Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
TemporaryFileBlobImpl.cpp Bug 1403706 - Remove race conditions in temporary blob - part 5 - Introducing TemporaryFileBlobImpl, r=smaug 2017-10-05 07:41:42 +02:00
TemporaryFileBlobImpl.h Bug 1403706 - Remove race conditions in temporary blob - part 5 - Introducing TemporaryFileBlobImpl, r=smaug 2017-10-05 07:41:42 +02:00
moz.build Bug 1446515 - Remove nsIDOMFileList. r=bz 2018-03-16 20:55:32 +01:00
nsHostObjectProtocolHandler.cpp Bug 1416791 - Eliminate mutability from nsHostObjectURI by removing nsIURIWithBlobImpl r=baku 2018-03-21 15:33:15 +01:00
nsHostObjectProtocolHandler.h Bug 1416791 - Eliminate mutability from nsHostObjectURI by removing nsIURIWithBlobImpl r=baku 2018-03-21 15:33:15 +01:00
nsHostObjectURI.cpp Bug 1453633 - Make nsHostObjectURI hold its principal wrapped in a nsMainThreadPtrHandle r=baku 2018-04-12 22:37:41 +02:00
nsHostObjectURI.h Bug 1453633 - Make nsHostObjectURI hold its principal wrapped in a nsMainThreadPtrHandle r=baku 2018-04-12 22:37:41 +02:00
nsIDOMBlob.idl Bug 1321261 - create dom/file for File APIs, r=qdot 2016-12-01 15:12:42 +01:00