Bug 1443101: Assert Gecko_ContentList_AppendAll is main-thread-only. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 05 Mar 2018 12:01:31 +0100
changeset 461560 8993c0064edbf042a796150b9394cb82a0892402
parent 461559 195a3f9c9d2b3ec4d94c1cd9244d1241c62a224b
child 461561 a9b65eec6830b856787227c22a6166d203cd844a
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1443101
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1443101: Assert Gecko_ContentList_AppendAll is main-thread-only. r=xidorn It's only used for DOM APIs. MozReview-Commit-ID: EFMLH4yDtBf
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -2829,16 +2829,17 @@ Gecko_AnnotateCrashReport(const char* ke
 }
 
 void
 Gecko_ContentList_AppendAll(
   nsSimpleContentList* aList,
   const Element** aElements,
   size_t aLength)
 {
+  MOZ_ASSERT(NS_IsMainThread());
   MOZ_ASSERT(aElements);
   MOZ_ASSERT(aLength);
   MOZ_ASSERT(aList);
 
   aList->SetCapacity(aLength);
 
   for (size_t i = 0; i < aLength; ++i) {
     aList->AppendElement(const_cast<Element*>(aElements[i]));