[Webkit-unassigned] [Bug 174895] New: WKURLSchemeTaskImpl instances are being abandoned (except when the task is stopped)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 27 08:53:42 PDT 2017


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

            Bug ID: 174895
           Summary: WKURLSchemeTaskImpl instances are being abandoned
                    (except when the task is stopped)
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: NeedsRadar
          Severity: Normal
          Priority: P1
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mitz at webkit.org
                CC: beidson at apple.com, joepeck at webkit.org

Created attachment 316550

  --> https://bugs.webkit.org/attachment.cgi?id=316550&action=review

Test project

WKURLSchemeTaskImpl instances are being abandoned whenever the task completes without being stopped.

To reproduce: build and run the attached program, click the Load button a few times, then click the End button to get the WKWebView deallocated (not that it should matter). Then use a heap inspection tool (Xcode’s memory graph viewer or just "heap TestSchemeHandler -addresses WKURLSchemeTaskImpl") to see if there are any remaining WKURLSchemeTaskImpl instances.

Note: The instances don’t seem to be leaked, just abandoned. The API::URLSchemeTask has a strong reference to its WebURLSchemeTask which holds a reference to the WebURLSchemeHandler, which holds references to all its unstopped tasks (I think that’s the cycle that should get broken, but currently only gets broken upon stop, not upon completion).

-- 
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/20170727/50e18f52/attachment.html>


More information about the webkit-unassigned mailing list