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

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

Issue 22254005: UMA data collector for cross-site documents(XSD) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: blocking code gets simpler and testcase is moved to /content Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/cross_site_document_request_target.html
diff --git a/content/test/data/cross_site_document_request_target.html b/content/test/data/cross_site_document_request_target.html
new file mode 100644
index 0000000000000000000000000000000000000000..e965c23bc9bedd3e741752f37022cd84fa71d1bb
--- /dev/null
+++ b/content/test/data/cross_site_document_request_target.html
@@ -0,0 +1,39 @@
+<html>
+<!-- This page tests that the renderer process does not crash even the response
Charlie Reis 2013/08/22 18:23:30 nit: Just move this text into the body of the page
dsjang 2013/08/22 19:05:55 Done.
+that it requested is blocked by SiteIsolationPolicy for various targets. This
+page should be loaded on a domain other than bar.com to be different from the
+requested resource here. -->
+<head>
+<!-- favicon -->
+<link rel="icon"
+ type="image/png"
+ href="http://bar.com/files/site_isolation/valid.html">
+<!-- css -->
+<link rel="stylesheet" type="text/css" href="http://bar.com/files/site_isolation/valid.html">
+<!-- script -->
+<script language="javascript" src="http://bar.com/files/site_isolation/valid.html"></script>
+</head>
+<body>
+<!-- image -->
Charlie Reis 2013/08/22 18:23:30 nit: No need for the redundant HTML comment if you
dsjang 2013/08/22 19:05:55 Done.
+image:<img src="http://bar.com/files/site_isolation/valid.html"></img><br/>
+
+<!-- font -->
+font:
+<style media="screen" type="text/css">
+@font-face {
+ font-family: "myfont";
+ src: url("http://bar.com/files/site_isolation/valid.html") format('woff');
+}
+</style><br/>
+
+<!-- The renderer creates an iframe for a file with .html extension, so this
+should be fixed later. -->
Charlie Reis 2013/08/22 18:23:30 Can you clarify what "should be fixed" means?
dsjang 2013/08/22 19:05:55 Done.
+embed:<embed src="http://bar.com/files/site_isolation/valid.html"></embed><br/>
+
+<!-- The renderer creates an iframe for a file with .html extension, so this
+should be fixed later. -->
+object:<object width="400" height="400"
+data="http://bar.com/files/site_isolation/valid.html"></object><br/>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698