Changeset 241598 in webkit


Ignore:
Timestamp:
Feb 15, 2019 11:06:47 AM (5 years ago)
Author:
youenn@apple.com
Message:

Performance should not fire events when its context is stopped
https://bugs.webkit.org/show_bug.cgi?id=194689

Reviewed by Alex Christensen.

Stop the timer when its context is destroyed.
Add an assertion to ensure the timer does not fire after context is destroyed.

  • page/Performance.cpp:

(WebCore::Performance::stop):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r241594 r241598  
     12019-02-15  Youenn Fablet  <youenn@apple.com>
     2
     3        Performance should not fire events when its context is stopped
     4        https://bugs.webkit.org/show_bug.cgi?id=194689
     5
     6        Reviewed by Alex Christensen.
     7
     8        Stop the timer when its context is destroyed.
     9        Add an assertion to ensure the timer does not fire after context is destroyed.
     10
     11        * page/Performance.cpp:
     12        (WebCore::Performance::stop):
     13
    1142019-02-15  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/page/Performance.cpp

    r239579 r241598  
    6565{
    6666    m_performanceTimelineTaskQueue.close();
    67 
     67    m_resourceTimingBufferFullTimer.stop();
    6868    ContextDestructionObserver::contextDestroyed();
    6969}
     
    212212void Performance::resourceTimingBufferFullTimerFired()
    213213{
     214    ASSERT(scriptExecutionContext());
     215
    214216    while (!m_backupResourceTimingBuffer.isEmpty()) {
    215217        auto backupBuffer = WTFMove(m_backupResourceTimingBuffer);
Note: See TracChangeset for help on using the changeset viewer.