Bug 146571 - WKWebView should provide a public API to get Web Archive data
Summary: WKWebView should provide a public API to get Web Archive data
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-07-02 18:43 PDT by Ari Weinstein
Modified: 2019-11-17 17:49 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ari Weinstein 2015-07-02 18:43:29 PDT
Web Archives are a very useful serialization format for web content. It would be really great if WKWebView offered a way to get the web archive data from a loaded web view so that it can be saved for later/offline usage, or converted to another format.

Currently, there is a private method named - (void)_getWebArchiveDataWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler, but there is no public functionality.

Developers may currently resort to using UIWebView and programmatically selecting the page content, copying it to the pasteboard, and getting the Web Archive data from there, but this is problematic and inefficient.
Comment 1 Ari Weinstein 2015-07-02 18:44:55 PDT
rdar://21429104 (closed as dup of rdar://17317547)