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

Side by Side Diff: chrome/common/extensions/docs/content_scripts.html

Issue 402029: Don't allow content scripts to execute on file:// urls.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 </li> 307 </li>
308 <li> 308 <li>
309 Use variables or functions defined by their extension's pages 309 Use variables or functions defined by their extension's pages
310 </li> 310 </li>
311 <li> 311 <li>
312 Use variables or functions defined by web pages or by other content scripts 312 Use variables or functions defined by web pages or by other content scripts
313 </li> 313 </li>
314 <li> 314 <li>
315 Make cross-site XMLHttpRequests 315 Make cross-site XMLHttpRequests
316 </li> 316 </li>
317 <li>
318 Execute on file:// urls.
319 </li>
317 </ul> 320 </ul>
318 321
319 <p> 322 <p>
320 These limitations aren't as bad as they sound. 323 These limitations aren't as bad as they sound.
321 Content scripts can <em>indirectly</em> use the chrome.* APIs, 324 Content scripts can <em>indirectly</em> use the chrome.* APIs,
322 get access to extension data, 325 get access to extension data,
323 and request extension actions 326 and request extension actions
324 by exchanging <a href="messaging.html">messages</a> 327 by exchanging <a href="messaging.html">messages</a>
325 with their parent extension. 328 with their parent extension.
326 Content scripts can also 329 Content scripts can also
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 urchinTracker(); 661 urchinTracker();
659 } 662 }
660 catch(e) {/* urchinTracker not available. */} 663 catch(e) {/* urchinTracker not available. */}
661 </script> 664 </script>
662 <!-- end analytics --> 665 <!-- end analytics -->
663 </div> 666 </div>
664 </div> <!-- /gc-footer --> 667 </div> <!-- /gc-footer -->
665 </div> <!-- /gc-container --> 668 </div> <!-- /gc-container -->
666 </body></html> 669 </body></html>
667 670
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/docs/static/content_scripts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698