Bug 124150

Summary: Rename PlatformCertificateInfo to CertificateInfo
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, buildbot, cdumez, cgarcia, commit-queue, darin, dino, gustavo, gyuyoung.kim, kling, mrobinson, ossy, rakuco, rniwa, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 118520, 124724, 124720    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Csaba Osztrogonác 2013-11-11 08:44:55 PST
Because Anders asked it in https://bugs.webkit.org/show_bug.cgi?id=118520#c37
and we want to separete renaming and moving thing.
Comment 1 Csaba Osztrogonác 2013-11-11 08:56:18 PST
Created attachment 216576 [details]
Patch

WIP patch for EWS bots.
Comment 2 WebKit Commit Bot 2013-11-11 08:58:14 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 WebKit Commit Bot 2013-11-11 08:58:26 PST
Attachment 216576 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/GNUmakefile.list.am', u'Source/WebKit2/NetworkProcess/AsynchronousNetworkLoaderClient.cpp', u'Source/WebKit2/NetworkProcess/NetworkProcess.h', u'Source/WebKit2/NetworkProcess/NetworkProcess.messages.in', u'Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp', u'Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm', u'Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp', u'Source/WebKit2/PlatformEfl.cmake', u'Source/WebKit2/PlatformGTK.cmake', u'Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.h', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.messages.in', u'Source/WebKit2/Shared/Authentication/mac/AuthenticationManager.mac.mm', u'Source/WebKit2/Shared/UserMessageCoders.h', u'Source/WebKit2/Shared/WebCertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.mm', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm', u'Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm', u'Source/WebKit2/Shared/soup/CertificateInfo.cpp', u'Source/WebKit2/Shared/soup/CertificateInfo.h', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/soup/WebCoreArgumentCodersSoup.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfo.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfoPrivate.h', u'Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp', u'Source/WebKit2/UIProcess/Authentication/AuthenticationChallengeProxy.cpp', u'Source/WebKit2/UIProcess/WebContext.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/WebKit2.xcodeproj/project.pbxproj', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.h', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.messages.in', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Source/WebKit2/WebProcess/WebProcess.h', u'Source/WebKit2/WebProcess/WebProcess.messages.in', u'Source/WebKit2/WebProcess/soup/WebProcessSoup.cpp']" exit_code: 1
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Use 0 instead of NULL.  [readability/null] [5]
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 41 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Csaba Osztrogonác 2013-11-11 09:03:58 PST
> Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Use 0 instead of NULL.  [readability/null] [5]
> Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
> Total errors found: 2 in 41 files

I didn't touch this code, but NULL is necessary here, we can't use 0.
Comment 5 Build Bot 2013-11-11 09:27:53 PST
Comment on attachment 216576 [details]
Patch

Attachment 216576 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/22938181
Comment 6 Csaba Osztrogonác 2013-11-11 09:30:11 PST
Created attachment 216579 [details]
Patch

with speculative Mac fix
Comment 7 WebKit Commit Bot 2013-11-11 09:33:37 PST
Attachment 216579 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/GNUmakefile.list.am', u'Source/WebKit2/NetworkProcess/AsynchronousNetworkLoaderClient.cpp', u'Source/WebKit2/NetworkProcess/NetworkProcess.h', u'Source/WebKit2/NetworkProcess/NetworkProcess.messages.in', u'Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp', u'Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm', u'Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp', u'Source/WebKit2/PlatformEfl.cmake', u'Source/WebKit2/PlatformGTK.cmake', u'Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.h', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.messages.in', u'Source/WebKit2/Shared/Authentication/mac/AuthenticationManager.mac.mm', u'Source/WebKit2/Shared/UserMessageCoders.h', u'Source/WebKit2/Shared/WebCertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.mm', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm', u'Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm', u'Source/WebKit2/Shared/soup/CertificateInfo.cpp', u'Source/WebKit2/Shared/soup/CertificateInfo.h', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/soup/WebCoreArgumentCodersSoup.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfo.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfoPrivate.h', u'Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp', u'Source/WebKit2/UIProcess/Authentication/AuthenticationChallengeProxy.cpp', u'Source/WebKit2/UIProcess/WebContext.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/WebKit2.xcodeproj/project.pbxproj', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.h', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.messages.in', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Source/WebKit2/WebProcess/WebProcess.h', u'Source/WebKit2/WebProcess/WebProcess.messages.in', u'Source/WebKit2/WebProcess/soup/WebProcessSoup.cpp']" exit_code: 1
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Use 0 instead of NULL.  [readability/null] [5]
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 41 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Csaba Osztrogonác 2013-11-11 11:27:14 PST
Is there any objection against this renaming?
Comment 9 Csaba Osztrogonác 2013-11-19 07:10:52 PST
Created attachment 217298 [details]
Patch

Updated to ToT.
Comment 10 WebKit Commit Bot 2013-11-19 07:13:15 PST
Attachment 217298 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/GNUmakefile.list.am', u'Source/WebKit2/NetworkProcess/AsynchronousNetworkLoaderClient.cpp', u'Source/WebKit2/NetworkProcess/NetworkProcess.h', u'Source/WebKit2/NetworkProcess/NetworkProcess.messages.in', u'Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp', u'Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm', u'Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp', u'Source/WebKit2/PlatformEfl.cmake', u'Source/WebKit2/PlatformGTK.cmake', u'Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.h', u'Source/WebKit2/Shared/Authentication/AuthenticationManager.messages.in', u'Source/WebKit2/Shared/Authentication/mac/AuthenticationManager.mac.mm', u'Source/WebKit2/Shared/UserMessageCoders.h', u'Source/WebKit2/Shared/WebCertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.h', u'Source/WebKit2/Shared/mac/CertificateInfo.mm', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm', u'Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm', u'Source/WebKit2/Shared/soup/CertificateInfo.cpp', u'Source/WebKit2/Shared/soup/CertificateInfo.h', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.cpp', u'Source/WebKit2/Shared/soup/PlatformCertificateInfo.h', u'Source/WebKit2/Shared/soup/WebCoreArgumentCodersSoup.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfo.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitCertificateInfoPrivate.h', u'Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp', u'Source/WebKit2/UIProcess/Authentication/AuthenticationChallengeProxy.cpp', u'Source/WebKit2/UIProcess/WebContext.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.cpp', u'Source/WebKit2/UIProcess/WebFrameProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/WebKit2.xcodeproj/project.pbxproj', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.h', u'Source/WebKit2/WebProcess/Network/WebResourceLoader.messages.in', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Source/WebKit2/WebProcess/WebProcess.h', u'Source/WebKit2/WebProcess/WebProcess.messages.in', u'Source/WebKit2/WebProcess/soup/WebProcessSoup.cpp']" exit_code: 1
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Use 0 instead of NULL.  [readability/null] [5]
Source/WebKit2/Shared/soup/CertificateInfo.cpp:106:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 41 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Csaba Osztrogonác 2013-11-19 07:14:36 PST
Please ignore the style alarm, it is still false.
Comment 12 Brent Fulgham 2013-11-19 09:46:46 PST
Comment on attachment 217298 [details]
Patch

r=me, but please address the two style complaints. I know you are being unfairly tagged for code you are simply renaming, but these are so simple it would be nice to get a full green build.
Comment 13 Carlos Garcia Campos 2013-11-19 09:58:55 PST
(In reply to comment #12)
> (From update of attachment 217298 [details])
> r=me, but please address the two style complaints. I know you are being unfairly tagged for code you are simply renaming, but these are so simple it would be nice to get a full green build.

Ossy, I think you can fix the NULL being used as sentinel by using nullptr instead, because you can't use 0 in that case.
Comment 14 Csaba Osztrogonác 2013-11-21 08:07:45 PST
Created attachment 217571 [details]
Patch

Style issues fixed. Brent, thanks for the informal review. Can we get the final review from a WK2 owner?
Comment 15 Csaba Osztrogonác 2013-11-21 08:26:37 PST
Additional info: I tested on Safari and certificates still works.
Comment 16 Csaba Osztrogonác 2013-11-21 14:28:52 PST
Comment on attachment 217571 [details]
Patch

Clearing flags on attachment: 217571

Committed r159647: <http://trac.webkit.org/changeset/159647>
Comment 17 Csaba Osztrogonác 2013-11-21 14:29:01 PST
All reviewed patches have been landed.  Closing bug.
Comment 18 Csaba Osztrogonác 2013-11-22 07:51:06 PST
comment from #webkit IRC:
<dino_>	Ossy_night: I think http://trac.webkit.org/changeset/159647 has caused a lot of WebSocket failures


I think you meant the failures on Mavericks Release WK1 tester:
http://build.webkit.org/builders/Apple%20Mavericks%20Release%20WK1%20%28Tests%29/builds/1085

I checked this issue, triggered 2 clean builds on this bot
- on 159647 - http://build.webkit.org/builders/Apple%20Mavericks%20Release%20WK1%20%28Tests%29/builds/1097
- on 159646 - http://build.webkit.org/builders/Apple%20Mavericks%20Release%20WK1%20%28Tests%29/builds/1098

And the failures were occured on r159646 too, before my patch.

And then I noticed it is a WK1 tester bot an my patch 
is WK2 only, so it was impossible that I broke this bot.