Changeset 168445 in webkit


Ignore:
Timestamp:
May 7, 2014 3:15:08 PM (10 years ago)
Author:
Simon Fraser
Message:

[iOS WK2] Speculative fix for crash in PlatformCALayerRemote::recursiveBuildTransaction
https://bugs.webkit.org/show_bug.cgi?id=132666

Reviewed by Tim Horton.

Crash reports suggest that owner() can be null. Assert and protect
against this.

  • WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:

(WebKit::PlatformCALayerRemote::recursiveBuildTransaction):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r168441 r168445  
     12014-05-07  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK2] Speculative fix for crash in PlatformCALayerRemote::recursiveBuildTransaction
     4        https://bugs.webkit.org/show_bug.cgi?id=132666
     5
     6        Reviewed by Tim Horton.
     7       
     8        Crash reports suggest that owner() can be null. Assert and protect
     9        against this.
     10
     11        * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
     12        (WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
     13
    1142014-05-07  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.cpp

    r168175 r168445  
    119119void PlatformCALayerRemote::recursiveBuildTransaction(RemoteLayerTreeTransaction& transaction)
    120120{
    121     if (m_properties.backingStore && !owner()->platformCALayerDrawsContent()) {
     121    ASSERT(owner());
     122    if (m_properties.backingStore && (!owner() || !owner()->platformCALayerDrawsContent())) {
    122123        m_properties.backingStore = nullptr;
    123124        m_properties.notePropertiesChanged(RemoteLayerTreeTransaction::BackingStoreChanged);
Note: See TracChangeset for help on using the changeset viewer.