blob: 0ad2f86e62efccb472a4f7720e77dd9b78d32ed0 [file] [log] [blame]
<html>
<head>
<script>
var xhrStatus = -1;
// An icon in the simple_with_icon test extension.
var imgUrl = 'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/icon.png';
window.onload = function() {
// The call to pushState with chrome-extension:// URL will succeed, since the
// test uses --disable-web-security.
history.pushState('', '',
'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/');
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
xhrStatus = xhr.status;
if (xhrStatus == 200) {
document.getElementById('star').src =
window.URL.createObjectURL(this.response);
}
domAutomationController.send(xhr.status);
}
}
xhr.open('GET', imgUrl);
xhr.responseType = 'blob';
xhr.send();
}
</script>
</head>
<body>
<img id='star'>
</body>
</html>