Changeset 181548 in webkit


Ignore:
Timestamp:
Mar 16, 2015, 5:15:22 AM (10 years ago)
Author:
ddkilzer@apple.com
Message:

[iOS] REGRESSION (r181511): Most layout tests crash with a NULL deref

Follow-up fix for:
[iOS] Presenting a modal sheet on top of a WKWebView causes it to lose focused, active state
<http://webkit.org/b/142702>

  • UIProcess/ios/PageClientImplIOS.mm:

(WebKit::PageClientImpl::isViewWindowActive): Add NULL check for m_webView.
(WebKit::PageClientImpl::isViewFocused): Ditto.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r181514 r181548  
     12015-03-16  David Kilzer  <ddkilzer@apple.com>
     2
     3        [iOS] REGRESSION (r181511): Most layout tests crash with a NULL deref
     4
     5        Follow-up fix for:
     6        [iOS] Presenting a modal sheet on top of a WKWebView causes it to lose focused, active state
     7        <http://webkit.org/b/142702>
     8
     9        * UIProcess/ios/PageClientImplIOS.mm:
     10        (WebKit::PageClientImpl::isViewWindowActive): Add NULL check for m_webView.
     11        (WebKit::PageClientImpl::isViewFocused): Ditto.
     12
    1132015-03-15  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/ios/PageClientImplIOS.mm

    r181511 r181548  
    172172{
    173173    // FIXME: https://bugs.webkit.org/show_bug.cgi?id=133098
    174     return isViewVisible() || m_webView->_activeFocusedStateRetainCount;
     174    return isViewVisible() || (m_webView && m_webView->_activeFocusedStateRetainCount);
    175175}
    176176
     
    178178{
    179179    // FIXME: https://bugs.webkit.org/show_bug.cgi?id=133098
    180     return isViewWindowActive() || m_webView->_activeFocusedStateRetainCount;
     180    return isViewWindowActive() || (m_webView && m_webView->_activeFocusedStateRetainCount);
    181181}
    182182
Note: See TracChangeset for help on using the changeset viewer.