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