file_clobbered_property.html (838B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Test DOM clobbering telemetry</title> 5 <meta charset="UTF-8"> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <script src="/tests/SimpleTest/GleanTest.js"></script> 8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 9 </head> 10 <body> 11 <img src="https://example.org/1" name="id"> 12 <img src="https://example.org/2" name="foo"> 13 <!-- Clobber the built-in property --> 14 <img src="https://example.org/3" name="currentScript"> 15 <img src="https://example.org/4" name="onreadystatechange"> 16 <img src="https://example.org/5" name="hasFocus"> 17 <script> 18 console.log(document.id); 19 console.log(document.foo); 20 console.log(document.currentScript); 21 console.log(document.onreadystatechange); 22 console.log(document.hasFocus); 23 </script> 24 </body> 25 </html>