WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140410
[WK2][iOS] Add Cocoa delegate for logging diagnostic messages
https://bugs.webkit.org/show_bug.cgi?id=140410
Summary
[WK2][iOS] Add Cocoa delegate for logging diagnostic messages
Chris Dumez
Reported
2015-01-13 14:11:51 PST
Add Cocoa delegate for logging diagnostic messages. Right now, there is only a WK2 C API client.
Attachments
Patch
(33.17 KB, patch)
2015-01-14 13:09 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(33.25 KB, patch)
2015-01-14 13:48 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(32.89 KB, patch)
2015-01-15 21:41 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(32.72 KB, patch)
2015-01-16 11:26 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(32.69 KB, patch)
2015-01-16 13:06 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-01-14 13:09:43 PST
Created
attachment 244630
[details]
Patch
Chris Dumez
Comment 2
2015-01-14 13:48:36 PST
Created
attachment 244634
[details]
Patch
Sam Weinig
Comment 3
2015-01-14 15:47:12 PST
Unless we really need this code to run in the WebProcess, I would rather we IPC this over to the UIProcess and do it there.
Chris Dumez
Comment 4
2015-01-15 21:41:00 PST
Created
attachment 244751
[details]
Patch
Chris Dumez
Comment 5
2015-01-16 11:26:24 PST
Created
attachment 244777
[details]
Patch
Chris Dumez
Comment 6
2015-01-16 12:58:16 PST
Sam, could you please take another look? I updated the patch now that diagnostic messages go through the UIProcess.
Anders Carlsson
Comment 7
2015-01-16 13:02:36 PST
Comment on
attachment 244777
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244777&action=review
> Source/WebKit2/UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:38 > +- (void)_webView:(WKWebView *)webView logDiagnosticMessage:(NSString *)message inDescription:(NSString *)description; > +- (void)_webView:(WKWebView *)webView logDiagnosticMessageWithResult:(NSString *)message inDescription:(NSString *)description inResult:(WKDiagnosticLoggingResultType)result; > +- (void)_webView:(WKWebView *)webView logDiagnosticMessageWithValue:(NSString *)message inDescription:(NSString *)description inValue:(NSString *) value;
I think these read a little weird, especially the "inDescription" and "inValue" parts.
Chris Dumez
Comment 8
2015-01-16 13:06:42 PST
Created
attachment 244796
[details]
Patch
Chris Dumez
Comment 9
2015-01-16 13:08:08 PST
(In reply to
comment #7
)
> Comment on
attachment 244777
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=244777&action=review
> > > Source/WebKit2/UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:38 > > +- (void)_webView:(WKWebView *)webView logDiagnosticMessage:(NSString *)message inDescription:(NSString *)description; > > +- (void)_webView:(WKWebView *)webView logDiagnosticMessageWithResult:(NSString *)message inDescription:(NSString *)description inResult:(WKDiagnosticLoggingResultType)result; > > +- (void)_webView:(WKWebView *)webView logDiagnosticMessageWithValue:(NSString *)message inDescription:(NSString *)description inValue:(NSString *) value; > > I think these read a little weird, especially the "inDescription" and > "inValue" parts.
Ok, I am really not familiar with ObjC and its conventions. I switched to description/value/result instead of inDescription/inValue/inResult. Let me know if you have other suggestions so that these read better.
WebKit Commit Bot
Comment 10
2015-01-17 17:41:14 PST
Comment on
attachment 244796
[details]
Patch Clearing flags on attachment: 244796 Committed
r178630
: <
http://trac.webkit.org/changeset/178630
>
WebKit Commit Bot
Comment 11
2015-01-17 17:41:19 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