WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140655
[WK2] Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API
https://bugs.webkit.org/show_bug.cgi?id=140655
Summary
[WK2] Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API
Chris Dumez
Reported
2015-01-19 19:06:07 PST
Stop using WKDiagnosticLoggingResultType.h C API header in Cocoa API. Instead, introduce a _WKDiagnosticLoggingResultType.h Cocoa header to define the WKDiagnosticLoggingResultType enum.
Attachments
WIP Patch
(3.01 KB, patch)
2015-01-19 21:08 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(1.55 KB, patch)
2015-01-19 21:45 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(4.64 KB, patch)
2015-01-20 19:06 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-01-19 21:08:46 PST
Created
attachment 244963
[details]
WIP Patch
Chris Dumez
Comment 2
2015-01-19 21:13:15 PST
Comment on
attachment 244963
[details]
WIP Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244963&action=review
> Source/WebKit2/UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:45 > +- (void)_webView:(WKWebView *)webView logDiagnosticMessageWithResult:(NSString *)message description:(NSString *)description result:(_WKDiagnosticLoggingResultType)result;
This breaks API compatibility unfortunately: error: conflicting parameter types in declaration of '_webView:logDiagnosticMessageWithResult:description:result:': '_WKDiagnosticLoggingResultType' vs 'WKDiagnosticLoggingResultType' (aka 'unsigned int') [-Werror,-Woverriding-method-mismatch] Any suggestion how to do the transition? I tried using "typedef NS_ENUM(uint32_t, _WKDiagnosticLoggingResultType)" above so that _WKDiagnosticLoggingResultType and WKDiagnosticLoggingResultType are typedefs to the same type but this does not seem to help...
Brent Fulgham
Comment 3
2015-01-19 21:45:51 PST
Created
attachment 244967
[details]
Patch
Brent Fulgham
Comment 4
2015-01-19 21:47:10 PST
Comment on
attachment 244967
[details]
Patch Sorry. I typed the wrong value in the ChangeLog. This patch is not related to this bug.
Chris Dumez
Comment 5
2015-01-20 19:06:45 PST
Created
attachment 245042
[details]
Patch
WebKit Commit Bot
Comment 6
2015-01-21 10:54:57 PST
Comment on
attachment 245042
[details]
Patch Clearing flags on attachment: 245042 Committed
r178848
: <
http://trac.webkit.org/changeset/178848
>
WebKit Commit Bot
Comment 7
2015-01-21 10:55:01 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug