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

Unified Diff: content/test/data/simple_links.html

Issue 2080653002: SameSite: Correctly set requests' initiator for new tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: firstPartyForCookiesFix Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/simple_links.html
diff --git a/content/test/data/simple_links.html b/content/test/data/simple_links.html
index 43f7405ccb28c28e2cbd6cb655cca899d2786e0c..80957277f8aa7259d548490dc0b0f63d384a706a 100644
--- a/content/test/data/simple_links.html
+++ b/content/test/data/simple_links.html
@@ -14,6 +14,9 @@
function setPortNumber(portNumber) {
var link = document.getElementById("cross_site_link");
link.setAttribute("href", "http://foo.com:" + portNumber + "/title2.html");
+
+ link = document.getElementById("cross_site_new_window_link");
+ link.setAttribute("href", "http://foo.com:" + portNumber + "/title2.html");
return true;
}
@@ -21,10 +24,18 @@
return simulateClick(document.getElementById("same_site_link"));
}
+ function clickSameSiteNewWindowLink() {
+ return simulateClick(document.getElementById("same_site_new_window_link"));
+ }
+
function clickCrossSiteLink() {
return simulateClick(document.getElementById("cross_site_link"));
}
+ function clickCrossSiteNewWindowLink() {
+ return simulateClick(document.getElementById("cross_site_new_window_link"));
+ }
+
function clickViewSourceLink() {
return simulateClick(document.getElementById("view_source_link"));
}
@@ -34,5 +45,7 @@
<a href="title2.html" id="same_site_link">same-site</a><br>
<a href="http://foo.com/title2.html" id="cross_site_link">cross-site</a><br>
<a href="view-source:about:blank" id="view_source_link">view-source:</a><br>
+<a href="title2.html" id="same_site_new_window_link" target="_blank">same-site new window</a>
+<a href="http://foo.com/title2.html" id="cross_site_new_window_link" target="_blank">cross-site new window</a>
</html>

Powered by Google App Engine
This is Rietveld 408576698