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

Side by Side Diff: LayoutTests/mhtml/check_domain.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
« no previous file with comments | « LayoutTests/mhtml/base_url-expected.txt ('k') | LayoutTests/mhtml/check_domain-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 From: <Saved by UnMHT>
2 Subject: =?iso-2022-jp?B?QSBzaW1wbGUgcGFnZQ==?=
3 Date: Wed, May 11 2011 15:36:36 GMT-0700
4 MIME-Version: 1.0
5 Content-Type: multipart/related;
6 boundary="----=_NextPart_000_0000_87206557.D2C008B0";
7 type="text/html"
8
9 ------=_NextPart_000_0000_87206557.D2C008B0
10 Content-Type: text/html; charset="ISO-8859-1"
11 Content-Transfer-Encoding: quoted-printable
12 Content-Location: http://localhost/simple_page.html
13
14 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
15 =3Diso-8859-1">
16
17
18 <title>A simple page</title>
19 <script>
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.waitUntilDone();
23 }
24
25 window.onload = function() {
26 var span=3Ddocument.createElement("span");
27 if (window.location !=3D 'http://localhost/simple_page.html' &&
28 document.domain !=3D 'localhost') {
29 span.innerHTML = "PASS";
30 } else {
31 span.innerHTML = "FAIL window.location=" + window.location +
32 " document.domain=" + document.domain;
33 }
34
35 document.getElementById('locDiv').appendChild(span);
36 testRunner.notifyDone();
37 }
38
39 </script>
40 <base href=3D"http://localhost/"></base></head><body>
41 <h1>This is a very simple page</h1>
42 Very <b>basic</b> page.
43 <div id=3D'locDiv'></div>
44 </body></html>
45 ------=_NextPart_000_0000_87206557.D2C008B0--
OLDNEW
« no previous file with comments | « LayoutTests/mhtml/base_url-expected.txt ('k') | LayoutTests/mhtml/check_domain-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698