Bug 212801

Summary: URLs clicked on from -[WKWebView _showSafeBrowsingWarningWithURL:title:warning:details:completionHandler:] are ignored
Product: WebKit Reporter: Richard Houle <rhoule>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: achristensen, beidson, webkit-bug-importer
Priority: P1 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: macOS 10.15   
Attachments:
Description Flags
Proposed fix
none
Proposed fix V2
none
Proposed fix V3
none
Proposed fix V4 none

Description Richard Houle 2020-06-04 23:29:35 PDT
Created attachment 401122 [details]
Proposed fix

For more information about the Safari specific issue, please read <rdar://problem/63027631>.
Comment 1 Alexey Proskuryakov 2020-06-07 13:48:42 PDT
Comment on attachment 401122 [details]
Proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=401122&action=review

> Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:-2155
> -- (void)_showSafeBrowsingWarningWithTitle:(NSString *)title warning:(NSString *)warning details:(NSAttributedString *)details completionHandler:(void(^)(BOOL))completionHandler

This changes and removes SPI, will it break using ToT WebKit with shipping Safari?
Comment 2 Richard Houle 2020-06-07 14:51:29 PDT
It will.

I will submit a modified patch that keeps compatibility with shipping Safari.
Comment 3 Richard Houle 2020-06-08 11:13:32 PDT
Created attachment 401350 [details]
Proposed fix V2
Comment 4 Alex Christensen 2020-06-08 11:18:21 PDT
Comment on attachment 401350 [details]
Proposed fix V2

You should use WK_MAC_TBA and WK_IOS_TBA in the WK_API_AVAILABLE macros.
You should also add a ChangeLog entry with the change.
Comment 5 Richard Houle 2020-06-08 11:30:17 PDT
Created attachment 401351 [details]
Proposed fix V3
Comment 6 Alex Christensen 2020-06-08 11:31:06 PDT
You need to change the file Source/WebKit/ChangeLog
Comment 7 Richard Houle 2020-06-08 11:36:50 PDT
Created attachment 401352 [details]
Proposed fix V4
Comment 8 EWS 2020-06-08 12:09:47 PDT
Committed r262732: <https://trac.webkit.org/changeset/262732>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401352 [details].
Comment 9 Radar WebKit Bug Importer 2020-06-08 12:10:21 PDT
<rdar://problem/64129665>