OLD | NEW |
1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> | 1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 | 3 |
4 <p> | 4 <p> |
5 Every extension, installable web app, and theme has a | 5 Every extension, installable web app, and theme has a |
6 <a href="http://www.json.org">JSON</a>-formatted manifest file, | 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, |
7 named <code>manifest.json</code>, | 7 named <code>manifest.json</code>, |
8 that provides important information. | 8 that provides important information. |
9 </p> | 9 </p> |
10 | 10 |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 version in Chrome 18 can either explicitly specify version <code>1</code>, or | 693 version in Chrome 18 can either explicitly specify version <code>1</code>, or |
694 leave the key off entirely. | 694 leave the key off entirely. |
695 </p> | 695 </p> |
696 | 696 |
697 <p> | 697 <p> |
698 The changes between version 1 and version 2 of the manifest file format are | 698 The changes between version 1 and version 2 of the manifest file format are |
699 described in detail in <a href="manifestVersion.html">the | 699 described in detail in <a href="manifestVersion.html">the |
700 <code>manifest_version</code> documentation.</a> | 700 <code>manifest_version</code> documentation.</a> |
701 </p> | 701 </p> |
702 | 702 |
| 703 <p class="caution"> |
| 704 Setting <code>manifest_version</code> 2 in Chrome 17 or lower is not |
| 705 recommended. If your extension needs to work in older versions of Chrome, |
| 706 stick with version 1 for the moment. We'll give you ample warning before |
| 707 version 1 stops working. |
| 708 </p> |
| 709 |
703 <h3 id="web_accessible_resources">web_accessible_resources</h3> | 710 <h3 id="web_accessible_resources">web_accessible_resources</h3> |
704 | 711 |
705 <p> | 712 <p> |
706 An array of strings specifying the paths (relative to the package root) of | 713 An array of strings specifying the paths (relative to the package root) of |
707 packaged resources that are expected to be usable in the context of a web page. | 714 packaged resources that are expected to be usable in the context of a web page. |
708 For example, an extension that injects a content script with the intention of | 715 For example, an extension that injects a content script with the intention of |
709 building up some custom interface for <code>example.com</code> would whitelist | 716 building up some custom interface for <code>example.com</code> would whitelist |
710 any resources that interface requires (images, icons, stylesheets, scripts, | 717 any resources that interface requires (images, icons, stylesheets, scripts, |
711 etc.) as follows: | 718 etc.) as follows: |
712 </p> | 719 </p> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted | 751 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted |
745 for use via this property. | 752 for use via this property. |
746 </p> | 753 </p> |
747 | 754 |
748 <p> | 755 <p> |
749 Resources inside of packages using <code>manifest_version</code> 1 are available | 756 Resources inside of packages using <code>manifest_version</code> 1 are available |
750 by default, but <em>if</em> you do set this property, then it will be treated as | 757 by default, but <em>if</em> you do set this property, then it will be treated as |
751 a complete list of all whitelisted resources. Resources not listed will be | 758 a complete list of all whitelisted resources. Resources not listed will be |
752 blocked. | 759 blocked. |
753 </p> | 760 </p> |
OLD | NEW |