Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: chrome/test/data/indexeddb/database_callbacks_first.html

Issue 6677034: Add IndexedDB browser test that causes a crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more explicit js, limit use of expose-gc Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/indexeddb/database_callbacks_second.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | chrome/test/data/indexeddb/database_callbacks_second.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698