⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246186 in webkit


Ignore:
Timestamp:
Jun 6, 2019, 8:38:22 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Timelines: only complete Composite records if the m_startedComposite (followup to r246142)
https://bugs.webkit.org/show_bug.cgi?id=198639

Reviewed by Matt Baker.

In r246142, an ASSERT was removed because it is possible for Web Inspector to be opened in
between willComposite and didComposite, meaning that previously the ASSERT would fire.

In order to properly handle this, we should replace the ASSERT with an if so that Web
Inspector doesn't even try to complete a Composite record if it was opened in that case.

  • inspector/agents/InspectorTimelineAgent.cpp:

(WebCore::InspectorTimelineAgent::didComposite):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246184 r246186  
     12019-06-06  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Timelines: only complete Composite records if the m_startedComposite (followup to r246142)
     4        https://bugs.webkit.org/show_bug.cgi?id=198639
     5
     6        Reviewed by Matt Baker.
     7
     8        In r246142, an `ASSERT` was removed because it is possible for Web Inspector to be opened in
     9        between `willComposite` and `didComposite`, meaning that previously the `ASSERT` would fire.
     10
     11        In order to properly handle this, we should replace the `ASSERT` with an `if` so that Web
     12        Inspector doesn't even try to complete a `Composite` record if it was opened in that case.
     13
     14        * inspector/agents/InspectorTimelineAgent.cpp:
     15        (WebCore::InspectorTimelineAgent::didComposite):
     16
    1172019-06-06  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp

    r246142 r246186  
    365365void InspectorTimelineAgent::didComposite()
    366366{
    367     didCompleteCurrentRecord(TimelineRecordType::Composite);
     367    if (m_startedComposite)
     368        didCompleteCurrentRecord(TimelineRecordType::Composite);
    368369    m_startedComposite = false;
    369370}
Note: See TracChangeset for help on using the changeset viewer.