Bug 215187

Summary: Add a createWebArchiveData from a custom scheme API test
Product: WebKit Reporter: Brady Eidson <beidson>
Component: Tools / TestsAssignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Brady Eidson 2020-08-05 13:36:43 PDT
Add a createWebArchiveData from a custom scheme API test
Comment 1 Brady Eidson 2020-08-05 13:40:44 PDT
Created attachment 406034 [details]
Patch
Comment 2 Tim Horton 2020-08-05 13:42:44 PDT
Comment on attachment 406034 [details]
Patch

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

> Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:72
> +    static bool done = false;

__block instead of static?
Comment 3 Brady Eidson 2020-08-05 14:39:41 PDT
Created attachment 406040 [details]
Patch
Comment 4 Brady Eidson 2020-08-05 14:47:45 PDT
Created attachment 406042 [details]
Patch
Comment 5 Brady Eidson 2020-08-05 14:53:12 PDT
Created attachment 406045 [details]
Patch
Comment 6 Brady Eidson 2020-08-05 15:02:34 PDT
Created attachment 406046 [details]
Patch
Comment 7 Brady Eidson 2020-08-05 15:23:18 PDT
Created attachment 406049 [details]
Patch
Comment 8 EWS 2020-08-05 16:20:03 PDT
Committed r265310: <https://trac.webkit.org/changeset/265310>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406049 [details].
Comment 9 Radar WebKit Bug Importer 2020-08-05 16:21:18 PDT
<rdar://problem/66599058>
Comment 10 Darin Adler 2020-08-08 11:47:25 PDT
Comment on attachment 406046 [details]
Patch

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

> Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:93
> +    [webView loadData:archiveData.get() MIMEType:(NSString *)kUTTypeArchive characterEncodingName:@"utf-8" baseURL:[NSURL URLWithString:@"about:blank"]];

iOS build says:

CreateWebArchive.mm:93:62: error: use of undeclared identifier 'kUTTypeArchive'