summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/templates/intros/pageCapture.html
blob: abb0af3a8f69eb6ca6e61479336cb5b3ef84708e (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
<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>