Bug 65486

Summary: [Chromium] WebSQLDatabase version handling is broken in multi-process browsers.
Product: WebKit Reporter: Michael Nordman <michaeln>
Component: WebCore Misc.Assignee: Michael Nordman <michaeln>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
version handling
none
version handling - style fix
webkit-ews: commit-queue-
version handling - fix unused local var error fishd: review+

Description Michael Nordman 2011-08-01 14:27:53 PDT
[Chromium] WebSQLDatabase version handling is broken in multi-process browsers.

The WebCore::AbstractDatabase class maintains a global in-memory map of the version numbers associated with open database files. That map is not reliable in a multi-process system.
Comment 1 Michael Nordman 2011-08-01 15:10:57 PDT
Created attachment 102567 [details]
version handling
Comment 2 WebKit Review Bot 2011-08-01 15:13:10 PDT
Attachment 102567 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebCore/storage/AbstractDatabase.h:101:  The parameter name "version" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebCore/storage/AbstractDatabase.h:104:  The parameter name "version" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebCore/storage/AbstractDatabase.cpp:354:  One space before end of line comments  [whitespace/comments] [5]
Total errors found: 3 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Michael Nordman 2011-08-01 15:18:34 PDT
Created attachment 102569 [details]
version handling - style fix
Comment 4 Early Warning System Bot 2011-08-01 15:25:03 PDT
Comment on attachment 102569 [details]
version handling - style fix

Attachment 102569 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/9290524
Comment 5 Michael Nordman 2011-08-01 15:45:07 PDT
Created attachment 102577 [details]
version handling - fix unused local var error
Comment 6 Michael Nordman 2011-08-01 17:22:22 PDT
Committed r92155: <http://trac.webkit.org/changeset/92155>