Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / test / data / indexeddb / database_callbacks_first.html
blob7410e0202f036b9c28492c4a84b90d96aa7a6512
1 <script>
3 function gcAndDetach() {
4 // Collect the IDBRequest so that only the indexeddb message dispatcher
5 // has a reference to IDBDatabase.
6 gc();
7 // Make Document::detach run stopActiveDOMObjects.
8 location.href = 'database_callbacks_second.html';
10 function openConnection() {
11 var idbRequest = indexedDB.open("database_callbacks_first");
12 // setTimeout is needed so that the IDBRequest returned by
13 // indexedDB.open() can be garbage collected.
14 idbRequest.onsuccess = function() { setTimeout(gcAndDetach, 0) };
16 openConnection();
17 </script>