Changeset 192585 in webkit


Ignore:
Timestamp:
Nov 18, 2015, 1:46:33 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Timeline Recording across page navigations behaves poorly
https://bugs.webkit.org/show_bug.cgi?id=151112

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-11-18
Reviewed by Timothy Hatcher.

  • inspector/InspectorPageAgent.cpp:

(WebCore::InspectorPageAgent::frameStartedLoading): Deleted.
Don't reset the execution stopwatch on page navigation.
If a timeline is actively being recorded on the frontend
then all new timestamps suddenly downshifted towards zero
introduces bad data.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r192583 r192585  
     12015-11-18  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Timeline Recording across page navigations behaves poorly
     4        https://bugs.webkit.org/show_bug.cgi?id=151112
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * inspector/InspectorPageAgent.cpp:
     9        (WebCore::InspectorPageAgent::frameStartedLoading): Deleted.
     10        Don't reset the execution stopwatch on page navigation.
     11        If a timeline is actively being recorded on the frontend
     12        then all new timestamps suddenly downshifted towards zero
     13        introduces bad data.
     14
    1152015-11-18  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebCore/inspector/InspectorPageAgent.cpp

    r192061 r192585  
    804804void InspectorPageAgent::frameStartedLoading(Frame& frame)
    805805{
    806     if (frame.isMainFrame()) {
    807         auto stopwatch = m_environment.executionStopwatch();
    808         stopwatch->reset();
    809         stopwatch->start();
    810     }
    811 
    812806    m_frontendDispatcher->frameStartedLoading(frameId(&frame));
    813807}
Note: See TracChangeset for help on using the changeset viewer.