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

Changeset 187123 in webkit


Ignore:
Timestamp:
Jul 21, 2015, 2:23:26 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Total download size doesn't update soon after loading
https://bugs.webkit.org/show_bug.cgi?id=147161

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-07-21
Reviewed by Timothy Hatcher.

  • UserInterface/Models/DefaultDashboard.js:

(WebInspector.DefaultDashboard.prototype._mainResourceDidChange):
Previously autorecording would always have made us start capturing,
however we only autorecord if users are on the Timeline tab. Just
reset the time always, a navigation happened and start the timer.

(WebInspector.DefaultDashboard.prototype._resourceSizeDidChange):
Move to a better location within the file.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r187105 r187123  
     12015-07-21  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Total download size doesn't update soon after loading
     4        https://bugs.webkit.org/show_bug.cgi?id=147161
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Models/DefaultDashboard.js:
     9        (WebInspector.DefaultDashboard.prototype._mainResourceDidChange):
     10        Previously autorecording would always have made us start capturing,
     11        however we only autorecord if users are on the Timeline tab. Just
     12        reset the time always, a navigation happened and start the timer.
     13
     14        (WebInspector.DefaultDashboard.prototype._resourceSizeDidChange):
     15        Move to a better location within the file.
     16
    1172015-07-21  Nikita Vasilyev  <nvasilyev@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js

    r186925 r187123  
    136136            return;
    137137
     138        this._time = 0;
    138139        this._resourcesCount = 1;
    139140        this._resourcesSize = WebInspector.frameResourceManager.mainFrame.mainResource.size || 0;
    140 
    141         // Only update the time if we are recording the timeline.
    142         if (!WebInspector.timelineManager.isCapturing()) {
    143             this._time = 0;
    144             return;
    145         }
    146141
    147142        // We should only track resource sizes on fresh loads.
     
    169164    {
    170165        ++this.resourcesCount;
     166    }
     167
     168    _resourceSizeDidChange(event)
     169    {
     170        this.resourcesSize += event.target.size - event.data.previousSize;
    171171    }
    172172
     
    222222
    223223        this._stopUpdatingTime();
    224     }
    225 
    226     _resourceSizeDidChange(event)
    227     {
    228         this.resourcesSize += event.target.size - event.data.previousSize;
    229224    }
    230225
Note: See TracChangeset for help on using the changeset viewer.