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

Unified Diff: chrome/test/data/subresource_filter/frame_set.html

Issue 2574193002: Make subresource filter activation agnostic of in-page navigations. (Closed)
Patch Set: Final test fix. 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
Index: chrome/test/data/subresource_filter/frame_set.html
diff --git a/chrome/test/data/subresource_filter/frame_set.html b/chrome/test/data/subresource_filter/frame_set.html
index a7f3ea4d82b2a3c4c16f48472e9531d3093de9e3..0fa699eba98b1a698cee4e4ac12e33d7dd599f2e 100644
--- a/chrome/test/data/subresource_filter/frame_set.html
+++ b/chrome/test/data/subresource_filter/frame_set.html
@@ -1,4 +1,16 @@
<html>
+ <head>
+ <script type="text/javascript">
+ function insertFrameWithScriptAndNotify() {
+ var frame = document.createElement("iframe");
+ frame.name = "dynamic";
+ frame.src = "frame_with_included_script.html";
+ frame.onload = () => window.domAutomationController.send(true)
+ frame.onerror = () => window.domAutomationController.send(false)
+ document.body.appendChild(frame);
+ }
+ </script>
+ </head>
<body>
<iframe name="one" src="frame_with_included_script.html"></iframe>
<iframe name="two" src="frame_with_included_script.html"></iframe>

Powered by Google App Engine
This is Rietveld 408576698