Bug 1303517 - File CTOR for chrome must be fully thread-safe, r=bz
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 19 Sep 2016 16:02:40 +0200
changeset 314399 951db29640de5d15a089e71116ccf75d0c36889a
parent 314398 553eb2fc3a71308cca3b860aef1ff0753cb518f7
child 314400 857e5699df7baaabeceafd3601ff19104507cfac
push id20571
push userkwierso@gmail.com
push dateMon, 19 Sep 2016 22:56:59 +0000
treeherderfx-team@671c2af548b2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1303517
milestone51.0a1
Bug 1303517 - File CTOR for chrome must be fully thread-safe, r=bz
dom/base/MultipartBlobImpl.cpp
--- a/dom/base/MultipartBlobImpl.cpp
+++ b/dom/base/MultipartBlobImpl.cpp
@@ -330,17 +330,17 @@ MultipartBlobImpl::InitializeChromeFile(
 {
   NS_ASSERTION(!mImmutable, "Something went wrong ...");
 
   if (mImmutable) {
     aRv.Throw(NS_ERROR_UNEXPECTED);
     return;
   }
 
-  MOZ_ASSERT(nsContentUtils::IsCallerChrome());
+  MOZ_ASSERT(nsContentUtils::ThreadsafeIsCallerChrome());
 
   mName = aBag.mName;
   mContentType = aBag.mType;
   mIsFromNsIFile = true;
 
   // XXXkhuey this is terrible
   if (mContentType.IsEmpty()) {
     aBlob.GetType(mContentType);