0 Replies
      Latest reply on Feb 4, 2020 12:53 PM by martijnwalraven
      martijnwalraven Level 1 Level 1 (0 points)

        I'd love to find a way to programmatically create a Web Archive from a page that's currently open in Safari.

         

        A new public API to do just this was recently exposed on `WKWebView` in the WebKit project, which hopefully will be made available in future macOS/iOS updates. Exposing a similar API to Safari App Extensions would greatly improve the user experience of an app I'm currently working on.

         

        I'm imagining a `getWebArchive` method on `SFSafariPage`, analogous to the current `getScreenshotOfVisibleArea` method.

         

        Happy to discuss my use case in more detail, or help clarify the request in any other way.

         

        (I've also filed this request as issue FB7563410 through Feedback Assistant.)