OLD | NEW |
1 | 1 |
2 <p>This test checks cross-frame access security of window attribute setters (rda
r://problem/5326791).</p> | 2 <p>This test checks cross-frame access security of window attribute setters (rda
r://problem/5326791).</p> |
3 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-put
-test.html" style=""></iframe> | 3 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-put
-test.html" style=""></iframe> |
4 <pre id="console"></pre> | 4 <pre id="console"></pre> |
5 <script> | 5 <script> |
6 function log(s) | 6 function log(s) |
7 { | 7 { |
8 document.getElementById("console").appendChild(document.createTextNode(s + "
\n")); | 8 document.getElementById("console").appendChild(document.createTextNode(s + "
\n")); |
9 } | 9 } |
10 | 10 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 setForbiddenProperty(targetWindow, "prompt"); | 216 setForbiddenProperty(targetWindow, "prompt"); |
217 setForbiddenProperty(targetWindow, "releaseEvents"); | 217 setForbiddenProperty(targetWindow, "releaseEvents"); |
218 setForbiddenProperty(targetWindow, "removeEventListener"); | 218 setForbiddenProperty(targetWindow, "removeEventListener"); |
219 setForbiddenProperty(targetWindow, "resizeBy"); | 219 setForbiddenProperty(targetWindow, "resizeBy"); |
220 setForbiddenProperty(targetWindow, "resizeTo"); | 220 setForbiddenProperty(targetWindow, "resizeTo"); |
221 setForbiddenProperty(targetWindow, "scroll"); | 221 setForbiddenProperty(targetWindow, "scroll"); |
222 setForbiddenProperty(targetWindow, "scrollBy"); | 222 setForbiddenProperty(targetWindow, "scrollBy"); |
223 setForbiddenProperty(targetWindow, "scrollTo"); | 223 setForbiddenProperty(targetWindow, "scrollTo"); |
224 setForbiddenProperty(targetWindow, "setInterval"); | 224 setForbiddenProperty(targetWindow, "setInterval"); |
225 setForbiddenProperty(targetWindow, "setTimeout"); | 225 setForbiddenProperty(targetWindow, "setTimeout"); |
226 setForbiddenProperty(targetWindow, "showModalDialog"); | |
227 setForbiddenProperty(targetWindow, "stop"); | 226 setForbiddenProperty(targetWindow, "stop"); |
228 | 227 |
229 setTimeout(function() { | 228 setTimeout(function() { |
230 // log(targetWindow.focus.__proto__); | 229 // log(targetWindow.focus.__proto__); |
231 log("MAIN WINDOW: !!-- Test ended--!!"); | 230 log("MAIN WINDOW: !!-- Test ended--!!"); |
232 | 231 |
233 window.stop(); | 232 window.stop(); |
234 | 233 |
235 if (window.testRunner) | 234 if (window.testRunner) |
236 testRunner.notifyDone(); | 235 testRunner.notifyDone(); |
237 }, 1); | 236 }, 1); |
238 } | 237 } |
239 </script> | 238 </script> |
OLD | NEW |