blob: 94538bbbe80883800fa69236b9ddaf0ece3dc789 [file] [log] [blame]
<html>
<head>
<script>
function log(message) {
var node = document.createElement('p');
node.textContent = message;
document.body.appendChild(node);
}
window.onload = function() {
try {
var sql = window.openDatabase('testdb', '1.0', 'Testing database', 512 * 1024);
sql = null;
log('No exception');
} catch (exception) {
log(exception.name);
}
}
window.onmessage = function(e) {
try {
var sql = window.openDatabase('testdb', '1.0', 'Testing database', 512 * 1024);
sql = null;
log('No exception');
window.parent.postMessage('No exception', '*');
} catch (exception) {
log(exception.name);
window.parent.postMessage(exception.name, '*');
}
}
</script>
</head>
<body>
</body>
</html>