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

Side by Side Diff: tests/ppapi_bad/ppapi_bad.html

Issue 6813070: Add cross-origin loading of NEXEs for MIME type handlers (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « src/trusted/plugin/ppapi/plugin_ppapi.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html> 3 <html>
4 <!-- Copyright 2011 Google Inc. All rights reserved. --> 4 <!-- Copyright 2011 Google Inc. All rights reserved. -->
5 <head> 5 <head>
6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> 6 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
7 <META HTTP-EQUIV="Expires" CONTENT="-1" /> 7 <META HTTP-EQUIV="Expires" CONTENT="-1" />
8 </head> 8 </head>
9 <h1>Native Client: Bad Nexes</h1> 9 <h1>Native Client: Bad Nexes</h1>
10 <body> 10 <body>
11 The following error messages should appear on the JavaScript console.<br> 11 The following error messages should appear on the JavaScript console.<br>
12 12
13 <br>NaCl module load failed: not an ELF executable: bad magic number.<br> 13 <br>NaCl module load failed: not an ELF executable: bad magic number.<br>
14 <embed id="naclModule" 14 <embed id="naclModule"
15 name="naclModule" 15 name="naclModule"
16 width=100 height=20 16 width=100 height=20
17 src="ppapi_bad.html" 17 src="ppapi_bad.html"
18 style="background-color:gray" 18 style="background-color:gray"
19 type="application/x-nacl" /> 19 type="application/x-nacl" />
20 <br>NaCl module load failed: could not load url.<br> 20 <br>NaCl module load failed: could not load url.<br>
21 <embed id="naclModule" 21 <embed id="naclModule"
22 name="naclModule" 22 name="naclModule"
23 width=100 height=20 23 width=100 height=20
24 src="http://www.google.com/crossorigin.nexe" 24 src="http://www.google.com/crossorigin.nexe"
25 style="background-color:gray" 25 style="background-color:gray"
26 type="application/x-nacl" /> 26 type="application/x-nacl" />
27 <br>NaCl module load failed: could not load url. (N.B.: This load would
28 have succeeded if the NEXE was from a chrome-extension URL and NaCl had
29 been registered as handling the PDF MIME type.)<br>
polina 2011/04/15 23:16:18 I was thinking more of an html comment. The viewer
30 <embed id="naclModule"
31 name="naclModule"
32 width=100 height=20
33 src="http://www.google.com/crossorigin.nexe"
34 style="background-color:gray"
35 type="application/pdf" />
36 <br>NaCl module load failed: could not load url.<br>
37 <embed id="naclModule"
38 name="naclModule"
39 width=100 height=20
40 src="http://www.google.com/crossorigin.nexe"
41 style="background-color:gray"
42 type="application/pdf"
43 type="application/x-nacl" />
44 <br>NaCl module load failed: could not load url.<br>
45 <embed id="naclModule"
46 name="naclModule"
47 width=100 height=20
48 src="http://www.google.com/crossorigin.nexe"
49 style="background-color:gray"
50 type="application/x-nacl"
51 type="application/pdf" />
52 <br>NaCl module load failed: could not load url.<br>
53 <embed id="naclModule"
54 name="naclModule"
55 width=100 height=20
56 src="http://www.google.com/crossorigin.nexe"
57 style="background-color:gray" />
27 <br>NaCl module load failed: could not load url.<br> 58 <br>NaCl module load failed: could not load url.<br>
28 <embed id="naclModule" 59 <embed id="naclModule"
29 name="naclModule" 60 name="naclModule"
30 width=100 height=20 61 width=100 height=20
31 src="doesnotexist.nexe" 62 src="doesnotexist.nexe"
32 style="background-color:gray" 63 style="background-color:gray"
33 type="application/x-nacl" /> 64 type="application/x-nacl" />
34 <br>NaCl module load failed: could not load manifest url.<br> 65 <br>NaCl module load failed: could not load manifest url.<br>
35 <embed id="naclModule" 66 <embed id="naclModule"
36 name="naclModule" 67 name="naclModule"
37 width=100 height=20 68 width=100 height=20
38 nacl="http://www.google.com/crossorigin.manifest" 69 nacl="http://www.google.com/crossorigin.manifest"
39 style="background-color:gray" 70 style="background-color:gray"
40 type="application/x-nacl" /> 71 type="application/x-nacl" />
41 <br>NaCl module load failed: could not load manifest url.<br> 72 <br>NaCl module load failed: could not load manifest url.<br>
42 <embed id="naclModule" 73 <embed id="naclModule"
43 name="naclModule" 74 name="naclModule"
44 width=100 height=20 75 width=100 height=20
76 nacl="http://www.google.com/crossorigin.manifest"
77 style="background-color:gray"
78 type="application/pdf" />
79 <br>NaCl module load failed: could not load manifest url.<br>
80 <embed id="naclModule"
81 name="naclModule"
82 width=100 height=20
83 nacl="http://www.google.com/crossorigin.manifest"
84 style="background-color:gray" />
85 <br>NaCl module load failed: could not load manifest url.<br>
86 <embed id="naclModule"
87 name="naclModule"
88 width=100 height=20
89 nacl="http://www.google.com/crossorigin.manifest"
90 style="background-color:gray"
91 type="application/pdf"
92 type="application/x-nacl" />
93 <br>NaCl module load failed: could not load manifest url.<br>
94 <embed id="naclModule"
95 name="naclModule"
96 width=100 height=20
97 nacl="http://www.google.com/crossorigin.manifest"
98 style="background-color:gray"
99 type="application/x-nacl"
100 type="application/pdf" />
101 <br>NaCl module load failed: could not load manifest url.<br>
102 <embed id="naclModule"
103 name="naclModule"
104 width=100 height=20
45 nacl="doesnotexist.manifest" 105 nacl="doesnotexist.manifest"
46 style="background-color:gray" 106 style="background-color:gray"
47 type="application/x-nacl" /> 107 type="application/x-nacl" />
48 <br>NaCl module load failed: could not read manifest file.<br> 108 <br>NaCl module load failed: could not read manifest file.<br>
49 <embed id="naclModule" 109 <embed id="naclModule"
50 name="naclModule" 110 name="naclModule"
51 width=100 height=20 111 width=100 height=20
52 nacl="ppapi_bad.html" 112 nacl="ppapi_bad.html"
53 style="background-color:gray" 113 style="background-color:gray"
54 type="application/x-nacl" /> 114 type="application/x-nacl" />
55 <br>NaCl module proxy failed: could not initialize module.<br> 115 <br>NaCl module proxy failed: could not initialize module.<br>
56 <embed id="naclModule" 116 <embed id="naclModule"
57 name="naclModule" 117 name="naclModule"
58 width=100 height=20 118 width=100 height=20
59 src="ppapi_bad.nexe" 119 src="ppapi_bad.nexe"
60 style="background-color:gray" 120 style="background-color:gray"
61 type="application/x-nacl" /> 121 type="application/x-nacl" />
62 <br><br> 122 <br><br>
63 </body> 123 </body>
64 </html> 124 </html>
OLDNEW
« no previous file with comments | « src/trusted/plugin/ppapi/plugin_ppapi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698