blob: a878586634f4851ebd56c739da68690f84f6713f [file] [log] [blame]
<!DOCTYPE html>
<script>
var request = window.indexedDB.open("TestIndexedDB");
request.onsuccess = (event) => {
db = event.target.result;
var secondRequest = window.indexedDB.open("TestIndexedDB", db.version + 1);
secondRequest.onsuccess = (event) => {
window.webkit.messageHandlers.testHandler.postMessage("Second Open Succeeded");
}
secondRequest.onerror = () => {
window.webkit.messageHandlers.testHandler.postMessage("Second Open Failed: " + secondRequest.error);
}
}
request.onerror = () => {
window.webkit.messageHandlers.testHandler.postMessage("First Open Failed: " + request.error);
}
</script>