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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/data/indexeddb/database_callbacks_second.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2
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';
9 }
10 function openConnection() {
11 var idbRequest = webkitIndexedDB.open();
12 // setTimeout is needed so that the IDBRequest returned by
13 // webkitIndexedDB.open() can be garbage collected.
14 idbRequest.onsuccess = function() { setTimeout(gcAndDetach, 0) };
15 }
16 openConnection();
17 </script>
OLDNEW
« 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