From 7ee1a709e8471cbf11f92820c631add15fe80947 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 8 May 2018 15:04:53 -0400 Subject: [PATCH] Bug 1387143 followup. Remove assertion that does not seem to hold and causes a CLOSED TREE. r=bzbarsky --- dom/base/Selection.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dom/base/Selection.cpp b/dom/base/Selection.cpp index ce1c37d8aa71..14b75ef55858 100644 --- a/dom/base/Selection.cpp +++ b/dom/base/Selection.cpp @@ -3347,9 +3347,7 @@ Selection::AddSelectionListener(nsISelectionListener* aNewListener) void Selection::RemoveSelectionListener(nsISelectionListener* aListenerToRemove) { - DebugOnly found = - mSelectionListeners.RemoveElement(aListenerToRemove); // Releases - MOZ_ASSERT(found, "Removing a nonexistent listener?"); + mSelectionListeners.RemoveElement(aListenerToRemove); // Releases } Element*