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

Side by Side Diff: LayoutTests/mhtml/page_with_css_and_js_ie.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 Windows Internet Explorer 9" 1 From: "Saved by Windows Internet Explorer 9"
2 Subject: 2 Subject:
3 Date: Wed, 18 May 2011 16:49:23 -0700 3 Date: Wed, 18 May 2011 16:49:23 -0700
4 MIME-Version: 1.0 4 MIME-Version: 1.0
5 Content-Type: multipart/related; 5 Content-Type: multipart/related;
6 type="text/html"; 6 type="text/html";
7 boundary="----=_NextPart_000_0012_01CC157B.8AA06570" 7 boundary="----=_NextPart_000_0012_01CC157B.8AA06570"
8 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16776 8 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16776
9 9
10 This is a multi-part message in MIME format. 10 This is a multi-part message in MIME format.
11 11
12 ------=_NextPart_000_0012_01CC157B.8AA06570 12 ------=_NextPart_000_0012_01CC157B.8AA06570
13 Content-Type: text/html; 13 Content-Type: text/html;
14 charset="Windows-1252" 14 charset="Windows-1252"
15 Content-Transfer-Encoding: quoted-printable 15 Content-Transfer-Encoding: quoted-printable
16 Content-Location: http://localhost/page_with_css_and_js.html 16 Content-Location: http://localhost/page_with_css_and_js.html
17 17
18 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 18 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
19 <HTML><HEAD> 19 <HTML><HEAD>
20 <META content=3D"text/html; charset=3Dwindows-1252" = 20 <META content=3D"text/html; charset=3Dwindows-1252" =
21 http-equiv=3DContent-Type><LINK=20 21 http-equiv=3DContent-Type><LINK=20
22 rel=3Dstylesheet type=3Dtext/css = 22 rel=3Dstylesheet type=3Dtext/css =
23 href=3D"http://localhost/resources/hide_image.css"> 23 href=3D"http://localhost/resources/hide_image.css">
24 <SCRIPT type=3Dtext/javascript=20 24 <SCRIPT type=3Dtext/javascript=20
25 src=3D"http://localhost/resources/remove_image_script.js"></SCRIPT> 25 src=3D"http://localhost/resources/remove_image_script.js"></SCRIPT>
26 26
27 <SCRIPT>=0A=
28 if (window.testRunner) {=0A=
29 testRunner.dumpAsText();=0A=
30 testRunner.waitUntilDone();=0A=
31 }=0A=
32 </SCRIPT>
33
34 <META name=3DGENERATOR content=3D"MSHTML 9.00.8112.16421"></HEAD> 27 <META name=3DGENERATOR content=3D"MSHTML 9.00.8112.16421"></HEAD>
35 <BODY onload=3DonLoad()>This page tests that CSS and JavaScript = 28 <BODY onload=3DonLoad()>This page tests that CSS and JavaScript =
36 resources are=20 29 resources are=20
37 retrieved correctly for MHTML files.<BR><BR>There should be only one red = 30 retrieved correctly for MHTML files.<BR><BR>There should be only 2 red =
38 square=20 31 squares=20
39 below:=20 32 below:=20
40 <DIV id=3DfirstDiv><IMG=20 33 <DIV id=3DfirstDiv><IMG=20
41 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV> 34 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV>
42 <DIV id=3DsecondDiv>The red square below should be hidden by way of = 35 <DIV id=3DsecondDiv>The red square below should be hidden by way of =
43 CSS.<BR><IMG=20 36 CSS.<BR><IMG=20
44 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV> 37 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV>
45 <DIV id=3DthirdDiv>The red square below should be hidden by way of=20 38 <DIV id=3DthirdDiv>The red square below should be hidden by way of=20
46 JavaScript.<BR><IMG=20 39 JavaScript (with JS disabled in MHTML, it still should show).<BR><IMG=20
47 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV></BODY><= 40 src=3D"http://localhost/resources/red_square.png"><BR><BR></DIV></BODY><=
48 /HTML> 41 /HTML>
49 42
50 ------=_NextPart_000_0012_01CC157B.8AA06570 43 ------=_NextPart_000_0012_01CC157B.8AA06570
51 Content-Type: image/png 44 Content-Type: image/png
52 Content-Transfer-Encoding: base64 45 Content-Transfer-Encoding: base64
53 Content-Location: http://localhost/resources/red_square.png 46 Content-Location: http://localhost/resources/red_square.png
54 47
55 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx 48 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
56 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV 49 jwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACESURBVEhL7ZYxDoAwCEXB2LGTo46ewXj/zXgV
(...skipping 16 matching lines...) Expand all
73 Content-Transfer-Encoding: quoted-printable 66 Content-Transfer-Encoding: quoted-printable
74 Content-Location: http://localhost/resources/remove_image_script.js 67 Content-Location: http://localhost/resources/remove_image_script.js
75 68
76 function onLoad() {=0A= 69 function onLoad() {=0A=
77 divToRemove =3D document.getElementById("thirdDiv");=0A= 70 divToRemove =3D document.getElementById("thirdDiv");=0A=
78 divToRemove.parentNode.removeChild(divToRemove);=0A= 71 divToRemove.parentNode.removeChild(divToRemove);=0A=
79 if (window.testRunner)=0A= 72 if (window.testRunner)=0A=
80 testRunner.notifyDone();=0A= 73 testRunner.notifyDone();=0A=
81 } 74 }
82 ------=_NextPart_000_0012_01CC157B.8AA06570-- 75 ------=_NextPart_000_0012_01CC157B.8AA06570--
OLDNEW
« no previous file with comments | « LayoutTests/mhtml/page_with_css_and_js.html_original ('k') | LayoutTests/mhtml/page_with_css_and_js_ie-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698