Bug 759650 - turn 'Called on accessible unbound from tree' assertion into moz_assert
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 18 Jun 2018 14:04:08 -0400
changeset 479629 b5f06c68cf2731c4ebd4a95e07b7d7672be6e5ab
parent 479628 f0fe810b3d7863cdbbdfd3f5e664c6e6880521ac
child 479630 f444f8afb35552237991f5ad2e5125c5c95b4a0d
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs759650
milestone62.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 759650 - turn 'Called on accessible unbound from tree' assertion into moz_assert
accessible/generic/Accessible.cpp
--- a/accessible/generic/Accessible.cpp
+++ b/accessible/generic/Accessible.cpp
@@ -1952,18 +1952,18 @@ Accessible::AppendTextTo(nsAString& aTex
   nsIFrame *frame = GetFrame();
   if (!frame) {
     if (mContent->IsElement() && mContent->AsElement()->IsDisplayContents()) {
       aText += kEmbeddedObjectChar;
     }
     return;
   }
 
-  NS_ASSERTION(mParent,
-               "Called on accessible unbound from tree. Result can be wrong.");
+  MOZ_ASSERT(mParent,
+             "Called on accessible unbound from tree. Result can be wrong.");
 
   if (frame->IsBrFrame()) {
     aText += kForcedNewLineChar;
   } else if (mParent && nsAccUtils::MustPrune(mParent)) {
     // Expose the embedded object accessible as imaginary embedded object
     // character if its parent hypertext accessible doesn't expose children to
     // AT.
     aText += kImaginaryEmbeddedObjectChar;