[Webkit-unassigned] [Bug 251684] New: [GTK] TestFrame: subframe test has object leak

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 3 06:22:16 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=251684

            Bug ID: 251684
           Summary: [GTK] TestFrame: subframe test has object leak
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pgorszkowski at igalia.com

In gtk api tests which can be run:
Tools/Scripts/run-gtk-tests /app/webkit/WebKitBuild/GTK/Release/bin/TestWebKitAPI/WebKitGTK/TestFrame
in test 'subframe' there is information about object leak:

Tools/Scripts/run-gtk-tests /app/webkit/WebKitBuild/GTK/Release/bin/TestWebKitAPI/WebKitGTK/TestFrame
TEST: /app/webkit/WebKitBuild/GTK/Release/bin/TestWebKitAPI/WebKitGTK/TestFrame...
  /webkit/WebKitFrame/main-frame:                                     PASS
GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
  /webkit/WebKitFrame/uri:                                            PASS
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
  /webkit/WebKitFrame/javascript-context:                             PASS
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
  /webkit/WebKitFrame/javascript-values:                              PASS
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
  /webkit/WebKitFrame/subframe:                                       PASS
Mesa: The provided filesystem timestamp for the cache is bogus! Disabling On-disk cache.
Leaked objects in WebProcess: WebKitWebPage(0x55f0239978a0)
Bail out! ERROR:/app/webkit/Tools/TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp:49:void checkLeaks(): 's_watchedObjects.isEmpty()' should be TRUE

Ran 6 tests of 6 with 6 successful

What I found is: in case of /webkit/WebKitFrame/subframe the windowObjectClearedCallback from Tools/TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp is called two times for the same page and frame and g_object_ref(webPage) is called two times, while g_object_unref(webPage); from webProcessTestRunnerFinalize is called only one, and that is why the page is not destroyed and leak is reported

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230203/4bd633fe/attachment.htm>


More information about the webkit-unassigned mailing list