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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-put.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698