Fixed the reporting of paint times in window.chrome.loadTimes()
The paint events were updating the document_state of whatever the last frame in the frame list was. In a case of "how did this ever work" it must have been sheer luck that the last local frame in the list was the main frame. The update just checks to make sure that the local frame is actually the main frame (no parent) when selecting the frame to update the document_state of. Could be that this broke in 38 when the proxy frames were added and maybe they were only tested on pages with a single frame. BUG=422913 Review URL: https://codereview.chromium.org/670513003 Cr-Commit-Position: refs/heads/master@{#300703}
Showing
Please register or sign in to comment