<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Feature request: Webpage ZIP as alternative to PDF"
   href="https://bugs.webkit.org/show_bug.cgi?id=153953">153953</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Feature request: Webpage ZIP as alternative to PDF
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>craig+webkit&#64;craigfrancis.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If you want to send a document to someone else (probably over email), then your main choices are PDF or a Microsoft Word document.

Instead I would like to have a single file document that I can send to someone, and they can just open it in their web browser, like they can do with a PDF.

For an example, I have a system that creates invoices, these need to be sent to someone for offline viewing / storage. This is currently done as a PDF file, and it does not work well on a small screen (e.g. mobile phone), or with assistive devices (e.g. screen readers).

---

We could create a very simple file format, maybe with a &quot;.wdoc&quot; extension (as in Web Doc).

This is a ZIP (or gzip) file that contains an &quot;index.html&quot;, and all the necessary resources which are referenced by the HTML document.

When the browser is loading one of these files, it can then apply some additional restrictions:

- Cannot access files outside of the zip (e.g. /etc/passwd)
- Does not have its own local storage / cookie jar / etc.
- Cannot connect to another host.
- The file could include a password to restrict access to its contents.

---

I'm currently keeping some extra notes at:

<a href="https://github.com/craigfrancis/wdoc">https://github.com/craigfrancis/wdoc</a>

Pull requests / comments welcome if you have any thoughts/ideas.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>