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

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

Issue 2581143002: Maintain HostZoom connection per-frame on browser side (Closed)
Patch Set: Rebase Created 4 years 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/browser/iframe_zoom_browsertest.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/page_with_iframe_and_link.html
diff --git a/content/test/data/page_with_iframe_and_link.html b/content/test/data/page_with_iframe_and_link.html
new file mode 100644
index 0000000000000000000000000000000000000000..3a4746a04bb7494daef28ebc07e5b564cdb772a8
--- /dev/null
+++ b/content/test/data/page_with_iframe_and_link.html
@@ -0,0 +1,31 @@
+<html>
+
+ <head><title>Page with iframe and link</title>
+ <script>
+ function simulateClick(target) {
+ var evt = document.createEvent("MouseEvents");
+ evt.initMouseEvent("click", true, true, window,
+ 0, 0, 0, 0, 0, false, false,
+ false, false, 0, null);
+
+ return target.dispatchEvent(evt);
+ }
+
+ function setPortNumber(portNumber) {
+ var link = document.getElementById("cross_site_link");
+ link.setAttribute("href", "http://foo.com:" + portNumber + "/title2.html");
+ return true;
+ }
+
+ function clickCrossSiteLink() {
+ return simulateClick(document.getElementById("cross_site_link"));
+ }
+ </script>
+ </head>
+
+<a href="http://foo.com/title2.html" id="cross_site_link">cross-site</a><br>
+
+<p>This page has an iframe. Yay for iframes!
+<p><iframe src="about:blank"></iframe>
+
+</html>
« no previous file with comments | « content/browser/iframe_zoom_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698