Bug 142716

Summary: Make DatabaseContext suspendable if there is no pending database activity
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, beidson, bfulgham, commit-queue, kling, sam
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-03-15 17:49:08 PDT
Make DatabaseContext suspendable if there is no pending database activity, i.e.
- Pending Database creation JS callback
- Pending transaction(s)

Suspending is safe in this case because we are not going to interrupt any database activity, nor fire any JS event.

This will greatly increase the likelihood of pages using websql to enter the PageCache.

Radar: <rdar://problem/19923085>
Comment 1 Chris Dumez 2015-03-15 17:54:21 PDT
Created attachment 248694 [details]
Patch
Comment 2 Andreas Kling 2015-03-16 12:34:40 PDT
Comment on attachment 248694 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2015-03-16 13:21:01 PDT
Comment on attachment 248694 [details]
Patch

Clearing flags on attachment: 248694

Committed r181577: <http://trac.webkit.org/changeset/181577>
Comment 4 WebKit Commit Bot 2015-03-16 13:21:07 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Brent Fulgham 2015-03-17 10:52:07 PDT
This broke Windows tests because Windows does not support this feature.

Added Skip declarations in r181652 <https://trac.webkit.org/changeset/181652>