Index: chrome/common/extensions/docs/templates/articles/app_codelab8_webresources.html |
diff --git a/chrome/common/extensions/docs/templates/articles/app_codelab8_webresources.html b/chrome/common/extensions/docs/templates/articles/app_codelab8_webresources.html |
index b3cdf1cb36d2086b9035bec9258fd7161b7a478c..df25c59e5ec0ff5a2f2e57ee3a36f7e0dacef53d 100644 |
--- a/chrome/common/extensions/docs/templates/articles/app_codelab8_webresources.html |
+++ b/chrome/common/extensions/docs/templates/articles/app_codelab8_webresources.html |
@@ -1,7 +1,7 @@ |
<h1 id="lab_8_web_resources">Access Web Resources</h1> |
<p>Chrome Apps have a strict |
-<a href="contentSecurityPolicy.html">Content Security Policy</a> |
+<a href="contentSecurityPolicy">Content Security Policy</a> |
which will not let the user execute code or load resources that are hosted remotely.</p> |
<p>Many applications, however, need to be able to load and display content from a remote location. A News Reader, for example, needs to display remote content inline or load and show images from a remote URL.</p> |
@@ -12,7 +12,7 @@ which will not let the user execute code or load resources that are hosted remot |
<p>Chrome Apps offer developers the ability |
to securely render third-party content in the <code><webview></code> tag. |
-A <a href="webview_tag.html">webview</a> |
+A <a href="webview_tag">webview</a> |
is like an iframe that you can control with greater flexibility and added security. |
It runs in a separate sandboxed process and can't communicate directly with the application.</p> |
@@ -42,8 +42,8 @@ in the drag-and-drop operations in a <code>webview</code> when the user clicks o |
<h3 id="view">Update view</h3> |
<p>Add a <code><webview></code> tag and a link to the view: |
-<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/angularjs/1_webview/index.html">AngularJS index.html</a> or |
-<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/javascript/1_webview/index.html">JavaScript index.html</a>: |
+<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/angularjs/1_webview/index">AngularJS index</a> or |
mkearney1
2014/04/09 19:43:29
Dropping the .html to GitHub links doesn't seem to
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename in sample.
|
+<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/javascript/1_webview/index">JavaScript index</a>: |
mkearney1
2014/04/09 19:43:29
Dropping the .html to GitHub links doesn't seem to
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename in sample.
|
</p> |
<tabs data-group="source"> |
@@ -52,7 +52,7 @@ in the drag-and-drop operations in a <code>webview</code> when the user clicks o |
<header tabindex="0" data-value="js">JavaScript</header> |
<content> |
- <pre data-filename="index.html"> |
+ <pre data-filename="index"> |
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename in sample.
|
<!-- in TODO item: --> |
<a ng-show="todo.uri" href="" ng-click="showUri(todo.uri)">(view url)</a> |
<!-- at the bottom, below the end of body: --> |
@@ -60,7 +60,7 @@ in the drag-and-drop operations in a <code>webview</code> when the user clicks o |
</pre> |
</content> |
<content> |
- <pre data-filename="index.html"> |
+ <pre data-filename="index"> |
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename in sample.
|
<!-- right after the "dropText" div: --> |
<webview></webview> |
<!-- in the TODO template, right before the end of the li: --> |
@@ -141,11 +141,11 @@ and launch the app from a new tab.</p> |
<h2 id="loading_external_images">Load external images</h2> |
-<p>If you try to add an <code><img></code> tag to your <code>index.html</code>, and point its <code>src</code> attribute to any site on the web, the following exception is thrown in the console and the image isn't loaded:</p> |
+<p>If you try to add an <code><img></code> tag to your <code>index</code>, and point its <code>src</code> attribute to any site on the web, the following exception is thrown in the console and the image isn't loaded:</p> |
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename.
|
<p class="note"><b></b> Refused to load the image 'http://angularjs.org/img/AngularJS-large.png' because it violates the following Content Security Policy directive: "img-src 'self' data: chrome-extension-resource:".</p> |
-<p>Chrome Apps cannot load any external resource directly in the DOM, because of the <a href="contentSecurityPolicy.html">CSP restrictions</a>.</p> |
+<p>Chrome Apps cannot load any external resource directly in the DOM, because of the <a href="contentSecurityPolicy">CSP restrictions</a>.</p> |
<p>To avoid this restriction, you can use XHR requests, grab the blob corresponding to the remote file and use it appropriately. |
For example, <code><img></code> tags can use a blob URL. |
@@ -172,8 +172,8 @@ Change |
that will be shown while we are loading the proper image.</p> |
<p>Then add the <code><img></code> tag to the Todo item on the view: |
-<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/angularjs/2_loading_resources/index.html">AngularJS index.html</a> or |
-<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/javascript/2_loading_resources/index.html">JavaScript index_html</a>: |
+<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/angularjs/2_loading_resources/index">AngularJS index</a> or |
mkearney1
2014/04/09 19:43:29
GitHub links without .html don't seem to work.
mkearney1
2014/04/09 19:43:29
Keep .html as it refers to filename in sample.
|
+<a href="https://github.com/GoogleChrome/chrome-app-codelab/blob/master/lab8_webresources/javascript/2_loading_resources/index">JavaScript index_html</a>: |
mkearney1
2014/04/09 19:43:29
GitHub links without .html don't seem to work.
mkearney1
2014/04/09 19:43:30
Keep .html as it refers to filename in sample.
|
</p> |
<tabs data-group="source"> |
@@ -447,7 +447,7 @@ that's much more robust.</p> |
<ul> |
<li><p>The <code><webview></code> tag allows you to have a controlled browser inside your app. |
You can use it if you have part of your application that is not CSP compatible and you don't have resources to migrate it immediately, for example. |
-One feature we didn't mention here is that webviews can communicate with your app and vice-versa using asynchronous <a href="app_external.html#postMessage">postMessages</a>.</p></li> |
+One feature we didn't mention here is that webviews can communicate with your app and vice-versa using asynchronous <a href="app_external#postMessage">postMessages</a>.</p></li> |
<li><p>Loading resources like images from the web is not straightforward compared to a standard web page. |
But it's not too different from traditional native platforms, where you need to handle the resource download and, only when it is correctly downloaded, you can render it in the UI. We have also developed <a href="https://github.com/GoogleChrome/apps-resource-loader">a sample library</a> to asynchronously handle resource loading from XHR calls. Feel free to use it in your projects.</p></li> |
</ul> |
@@ -455,11 +455,11 @@ But it's not too different from traditional native platforms, where you need |
<h2 id="you_should_also_read">You should also read</h2> |
<ul> |
-<li><a href="webview_tag.html">Webview Tag API</a> reference</li> |
-<li><a href="app_external.html">Embed Content</a> tutorial</li> |
+<li><a href="webview_tag">Webview Tag API</a> reference</li> |
+<li><a href="app_external">Embed Content</a> tutorial</li> |
</ul> |
<h2 id="what_39_s_next_">What's next?</h2> |
-<p>In <a href="app_codelab_10_publishing.html">8 - Publish App</a>, |
+<p>In <a href="app_codelab_10_publishing">8 - Publish App</a>, |
we finish off with instructions on how to publish your app in the Chrome Web Store.</p> |