| Summary: | [iOS][WK2] Black web view after un-suspending process | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||
| Component: | WebKit2 | Assignee: | Tim Horton <thorton> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | andersca, barraclough, bunhere, cdumez, commit-queue, gyuyoung.kim, mark.lam, mitz, sam, sergio, simon.fraser | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=146179 | ||||||
| Attachments: |
|
||||||
|
Description
Tim Horton
2014-07-03 18:20:37 PDT
Created attachment 234386 [details]
patch
Comment on attachment 234386 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=234386&action=review > Source/WebKit2/UIProcess/WebPageProxy.cpp:1107 > + m_viewStateChangeWantsReply = (m_viewStateChangeWantsReply == WantsReplyOrNot::DoesWantReply || wantsReplyOrNot == WantsReplyOrNot::DoesWantReply) ? WantsReplyOrNot::DoesWantReply : WantsReplyOrNot::DoesNotWantReply; I feel like the enum is hurting readability in this code. > Source/WebKit2/UIProcess/WebPageProxy.cpp:1176 > #if ENABLE(INPUT_TYPE_COLOR_POPOVER) > - // When leaving the current page, close the popover color well. > - if (m_colorPicker) > - endColorPicker(); > + // When leaving the current page, close the popover color well. > + if (m_colorPicker) > + endColorPicker(); > #endif > #if PLATFORM(IOS) > - // When leaving the current page, close the video fullscreen. > - if (m_videoFullscreenManager) > - m_videoFullscreenManager->requestHideAndExitFullscreen(); > + // When leaving the current page, close the video fullscreen. > + if (m_videoFullscreenManager) > + m_videoFullscreenManager->requestHideAndExitFullscreen(); > #endif > + } Seems like these should be factored into a onLeavingWindow() or something. Comment on attachment 234386 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=234386&action=review >> Source/WebKit2/UIProcess/WebPageProxy.cpp:1107 >> + m_viewStateChangeWantsReply = (m_viewStateChangeWantsReply == WantsReplyOrNot::DoesWantReply || wantsReplyOrNot == WantsReplyOrNot::DoesWantReply) ? WantsReplyOrNot::DoesWantReply : WantsReplyOrNot::DoesNotWantReply; > > I feel like the enum is hurting readability in this code. Agreed. I would *love* to get rid of it, so I'll do that. >> Source/WebKit2/UIProcess/WebPageProxy.cpp:1176 >> + } > > Seems like these should be factored into a onLeavingWindow() or something. Why not! Comment on attachment 234386 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=234386&action=review >> Source/WebKit2/UIProcess/WebPageProxy.cpp:1107 >> + m_viewStateChangeWantsReply = (m_viewStateChangeWantsReply == WantsReplyOrNot::DoesWantReply || wantsReplyOrNot == WantsReplyOrNot::DoesWantReply) ? WantsReplyOrNot::DoesWantReply : WantsReplyOrNot::DoesNotWantReply; > > I feel like the enum is hurting readability in this code. Agreed. I would *love* to get rid of it, so I'll do that. >> Source/WebKit2/UIProcess/WebPageProxy.cpp:1176 >> + } > > Seems like these should be factored into a onLeavingWindow() or something. Why not! |