[Webkit-unassigned] [Bug 203431] REGRESSION (r250754): web page using IDBIndex doesn't load occasionally

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 25 18:33:46 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=203431

--- Comment #4 from Sihui Liu <sihui_liu at apple.com> ---
(In reply to Sihui Liu from comment #3)
> (In reply to Chris Dumez from comment #2)
> > (In reply to Sihui Liu from comment #1)
> > > Adding shouldPreventEnteringBackForwardCache_DEPRECATED() to return true in
> > > IDBIndex fixes the issue.
> > 
> > This would not the right fix though, just to be clear.
> 
> The cause is the IDBDatabase object is not destroyed and database connection
> stays open when user navigates to another page. When the second page tries
> to delete the database, it's blocked on the open connection.
> 
> We have to close database connections on navigation, and this would change
> the state of the IDB DOM objects (open connection -> closed, ongoing
> transaction -> aborted, etc). If the state change is acceptable for page
> cache, we probably stop()/close() the IDBDatabase in suspend().

Or maybe to invalidate the IDB objects when there are IDB changes from the new page, and discard page cache when there are invalidated IDB objects

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191026/2a8ed14c/attachment.htm>


More information about the webkit-unassigned mailing list