Make IDBDatabase / IDBRequest suspendable under certain conditions to make it more likely for pages using indexeddb to enter the PageCache. IDBDatabase is safely suspendable if the database is closed. IDBRequest is safely suspendable if the request's state is DONE (i.e. success / failure handler was called). We may be able to do better later but this is the bare minimum. Radar: <rdar://problem/19923085>
Created attachment 247498 [details] Patch
Comment on attachment 247498 [details] Patch Attachment 247498 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5952840031797248 New failing tests: fast/history/page-cache-indexed-closed-db.html fast/history/page-cache-indexed-opened-db.html
Created attachment 247501 [details] Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
Created attachment 247502 [details] Patch
Created attachment 247518 [details] Patch
Comment on attachment 247518 [details] Patch r=me
Comment on attachment 247518 [details] Patch Clearing flags on attachment: 247518 Committed r180771: <http://trac.webkit.org/changeset/180771>
All reviewed patches have been landed. Closing bug.
These new tests timeout on Windows: fast/history/page-cache-indexed-closed-db.html fast/history/page-cache-indexed-opened-db.html fast/history/page-cache-webdatabase-opened-db.html
(In reply to comment #9) > These new tests timeout on Windows: > > fast/history/page-cache-indexed-closed-db.html > fast/history/page-cache-indexed-opened-db.html > fast/history/page-cache-webdatabase-opened-db.html Maybe Windows does not implement IndexedDB?
(In reply to comment #10) > (In reply to comment #9) > > These new tests timeout on Windows: > > > > fast/history/page-cache-indexed-closed-db.html > > fast/history/page-cache-indexed-opened-db.html > > fast/history/page-cache-webdatabase-opened-db.html > > Maybe Windows does not implement IndexedDB? Right, they need to be skipped on Windows, similarly to pre-existing: LayoutTests/platform/win/TestExpectations:storage/indexeddb/ [ Skip ]
Follow up in <http://trac.webkit.org/changeset/180776> to skip the new tests on platforms that don't enable IndexedDB.