Title: [251360] trunk/Tools
- Revision
- 251360
- Author
- [email protected]
- Date
- 2019-10-21 00:16:32 -0700 (Mon, 21 Oct 2019)
Log Message
[GTK][WPE] Check we don't leak the WebKitWebContext in all tests
https://bugs.webkit.org/show_bug.cgi?id=202981
Reviewed by Žan Doberšek.
Also include the number of references left in leaks report.
* TestWebKitAPI/glib/WebKitGLib/TestMain.h:
(Test::Test):
(Test::~Test):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (251359 => 251360)
--- trunk/Tools/ChangeLog 2019-10-21 07:16:12 UTC (rev 251359)
+++ trunk/Tools/ChangeLog 2019-10-21 07:16:32 UTC (rev 251360)
@@ -1,3 +1,16 @@
+2019-10-21 Carlos Garcia Campos <[email protected]>
+
+ [GTK][WPE] Check we don't leak the WebKitWebContext in all tests
+ https://bugs.webkit.org/show_bug.cgi?id=202981
+
+ Reviewed by Žan Doberšek.
+
+ Also include the number of references left in leaks report.
+
+ * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
+ (Test::Test):
+ (Test::~Test):
+
2019-10-18 Jiewen Tan <[email protected]>
[WebAuthn] Warn users when no credentials are found
Modified: trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h (251359 => 251360)
--- trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h 2019-10-21 07:16:12 UTC (rev 251359)
+++ trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h 2019-10-21 07:16:32 UTC (rev 251360)
@@ -135,6 +135,7 @@
"process-swap-on-cross-site-navigation-enabled", TRUE,
#endif
nullptr)));
+ assertObjectIsDeletedWhenTestFinishes(G_OBJECT(m_webContext.get()));
g_signal_connect(m_webContext.get(), "initialize-web-extensions", G_CALLBACK(initializeWebExtensionsCallback), this);
}
@@ -148,7 +149,7 @@
g_print("Leaked objects:");
HashSet<GObject*>::const_iterator end = m_watchedObjects.end();
for (HashSet<GObject*>::const_iterator it = m_watchedObjects.begin(); it != end; ++it)
- g_print(" %s(%p)", g_type_name_from_instance(reinterpret_cast<GTypeInstance*>(*it)), *it);
+ g_print(" %s(%p - %u left)", g_type_name_from_instance(reinterpret_cast<GTypeInstance*>(*it)), *it, (*it)->ref_count);
g_print("\n");
g_assert_true(m_watchedObjects.isEmpty());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes