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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/security-window/window-security-expected.txt

Issue 2434563008: Import wpt@26c8d4e87448d1c4e5ebf2ddb4917c0633c201db (Closed)
Patch Set: Mark one more test as potentially timing out Created 4 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
OLDNEW
(Empty)
1 ALERT:
2 CONFIRM:
3 PROMPT: , default text:
4 This is a testharness.js-based test.
5 PASS Window Security testing
6 FAIL A SecurityError exception must be thrown when window.applicationCache is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
7 if (item.isMethod)
8 if (item.args)
9 fr.contentWindow[item.name](item.args[0], item.args[1]);
10 else
11 fr.contentWindow[item.name]();
12 else
13 fr.contentWindow[item.name];
14 }" did not throw
15 FAIL A SecurityError exception must be thrown when window.devicePixelRatio is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
16 if (item.isMethod)
17 if (item.args)
18 fr.contentWindow[item.name](item.args[0], item.args[1]);
19 else
20 fr.contentWindow[item.name]();
21 else
22 fr.contentWindow[item.name];
23 }" did not throw
24 FAIL A SecurityError exception must be thrown when window.document is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
25 if (item.isMethod)
26 if (item.args)
27 fr.contentWindow[item.name](item.args[0], item.args[1]);
28 else
29 fr.contentWindow[item.name]();
30 else
31 fr.contentWindow[item.name];
32 }" did not throw
33 FAIL A SecurityError exception must be thrown when window.external is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
34 if (item.isMethod)
35 if (item.args)
36 fr.contentWindow[item.name](item.args[0], item.args[1]);
37 else
38 fr.contentWindow[item.name]();
39 else
40 fr.contentWindow[item.name];
41 }" did not throw
42 FAIL A SecurityError exception must be thrown when window.frameElement is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
43 if (item.isMethod)
44 if (item.args)
45 fr.contentWindow[item.name](item.args[0], item.args[1]);
46 else
47 fr.contentWindow[item.name]();
48 else
49 fr.contentWindow[item.name];
50 }" did not throw
51 FAIL A SecurityError exception must be thrown when window.history is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
52 if (item.isMethod)
53 if (item.args)
54 fr.contentWindow[item.name](item.args[0], item.args[1]);
55 else
56 fr.contentWindow[item.name]();
57 else
58 fr.contentWindow[item.name];
59 }" did not throw
60 FAIL A SecurityError exception must be thrown when window.innerWidth is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
61 if (item.isMethod)
62 if (item.args)
63 fr.contentWindow[item.name](item.args[0], item.args[1]);
64 else
65 fr.contentWindow[item.name]();
66 else
67 fr.contentWindow[item.name];
68 }" did not throw
69 FAIL A SecurityError exception must be thrown when window.innerHeight is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
70 if (item.isMethod)
71 if (item.args)
72 fr.contentWindow[item.name](item.args[0], item.args[1]);
73 else
74 fr.contentWindow[item.name]();
75 else
76 fr.contentWindow[item.name];
77 }" did not throw
78 FAIL A SecurityError exception must be thrown when window.locationbar is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
79 if (item.isMethod)
80 if (item.args)
81 fr.contentWindow[item.name](item.args[0], item.args[1]);
82 else
83 fr.contentWindow[item.name]();
84 else
85 fr.contentWindow[item.name];
86 }" did not throw
87 FAIL A SecurityError exception must be thrown when window.localStorage is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
88 if (item.isMethod)
89 if (item.args)
90 fr.contentWindow[item.name](item.args[0], item.args[1]);
91 else
92 fr.contentWindow[item.name]();
93 else
94 fr.contentWindow[item.name];
95 }" did not throw
96 FAIL A SecurityError exception must be thrown when window.menubar is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
97 if (item.isMethod)
98 if (item.args)
99 fr.contentWindow[item.name](item.args[0], item.args[1]);
100 else
101 fr.contentWindow[item.name]();
102 else
103 fr.contentWindow[item.name];
104 }" did not throw
105 FAIL A SecurityError exception must be thrown when window.name is accessed from a different origin. assert_throws: A SecurityError exception should be thrown. f unction "function () {
106 if (item.isMethod)
107 if (item.args)
108 fr.contentWindow[item.name](item.args[0], item.args[1]);
109 else
110 fr.contentWindow[item.name]();
111 else
112 fr.contentWindow[item.name];
113 }" did not throw
114 FAIL A SecurityError exception must be thrown when window.navigator is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
115 if (item.isMethod)
116 if (item.args)
117 fr.contentWindow[item.name](item.args[0], item.args[1]);
118 else
119 fr.contentWindow[item.name]();
120 else
121 fr.contentWindow[item.name];
122 }" did not throw
123 FAIL A SecurityError exception must be thrown when window.onabort is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
124 if (item.isMethod)
125 if (item.args)
126 fr.contentWindow[item.name](item.args[0], item.args[1]);
127 else
128 fr.contentWindow[item.name]();
129 else
130 fr.contentWindow[item.name];
131 }" did not throw
132 FAIL A SecurityError exception must be thrown when window.onafterprint is access ed from a different origin. assert_true: window.onafterprint should exist. expec ted true got false
133 FAIL A SecurityError exception must be thrown when window.onbeforeprint is acces sed from a different origin. assert_true: window.onbeforeprint should exist. exp ected true got false
134 FAIL A SecurityError exception must be thrown when window.onbeforeunload is acce ssed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
135 if (item.isMethod)
136 if (item.args)
137 fr.contentWindow[item.name](item.args[0], item.args[1]);
138 else
139 fr.contentWindow[item.name]();
140 else
141 fr.contentWindow[item.name];
142 }" did not throw
143 FAIL A SecurityError exception must be thrown when window.onblur is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
144 if (item.isMethod)
145 if (item.args)
146 fr.contentWindow[item.name](item.args[0], item.args[1]);
147 else
148 fr.contentWindow[item.name]();
149 else
150 fr.contentWindow[item.name];
151 }" did not throw
152 FAIL A SecurityError exception must be thrown when window.oncancel is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
153 if (item.isMethod)
154 if (item.args)
155 fr.contentWindow[item.name](item.args[0], item.args[1]);
156 else
157 fr.contentWindow[item.name]();
158 else
159 fr.contentWindow[item.name];
160 }" did not throw
161 FAIL A SecurityError exception must be thrown when window.oncanplay is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
162 if (item.isMethod)
163 if (item.args)
164 fr.contentWindow[item.name](item.args[0], item.args[1]);
165 else
166 fr.contentWindow[item.name]();
167 else
168 fr.contentWindow[item.name];
169 }" did not throw
170 FAIL A SecurityError exception must be thrown when window.oncanplaythrough is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
171 if (item.isMethod)
172 if (item.args)
173 fr.contentWindow[item.name](item.args[0], item.args[1]);
174 else
175 fr.contentWindow[item.name]();
176 else
177 fr.contentWindow[item.name];
178 }" did not throw
179 FAIL A SecurityError exception must be thrown when window.onchange is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
180 if (item.isMethod)
181 if (item.args)
182 fr.contentWindow[item.name](item.args[0], item.args[1]);
183 else
184 fr.contentWindow[item.name]();
185 else
186 fr.contentWindow[item.name];
187 }" did not throw
188 FAIL A SecurityError exception must be thrown when window.onclick is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
189 if (item.isMethod)
190 if (item.args)
191 fr.contentWindow[item.name](item.args[0], item.args[1]);
192 else
193 fr.contentWindow[item.name]();
194 else
195 fr.contentWindow[item.name];
196 }" did not throw
197 FAIL A SecurityError exception must be thrown when window.onclose is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
198 if (item.isMethod)
199 if (item.args)
200 fr.contentWindow[item.name](item.args[0], item.args[1]);
201 else
202 fr.contentWindow[item.name]();
203 else
204 fr.contentWindow[item.name];
205 }" did not throw
206 FAIL A SecurityError exception must be thrown when window.oncontextmenu is acces sed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
207 if (item.isMethod)
208 if (item.args)
209 fr.contentWindow[item.name](item.args[0], item.args[1]);
210 else
211 fr.contentWindow[item.name]();
212 else
213 fr.contentWindow[item.name];
214 }" did not throw
215 FAIL A SecurityError exception must be thrown when window.oncuechange is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
216 if (item.isMethod)
217 if (item.args)
218 fr.contentWindow[item.name](item.args[0], item.args[1]);
219 else
220 fr.contentWindow[item.name]();
221 else
222 fr.contentWindow[item.name];
223 }" did not throw
224 FAIL A SecurityError exception must be thrown when window.ondblclick is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
225 if (item.isMethod)
226 if (item.args)
227 fr.contentWindow[item.name](item.args[0], item.args[1]);
228 else
229 fr.contentWindow[item.name]();
230 else
231 fr.contentWindow[item.name];
232 }" did not throw
233 FAIL A SecurityError exception must be thrown when window.ondrag is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
234 if (item.isMethod)
235 if (item.args)
236 fr.contentWindow[item.name](item.args[0], item.args[1]);
237 else
238 fr.contentWindow[item.name]();
239 else
240 fr.contentWindow[item.name];
241 }" did not throw
242 FAIL A SecurityError exception must be thrown when window.ondragend is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
243 if (item.isMethod)
244 if (item.args)
245 fr.contentWindow[item.name](item.args[0], item.args[1]);
246 else
247 fr.contentWindow[item.name]();
248 else
249 fr.contentWindow[item.name];
250 }" did not throw
251 FAIL A SecurityError exception must be thrown when window.ondragenter is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
252 if (item.isMethod)
253 if (item.args)
254 fr.contentWindow[item.name](item.args[0], item.args[1]);
255 else
256 fr.contentWindow[item.name]();
257 else
258 fr.contentWindow[item.name];
259 }" did not throw
260 FAIL A SecurityError exception must be thrown when window.ondragleave is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
261 if (item.isMethod)
262 if (item.args)
263 fr.contentWindow[item.name](item.args[0], item.args[1]);
264 else
265 fr.contentWindow[item.name]();
266 else
267 fr.contentWindow[item.name];
268 }" did not throw
269 FAIL A SecurityError exception must be thrown when window.ondragover is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
270 if (item.isMethod)
271 if (item.args)
272 fr.contentWindow[item.name](item.args[0], item.args[1]);
273 else
274 fr.contentWindow[item.name]();
275 else
276 fr.contentWindow[item.name];
277 }" did not throw
278 FAIL A SecurityError exception must be thrown when window.ondragstart is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
279 if (item.isMethod)
280 if (item.args)
281 fr.contentWindow[item.name](item.args[0], item.args[1]);
282 else
283 fr.contentWindow[item.name]();
284 else
285 fr.contentWindow[item.name];
286 }" did not throw
287 FAIL A SecurityError exception must be thrown when window.ondrop is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
288 if (item.isMethod)
289 if (item.args)
290 fr.contentWindow[item.name](item.args[0], item.args[1]);
291 else
292 fr.contentWindow[item.name]();
293 else
294 fr.contentWindow[item.name];
295 }" did not throw
296 FAIL A SecurityError exception must be thrown when window.ondurationchange is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
297 if (item.isMethod)
298 if (item.args)
299 fr.contentWindow[item.name](item.args[0], item.args[1]);
300 else
301 fr.contentWindow[item.name]();
302 else
303 fr.contentWindow[item.name];
304 }" did not throw
305 FAIL A SecurityError exception must be thrown when window.onemptied is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
306 if (item.isMethod)
307 if (item.args)
308 fr.contentWindow[item.name](item.args[0], item.args[1]);
309 else
310 fr.contentWindow[item.name]();
311 else
312 fr.contentWindow[item.name];
313 }" did not throw
314 FAIL A SecurityError exception must be thrown when window.onended is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
315 if (item.isMethod)
316 if (item.args)
317 fr.contentWindow[item.name](item.args[0], item.args[1]);
318 else
319 fr.contentWindow[item.name]();
320 else
321 fr.contentWindow[item.name];
322 }" did not throw
323 FAIL A SecurityError exception must be thrown when window.onerror is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
324 if (item.isMethod)
325 if (item.args)
326 fr.contentWindow[item.name](item.args[0], item.args[1]);
327 else
328 fr.contentWindow[item.name]();
329 else
330 fr.contentWindow[item.name];
331 }" did not throw
332 FAIL A SecurityError exception must be thrown when window.onfocus is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
333 if (item.isMethod)
334 if (item.args)
335 fr.contentWindow[item.name](item.args[0], item.args[1]);
336 else
337 fr.contentWindow[item.name]();
338 else
339 fr.contentWindow[item.name];
340 }" did not throw
341 FAIL A SecurityError exception must be thrown when window.onhashchange is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
342 if (item.isMethod)
343 if (item.args)
344 fr.contentWindow[item.name](item.args[0], item.args[1]);
345 else
346 fr.contentWindow[item.name]();
347 else
348 fr.contentWindow[item.name];
349 }" did not throw
350 FAIL A SecurityError exception must be thrown when window.oninput is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
351 if (item.isMethod)
352 if (item.args)
353 fr.contentWindow[item.name](item.args[0], item.args[1]);
354 else
355 fr.contentWindow[item.name]();
356 else
357 fr.contentWindow[item.name];
358 }" did not throw
359 FAIL A SecurityError exception must be thrown when window.oninvalid is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
360 if (item.isMethod)
361 if (item.args)
362 fr.contentWindow[item.name](item.args[0], item.args[1]);
363 else
364 fr.contentWindow[item.name]();
365 else
366 fr.contentWindow[item.name];
367 }" did not throw
368 FAIL A SecurityError exception must be thrown when window.onkeydown is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
369 if (item.isMethod)
370 if (item.args)
371 fr.contentWindow[item.name](item.args[0], item.args[1]);
372 else
373 fr.contentWindow[item.name]();
374 else
375 fr.contentWindow[item.name];
376 }" did not throw
377 FAIL A SecurityError exception must be thrown when window.onkeypress is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
378 if (item.isMethod)
379 if (item.args)
380 fr.contentWindow[item.name](item.args[0], item.args[1]);
381 else
382 fr.contentWindow[item.name]();
383 else
384 fr.contentWindow[item.name];
385 }" did not throw
386 FAIL A SecurityError exception must be thrown when window.onkeyup is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
387 if (item.isMethod)
388 if (item.args)
389 fr.contentWindow[item.name](item.args[0], item.args[1]);
390 else
391 fr.contentWindow[item.name]();
392 else
393 fr.contentWindow[item.name];
394 }" did not throw
395 FAIL A SecurityError exception must be thrown when window.onload is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
396 if (item.isMethod)
397 if (item.args)
398 fr.contentWindow[item.name](item.args[0], item.args[1]);
399 else
400 fr.contentWindow[item.name]();
401 else
402 fr.contentWindow[item.name];
403 }" did not throw
404 FAIL A SecurityError exception must be thrown when window.onloadeddata is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
405 if (item.isMethod)
406 if (item.args)
407 fr.contentWindow[item.name](item.args[0], item.args[1]);
408 else
409 fr.contentWindow[item.name]();
410 else
411 fr.contentWindow[item.name];
412 }" did not throw
413 FAIL A SecurityError exception must be thrown when window.onloadedmetadata is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
414 if (item.isMethod)
415 if (item.args)
416 fr.contentWindow[item.name](item.args[0], item.args[1]);
417 else
418 fr.contentWindow[item.name]();
419 else
420 fr.contentWindow[item.name];
421 }" did not throw
422 FAIL A SecurityError exception must be thrown when window.onloadstart is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
423 if (item.isMethod)
424 if (item.args)
425 fr.contentWindow[item.name](item.args[0], item.args[1]);
426 else
427 fr.contentWindow[item.name]();
428 else
429 fr.contentWindow[item.name];
430 }" did not throw
431 FAIL A SecurityError exception must be thrown when window.onmessage is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
432 if (item.isMethod)
433 if (item.args)
434 fr.contentWindow[item.name](item.args[0], item.args[1]);
435 else
436 fr.contentWindow[item.name]();
437 else
438 fr.contentWindow[item.name];
439 }" did not throw
440 FAIL A SecurityError exception must be thrown when window.onmousedown is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
441 if (item.isMethod)
442 if (item.args)
443 fr.contentWindow[item.name](item.args[0], item.args[1]);
444 else
445 fr.contentWindow[item.name]();
446 else
447 fr.contentWindow[item.name];
448 }" did not throw
449 FAIL A SecurityError exception must be thrown when window.onmousemove is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
450 if (item.isMethod)
451 if (item.args)
452 fr.contentWindow[item.name](item.args[0], item.args[1]);
453 else
454 fr.contentWindow[item.name]();
455 else
456 fr.contentWindow[item.name];
457 }" did not throw
458 FAIL A SecurityError exception must be thrown when window.onmouseout is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
459 if (item.isMethod)
460 if (item.args)
461 fr.contentWindow[item.name](item.args[0], item.args[1]);
462 else
463 fr.contentWindow[item.name]();
464 else
465 fr.contentWindow[item.name];
466 }" did not throw
467 FAIL A SecurityError exception must be thrown when window.onmouseover is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
468 if (item.isMethod)
469 if (item.args)
470 fr.contentWindow[item.name](item.args[0], item.args[1]);
471 else
472 fr.contentWindow[item.name]();
473 else
474 fr.contentWindow[item.name];
475 }" did not throw
476 FAIL A SecurityError exception must be thrown when window.onmouseup is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
477 if (item.isMethod)
478 if (item.args)
479 fr.contentWindow[item.name](item.args[0], item.args[1]);
480 else
481 fr.contentWindow[item.name]();
482 else
483 fr.contentWindow[item.name];
484 }" did not throw
485 FAIL A SecurityError exception must be thrown when window.onmousewheel is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
486 if (item.isMethod)
487 if (item.args)
488 fr.contentWindow[item.name](item.args[0], item.args[1]);
489 else
490 fr.contentWindow[item.name]();
491 else
492 fr.contentWindow[item.name];
493 }" did not throw
494 FAIL A SecurityError exception must be thrown when window.onoffline is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
495 if (item.isMethod)
496 if (item.args)
497 fr.contentWindow[item.name](item.args[0], item.args[1]);
498 else
499 fr.contentWindow[item.name]();
500 else
501 fr.contentWindow[item.name];
502 }" did not throw
503 FAIL A SecurityError exception must be thrown when window.ononline is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
504 if (item.isMethod)
505 if (item.args)
506 fr.contentWindow[item.name](item.args[0], item.args[1]);
507 else
508 fr.contentWindow[item.name]();
509 else
510 fr.contentWindow[item.name];
511 }" did not throw
512 FAIL A SecurityError exception must be thrown when window.onpause is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
513 if (item.isMethod)
514 if (item.args)
515 fr.contentWindow[item.name](item.args[0], item.args[1]);
516 else
517 fr.contentWindow[item.name]();
518 else
519 fr.contentWindow[item.name];
520 }" did not throw
521 FAIL A SecurityError exception must be thrown when window.onplay is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
522 if (item.isMethod)
523 if (item.args)
524 fr.contentWindow[item.name](item.args[0], item.args[1]);
525 else
526 fr.contentWindow[item.name]();
527 else
528 fr.contentWindow[item.name];
529 }" did not throw
530 FAIL A SecurityError exception must be thrown when window.onplaying is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
531 if (item.isMethod)
532 if (item.args)
533 fr.contentWindow[item.name](item.args[0], item.args[1]);
534 else
535 fr.contentWindow[item.name]();
536 else
537 fr.contentWindow[item.name];
538 }" did not throw
539 FAIL A SecurityError exception must be thrown when window.onpagehide is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
540 if (item.isMethod)
541 if (item.args)
542 fr.contentWindow[item.name](item.args[0], item.args[1]);
543 else
544 fr.contentWindow[item.name]();
545 else
546 fr.contentWindow[item.name];
547 }" did not throw
548 FAIL A SecurityError exception must be thrown when window.onpageshow is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
549 if (item.isMethod)
550 if (item.args)
551 fr.contentWindow[item.name](item.args[0], item.args[1]);
552 else
553 fr.contentWindow[item.name]();
554 else
555 fr.contentWindow[item.name];
556 }" did not throw
557 FAIL A SecurityError exception must be thrown when window.onpopstate is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
558 if (item.isMethod)
559 if (item.args)
560 fr.contentWindow[item.name](item.args[0], item.args[1]);
561 else
562 fr.contentWindow[item.name]();
563 else
564 fr.contentWindow[item.name];
565 }" did not throw
566 FAIL A SecurityError exception must be thrown when window.onprogress is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
567 if (item.isMethod)
568 if (item.args)
569 fr.contentWindow[item.name](item.args[0], item.args[1]);
570 else
571 fr.contentWindow[item.name]();
572 else
573 fr.contentWindow[item.name];
574 }" did not throw
575 FAIL A SecurityError exception must be thrown when window.onratechange is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
576 if (item.isMethod)
577 if (item.args)
578 fr.contentWindow[item.name](item.args[0], item.args[1]);
579 else
580 fr.contentWindow[item.name]();
581 else
582 fr.contentWindow[item.name];
583 }" did not throw
584 FAIL A SecurityError exception must be thrown when window.onreset is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
585 if (item.isMethod)
586 if (item.args)
587 fr.contentWindow[item.name](item.args[0], item.args[1]);
588 else
589 fr.contentWindow[item.name]();
590 else
591 fr.contentWindow[item.name];
592 }" did not throw
593 FAIL A SecurityError exception must be thrown when window.onresize is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
594 if (item.isMethod)
595 if (item.args)
596 fr.contentWindow[item.name](item.args[0], item.args[1]);
597 else
598 fr.contentWindow[item.name]();
599 else
600 fr.contentWindow[item.name];
601 }" did not throw
602 FAIL A SecurityError exception must be thrown when window.onscroll is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
603 if (item.isMethod)
604 if (item.args)
605 fr.contentWindow[item.name](item.args[0], item.args[1]);
606 else
607 fr.contentWindow[item.name]();
608 else
609 fr.contentWindow[item.name];
610 }" did not throw
611 FAIL A SecurityError exception must be thrown when window.onseeked is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
612 if (item.isMethod)
613 if (item.args)
614 fr.contentWindow[item.name](item.args[0], item.args[1]);
615 else
616 fr.contentWindow[item.name]();
617 else
618 fr.contentWindow[item.name];
619 }" did not throw
620 FAIL A SecurityError exception must be thrown when window.onseeking is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
621 if (item.isMethod)
622 if (item.args)
623 fr.contentWindow[item.name](item.args[0], item.args[1]);
624 else
625 fr.contentWindow[item.name]();
626 else
627 fr.contentWindow[item.name];
628 }" did not throw
629 FAIL A SecurityError exception must be thrown when window.onselect is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
630 if (item.isMethod)
631 if (item.args)
632 fr.contentWindow[item.name](item.args[0], item.args[1]);
633 else
634 fr.contentWindow[item.name]();
635 else
636 fr.contentWindow[item.name];
637 }" did not throw
638 FAIL A SecurityError exception must be thrown when window.onshow is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
639 if (item.isMethod)
640 if (item.args)
641 fr.contentWindow[item.name](item.args[0], item.args[1]);
642 else
643 fr.contentWindow[item.name]();
644 else
645 fr.contentWindow[item.name];
646 }" did not throw
647 FAIL A SecurityError exception must be thrown when window.onstalled is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
648 if (item.isMethod)
649 if (item.args)
650 fr.contentWindow[item.name](item.args[0], item.args[1]);
651 else
652 fr.contentWindow[item.name]();
653 else
654 fr.contentWindow[item.name];
655 }" did not throw
656 FAIL A SecurityError exception must be thrown when window.onstorage is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
657 if (item.isMethod)
658 if (item.args)
659 fr.contentWindow[item.name](item.args[0], item.args[1]);
660 else
661 fr.contentWindow[item.name]();
662 else
663 fr.contentWindow[item.name];
664 }" did not throw
665 FAIL A SecurityError exception must be thrown when window.onsubmit is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
666 if (item.isMethod)
667 if (item.args)
668 fr.contentWindow[item.name](item.args[0], item.args[1]);
669 else
670 fr.contentWindow[item.name]();
671 else
672 fr.contentWindow[item.name];
673 }" did not throw
674 FAIL A SecurityError exception must be thrown when window.onsuspend is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
675 if (item.isMethod)
676 if (item.args)
677 fr.contentWindow[item.name](item.args[0], item.args[1]);
678 else
679 fr.contentWindow[item.name]();
680 else
681 fr.contentWindow[item.name];
682 }" did not throw
683 FAIL A SecurityError exception must be thrown when window.ontimeupdate is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
684 if (item.isMethod)
685 if (item.args)
686 fr.contentWindow[item.name](item.args[0], item.args[1]);
687 else
688 fr.contentWindow[item.name]();
689 else
690 fr.contentWindow[item.name];
691 }" did not throw
692 FAIL A SecurityError exception must be thrown when window.onunload is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
693 if (item.isMethod)
694 if (item.args)
695 fr.contentWindow[item.name](item.args[0], item.args[1]);
696 else
697 fr.contentWindow[item.name]();
698 else
699 fr.contentWindow[item.name];
700 }" did not throw
701 FAIL A SecurityError exception must be thrown when window.onvolumechange is acce ssed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
702 if (item.isMethod)
703 if (item.args)
704 fr.contentWindow[item.name](item.args[0], item.args[1]);
705 else
706 fr.contentWindow[item.name]();
707 else
708 fr.contentWindow[item.name];
709 }" did not throw
710 FAIL A SecurityError exception must be thrown when window.onwaiting is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
711 if (item.isMethod)
712 if (item.args)
713 fr.contentWindow[item.name](item.args[0], item.args[1]);
714 else
715 fr.contentWindow[item.name]();
716 else
717 fr.contentWindow[item.name];
718 }" did not throw
719 FAIL A SecurityError exception must be thrown when window.pageXOffset is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
720 if (item.isMethod)
721 if (item.args)
722 fr.contentWindow[item.name](item.args[0], item.args[1]);
723 else
724 fr.contentWindow[item.name]();
725 else
726 fr.contentWindow[item.name];
727 }" did not throw
728 FAIL A SecurityError exception must be thrown when window.pageYOffset is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
729 if (item.isMethod)
730 if (item.args)
731 fr.contentWindow[item.name](item.args[0], item.args[1]);
732 else
733 fr.contentWindow[item.name]();
734 else
735 fr.contentWindow[item.name];
736 }" did not throw
737 FAIL A SecurityError exception must be thrown when window.personalbar is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
738 if (item.isMethod)
739 if (item.args)
740 fr.contentWindow[item.name](item.args[0], item.args[1]);
741 else
742 fr.contentWindow[item.name]();
743 else
744 fr.contentWindow[item.name];
745 }" did not throw
746 FAIL A SecurityError exception must be thrown when window.screen is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
747 if (item.isMethod)
748 if (item.args)
749 fr.contentWindow[item.name](item.args[0], item.args[1]);
750 else
751 fr.contentWindow[item.name]();
752 else
753 fr.contentWindow[item.name];
754 }" did not throw
755 FAIL A SecurityError exception must be thrown when window.scrollbars is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
756 if (item.isMethod)
757 if (item.args)
758 fr.contentWindow[item.name](item.args[0], item.args[1]);
759 else
760 fr.contentWindow[item.name]();
761 else
762 fr.contentWindow[item.name];
763 }" did not throw
764 FAIL A SecurityError exception must be thrown when window.statusbar is accessed from a different origin. assert_throws: A SecurityError exception should be thro wn. function "function () {
765 if (item.isMethod)
766 if (item.args)
767 fr.contentWindow[item.name](item.args[0], item.args[1]);
768 else
769 fr.contentWindow[item.name]();
770 else
771 fr.contentWindow[item.name];
772 }" did not throw
773 FAIL A SecurityError exception must be thrown when window.status is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
774 if (item.isMethod)
775 if (item.args)
776 fr.contentWindow[item.name](item.args[0], item.args[1]);
777 else
778 fr.contentWindow[item.name]();
779 else
780 fr.contentWindow[item.name];
781 }" did not throw
782 FAIL A SecurityError exception must be thrown when window.screenX is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
783 if (item.isMethod)
784 if (item.args)
785 fr.contentWindow[item.name](item.args[0], item.args[1]);
786 else
787 fr.contentWindow[item.name]();
788 else
789 fr.contentWindow[item.name];
790 }" did not throw
791 FAIL A SecurityError exception must be thrown when window.screenY is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
792 if (item.isMethod)
793 if (item.args)
794 fr.contentWindow[item.name](item.args[0], item.args[1]);
795 else
796 fr.contentWindow[item.name]();
797 else
798 fr.contentWindow[item.name];
799 }" did not throw
800 FAIL A SecurityError exception must be thrown when window.sessionStorage is acce ssed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
801 if (item.isMethod)
802 if (item.args)
803 fr.contentWindow[item.name](item.args[0], item.args[1]);
804 else
805 fr.contentWindow[item.name]();
806 else
807 fr.contentWindow[item.name];
808 }" did not throw
809 FAIL A SecurityError exception must be thrown when window.toolbar is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
810 if (item.isMethod)
811 if (item.args)
812 fr.contentWindow[item.name](item.args[0], item.args[1]);
813 else
814 fr.contentWindow[item.name]();
815 else
816 fr.contentWindow[item.name];
817 }" did not throw
818 FAIL A SecurityError exception must be thrown when window.alert is accessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
819 if (item.isMethod)
820 if (item.args)
821 fr.contentWindow[item.name](item.args[0], item.args[1]);
822 else
823 fr.contentWindow[item.name]();
824 else
825 fr.contentWindow[item.name];
826 }" did not throw
827 FAIL A SecurityError exception must be thrown when window.clearInterval is acces sed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
828 if (item.isMethod)
829 if (item.args)
830 fr.contentWindow[item.name](item.args[0], item.args[1]);
831 else
832 fr.contentWindow[item.name]();
833 else
834 fr.contentWindow[item.name];
835 }" did not throw
836 FAIL A SecurityError exception must be thrown when window.clearTimeout is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
837 if (item.isMethod)
838 if (item.args)
839 fr.contentWindow[item.name](item.args[0], item.args[1]);
840 else
841 fr.contentWindow[item.name]();
842 else
843 fr.contentWindow[item.name];
844 }" did not throw
845 FAIL A SecurityError exception must be thrown when window.confirm is accessed fr om a different origin. assert_throws: A SecurityError exception should be thrown . function "function () {
846 if (item.isMethod)
847 if (item.args)
848 fr.contentWindow[item.name](item.args[0], item.args[1]);
849 else
850 fr.contentWindow[item.name]();
851 else
852 fr.contentWindow[item.name];
853 }" did not throw
854 FAIL A SecurityError exception must be thrown when window.getComputedStyle is ac cessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
855 if (item.isMethod)
856 if (item.args)
857 fr.contentWindow[item.name](item.args[0], item.args[1]);
858 else
859 fr.contentWindow[item.name]();
860 else
861 fr.contentWindow[item.name];
862 }" did not throw
863 FAIL A SecurityError exception must be thrown when window.getSelection is access ed from a different origin. assert_throws: A SecurityError exception should be t hrown. function "function () {
864 if (item.isMethod)
865 if (item.args)
866 fr.contentWindow[item.name](item.args[0], item.args[1]);
867 else
868 fr.contentWindow[item.name]();
869 else
870 fr.contentWindow[item.name];
871 }" did not throw
872 FAIL A SecurityError exception must be thrown when window.matchMedia is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
873 if (item.isMethod)
874 if (item.args)
875 fr.contentWindow[item.name](item.args[0], item.args[1]);
876 else
877 fr.contentWindow[item.name]();
878 else
879 fr.contentWindow[item.name];
880 }" did not throw
881 FAIL A SecurityError exception must be thrown when window.moveBy is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
882 if (item.isMethod)
883 if (item.args)
884 fr.contentWindow[item.name](item.args[0], item.args[1]);
885 else
886 fr.contentWindow[item.name]();
887 else
888 fr.contentWindow[item.name];
889 }" did not throw
890 FAIL A SecurityError exception must be thrown when window.moveTo is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
891 if (item.isMethod)
892 if (item.args)
893 fr.contentWindow[item.name](item.args[0], item.args[1]);
894 else
895 fr.contentWindow[item.name]();
896 else
897 fr.contentWindow[item.name];
898 }" did not throw
899 FAIL A SecurityError exception must be thrown when window.open is accessed from a different origin. assert_throws: A SecurityError exception should be thrown. f unction "function () {
900 if (item.isMethod)
901 if (item.args)
902 fr.contentWindow[item.name](item.args[0], item.args[1]);
903 else
904 fr.contentWindow[item.name]();
905 else
906 fr.contentWindow[item.name];
907 }" did not throw
908 FAIL A SecurityError exception must be thrown when window.print is accessed from a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
909 if (item.isMethod)
910 if (item.args)
911 fr.contentWindow[item.name](item.args[0], item.args[1]);
912 else
913 fr.contentWindow[item.name]();
914 else
915 fr.contentWindow[item.name];
916 }" did not throw
917 FAIL A SecurityError exception must be thrown when window.prompt is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
918 if (item.isMethod)
919 if (item.args)
920 fr.contentWindow[item.name](item.args[0], item.args[1]);
921 else
922 fr.contentWindow[item.name]();
923 else
924 fr.contentWindow[item.name];
925 }" did not throw
926 FAIL A SecurityError exception must be thrown when window.resizeTo is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
927 if (item.isMethod)
928 if (item.args)
929 fr.contentWindow[item.name](item.args[0], item.args[1]);
930 else
931 fr.contentWindow[item.name]();
932 else
933 fr.contentWindow[item.name];
934 }" did not throw
935 FAIL A SecurityError exception must be thrown when window.resizeBy is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
936 if (item.isMethod)
937 if (item.args)
938 fr.contentWindow[item.name](item.args[0], item.args[1]);
939 else
940 fr.contentWindow[item.name]();
941 else
942 fr.contentWindow[item.name];
943 }" did not throw
944 FAIL A SecurityError exception must be thrown when window.scroll is accessed fro m a different origin. assert_throws: A SecurityError exception should be thrown. function "function () {
945 if (item.isMethod)
946 if (item.args)
947 fr.contentWindow[item.name](item.args[0], item.args[1]);
948 else
949 fr.contentWindow[item.name]();
950 else
951 fr.contentWindow[item.name];
952 }" did not throw
953 FAIL A SecurityError exception must be thrown when window.scrollTo is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
954 if (item.isMethod)
955 if (item.args)
956 fr.contentWindow[item.name](item.args[0], item.args[1]);
957 else
958 fr.contentWindow[item.name]();
959 else
960 fr.contentWindow[item.name];
961 }" did not throw
962 FAIL A SecurityError exception must be thrown when window.scrollBy is accessed f rom a different origin. assert_throws: A SecurityError exception should be throw n. function "function () {
963 if (item.isMethod)
964 if (item.args)
965 fr.contentWindow[item.name](item.args[0], item.args[1]);
966 else
967 fr.contentWindow[item.name]();
968 else
969 fr.contentWindow[item.name];
970 }" did not throw
971 FAIL A SecurityError exception must be thrown when window.setInterval is accesse d from a different origin. assert_throws: A SecurityError exception should be th rown. function "function () {
972 if (item.isMethod)
973 if (item.args)
974 fr.contentWindow[item.name](item.args[0], item.args[1]);
975 else
976 fr.contentWindow[item.name]();
977 else
978 fr.contentWindow[item.name];
979 }" did not throw
980 FAIL A SecurityError exception must be thrown when window.setTimeout is accessed from a different origin. assert_throws: A SecurityError exception should be thr own. function "function () {
981 if (item.isMethod)
982 if (item.args)
983 fr.contentWindow[item.name](item.args[0], item.args[1]);
984 else
985 fr.contentWindow[item.name]();
986 else
987 fr.contentWindow[item.name];
988 }" did not throw
989 FAIL A SecurityError exception must be thrown when window.showModalDialog is acc essed from a different origin. assert_true: window.showModalDialog should exist. expected true got false
990 FAIL A SecurityError exception must be thrown when window.stop is accessed from a different origin. assert_throws: A SecurityError exception should be thrown. f unction "function () {
991 if (item.isMethod)
992 if (item.args)
993 fr.contentWindow[item.name](item.args[0], item.args[1]);
994 else
995 fr.contentWindow[item.name]();
996 else
997 fr.contentWindow[item.name];
998 }" did not throw
999 PASS A SecurityError exception should not be thrown when window.closed is access ed from a different origin.
1000 PASS A SecurityError exception should not be thrown when window.frames is access ed from a different origin.
1001 PASS A SecurityError exception should not be thrown when window.length is access ed from a different origin.
1002 PASS A SecurityError exception should not be thrown when window.location is acce ssed from a different origin.
1003 PASS A SecurityError exception should not be thrown when window.opener is access ed from a different origin.
1004 PASS A SecurityError exception should not be thrown when window.parent is access ed from a different origin.
1005 PASS A SecurityError exception should not be thrown when window.self is accessed from a different origin.
1006 PASS A SecurityError exception should not be thrown when window.top is accessed from a different origin.
1007 PASS A SecurityError exception should not be thrown when window.window is access ed from a different origin.
1008 PASS A SecurityError exception should not be thrown when window.blur is accessed from a different origin.
1009 PASS A SecurityError exception should not be thrown when window.close is accesse d from a different origin.
1010 PASS A SecurityError exception should not be thrown when window.focus is accesse d from a different origin.
1011 PASS A SecurityError exception should not be thrown when window.postMessage is a ccessed from a different origin.
1012 Harness: the test ran to completion.
1013
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698