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

Side by Side 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: Synced Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 From: <Saved by UnMHT> 1 From: <Saved by UnMHT>
2 Subject: =?iso-2022-jp?B?QSBzaW1wbGUgcGFnZQ==?= 2 Subject: =?iso-2022-jp?B?QSBzaW1wbGUgcGFnZQ==?=
3 Date: Wed, May 11 2011 15:36:36 GMT-0700 3 Date: Wed, May 11 2011 15:36:36 GMT-0700
4 MIME-Version: 1.0 4 MIME-Version: 1.0
5 Content-Type: multipart/related; 5 Content-Type: multipart/related;
6 boundary="----=_NextPart_000_0000_87206557.D2C008B0"; 6 boundary="----=_NextPart_000_0000_87206557.D2C008B0";
7 type="text/html" 7 type="text/html"
8 8
9 ------=_NextPart_000_0000_87206557.D2C008B0 9 ------=_NextPart_000_0000_87206557.D2C008B0
10 Content-Type: text/html; charset="ISO-8859-1" 10 Content-Type: text/html; charset="ISO-8859-1"
11 Content-Transfer-Encoding: quoted-printable 11 Content-Transfer-Encoding: quoted-printable
12 Content-Location: http://localhost/base.html 12 Content-Location: http://localhost/page_with_javascript.html
13 13
14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= 14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
15 =3Diso-8859-1"> 15 =3Diso-8859-1">
16 16
17 <title>A simple page</title> 17
18 </head> 18 <title>A page with JavaScript</title>
19 <body> 19 <h1>This page has content generated by JavaScript</h1>
20 <div id="out"></div> 20 Javascript is not run, so that dynamic content should not show.
21 <div id=3D"myDiv"></div>
22
21 <script> 23 <script>
22 if (window.testRunner) 24 document.getElementById('myDiv').innerHTML =3D
23 testRunner.dumpAsText(); 25 "JavaScript is in the house!";
24 if (window.internals.baseURL(document) == "http://localhost/base.html")
25 out.innerHTML = "PASS";
26 else
27 out.innerHTML = "FAIL";
28 </script> 26 </script>
27
29 </body></html> 28 </body></html>
30 ------=_NextPart_000_0000_87206557.D2C008B0-- 29 ------=_NextPart_000_0000_87206557.D2C008B0--
OLDNEW
« no previous file with comments | « LayoutTests/mhtml/page_with_image_unmht-expected.txt ('k') | LayoutTests/mhtml/page_with_javascript-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698