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

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

Issue 1917073002: Block webpages from navigating to view-source URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete layout tests Created 4 years, 7 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/simple_links.html
diff --git a/content/test/data/simple_links.html b/content/test/data/simple_links.html
index e5206796c18df919716a7dd710559cfc0d052011..43f7405ccb28c28e2cbd6cb655cca899d2786e0c 100644
--- a/content/test/data/simple_links.html
+++ b/content/test/data/simple_links.html
@@ -24,10 +24,15 @@
function clickCrossSiteLink() {
return simulateClick(document.getElementById("cross_site_link"));
}
+
+ function clickViewSourceLink() {
+ return simulateClick(document.getElementById("view_source_link"));
+ }
</script>
</head>
<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>
</html>
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698