Changeset 158872 in webkit


Ignore:
Timestamp:
Nov 7, 2013 1:54:36 PM (10 years ago)
Author:
andersca@apple.com
Message:

Don't repaint the view when the web process crashes
https://bugs.webkit.org/show_bug.cgi?id=124013

Reviewed by Dan Bernstein.

It's up to each individual port to decide whether the view should be repainted when the web process crashes.

  • UIProcess/API/mac/PageClientImpl.mm:

(WebKit::PageClientImpl::setViewNeedsDisplay):
(WebKit::PageClientImpl::displayView):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::resetStateAfterProcessExited):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r158863 r158872  
     12013-11-07  Anders Carlsson  <andersca@apple.com>
     2
     3        Don't repaint the view when the web process crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=124013
     5
     6        Reviewed by Dan Bernstein.
     7
     8        It's up to each individual port to decide whether the view should be repainted when the web process crashes.
     9
     10        * UIProcess/API/mac/PageClientImpl.mm:
     11        (WebKit::PageClientImpl::setViewNeedsDisplay):
     12        (WebKit::PageClientImpl::displayView):
     13        * UIProcess/WebPageProxy.cpp:
     14        (WebKit::WebPageProxy::resetStateAfterProcessExited):
     15
    1162013-11-07  Tamas Gergely  <gertom@inf.u-szeged.hu>
    217
  • trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm

    r158759 r158872  
    141141void PageClientImpl::setViewNeedsDisplay(const WebCore::IntRect& rect)
    142142{
    143     [m_wkView setNeedsDisplayInRect:rect];
     143    ASSERT_NOT_REACHED();
    144144}
    145145
    146146void PageClientImpl::displayView()
    147147{
    148     [m_wkView displayIfNeeded];
     148    ASSERT_NOT_REACHED();
    149149}
    150150
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r158775 r158872  
    37973797    m_pendingLearnOrIgnoreWordMessageCount = 0;
    37983798
    3799     // If the call out to the loader client didn't cause the web process to be relaunched,
    3800     // we'll call setNeedsDisplay on the view so that we won't have the old contents showing.
    3801     // If the call did cause the web process to be relaunched, we'll keep the old page contents showing
    3802     // until the new web process has painted its contents.
    3803     setViewNeedsDisplay(IntRect(IntPoint(), viewSize()));
    3804 
    38053799    // Can't expect DidReceiveEvent notifications from a crashed web process.
    38063800    m_keyEventQueue.clear();
Note: See TracChangeset for help on using the changeset viewer.