RESOLVED FIXED 186204
[Cocoa] Web Automation: include browser name and version in listing for automation targets
https://bugs.webkit.org/show_bug.cgi?id=186204
Summary [Cocoa] Web Automation: include browser name and version in listing for autom...
Blaze Burg
Reported 2018-06-01 12:43:40 PDT
.
Attachments
Proposed Fix (11.48 KB, patch)
2018-06-01 16:40 PDT, Blaze Burg
darin: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews206 for win-future (12.78 MB, application/zip)
2018-06-02 03:42 PDT, EWS Watchlist
no flags
Blaze Burg
Comment 1 2018-06-01 12:43:54 PDT
Blaze Burg
Comment 2 2018-06-01 16:40:50 PDT
Created attachment 341803 [details] Proposed Fix
EWS Watchlist
Comment 3 2018-06-02 03:42:36 PDT
Comment on attachment 341803 [details] Proposed Fix Attachment 341803 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/7942045 New failing tests: http/tests/preload/onload_event.html
EWS Watchlist
Comment 4 2018-06-02 03:42:47 PDT
Created attachment 341839 [details] Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Darin Adler
Comment 5 2018-06-05 15:42:28 PDT
Comment on attachment 341803 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=341803&action=review > Source/WebKit/UIProcess/Cocoa/AutomationClient.h:58 > + String browserName() const override; > + String browserVersion() const override; final instead of override? > Source/WebKit/UIProcess/Cocoa/AutomationClient.mm:88 > + return [m_delegate.get() _processPoolBrowserNameForAutomation:m_processPool]; No need for the ".get()" here. > Source/WebKit/UIProcess/Cocoa/AutomationClient.mm:94 > + NSString *displayName = appBundle.infoDictionary[(__bridge NSString *)_kCFBundleDisplayNameKey]; > + NSString *readableName = appBundle.infoDictionary[(__bridge NSString *)kCFBundleNameKey]; > + return displayName ?: readableName; Seems a bit of a shame to compute the readableName when the displayName is non-null. Maybe omit the local variables? > Source/WebKit/UIProcess/Cocoa/AutomationClient.mm:100 > + return [m_delegate.get() _processPoolBrowserVersionForAutomation:m_processPool]; No need for the ".get()" here.
Blaze Burg
Comment 6 2018-06-08 13:46:27 PDT
Note You need to log in before you can comment on or make changes to this bug.