Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4905)

Unified Diff: chrome/common/extensions/docs/content_scripts.html

Issue 225023: Another draft of the overview. Made related changes to the content scripts (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/content_scripts.html
===================================================================
--- chrome/common/extensions/docs/content_scripts.html (revision 27015)
+++ chrome/common/extensions/docs/content_scripts.html (working copy)
@@ -225,7 +225,7 @@
<div id="pageData-showTOC" class="pageData">true</div>
<p>
-Content Scripts are JavaScript files that run in the context of web pages.
+Content scripts are JavaScript files that run in the context of web pages.
By using the standard
<a href="http://www.w3.org/TR/DOM-Level-2-HTML/">Document
Object Model</a> (DOM),
@@ -245,21 +245,24 @@
<p>
However, content scripts have some limitations.
-They <b>cannot use</b>:
+They <b>cannot</b>:
</p>
<ul>
<li>
- chrome.* APIs
+ Use chrome.* APIs
(except for parts of
<a href="extension.html"><code>chrome.extension</code></a>)
</li>
<li>
- variables or functions defined by their extension's pages
+ Use variables or functions defined by their extension's pages
</li>
<li>
- variables or functions defined by web pages or by other content scripts
+ Use variables or functions defined by web pages or by other content scripts
</li>
+ <li>
+ Make cross-site XMLHttpRequests
+ </li>
</ul>
<p>
« no previous file with comments | « chrome/common/extensions/docs/background_pages.html ('k') | chrome/common/extensions/docs/images/arch-1.gif » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698