1 Verify that that requests weakly hold script value properties
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "request-leak.html"
7 indexedDB.deleteDatabase(dbname)
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.put({value: 'value'}, 'key')
16 db = event.target.result
17 tx = db.transaction('store')
18 store = tx.objectStore('store')
19 request = store.get('key')
21 onTransactionComplete():
23 PASS typeof request.result is "object"
24 request.result.x = 123
25 PASS request.result.x is 123
26 request.result.leak = request
27 observer = internals.observeGC(request)
30 PASS observer.wasCollected is true
31 PASS successfullyParsed is true