WebMainResource WebResourceData <html><head> <script> function runTest() { if (window.layoutTestController) { layoutTestController.setIconDatabaseEnabled(true); layoutTestController.dumpDOMAsWebArchive(); layoutTestController.queueReload(); } } </script> </head> <body onload="runTest()"> <div id="console"><div style="font-family: monospace; color: green; ">PASS</div></div> <script> function print(message, color) { var paragraph = document.createElement("div"); paragraph.appendChild(document.createTextNode(message)); paragraph.style.fontFamily = "monospace"; if (color) paragraph.style.color = color; document.getElementById("console").appendChild(paragraph); } </script> <p>This test should have a green 'PASS' just above this line. If it doesn't, you failed. <link rel="icon" onbeforeload="print('PASS','green');return false" href="resources/favicon.ico" type="image/x-icon"> </p></body></html> WebResourceFrameName WebResourceMIMEType text/html WebResourceTextEncodingName UTF-8 WebResourceURL file:///LayoutTests/webarchive/test-link-rel-icon-beforeload.html