Index: Source/modules/indexeddb/IDBRequestTest.cpp |
diff --git a/Source/modules/indexeddb/IDBRequestTest.cpp b/Source/modules/indexeddb/IDBRequestTest.cpp |
index ef97d73fdd3839198327888c8194178eb6b6b092..1534acbf69aecc0fca574a0becbcc7ed9e4e62c6 100644 |
--- a/Source/modules/indexeddb/IDBRequestTest.cpp |
+++ b/Source/modules/indexeddb/IDBRequestTest.cpp |
@@ -109,6 +109,10 @@ TEST_F(IDBRequestTest, AbortErrorAfterAbort) |
// Now simulate the back end having fired an abort error at the request to clear up any intermediaries. |
// Ensure an assertion is not raised. |
request->onError(DOMError::create(AbortError, "Description goes here.")); |
+ |
+ // Stop the request lest it be GCed and its destructor |
+ // finds the object in a pending state (and asserts.) |
+ executionContext()->stopActiveDOMObjects(); |
} |
class MockWebIDBDatabase : public WebIDBDatabase { |