New issue
Advanced search Search tips

Issue 595718 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

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
 
performance.jpg
71.1 KB View Download

Comment 1 by caseq@chromium.org, Mar 17 2016

Cc: caseq@chromium.org
Components: -Platform>DevTools Blink>PerformanceAPIs
Reproduced in 49.0.2623.87 64-bit stable (Linux) but not in 51.0.2679.0 64-bit dev (Linux). Already fixed?

Comment 3 by so...@simulation.dk, Mar 18 2016

You're right. It also works as expected in Version 50.0.2661.37 beta-m (64-bit) (windows).
Status: WontFix (was: Unconfirmed)
OK, then let me close this as fixed in M50.
Thank you for the report.

Sign in to add a comment