Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

[feature RFC] updating changed files back to archives & modifying WebKit .webarchive (plist-based) dumps  #20

@kfix

Description

@kfix

I save .webarchives from Safari to debug WebKit-specific issues for sites I do not control. These are just plist-format XMLs with a flat array of Base64-blobs for every asset loaded in the browser, tagged with their URLs. so it can be represented as a flat archive tree with no subdirectories.

if you edit any blob, save it back to the webarchive and reload it in Safari, the changed data is still rendered as the authoritative representation of each remote URL and passes all the browser's security validation. this workflow is IMHO far nicer and more reliable than scraping and then plugging individual URLs into a MITM proxy for debugging/fuzzing code & markup. plus you can send the tweaked .webarchive back upstream for instantly reproducing the reported problem and fix.

I'm currently using a python script in Terminal to extract URLs to tmpfiles, prettify them, open in vim, and save them back to blobs. I think atom could be extended to seamlessly do this on open/save to .webarchives, as well as integrate with users' custom workflows, such as automatic browser refreshing.

currently archive-view doesn't seem to update any archives' contents when any extracted file is changed. do you think its desirable to add that functionality to the plugin for all archive-formats, so I could then add specific support for .webarchives ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions