Bug 256109

Summary: Web Inspector: Web inspector is retaining a WebContent process which leaks Documents
Product: WebKit Reporter: Ryan Reno <rreno>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Ryan Reno
Reported 2023-04-28 13:53:58 PDT
Reproducible on MiniBrowser (open in Xcode or via command line to see output from steps 6 and 7) 1) start at about:blank without inspector open 2) navigate to a simple page. data:text/html,<h1>Hello</h1> will do 3) open the Inspector (cmd+option+i) 4) Once it has loaded, close it with the X button. 5) navigate to about:blank 6) Issue a memory warning (notifyutil -p org.WebKit.lowMemory) 7) showAllDocuments (notifyutil -p com.apple.WebKit.showAllDocuments) Here is what I got: 1 live pages: Page 0x107048100 with main document 0x163122000 about:blank 1 live documents: Document 0x163122000 8-9101b26e-3a7b-49c0-84a6-6e35a29f0f13 (refCount 2, referencingNodeCount 3) about:blank 26 live pages: Page 0x2b38eca00 with main document 0x164134000 Page 0x107048100 with main document 0x164121000 inspector-resource:///Main.html Page 0x2b3154100 with main document 0x164130000 Page 0x2b30dca00 with main document 0x2b4142000 Page 0x2b30d5300 with main document 0x16413a000 Page 0x2b30a8100 with main document 0x16412f000 Page 0x1076bd300 with main document 0x2b4147000 Page 0x2b3a56e00 with main document 0x164133000 Page 0x2b508dc00 with main document 0x2b4143000 Page 0x2b5088100 with main document 0x2b4144000 Page 0x2b3a95c00 with main document 0x2b414d000 Page 0x2b3a78100 with main document 0x164138000 Page 0x2b3a7ae00 with main document 0x164139000 Page 0x2b38b2e00 with main document 0x164123000 Page 0x2b5b2ca00 with main document 0x2b414c000 Page 0x2b38ee500 with main document 0x164135000 Page 0x2b38b0100 with main document 0x164122000 Page 0x2b38b1300 with main document 0x16412e000 Page 0x2b3a1a500 with main document 0x164137000 Page 0x2b3a54100 with main document 0x164131000 Page 0x2b30b4100 with main document 0x2b4145000 Page 0x2b3cc8a00 with main document 0x2b4148000 Page 0x2b5b2e500 with main document 0x2b414b000 Page 0x2b3a55c00 with main document 0x164132000 Page 0x107ba8a00 with main document 0x164136000 Page 0x2b524d300 with main document 0x2b4146000 44 live documents: SVGDocument 0x2b414a000 43-7f14bab4-75c4-44bf-8086-e80b394debce (refCount 1, referencingNodeCount 7) inspector-resource:///Images/UpDownArrows.svg#root SVGDocument 0x2b4149000 43-942fe042-f328-4bff-941f-1d2a69f07c27 (refCount 1, referencingNodeCount 14) inspector-resource:///Images/Filter.svg#root SVGDocument 0x164132000 43-5daecc56-3280-43d3-adb8-87e03330d853 (refCount 1, referencingNodeCount 13) SVGDocument 0x16413e000 43-c66d6f01-4de2-4ff9-a1f3-df1fbc14db9c (refCount 1, referencingNodeCount 5) inspector-resource:///Images/Printer.svg#root SVGDocument 0x16413c000 43-269ba78e-b98a-46fe-adb0-92375ed9f9cf (refCount 1, referencingNodeCount 13) inspector-resource:///Images/Console.svg#root SVGDocument 0x164126000 43-598b1544-523e-4ad4-bd71-14b1ccb36726 (refCount 1, referencingNodeCount 5) inspector-resource:///Images/UserInputPrompt.svg#root SVGDocument 0x16413b000 43-87f27d7e-b2ad-49a8-9805-dc6b82b39b58 (refCount 1, referencingNodeCount 7) inspector-resource:///Images/ToggleRightSidebar.svg#root SVGDocument 0x164123000 43-bdc3c917-9c18-4b7d-b3de-4fd81d7074a0 (refCount 1, referencingNodeCount 5) SVGDocument 0x16412b000 43-d3a236bb-cdfd-41bf-b229-bc599439ca16 (refCount 1, referencingNodeCount 7) inspector-resource:///Images/Undock.svg#root SVGDocument 0x164133000 43-5897225d-3bf1-43f3-bad9-d013dff36727 (refCount 1, referencingNodeCount 13) SVGDocument 0x164139000 43-2fce01ca-1dea-4f06-ac82-0032112ef6ec (refCount 1, referencingNodeCount 9) SVGDocument 0x164125000 43-540b8672-f329-48f3-bfe5-c6358477db6f (refCount 1, referencingNodeCount 7) inspector-resource:///Images/ShowConsoleDrawer.svg#root SVGDocument 0x16413f000 43-3db77591-af63-4e35-9483-3e800e031c8e (refCount 1, referencingNodeCount 5) inspector-resource:///Images/AppearanceOverride.svg#root SVGDocument 0x2b4147000 43-a04fe5c0-da56-402c-b6f0-f36f740cc21c (refCount 1, referencingNodeCount 5) SVGDocument 0x2b4145000 43-11b57a9b-6526-45c0-a12b-277d64890fc3 (refCount 1, referencingNodeCount 43) SVGDocument 0x164134000 43-72f49c9b-9d8c-462d-9979-0dfe52f384c9 (refCount 1, referencingNodeCount 7) SVGDocument 0x164137000 43-f8cc37a7-1cf4-4870-85b9-a2537347bf5d (refCount 1, referencingNodeCount 9) SVGDocument 0x164122000 43-f32b3d23-40b0-492a-818e-40f1c09de35e (refCount 1, referencingNodeCount 7) SVGDocument 0x164136000 43-ecf1be77-8f7c-432b-8b97-546dfcc78476 (refCount 1, referencingNodeCount 7) SVGDocument 0x164131000 43-526f0260-0773-4b20-a90a-5c5300ffcb6d (refCount 1, referencingNodeCount 7) SVGDocument 0x164127000 43-9f55cf26-e162-4888-9d28-36900e2c3544 (refCount 1, referencingNodeCount 5) inspector-resource:///Images/CloseLarge.svg#root SVGDocument 0x2b414d000 43-3ca12dda-2a5b-46eb-915f-942e8867e078 (refCount 1, referencingNodeCount 3474) SVGDocument 0x164128000 43-c567f867-9603-4c9e-9728-d99c68a4e6b4 (refCount 1, referencingNodeCount 7) inspector-resource:///Images/DockLeft.svg#root SVGDocument 0x2b4148000 43-d3ff872d-60be-45f2-b79e-5592c364e128 (refCount 1, referencingNodeCount 14) SVGDocument 0x16412c000 43-57c7038a-5136-4e0e-b9f4-3b7e48260684 (refCount 1, referencingNodeCount 13) inspector-resource:///Images/Crosshair.svg#root SVGDocument 0x2b414b000 43-6506eaee-d3bc-4234-8e38-66c72e81ef11 (refCount 1, referencingNodeCount 7) SVGDocument 0x2b4144000 43-02a8108c-a569-4b7c-82f0-88840bf747ac (refCount 1, referencingNodeCount 43) SVGDocument 0x2b4142000 43-539957ba-74d8-4078-bda9-a447bcf60ee7 (refCount 1, referencingNodeCount 43) SVGDocument 0x2b414c000 43-723f2b3a-c286-4554-bf58-27bbe750582f (refCount 1, referencingNodeCount 3474) SVGDocument 0x164129000 43-b7cfc1ca-01bf-408a-99ab-1f01197c91ec (refCount 1, referencingNodeCount 7) inspector-resource:///Images/DockBottom.svg#root SVGDocument 0x164135000 43-cd9c9a44-444e-4192-8241-99d15bbe5876 (refCount 1, referencingNodeCount 13) SVGDocument 0x16412a000 43-5b24bfb9-cbe7-4725-b6ae-b4338ed01bbc (refCount 1, referencingNodeCount 7) inspector-resource:///Images/DockRight.svg#root SVGDocument 0x16412d000 43-06c559a4-7fc8-4bc2-856b-52832c00498b (refCount 1, referencingNodeCount 7) inspector-resource:///Images/Computer.svg#root SVGDocument 0x2b4143000 43-84833774-7482-4c42-bdbb-56bd704e3e19 (refCount 1, referencingNodeCount 43) SVGDocument 0x16413d000 43-0ea62ac8-a56c-48f7-8861-27feafd7ebad (refCount 1, referencingNodeCount 17) inspector-resource:///Images/Rulers.svg#root Document 0x164121000 43-2721049b-419f-4aa8-b10f-a36513da16cf (refCount 3, referencingNodeCount 4316) inspector-resource:///Main.html SVGDocument 0x2b4140000 43-ccca328b-c2d4-4c72-8ec7-c89436652fe5 (refCount 1, referencingNodeCount 11) inspector-resource:///Images/LayerBorders.svg#root SVGDocument 0x2b4141000 43-5bc440dd-9aa9-4bc5-9983-7b1dd4309967 (refCount 1, referencingNodeCount 5) inspector-resource:///Images/Paint.svg#root SVGDocument 0x16413a000 43-098ff089-65d0-4a0d-ad45-559b08b8070f (refCount 1, referencingNodeCount 17) SVGDocument 0x16412e000 43-1b24a44b-dc6c-4e15-b429-514a7fa020d6 (refCount 1, referencingNodeCount 9) SVGDocument 0x16412f000 43-cdf06d21-cebb-450e-90c9-9b778aeeb905 (refCount 1, referencingNodeCount 9) SVGDocument 0x164130000 43-d34cf2dd-6daf-4f5c-b0fa-8f8eb105d4a5 (refCount 1, referencingNodeCount 7) SVGDocument 0x2b4146000 43-42011469-4934-4183-b392-b582a51d039f (refCount 1, referencingNodeCount 3474) SVGDocument 0x164138000 43-556abf27-9127-41f3-99a8-c997cda43d2e (refCount 1, referencingNodeCount 7)
Attachments
Radar WebKit Bug Importer
Comment 1 2023-04-28 13:54:14 PDT
Ryan Reno
Comment 2 2023-04-28 14:07:41 PDT
It might be by design that we keep an inspector WebContent process around but I wouldn't have expected it to stay alive after both it was closed and a low memory warning had been issued.
Ryan Reno
Comment 3 2023-05-04 07:59:10 PDT
Confirmed with Patrick that this is expected and by design.
Note You need to log in before you can comment on or make changes to this bug.