blob: 5d5267d82bc258b1d91a6faaeddde5af0351ba0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!-- BEGIN AUTHORED CONTENT -->
<p>
The pageCapture API allows you to save a tab as MHTML.
</p>
<p>
MHTML is a <a href="http://tools.ietf.org/html/rfc2557">standard format</a>
supported by most browsers. It encapsulates in a single file a page and all
its resources (CSS files, images..).
</p>
<p>
Note that for security reasons a MHTML file can only be loaded from the file
system and that it can only be loaded in the main frame.
</p>
<h2 id="manifest">Manifest</h2>
<p>You must declare the "pageCapture" permission
in the <a href="manifest.html">extension manifest</a>
to use the history API.
For example:</p>
<pre>{
"name": "My extension",
...
<b>"permissions": [
"pageCapture"
]</b>,
...
}</pre>
<!-- END AUTHORED CONTENT -->
|