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

Unified Diff: LayoutTests/mhtml/page_with_javascript.mht

Issue 161383002: Disabling JavaScript in MHTML and limiting MHTML loading to top frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed check_domain.mht (replaced with relative_url.mht) Created 6 years, 10 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: LayoutTests/mhtml/page_with_javascript.mht
diff --git a/LayoutTests/mhtml/simple_page_unmht.mht b/LayoutTests/mhtml/page_with_javascript.mht
similarity index 57%
copy from LayoutTests/mhtml/simple_page_unmht.mht
copy to LayoutTests/mhtml/page_with_javascript.mht
index d03c63fc62aecaed375506c79876dc0689797e5a..2b6036f2f20a18fdfa3dffce9677a54d5d6f2fd9 100644
--- a/LayoutTests/mhtml/simple_page_unmht.mht
+++ b/LayoutTests/mhtml/page_with_javascript.mht
@@ -9,19 +9,22 @@ Content-Type: multipart/related;
------=_NextPart_000_0000_87206557.D2C008B0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
-Content-Location: http://localhost/simple_page.html
+Content-Location: http://localhost/page_with_javascript.html
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Diso-8859-1">
-<title>A simple page</title>
+<title>A page with JavaScript</title>
<script>
-if (window.testRunner)
- testRunner.dumpAsText();
+ window.onload =3D function() {
+ document.getElementById('myDiv').innerHTML =3D
+ "JavaScript is in the house!";
+ }
</script>
-<base href=3D"http://localhost/"></base></head><body>
-<h1>This is a very simple page</h1>
-Very <b>basic</b> page.
+<h1>This page has content generated by JavaScript</h1>
+Javascript is not run, so that dynamic content should not show.
+<div id=3D"myDiv"></div>
+
</body></html>
------=_NextPart_000_0000_87206557.D2C008B0--

Powered by Google App Engine
This is Rietveld 408576698