Bug 186683

Summary: DisplayRefreshMonitorMac should hold a weak pointer to WebPage.
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 186891    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Per Arne Vollan
Reported 2018-06-15 10:42:40 PDT
Instead of DisplayRefreshMonitorMac having a RefPtr to WebPage, it should have a weak pointer. Having a RefPtr could in theory create reference cycles. I have not seen any cases of this, but I think it would be better design to hold a weak pointer.
Attachments
Patch (3.12 KB, patch)
2018-06-15 10:48 PDT, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2018-06-15 10:48:40 PDT
Radar WebKit Bug Importer
Comment 2 2018-06-15 10:49:31 PDT
Brent Fulgham
Comment 3 2018-06-15 11:00:06 PDT
Comment on attachment 342828 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342828&action=review r=me > Source/WebKit/ChangeLog:10 > + observed in practice, but it is safer to use a weak pointer. Good point!
Per Arne Vollan
Comment 4 2018-06-15 11:05:35 PDT
Comment on attachment 342828 [details] Patch Thanks for reviewing!
WebKit Commit Bot
Comment 5 2018-06-15 11:47:39 PDT
Comment on attachment 342828 [details] Patch Clearing flags on attachment: 342828 Committed r232884: <https://trac.webkit.org/changeset/232884>
WebKit Commit Bot
Comment 6 2018-06-15 11:47:40 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 7 2018-06-21 13:21:10 PDT
Re-opened since this is blocked by bug 186891
Per Arne Vollan
Comment 8 2018-08-09 08:50:41 PDT
Note You need to log in before you can comment on or make changes to this bug.