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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash.html

Issue 1682173004: Add missing opener frame null check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Test that document.open() doesn\'t crash when being opened from a f rame-less context.');
9
10 window.jsTestIsAsync = true;
11
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
15 testRunner.setCanOpenWindows();
16 }
17
18 (function() {
19 if (location.hash == "#stop")
20 return;
21
22 blankWindow = open(location + "#stop");
23 blankWindow.onload = function() {
24 blankFunc = blankWindow.Function;
25 blankWindow.eval("location = 'about:blank'");
26 setTimeout(function() {
27 blankFunc( "(" + function() { targetWindow = open(); } + ")()")();
28 finishJSTest();
29 });
30 };
31 })();
32 </script>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698