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

Side by Side Diff: chrome/common/extensions/docs/server2/templates/articles/app_deprecated.html

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: everything but svn stuff Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <h1>Disabled Web Features</h1>
2 <!-- -->
3
4 <p>
5 Though packaged apps use the web platform,
6 some web features have been disabled
7 or else are used in a different way.
8 Mainly this is to avoid security issues and
9 to improve programming practices.
10 Below is a summary of the disabled features
11 of the web platform
12 and potential work-arounds:
13 </p>
14
15 <table border="0">
16 <tr>
17 <th scope="col"> Disabled </th>
18 <th scope="col"> Work-around </th>
19 </tr>
20 <tr>
21 <td><code>alert</code></td>
22 <td>Use a custom lightbox/popup.</td>
23 </tr>
24 <tr>
25 <td>Browser chrome APIs</td>
26 <td>N/A.</td>
27 </tr>
28 <tr>
29 <td><code>confirm</code></td>
30 <td>Use a custom lightbox/popup.</td>
31 </tr>
32 <tr>
33 <td><code>document.cookie</code></td>
34 <td>Packaged app pages are not rendered on the server, so there is no need t o use these.</td>
35 </tr>
36 <tr>
37 <td><code>document.close</code></td>
38 <td>N/A.</td>
39 </tr>
40 <tr>
41 <td><code>document.open</code></td>
42 <td>N/A.</td>
43 </tr>
44 <tr>
45 <td><code>document.write</code></td>
46 <td>Use document.createElement.</td>
47 </tr>
48 <tr>
49 <td>External resources</td>
50 <td>Use the <code>object</code> tag for iframes
51 See <a href="app_external.html">Embed Content</a>.
52 Video and audio are allowed to have non-local URLs.</td>
53 </tr>
54 <tr>
55 <td>Flash</td>
56 <td>Use HTML5 Platform.</td>
57 </tr>
58 <tr>
59 <td>Form submission</td>
60 <td>Use JavaScript to process form content
61 (listen for submit event, process data locally first
62 before sending to server).</td>
63 </tr>
64 <tr>
65 <td>javascript: urls</td>
66 <td>You cannot use bookmarklets for inline javascript on anchors.
67 Use the traditional click handler instead.</td>
68 </tr>
69 <tr>
70 <td>localStorage</td>
71 <td>Use IndexedDB or the Storage API (which also syncs to the cloud).</td>
72 </tr>
73 <tr>
74 <td>Navigation</td>
75 <td>Links open up with the system web browser.
76 <code>window.history</code> and <code>window.location</code>
77 are disabled.</td>
78 </tr>
79 <tr>
80 <td>Non-sandboxed plugins</td>
81 <td>N/A.</td>
82 </tr>
83 <tr>
84 <td><code>showModalDialog</code></td>
85 <td>Use a custom lightbox/popup.</td>
86 </tr>
87 <tr>
88 <td>Synchronous <code>XMLHttpRequest</code></td>
89 <td>Use async-only <code>XMLHttpRequest</code>:
90 <a href="http://updates.html5rocks.com/2012/01/Getting-Rid-of-Synchronous- XHRs">Getting Rid of Synchrounous XXRs</a>.</td>
91 </tr>
92 <tr>
93 <td>webSql</td>
94 <td>Use IndexedDB or
95 <a href="app_storage.html">Filesystem API</a>.</td>
96 </tr>
97 </table>
98
99 <p class="backtotop"><a href="#top">Back to top</a></p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698