<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>146571</bug_id>
          
          <creation_ts>2015-07-02 18:43:29 -0700</creation_ts>
          <short_desc>WKWebView should provide a public API to get Web Archive data</short_desc>
          <delta_ts>2019-11-17 17:49:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ari Weinstein">ari</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>kc</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1106582</commentid>
    <comment_count>0</comment_count>
    <who name="Ari Weinstein">ari</who>
    <bug_when>2015-07-02 18:43:29 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106583</commentid>
    <comment_count>1</comment_count>
    <who name="Ari Weinstein">ari</who>
    <bug_when>2015-07-02 18:44:55 -0700</bug_when>
    <thetext>rdar://21429104 (closed as dup of rdar://17317547)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>