Changeset 171211 in webkit


Ignore:
Timestamp:
Jul 17, 2014 7:16:00 PM (10 years ago)
Author:
ap@apple.com
Message:

REGRESSION (r171167): LoaderClient processDidCrash call is made after load state changes
https://bugs.webkit.org/show_bug.cgi?id=135032
<rdar://problem/17716602>

Reviewed by Dan Bernstein.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::processDidCrash): Create a transaction, so that the nested
transaction in resetStateAfterProcessExited() wouldn't be committed.
(WebKit::WebPageProxy::resetStateAfterProcessExited): Don't use auto - it was hiding
the most important fact that this is a stack object that can't be simply moved to
a different function.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r171209 r171211  
     12014-07-17  Alexey Proskuryakov  <ap@apple.com>
     2
     3        REGRESSION (r171167): LoaderClient processDidCrash call is made after load state changes
     4        https://bugs.webkit.org/show_bug.cgi?id=135032
     5        <rdar://problem/17716602>
     6
     7        Reviewed by Dan Bernstein.
     8
     9        * UIProcess/WebPageProxy.cpp:
     10        (WebKit::WebPageProxy::processDidCrash): Create a transaction, so that the nested
     11        transaction in resetStateAfterProcessExited() wouldn't be committed.
     12        (WebKit::WebPageProxy::resetStateAfterProcessExited): Don't use auto - it was hiding
     13        the most important fact that this is a stack object that can't be simply moved to
     14        a different function.
     15
    1162014-07-17  Benjamin Poulain  <bpoulain@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r171191 r171211  
    42754275    ASSERT(m_isValid);
    42764276
     4277    // There is a nested transaction in resetStateAfterProcessExited() that we don't want to commit before the client call.
     4278    PageLoadState::Transaction transaction = m_pageLoadState.transaction();
     4279
    42774280    resetStateAfterProcessExited();
    42784281
     
    44324435#endif
    44334436
    4434     auto transaction = m_pageLoadState.transaction();
     4437    PageLoadState::Transaction transaction = m_pageLoadState.transaction();
    44354438    m_pageLoadState.reset(transaction);
    44364439}
Note: See TracChangeset for help on using the changeset viewer.