Summary: | FrameLoader should own its FrameLoaderClient | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||||||||||
Component: | Page Loading | Assignee: | youenn fablet <youennf> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | achristensen, beidson, cdumez, commit-queue, ews-watchlist, ggaren, japhet, webkit-bug-importer | ||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Bug Depends on: | 209179 | ||||||||||||||||||
Bug Blocks: | |||||||||||||||||||
Attachments: |
|
Description
youenn fablet
2020-03-11 07:24:29 PDT
Created attachment 393238 [details]
Patch
Created attachment 393254 [details]
Patch
Comment on attachment 393254 [details]
Patch
Need to fix win port. Putting under review in the meantime.
Created attachment 393353 [details]
Patch
Created attachment 393358 [details]
Patch
Created attachment 393363 [details]
Patch
Comment on attachment 393363 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393363&action=review r=me > Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:-175 > -void WebFrameLoaderClient::frameLoaderDestroyed() > -{ > - m_frame->invalidate(); > - > - // Balances explicit ref() in WebFrame::create(). > - m_frame->deref(); > -} It is a joy to see code like this disappear 🥳 Comment on attachment 393363 [details] Patch Clearing flags on attachment: 393363 Committed r258339: <https://trac.webkit.org/changeset/258339> All reviewed patches have been landed. Closing bug. Re-opened since this is blocked by bug 209179 Created attachment 393840 [details]
Patch for landing
(In reply to youenn fablet from comment #12) > Created attachment 393840 [details] > Patch for landing Fixed rendering issue by delaying setting WebPage::m_mainFrame to exactly what was done before. The issue was that we were unfreezing too quickly in case of ProcessSwapping. This does not fix the potential raciness in the two DrawingArea messages of the being-swapped WebPageProxy, but this patch does not make it worse. Created attachment 393842 [details]
Patch for landing
Comment on attachment 393842 [details] Patch for landing Clearing flags on attachment: 393842 Committed r258628: <https://trac.webkit.org/changeset/258628> All reviewed patches have been landed. Closing bug. Can you file a follow up bug about the DrawingAreaProxy race — probably for Chris or Tim? Sounds like something worth fixing. (In reply to Geoffrey Garen from comment #17) > Can you file a follow up bug about the DrawingAreaProxy race — probably for > Chris or Tim? Sounds like something worth fixing. Sure. To be clear, the race is hopefully probably theoretical only. My main issue is that the design seems a bit weak since we keep two IPC listeners from two different processes but for the same page. I'll do some follow-up clean-up related to WebPage. |