performance.getEntries missing entries in dynamically generated iframe
Reported by
so...@simulation.dk,
Mar 17 2016
|
||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
Steps to reproduce the problem:
This simple html will show the problem:
<html>
<body>
<script>
var iframe = document.createElement('iframe');
var html = '<body><img src="http://dummyimage.com/100x200/333/fff&text=hey_2_1"><img src="http://dummyimage.com/100x200/555/fff&text=hey_2_2"></body>';
iframe.src = 'data:text/html;charset=utf-8,' + encodeURI(html);
document.body.appendChild(iframe);
</script>
<img src="http://dummyimage.com/100x200/333/fff&text=hey_1_1">
<img src="http://dummyimage.com/100x200/333/fff&text=hey_1_2">
</body>
</html>
What is the expected behavior?
Choosing top in the console and running performance.getEntries() - I would expect two entries returned (hey_1_1 and hey_1_2) but three elements are returned.
Choosing the dynamic iframe (data:text/html;....) - I would expect two entries but only one entry is returned.
What went wrong?
Not sure, but it seems that entries are not assigned the context correctly.
Did this work before? N/A
Chrome version: 49.0.2623.87 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 21.0 r0
,
Mar 18 2016
Reproduced in 49.0.2623.87 64-bit stable (Linux) but not in 51.0.2679.0 64-bit dev (Linux). Already fixed?
,
Mar 18 2016
You're right. It also works as expected in Version 50.0.2661.37 beta-m (64-bit) (windows).
,
Mar 18 2016
OK, then let me close this as fixed in M50. Thank you for the report. |
||
►
Sign in to add a comment |
||
Comment 1 by caseq@chromium.org
, Mar 17 2016Components: -Platform>DevTools Blink>PerformanceAPIs