Changeset 213276 in webkit


Ignore:
Timestamp:
Mar 2, 2017 3:44:41 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Crash in WebCore::CoordinatedGraphicsLayer::notifyFlushRequired
https://bugs.webkit.org/show_bug.cgi?id=166420

Reviewed by Žan Doberšek.

This is happening when closing a page that is being inspected. When CoordinatedGraphicsLayer::removeFromParent()
is called, the coordinator has already been invalidated, so all its layers were set a nullptr coordinator. I
think it's safe to simply handle m_coordinator being nullptr in notifyFlushRequired().

  • platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:

(WebCore::CoordinatedGraphicsLayer::notifyFlushRequired): Return early if the coordinator is nullptr.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r213274 r213276  
     12017-03-02  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Crash in WebCore::CoordinatedGraphicsLayer::notifyFlushRequired
     4        https://bugs.webkit.org/show_bug.cgi?id=166420
     5
     6        Reviewed by Žan Doberšek.
     7
     8        This is happening when closing a page that is being inspected. When CoordinatedGraphicsLayer::removeFromParent()
     9        is called, the coordinator has already been invalidated, so all its layers were set a nullptr coordinator. I
     10        think it's safe to simply handle m_coordinator being nullptr in notifyFlushRequired().
     11
     12        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
     13        (WebCore::CoordinatedGraphicsLayer::notifyFlushRequired): Return early if the coordinator is nullptr.
     14
    1152017-03-02  Andreas Kling  <akling@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp

    r212638 r213276  
    5454void CoordinatedGraphicsLayer::notifyFlushRequired()
    5555{
    56     ASSERT(m_coordinator);
     56    if (!m_coordinator)
     57        return;
     58
    5759    if (m_coordinator->isFlushingLayerChanges())
    5860        return;
Note: See TracChangeset for help on using the changeset viewer.