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