[Webkit-unassigned] [Bug 256404] New: Document leak from google.com search results

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 5 18:14:18 PDT 2023


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

            Bug ID: 256404
           Summary: Document leak from google.com search results
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rreno at apple.com
                CC: webkit-bug-importer at group.apple.com

There's a document leak of google.com after navigating to a search results page.

Steps:
1. Open MiniBrowser from terminal or Xcode to about:blank
> run-minibrowser --url about:blank

2. Navigate to google.com
3. search for something. I searched for "New York City"
4. Navigate to about:blank
5. Trigger a low memory warning
> notifyutil -p org.WebKit.lowMemory

6. Look at active documents
> notifyutil -p com.apple.WebKit.showAllDocuments

Here's what I got:
1 live pages:
Page 0x107048100 with main document 0x141121000 about:blank
3 live documents:
Document 0x141120000 8-7cf3e1d8-e81c-4639-b00a-bf0017064947 (refCount 21, referencingNodeCount 137) https://www.google.com/
Document 0x141122000 8-039ca048-8080-4fe8-9593-9f869b17ab9c (refCount 1, referencingNodeCount 1) about:blank
Document 0x141121000 8-154d77ec-a511-4345-9944-6f5f72ac7684 (refCount 2, referencingNodeCount 3) about:blank

After navigating cross-site and triggering a process swap you'll see this:
LEAK: 1 Page
LEAK: 1 Frame
LEAK: 1 WebCoreNode

-- 
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/20230506/91f10a28/attachment.htm>


More information about the webkit-unassigned mailing list