-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression(270308@main) WebPageProxy objects are leaking
https://bugs.webkit.org/show_bug.cgi?id=266803 Reviewed by Ben Nham. 270308@main added a couple of data members which hold a strong reference to the WebPageProxy. This introduced a cycle and we are now leaking WebPageProxy objects. The cycle in question is: WebPageProxy::m_lastMouseMoveHitTestResult <-> API::HitTestResult::m_page Switch to weak pointers to break the cycle. I don't think hit test results should keep the page alive anyway. Thanks to Ben Nham for figuring out which commit caused the memory leak. * Source/WebKit/Shared/API/Cocoa/_WKHitTestResult.mm: (-[_WKHitTestResult frameInfo]): * Source/WebKit/UIProcess/API/APIContextMenuElementInfoMac.h: * Source/WebKit/UIProcess/API/APIHitTestResult.cpp: (API::HitTestResult::create): * Source/WebKit/UIProcess/API/APIHitTestResult.h: (API::HitTestResult::page): (API::HitTestResult::HitTestResult): Canonical link: https://commits.webkit.org/272448@main
- Loading branch information
Showing
9 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters