Changeset 250531 in webkit
- Timestamp:
- Sep 30, 2019 3:33:32 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r250527 r250531 1 2019-09-30 Chris Dumez <cdumez@apple.com> 2 3 IDBTransaction / IDBObjectStore should not prevent a page from entering the back / forward cache 4 https://bugs.webkit.org/show_bug.cgi?id=202291 5 <rdar://problem/55760106> 6 7 Reviewed by Geoffrey Garen. 8 9 Add layout test coverage. 10 11 * storage/indexeddb/IDBTransaction-page-cache.html: Added. 12 1 13 2019-09-30 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/fast/history/page-cache-indexed-opened-db-expected.txt
r180771 r250531 1 Tests that a page with an open IndexedDB database does not gointo the page cache.1 Tests that a page with an open IndexedDB database goes into the page cache. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 5 5 6 6 pageshow - not from cache 7 PASS Page was not restored from page cache 7 pagehide - entering cache 8 pageshow - from cache 9 PASS Page did enter and was restored from the page cache 8 10 PASS successfullyParsed is true 9 11 -
trunk/LayoutTests/fast/history/page-cache-indexed-opened-db.html
r250398 r250531 5 5 <script src="../../resources/js-test-pre.js"></script> 6 6 <script> 7 description('Tests that a page with an open IndexedDB database does not gointo the page cache.');7 description('Tests that a page with an open IndexedDB database goes into the page cache.'); 8 8 window.jsTestIsAsync = true; 9 9 … … 16 16 17 17 if (event.persisted) 18 test Failed("Page did enter and was restored from the page cache");18 testPassed("Page did enter and was restored from the page cache"); 19 19 else 20 test Passed("Page was not restored from page cache");20 testFailed("Page was not restored from page cache"); 21 21 finishJSTest(); 22 22 }, false); … … 24 24 window.addEventListener("pagehide", function(event) { 25 25 debug("pagehide - " + (event.persisted ? "" : "not ") + "entering cache"); 26 if ( event.persisted) {27 testFailed("Page enteredthe page cache.");26 if (!event.persisted) { 27 testFailed("Page failed to enter the page cache."); 28 28 finishJSTest(); 29 29 } -
trunk/Source/WebCore/ChangeLog
r250528 r250531 1 2019-09-30 Chris Dumez <cdumez@apple.com> 2 3 IDBTransaction / IDBObjectStore should not prevent a page from entering the back / forward cache 4 https://bugs.webkit.org/show_bug.cgi?id=202291 5 <rdar://problem/55760106> 6 7 Reviewed by Geoffrey Garen. 8 9 IDBObjectStore does not fire any events and should therefore not cause any problem while in PageCache. 10 IDBTransaction can only fire abort/complete/error events, all of which are being enqueued to the 11 DocumentEventQueue. The DocumentEventQueue subclasses SuspendableTimer which will correctly suspend 12 while the document is in page cache. IDBTransaction will therefore not cause events to fire (and JS 13 to run) while in page cache. 14 15 Test: storage/indexeddb/IDBTransaction-page-cache.html 16 17 * Modules/indexeddb/IDBObjectStore.cpp: 18 (WebCore::IDBObjectStore::canSuspendForDocumentSuspension const): 19 * Modules/indexeddb/IDBTransaction.cpp: 20 (WebCore::IDBTransaction::canSuspendForDocumentSuspension const): 21 1 22 2019-09-30 Chris Dumez <cdumez@apple.com> 2 23 -
trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
r248846 r250531 78 78 bool IDBObjectStore::canSuspendForDocumentSuspension() const 79 79 { 80 return false;80 return true; 81 81 } 82 82 -
trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp
r250061 r250531 327 327 { 328 328 ASSERT(&m_database->originThread() == &Thread::current()); 329 return false;329 return true; 330 330 } 331 331
Note: See TracChangeset
for help on using the changeset viewer.