Index: chrome/test/data/indexeddb/database_callbacks_first.html |
diff --git a/chrome/test/data/indexeddb/database_callbacks_first.html b/chrome/test/data/indexeddb/database_callbacks_first.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..668034aab7d97069e137da277709549f65aa4a82 |
--- /dev/null |
+++ b/chrome/test/data/indexeddb/database_callbacks_first.html |
@@ -0,0 +1,17 @@ |
+<script> |
+ |
+ function gcAndDetach() { |
+ // Collect the IDBRequest so that only the indexeddb message dispatcher |
+ // has a reference to IDBDatabase. |
+ gc(); |
+ // Make Document::detach run stopActiveDOMObjects. |
+ location.href = 'database_callbacks_second.html'; |
+ } |
+ function openConnection() { |
+ var idbRequest = webkitIndexedDB.open(); |
+ // setTimeout is needed so that the IDBRequest returned by |
+ // webkitIndexedDB.open() can be garbage collected. |
+ idbRequest.onsuccess = function() { setTimeout(gcAndDetach, 0) }; |
+ } |
+ openConnection(); |
+</script> |