| <!DOCTYPE html> |
| <script> |
| |
| var request = window.indexedDB.open("IndexedDBUserDelete"); |
| request.onsuccess = function(event) { |
| window.webkit.messageHandlers.testHandler.postMessage("Continue"); |
| |
| for (let i = 0; i < 1000; i++) { |
| transaction = event.target.result.transaction("TestObjectStore"); |
| } |
| } |
| |
| request.onupgradeneeded = function(event) { |
| var createRequest = event.target.result.createObjectStore("TestObjectStore"); |
| createRequest.onerror = function(event) { |
| window.webkit.messageHandlers.testHandler.postMessage("ObjectStore Error"); |
| } |
| } |
| |
| request.onerror = function(event) { |
| window.webkit.messageHandlers.testHandler.postMessage("Error"); |
| } |
| |
| </script> |