Bug 91408

Summary: IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
Product: WebKit Reporter: David Grogan <dgrogan>
Component: New BugsAssignee: David Grogan <dgrogan>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, alecflett, dglazkov, fishd, jamesr, jsbell, tkent+wkapi, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 91414    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch
none
Patch none

David Grogan
Reported 2012-07-16 11:15:51 PDT
IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
Attachments
Patch (1.36 KB, patch)
2012-07-16 11:19 PDT, David Grogan
no flags
Patch (1.54 KB, patch)
2012-07-16 11:36 PDT, David Grogan
no flags
Patch (1.79 KB, patch)
2012-07-16 14:17 PDT, David Grogan
no flags
Patch for landing (2.00 KB, patch)
2012-07-17 15:18 PDT, David Grogan
no flags
Patch (3.39 KB, patch)
2012-07-18 15:48 PDT, David Grogan
no flags
Patch (1.96 KB, patch)
2012-07-18 17:41 PDT, David Grogan
no flags
David Grogan
Comment 1 2012-07-16 11:19:36 PDT
David Grogan
Comment 2 2012-07-16 11:20:28 PDT
Josh or Alec, could you look at this?
WebKit Review Bot
Comment 3 2012-07-16 11:24:05 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Joshua Bell
Comment 4 2012-07-16 11:25:57 PDT
Comment on attachment 152570 [details] Patch LGTM
David Grogan
Comment 5 2012-07-16 11:36:52 PDT
Darin Fisher (:fishd, Google)
Comment 6 2012-07-16 13:36:54 PDT
Comment on attachment 152573 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152573&action=review > Source/WebKit/chromium/public/WebIDBMetadata.h:48 > WebIDBMetadata() { } perhaps you should initialize intVersion? it is good practice for default constructors to initialize integer fields, etc.
David Grogan
Comment 7 2012-07-16 14:17:40 PDT
David Grogan
Comment 8 2012-07-16 14:19:25 PDT
Comment on attachment 152573 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152573&action=review >> Source/WebKit/chromium/public/WebIDBMetadata.h:48 >> WebIDBMetadata() { } > > perhaps you should initialize intVersion? it is good practice for > default constructors to initialize integer fields, etc. Sounds good. Done.
David Grogan
Comment 9 2012-07-17 14:32:43 PDT
Comment on attachment 152609 [details] Patch ping fishd / other WebKit API reviewers
Adam Barth
Comment 10 2012-07-17 15:06:18 PDT
Comment on attachment 152609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152609&action=review > Source/WebKit/chromium/public/WebIDBMetadata.h:49 > WebString version; > + int64_t intVersion; Is the plan to delete version and rename intVersion to version at some point? I wonder if it make sense to add a macro for selecting between the two? Maybe add a FIXME explaining your future plans?
David Grogan
Comment 11 2012-07-17 15:15:47 PDT
Comment on attachment 152609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152609&action=review >> Source/WebKit/chromium/public/WebIDBMetadata.h:49 >> + int64_t intVersion; > > Is the plan to delete version and rename intVersion to version at some point? I wonder if it make sense to add a macro for selecting between the two? Maybe add a FIXME explaining your future plans? The plan is to delete version, but not necessarily to rename intVersion. A macro seems like overkill, but a FIXME would be prudent. Coming up.
David Grogan
Comment 12 2012-07-17 15:18:22 PDT
Created attachment 152844 [details] Patch for landing
WebKit Review Bot
Comment 13 2012-07-17 16:04:58 PDT
Comment on attachment 152844 [details] Patch for landing Clearing flags on attachment: 152844 Committed r122884: <http://trac.webkit.org/changeset/122884>
WebKit Review Bot
Comment 14 2012-07-17 16:05:04 PDT
All reviewed patches have been landed. Closing bug.
Tony Chang
Comment 15 2012-07-17 16:45:11 PDT
This appears to be causing compile failures on Windows: 7> WebIDBMetadata.cpp 7>C:\b\build\slave\webkit-win-latest-rel\build\src\third_party\WebKit\Source\WebKit\chromium\public\WebIDBMetadata.h(52): error C2146: syntax error : missing ';' before identifier 'intVersion' 7>C:\b\build\slave\webkit-win-latest-rel\build\src\third_party\WebKit\Source\WebKit\chromium\public\WebIDBMetadata.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 7>C:\b\build\slave\webkit-win-latest-rel\build\src\third_party\WebKit\Source\WebKit\chromium\public\WebIDBMetadata.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 7>C:\b\build\slave\webkit-win-latest-rel\build\src\third_party\WebKit\Source\WebKit\chromium\public\WebIDBMetadata.h(54): error C2614: 'WebKit::WebIDBMetadata' : illegal member initialization: 'intVersion' is not a base or member 7>c:\b\build\slave\webkit-win-latest-rel\build\src\third_party\webkit\source\webkit\chromium\public\WebIDBMetadata.h(52): error C2146: syntax error : missing ';' before identifier 'intVersion' 7>c:\b\build\slave\webkit-win-latest-rel\build\src\third_party\webkit\source\webkit\chromium\public\WebIDBMetadata.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 7>c:\b\build\slave\webkit-win-latest-rel\build\src\third_party\webkit\source\webkit\chromium\public\WebIDBMetadata.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 7>c:\b\build\slave\webkit-win-latest-rel\build\src\third_party\webkit\source\webkit\chromium\public\WebIDBMetadata.h(54): error C2614: 'WebKit::WebIDBMetadata' : illegal member initialization: 'intVersion' is not a base or member 7
Tony Chang
Comment 16 2012-07-17 17:03:41 PDT
Reverted r122884 for reason: Broke the chromium-win build. Committed r122898: <http://trac.webkit.org/changeset/122898>
David Grogan
Comment 17 2012-07-18 15:48:43 PDT
David Grogan
Comment 18 2012-07-18 15:52:04 PDT
Comment on attachment 153115 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=153115&action=review > Source/Platform/chromium/public/WebCommon.h:77 > +typedef __int64 int64_t; The windows try server suggests this will fix the problem: original patch fails compile: http://build.chromium.org/p/tryserver.chromium/builders/win_layout_rel/builds/519 patch with typedef compiles fine: http://build.chromium.org/p/tryserver.chromium/builders/win_layout_rel/builds/520
WebKit Review Bot
Comment 19 2012-07-18 15:52:18 PDT
Attachment 153115 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
David Grogan
Comment 20 2012-07-18 16:22:14 PDT
(In reply to comment #19) > Attachment 153115 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 > Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] > Total errors found: 1 in 4 files > > > If any of these errors are false positives, please file a bug against check-webkit-style. Done: https://bugs.webkit.org/show_bug.cgi?id=91691
David Grogan
Comment 21 2012-07-18 16:24:19 PDT
Comment on attachment 153115 [details] Patch Adam, could you review this patch (again)? Thanks.
Adam Barth
Comment 22 2012-07-18 16:29:07 PDT
Comment on attachment 153115 [details] Patch We must use 64-bit numbers in the WebKit API. I'm surprised that we'd need this typedef.
Adam Barth
Comment 23 2012-07-18 16:29:54 PDT
Looks like we use "long long" for 64 bit ints.
Adam Barth
Comment 24 2012-07-18 16:30:19 PDT
e.g., WebFrame::identifier()
David Grogan
Comment 25 2012-07-18 17:41:49 PDT
David Grogan
Comment 26 2012-07-18 17:44:51 PDT
(In reply to comment #23) > Looks like we use "long long" for 64 bit ints. Switched to long long. Another look?
WebKit Review Bot
Comment 27 2012-07-18 18:31:53 PDT
Comment on attachment 153147 [details] Patch Clearing flags on attachment: 153147 Committed r123059: <http://trac.webkit.org/changeset/123059>
WebKit Review Bot
Comment 28 2012-07-18 18:31:59 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.