Needed to properly implement W3C WebDriver, ยง18.4, Step 5 from the WebKit side.
<rdar://problem/37408183>
https://w3c.github.io/webdriver/webdriver-spec.html#send-alert-text
Created attachment 333540 [details] Proposed Fix
Comment on attachment 333540 [details] Proposed Fix This looks good to me, r=me because patch is trivial, but maybe an Apple reviewer should check the new Cocoa API.
Comment on attachment 333540 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=333540&action=review wk2r=me > Source/WebKit/UIProcess/API/Cocoa/_WKAutomationSessionDelegate.h:64 > +- (_WKAutomationSessionJavaScriptDialogType)_automationSession:(_WKAutomationSession *)automationSession typeOfCurrentJavaScriptDialogOnPage:(WKPageRef)page; These should still have availability macros, no?
Comment on attachment 333540 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=333540&action=review >> Source/WebKit/UIProcess/API/Cocoa/_WKAutomationSessionDelegate.h:64 >> +- (_WKAutomationSessionJavaScriptDialogType)_automationSession:(_WKAutomationSession *)automationSession typeOfCurrentJavaScriptDialogOnPage:(WKPageRef)page; > > These should still have availability macros, no? Hmm, yes. They shall match the availability of the related WKWebView delegate method above.
Created attachment 334402 [details] For landing
Comment on attachment 334402 [details] For landing Clearing flags on attachment: 334402 Committed r228902: <https://trac.webkit.org/changeset/228902>
All reviewed patches have been landed. Closing bug.
Reverted r228902 for reason: This broke internal builds. Committed r228920: <https://trac.webkit.org/changeset/228920>
Created attachment 334773 [details] Fix internal build
Comment on attachment 334773 [details] Fix internal build Clearing flags on attachment: 334773 Committed r229117: <https://trac.webkit.org/changeset/229117>