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

Side by Side Diff: chrome/test/data/popup_blocker/check-framename.html

Issue 2206963002: Plumb the frame name through the popup blocker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Check that window.opener is not set</title> 4 <title>Check that the frame name is correct</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="console"></div> 7 <div id="console"></div>
8 <script> 8 <script>
9 var log = document.querySelector("#console"); 9 var log = document.querySelector("#console");
10 var result; 10 var result;
11 if (window.opener != null) 11 if (window.name == "")
12 result = "FAIL: opener set"; 12 result = "FAIL: no name";
13 else if (window.name != "fancyname")
14 result = "FAIL: incorrect frame name: " + window.name;
13 else 15 else
14 result = "PASS"; 16 result = "PASS";
15 log.innerText = result; 17 log.innerText = result;
16 document.title = result; 18 document.title = result;
17 </script> 19 </script>
18 </body> 20 </body>
19 </html> 21 </html>
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_params.h ('k') | chrome/test/data/popup_blocker/popup-framename.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698