Add a DiagnosticLogging method taking an arbitrary dictionary of values.
Created attachment 367143 [details] Patch
Attachment 367143 [details] did not pass style-queue: ERROR: Source/WTF/wtf/HashFunctions.h:288: More than one command on the same line [whitespace/newline] [4] Total errors found: 1 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 367143 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367143&action=review Let's add HashTraits<Variant<Types...>> and some WTF tests for this. > Source/WTF/wtf/HashFunctions.h:222 > + return std::hash<Variant<Types...>>(a) == std::hash<Variant<Types...>>(b); This should just use operator== without using std::hash.
Turns out, the VariantHash changes are totally unnecessary. I'll remove them (and separate out that work to another patch).
Created attachment 367157 [details] Patch
Comment on attachment 367157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367157&action=review > Source/WebKit/UIProcess/API/C/WKPageDiagnosticLoggingClient.h:68 > +typedef struct WKPageDiagnosticLoggingClientV2 { Let's not add to the C API for this. > Source/WebKit/UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:43 > +- (void)_webView:(WKWebView *)webView logDiagnosticMessage:(NSString *)message description:(NSString *)description valueDictionary:(NSDictionary *)valueDictionary; Please add a test that this can be called in WKWebViewDiagnosticLogging.mm.
Comment on attachment 367157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367157&action=review >> Source/WebKit/UIProcess/API/Cocoa/_WKDiagnosticLoggingDelegate.h:43 >> +- (void)_webView:(WKWebView *)webView logDiagnosticMessage:(NSString *)message description:(NSString *)description valueDictionary:(NSDictionary *)valueDictionary; > > Please add a test that this can be called in WKWebViewDiagnosticLogging.mm. Also add availability macros.
Comment on attachment 367157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367157&action=review > Source/WebKit/UIProcess/Cocoa/DiagnosticLoggingClient.h:64 > + unsigned webviewLogDiagnosticMessageWithValueDictionary : 1; This is never set :(
Created attachment 367469 [details] Patch
Created attachment 367471 [details] Patch
http://trac.webkit.org/r244307
<rdar://problem/49923704>