<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[174549] trunk/LayoutTests</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/174549">174549</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-10-09 17:53:20 -0700 (Thu, 09 Oct 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>iOS Simulator results for webarchive tests.
* platform/ios-simulator/webarchive/*: Added</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/ios-simulator/webarchive/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchiveadoptattributestyledbodywebarchiveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-body-webarchive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchiveadoptattributestylednodewebarchiveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-node-webarchive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchiveadoptinlinestylednodewebarchiveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-inline-styled-node-webarchive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivearchiveemptyframedomexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-dom-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivearchiveemptyframesourceexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-source-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivearchivewithunencodedurlexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/archive-with-unencoded-url-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivecsspagerulecrashexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/css-page-rule-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivedoctypeexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/doctype-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchiveignorenoscriptifscriptingenabledexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/ignore-noscript-if-scripting-enabled-expected.txt</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/webarchive/loading/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchiveloadingvideoinwebarchiveexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/loading/video-in-webarchive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestbodybackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-body-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestcssimportexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-import-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestcssurlresourcesinstylesheetsexpectedpng">trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-in-stylesheets-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestcssurlresourcesinstylesheetsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-in-stylesheets-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestcssurlresourcesinlinestylesexpectedpng">trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-inline-styles-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestcssurlresourcesinlinestylesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-inline-styles-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestduplicateresourcesexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-duplicate-resources-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestframesetexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-frameset-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestimgsrcexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-img-src-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestinputsrcexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-input-src-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestlinkhrefexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-link-href-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestlinkreliconbeforeloadexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-link-rel-icon-beforeload-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestlinkreliconexpectedpng">trunk/LayoutTests/platform/ios-simulator/webarchive/test-link-rel-icon-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestlinkreliconexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-link-rel-icon-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestobjectdataexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-object-data-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestscriptsrcexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-script-src-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetesttablebackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-table-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetesttdbackgroundexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-td-background-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwebarchivetestxmlstylesheetexpectedtxt">trunk/LayoutTests/platform/ios-simulator/webarchive/test-xml-stylesheet-expected.txt</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (174548 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-10-10 00:53:19 UTC (rev 174548)
+++ trunk/LayoutTests/ChangeLog        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -1,5 +1,11 @@
</span><span class="cx"> 2014-10-09 Simon Fraser <simon.fraser@apple.com>
</span><span class="cx">
</span><ins>+ iOS Simulator results for webarchive tests.
+
+ * platform/ios-simulator/webarchive/*: Added
+
+2014-10-09 Simon Fraser <simon.fraser@apple.com>
+
</ins><span class="cx"> iOS Simulator and generic results for userscripts tests.
</span><span class="cx">
</span><span class="cx"> * platform/ios-simulator/userscripts/user-script-plugin-document-expected.txt: Added.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchiveadoptattributestyledbodywebarchiveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-body-webarchive-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-body-webarchive-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-body-webarchive-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,116 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+
+&lt;script&gt;
+
+if (window.testRunner) {
+ testRunner.dumpDOMAsWebArchive();
+ testRunner.setCanOpenWindows();
+ testRunner.waitUntilDone();
+}
+
+var secondWindow = null;
+
+function startTest()
+{
+ secondWindow = window.open("resources/adopt-attribute-styled-body-second-window.html", "TestWindow");
+ if (!secondWindow) {
+ alert("When running this test under Safari, popup blocking must be disabled.");
+ return;
+ }
+ tryAdoptNode();
+}
+
+function tryAdoptNode()
+{
+ window.bodyToAdopt = secondWindow.document.getElementById("otherBody");
+ if (!secondWindow.doneWithBody || !window.bodyToAdopt) {
+ setTimeout("tryAdoptNode()", 10);
+ return;
+ }
+
+ secondWindow.close();
+
+ document.getElementById("iframeSpan").innerHTML = "&lt;iframe src='resources/adopt-attribute-styled-body-iframe.html'&gt;&lt;/iframe&gt;";
+
+ procedeAfterClosedWindow();
+}
+
+function procedeAfterClosedWindow()
+{
+ if (!secondWindow.closed || window.bodyToAdopt) {
+ setTimeout("procedeAfterClosedWindow()", 10);
+ return;
+ }
+
+ secondWindow = null;
+
+ if (window.GCController) {
+ GCController.collect();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ else
+ alert("How strange - You have window.GCController, but no window.testRunner. How did this happen?");
+ }
+ else
+ alert("Now wait for garbage collection to have occured, then save the current page as a WebArchive.");
+}
+
+&lt;/script&gt;
+&lt;/head&gt;
+
+&lt;body onload="startTest();"&gt;
+&lt;span id="testSpan"&gt;This test takes a body with inline link color styling from a second window, moves it to the document of an iframe, makes sure the
+second window has closed, then makes a WebArchive. The test passes if it doesn't crash. If running the test in Safari then garbage collection might get in the
+way of fulling testing the bug. One should wait "awhile" before making the WebArchive.&lt;br&gt;&lt;/span&gt;&lt;br&gt;
+&lt;span id="iframeSpan"&gt;&lt;iframe src="resources/adopt-attribute-styled-body-iframe.html"&gt;&lt;/iframe&gt;&lt;/span&gt;
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/adopt-attribute-styled-body-webarchive.html</string>
+        </dict>
+        <key>WebSubframeArchives</key>
+        <array>
+                <dict>
+                        <key>WebMainResource</key>
+                        <dict>
+                                <key>WebResourceData</key>
+                                <string>&lt;html&gt;&lt;head&gt;&lt;script&gt;
+if (window.parent.bodyToAdopt) {
+ document.getElementsByTagName("html")[0].appendChild(document.adoptNode(window.parent.bodyToAdopt));
+ window.parent.bodyToAdopt = null;
+} else
+ alert("window.parent.bodyToAdopt is not set - Are you viewing this page as part of the adopt-attribute-styled-body test?");
+&lt;/script&gt;
+&lt;/head&gt;&lt;body id="otherBody" vlink="green" alink="green"&gt;
+&lt;a href="SomeUnvisitedPage.html"&gt;Spaceballs: The Unvisited Link&lt;/a&gt;&lt;br&gt;
+&lt;a href="about:blank"&gt;Spaceballs: The Visited Link&lt;/a&gt;
+
+
+&lt;/body&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                                <key>WebResourceFrameName</key>
+                                <string>&lt;!--framePath //&lt;!--frame0--&gt;--&gt;</string>
+                                <key>WebResourceMIMEType</key>
+                                <string>text/html</string>
+                                <key>WebResourceTextEncodingName</key>
+                                <string>UTF-8</string>
+                                <key>WebResourceURL</key>
+                                <string>file:///LayoutTests/webarchive/resources/adopt-attribute-styled-body-iframe.html</string>
+                        </dict>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchiveadoptattributestylednodewebarchiveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-node-webarchive-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-node-webarchive-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-attribute-styled-node-webarchive-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+
+&lt;script&gt;
+
+if (window.testRunner) {
+ testRunner.dumpDOMAsWebArchive();
+ testRunner.setCanOpenWindows();
+ testRunner.waitUntilDone();
+}
+
+var otherWindow = null;
+
+function startTest()
+{
+ otherWindow = window.open("resources/adopt-attribute-styled-node-second-window.html", "TestWindow");
+ if (!otherWindow) {
+ alert("When running this test under Safari, popup blocking must be disabled.");
+ return;
+ }
+ tryAdoptNode();
+}
+
+function tryAdoptNode()
+{
+ var otherMarquee = otherWindow.document.getElementById("otherMarquee");
+ if (!otherMarquee) {
+ setTimeout("tryAdoptNode()", 10);
+ return;
+ }
+
+ var adoptedMarquee = document.adoptNode(otherMarquee);
+ document.getElementById("testSpan").appendChild(adoptedMarquee);
+ otherWindow.close();
+
+ procedeAfterClosedWindow();
+}
+
+function procedeAfterClosedWindow()
+{
+ if (!otherWindow.closed) {
+ setTimeout("procedeAfterClosedWindow()", 10);
+ return;
+ }
+
+ otherWindow = null;
+
+ if (window.GCController) {
+ GCController.collect();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ else
+ alert("How strange - You have window.GCController, but no window.testRunner. How did this happen?");
+ }
+ else
+ alert("Now wait for garbage collection to have occured, then save the current page as a WebArchive.");
+}
+
+&lt;/script&gt;
+&lt;/head&gt;
+
+&lt;body onload="startTest();"&gt;
+&lt;span id="testSpan"&gt;This test takes a node with mapped style attributes from a different document, moves it to this document, makes sure the other document has closed,
+then makes a WebArchive from this document. The test passes if it doesn't crash. If running the test in Safari then garbage collection might get in the
+way of fulling testing the bug. One should wait "awhile" before making the WebArchive.&lt;br&gt;&lt;marquee id="otherMarquee" bgcolor="blue" width="300px"&gt;Hello there marquee!&lt;/marquee&gt;&lt;/span&gt;
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/adopt-attribute-styled-node-webarchive.html</string>
+        </dict>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchiveadoptinlinestylednodewebarchiveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-inline-styled-node-webarchive-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-inline-styled-node-webarchive-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/adopt-inline-styled-node-webarchive-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+
+&lt;script&gt;
+
+if (window.testRunner) {
+ testRunner.dumpDOMAsWebArchive();
+ testRunner.setCanOpenWindows();
+ testRunner.waitUntilDone();
+}
+
+var otherWindow = null;
+
+function startTest()
+{
+ otherWindow = window.open("resources/adopt-inline-styled-node-second-window.html", "TestWindow");
+ if (!otherWindow) {
+ alert("When running this test under Safari, popup blocking must be disabled.");
+ return;
+ }
+ tryAdoptNode();
+}
+
+function tryAdoptNode()
+{
+ var otherSpan = otherWindow.document.getElementById("otherSpan");
+ if (!otherSpan) {
+ setTimeout("tryAdoptNode()", 10);
+ return;
+ }
+
+ var adoptedSpan = document.adoptNode(otherSpan);
+ document.getElementById("testSpan").appendChild(adoptedSpan);
+ otherWindow.close();
+
+ procedeAfterClosedWindow();
+}
+
+function procedeAfterClosedWindow()
+{
+ if (!otherWindow.closed) {
+ setTimeout("procedeAfterClosedWindow()", 10);
+ return;
+ }
+
+ otherWindow = null;
+
+ if (window.GCController) {
+ GCController.collect();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ else
+ alert("How strange - You have window.GCController, but no window.testRunner. How did this happen?");
+ }
+ else
+ alert("Now wait for garbage collection to have occured, then save the current page as a WebArchive.");
+}
+
+&lt;/script&gt;
+&lt;/head&gt;
+
+&lt;body onload="startTest();"&gt;
+&lt;span id="testSpan"&gt;This test takes a node with inline style from a different document, moves it to this document, makes sure the other document has closed,
+then makes a WebArchive from this document. The test passes if it doesn't crash. If running the test in Safari then garbage collection might get in the
+way of fulling testing the bug. One should wait "awhile" before making the WebArchive.&lt;br&gt;&lt;span id="otherSpan" style="color: red"&gt;Spaceballs:The Styled Node&lt;/span&gt;&lt;/span&gt;
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/adopt-inline-styled-node-webarchive.html</string>
+        </dict>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivearchiveemptyframedomexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-dom-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-dom-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-dom-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;&lt;html&gt;&lt;head&gt;
+&lt;title&gt;Empty iFrame causes archive exception&lt;/title&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;p&gt;
+Here lies an `iframe` with no content/src:
+&lt;/p&gt;&lt;p&gt;
+
+&lt;iframe id="emptyFrame" style="width: 100%; height: 100px; border: solid 2px red;"&gt;
+&lt;/iframe&gt;
+
+
+
+&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/archive-empty-frame-dom.html</string>
+        </dict>
+        <key>WebSubframeArchives</key>
+        <array>
+                <dict>
+                        <key>WebMainResource</key>
+                        <dict>
+                                <key>WebResourceData</key>
+                                <string>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                                <key>WebResourceFrameName</key>
+                                <string>emptyFrame</string>
+                                <key>WebResourceMIMEType</key>
+                                <string>text/html</string>
+                                <key>WebResourceTextEncodingName</key>
+                                <string>UTF-8</string>
+                                <key>WebResourceURL</key>
+                                <string>about:blank</string>
+                        </dict>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivearchiveemptyframesourceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-source-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-source-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/archive-empty-frame-source-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd"&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;Empty iFrame causes archive exception&lt;/title&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpSourceAsWebArchive();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;p&gt;
+Here lies an `iframe` with no content/src:
+&lt;p&gt;
+
+&lt;iframe id="emptyFrame" style="width: 100%; height: 100px; border: solid 2px red;"&gt;
+&lt;/iframe&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/archive-empty-frame-source.html</string>
+        </dict>
+        <key>WebSubframeArchives</key>
+        <array>
+                <dict>
+                        <key>WebMainResource</key>
+                        <dict>
+                                <key>WebResourceData</key>
+                                <string></string>
+                                <key>WebResourceFrameName</key>
+                                <string>emptyFrame</string>
+                                <key>WebResourceMIMEType</key>
+                                <string>text/html</string>
+                                <key>WebResourceURL</key>
+                                <string>about:blank</string>
+                        </dict>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivearchivewithunencodedurlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/archive-with-unencoded-url-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/archive-with-unencoded-url-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/archive-with-unencoded-url-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,89 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;form&gt;
+ &lt;input type="image" src="resources/apple.gif?foo|bar"&gt;
+&lt;/form&gt;
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/archive-with-unencoded-url.html</string>
+        </dict>
+        <key>WebSubresources</key>
+        <array>
+                <dict>
+                        <key>WebResourceData</key>
+                        <data>
+                        R0lGODlhNABAAMQfAGJiYvLz9ImKitvb2/39/cnJyaSkpOPj49TU
+                        1MHBwbW1terq7Lu7u/X19uXm5+3u7+fo6eDg4e/w8t7e3/n5+RcX
+                        F87Oz/f398fHx9fX16+vr9HR0fDw8Pj4+MzMzAAAACH5BAEAAB8A
+                        LAAAAAA0AEAAQAX/4CeOZGme5iFUlYC+cCwKD7FAxxElAiTDnATA
+                        cCEYj8aABiBIDCIbjQCgqBEojUCjQSEEpoXTAUCQLB4PiZoTaG/f
+                        jcuFgj1kBrnIZDLoDzIIgRsTAgYmBk8TEQ4OEGdpbBQLDAUQEA55
+                        e32AGxsWHh4FBRgJCQgFAhQoCwIDlgsSFxyFOnt8foAInp+jpQkM
+                        wArCGsQaCg0KBgEoDwAAHoHRgroW1aEYpL7A28LDxcUGGgalhi8I
+                        AAgYoOvrn5/soL2lwcThEBQAAz/7JxYAXVcCPNjggp/BEwIYOHNm
+                        wMHBErMSEMgCR47FC3EwwnlzocOFBxMy3NHkp88EBwU///gjcKCR
+                        o0cPOEhwM6fDgUGWMuHKtQvUBgBhThhQ4CBCSwhoJDToQKxljlq4
+                        BPHCNo+bggXEXnwZMNMAupJ/ckm9RvUXg27dvqllkEFADxMQAKir
+                        Zs3Du1CiRpX1ZfasN3EGAlsYIIADv3MCDnBowKEAQwSGSRzAMEVA
+                        BIwTmCB4yHkEQQMACQDY0LmzgAlXZF0ac6D0QwUJOAxAkMArgAyu
+                        T3gQ5zYwBh8jBmhgoG9EBgYG3BbSQHpfBAEKjHSYTt3jxQ4BH3DB
+                        2EaLnAYLIgC6EyGuBhMDyDSI2X3jlu8Vay7480TPrU250p8n0SrA
+                        SzQxsTGTFu9hF4B45WESgf8e+EWzy0/NlTBOeDk0AtNMcVAQQCcH
+                        5LTgLSJJ9c4ooQiwjFAI7GGUhWkE0AFWv+GQB4N/6OJJPNnMY0EA
+                        ACyAgmMSLIKUBBxQgEoGRX0IIk8j5hiMNwxQkBAKDAhgxgMdeCBX
+                        BGCJFGInvMhj1V/fJMCjmSVEAEBcAFiQS4jS9HSNNk+mpZZaBmAw
+                        WgmZUeNJJ4DWJUqOdI6JZ2DjEHKiCRwEBg88BbCTl15O+lUPoo3u
+                        94MCAERAijrx+NQHBuIo4EGNgBRQigcRdAFAArl9EAAbBnWgRayl
+                        ObCEiQQIECGu+2i5gBEaxgUcsDJk1sAVtp4xJbIy6JkdJhBAB63/
+                        DCstoOAGXhV3LQxeubWQZd/+kBBDuF17AKcAaDDAAuEp1G4GDZiA
+                        gBRMYODAAgdYYBsD+zjgFUAUVGedERf8NO49AQ2YkX85ZNDuCyoU
+                        cEVGBlunEUVbuBHHdBwcMNtIfkwQFwYlUMDDRA5v9B18FRUMHn22
+                        gBUWIZp+QEGeBKShRnceu5cRHbLdodNO0aSngAlV2vCIBD4PSOB7
+                        c0hidCb31TgNDyfEdcElLz3Cwdgt07HAHY0crbWN7iiQUgluN7Di
+                        K2eQ3cYcFwywQYcy0ggnmLx48FNrQllQ1FGvxIQhBQ+o0wgmUIU1
+                        Fl7YbEBZByggskeFjiQVAAUQKFDJ/2p5REUNjlSx1dYFmWOgh5Bi
+                        azhcTlhvMpZedMIm2q8kuE1h5zNRkMxJM97HJI65D7NBBz2ekNkD
+                        LZ0hQQeEJZAkjbafPmdVdhKDQAMAEC5hAg8g9XlyeNRs+o1kVeWX
+                        AncywDwD9ZKQmSMBLDAEl13ydCPu3CPTnRKgPwP4aARVuoBjEBGW
+                        8fivSdkYE/zudCcPCMADvUOXNOIEJtQVCi0CxFN6HlCCKgFqA4II
+                        1F0A6L46kQlRgRkDBk0ghV3Q5YYQxAahtvGkb8DQgM94gWPuAoq6
+                        xCMvGKDUDl8YmOigIwYyjNSjpriOQUXQUpfilwAc8gMhZCABc8Hh
+                        NSJlgTkOgoIUZykG+UQTFIMohBEIKGN9BmCbQgRmCq+awAIwgh0b
+                        vMo1C6hNZfJ0wBdMwG29KQAJy/WtEAAAO1BvbG9udXMK
+                        </data>
+                        <key>WebResourceMIMEType</key>
+                        <string>image/gif</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>image/gif</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/apple.gif?foo%7Cbar</string>
+                                <key>expectedContentLength</key>
+                                <integer>1476</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/apple.gif?foo|bar</string>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivecsspagerulecrashexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/css-page-rule-crash-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/css-page-rule-crash-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/css-page-rule-crash-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+&lt;script&gt;
+
+if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+
+&lt;/script&gt;
+
+&lt;style&gt;
+
+@page {
+        margin: 2cm;
+}
+
+&lt;/style&gt;
+&lt;/head&gt;
+
+&lt;body&gt;
+This page contains a @page style rule.&lt;br&gt;
+Making a WebArchive out of it should not crash.
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/css-page-rule-crash.html</string>
+        </dict>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivedoctypeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/doctype-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/doctype-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/doctype-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;!DOCTYPE HTML&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;Test for Bug 15290: REGRESSION (r14184-r14216): Duplicate DOCTYPE definitions when saving files as webarchives&lt;/title&gt;
+&lt;/head&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpSourceAsWebArchive();
+&lt;/script&gt;
+&lt;body&gt;
+&lt;div&gt;
+&lt;a href="https://bugs.webkit.org/show_bug.cgi?id=15290"&gt;Bug 15290: REGRESSION (r14184-r14216): Duplicate DOCTYPE definitions when saving files as webarchives&lt;/a&gt;
+&lt;/div&gt;
+&lt;div&gt;
+This test checks that only one &amp;lt;!DOCTYPE&amp;gt; tag is written to a webarchive.
+&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/doctype.html</string>
+        </dict>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchiveignorenoscriptifscriptingenabledexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/ignore-noscript-if-scripting-enabled-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/ignore-noscript-if-scripting-enabled-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/ignore-noscript-if-scripting-enabled-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+This should appear in the webarchive.
+
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/ignore-noscript-if-scripting-enabled.html</string>
+        </dict>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchiveloadingvideoinwebarchiveexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/loading/video-in-webarchive-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/loading/video-in-webarchive-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/loading/video-in-webarchive-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+main frame - didStartProvisionalLoadForFrame
+main frame - didCommitLoadForFrame
+main frame - willPerformClientRedirectToURL: resources/video-in-webarchive.webarchive
+main frame - didFinishDocumentLoadForFrame
+main frame - didFinishLoadForFrame
+main frame - didStartProvisionalLoadForFrame
+main frame - didCancelClientRedirectForFrame
+main frame - didCommitLoadForFrame
+frame "<!--framePath //<!--frame0-->-->" - didStartProvisionalLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+main frame - didHandleOnloadEventsForFrame
+frame "<!--framePath //<!--frame0-->-->" - didFailProvisionalLoadWithError
+main frame - didFinishLoadForFrame
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivetestbodybackgroundexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/test-body-background-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/test-body-background-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/test-body-background-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,87 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body background="resources/apple.gif"&gt;
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/test-body-background.html</string>
+        </dict>
+        <key>WebSubresources</key>
+        <array>
+                <dict>
+                        <key>WebResourceData</key>
+                        <data>
+                        R0lGODlhNABAAMQfAGJiYvLz9ImKitvb2/39/cnJyaSkpOPj49TU
+                        1MHBwbW1terq7Lu7u/X19uXm5+3u7+fo6eDg4e/w8t7e3/n5+RcX
+                        F87Oz/f398fHx9fX16+vr9HR0fDw8Pj4+MzMzAAAACH5BAEAAB8A
+                        LAAAAAA0AEAAQAX/4CeOZGme5iFUlYC+cCwKD7FAxxElAiTDnATA
+                        cCEYj8aABiBIDCIbjQCgqBEojUCjQSEEpoXTAUCQLB4PiZoTaG/f
+                        jcuFgj1kBrnIZDLoDzIIgRsTAgYmBk8TEQ4OEGdpbBQLDAUQEA55
+                        e32AGxsWHh4FBRgJCQgFAhQoCwIDlgsSFxyFOnt8foAInp+jpQkM
+                        wArCGsQaCg0KBgEoDwAAHoHRgroW1aEYpL7A28LDxcUGGgalhi8I
+                        AAgYoOvrn5/soL2lwcThEBQAAz/7JxYAXVcCPNjggp/BEwIYOHNm
+                        wMHBErMSEMgCR47FC3EwwnlzocOFBxMy3NHkp88EBwU///gjcKCR
+                        o0cPOEhwM6fDgUGWMuHKtQvUBgBhThhQ4CBCSwhoJDToQKxljlq4
+                        BPHCNo+bggXEXnwZMNMAupJ/ckm9RvUXg27dvqllkEFADxMQAKir
+                        Zs3Du1CiRpX1ZfasN3EGAlsYIIADv3MCDnBowKEAQwSGSRzAMEVA
+                        BIwTmCB4yHkEQQMACQDY0LmzgAlXZF0ac6D0QwUJOAxAkMArgAyu
+                        T3gQ5zYwBh8jBmhgoG9EBgYG3BbSQHpfBAEKjHSYTt3jxQ4BH3DB
+                        2EaLnAYLIgC6EyGuBhMDyDSI2X3jlu8Vay7480TPrU250p8n0SrA
+                        SzQxsTGTFu9hF4B45WESgf8e+EWzy0/NlTBOeDk0AtNMcVAQQCcH
+                        5LTgLSJJ9c4ooQiwjFAI7GGUhWkE0AFWv+GQB4N/6OJJPNnMY0EA
+                        ACyAgmMSLIKUBBxQgEoGRX0IIk8j5hiMNwxQkBAKDAhgxgMdeCBX
+                        BGCJFGInvMhj1V/fJMCjmSVEAEBcAFiQS4jS9HSNNk+mpZZaBmAw
+                        WgmZUeNJJ4DWJUqOdI6JZ2DjEHKiCRwEBg88BbCTl15O+lUPoo3u
+                        94MCAERAijrx+NQHBuIo4EGNgBRQigcRdAFAArl9EAAbBnWgRayl
+                        ObCEiQQIECGu+2i5gBEaxgUcsDJk1sAVtp4xJbIy6JkdJhBAB63/
+                        DCstoOAGXhV3LQxeubWQZd/+kBBDuF17AKcAaDDAAuEp1G4GDZiA
+                        gBRMYODAAgdYYBsD+zjgFUAUVGedERf8NO49AQ2YkX85ZNDuCyoU
+                        cEVGBlunEUVbuBHHdBwcMNtIfkwQFwYlUMDDRA5v9B18FRUMHn22
+                        gBUWIZp+QEGeBKShRnceu5cRHbLdodNO0aSngAlV2vCIBD4PSOB7
+                        c0hidCb31TgNDyfEdcElLz3Cwdgt07HAHY0crbWN7iiQUgluN7Di
+                        K2eQ3cYcFwywQYcy0ggnmLx48FNrQllQ1FGvxIQhBQ+o0wgmUIU1
+                        Fl7YbEBZByggskeFjiQVAAUQKFDJ/2p5REUNjlSx1dYFmWOgh5Bi
+                        azhcTlhvMpZedMIm2q8kuE1h5zNRkMxJM97HJI65D7NBBz2ekNkD
+                        LZ0hQQeEJZAkjbafPmdVdhKDQAMAEC5hAg8g9XlyeNRs+o1kVeWX
+                        AncywDwD9ZKQmSMBLDAEl13ydCPu3CPTnRKgPwP4aARVuoBjEBGW
+                        8fivSdkYE/zudCcPCMADvUOXNOIEJtQVCi0CxFN6HlCCKgFqA4II
+                        1F0A6L46kQlRgRkDBk0ghV3Q5YYQxAahtvGkb8DQgM94gWPuAoq6
+                        xCMvGKDUDl8YmOigIwYyjNSjpriOQUXQUpfilwAc8gMhZCABc8Hh
+                        NSJlgTkOgoIUZykG+UQTFIMohBEIKGN9BmCbQgRmCq+awAIwgh0b
+                        vMo1C6hNZfJ0wBdMwG29KQAJy/WtEAAAO1BvbG9udXMK
+                        </data>
+                        <key>WebResourceMIMEType</key>
+                        <string>image/gif</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>image/gif</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/apple.gif</string>
+                                <key>expectedContentLength</key>
+                                <integer>1476</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/apple.gif</string>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivetestcssimportexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-import-expected.txt (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-import-expected.txt         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-import-expected.txt        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,115 @@
</span><ins>+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>WebMainResource</key>
+        <dict>
+                <key>WebResourceData</key>
+                <string>&lt;html&gt;&lt;head&gt;
+&lt;script&gt;
+ if (window.testRunner)
+ testRunner.dumpDOMAsWebArchive();
+&lt;/script&gt;
+&lt;link rel="stylesheet" href="resources/test-css-link.css" type="text/css"&gt;
+&lt;style type="text/css"&gt;
+ @import url('resources/test-css-import.css');
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div class="blue"&gt;This text should be blue.&lt;/div&gt;
+&lt;div class="red"&gt;This text should be red.&lt;/div&gt;
+&lt;div class="green"&gt;This text should be green.&lt;/div&gt;
+&lt;div class="purple"&gt;This text should be purple.&lt;/div&gt;
+
+
+&lt;/body&gt;&lt;/html&gt;</string>
+                <key>WebResourceFrameName</key>
+                <string></string>
+                <key>WebResourceMIMEType</key>
+                <string>text/html</string>
+                <key>WebResourceTextEncodingName</key>
+                <string>UTF-8</string>
+                <key>WebResourceURL</key>
+                <string>file:///LayoutTests/webarchive/test-css-import.html</string>
+        </dict>
+        <key>WebSubresources</key>
+        <array>
+                <dict>
+                        <key>WebResourceData</key>
+                        <string>@import url('test-css-import.css');
+.green { color: green; }
+</string>
+                        <key>WebResourceMIMEType</key>
+                        <string>text/css</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>text/css</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/test-css-import-recurse.css</string>
+                                <key>expectedContentLength</key>
+                                <integer>61</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/test-css-import-recurse.css</string>
+                </dict>
+                <dict>
+                        <key>WebResourceData</key>
+                        <string>@import url('test-css-import-recurse.css');
+.blue { color: blue; }
+</string>
+                        <key>WebResourceMIMEType</key>
+                        <string>text/css</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>text/css</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/test-css-import.css</string>
+                                <key>expectedContentLength</key>
+                                <integer>67</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/test-css-import.css</string>
+                </dict>
+                <dict>
+                        <key>WebResourceData</key>
+                        <string>@import url('test-css-link-recurse.css');
+.purple { color: purple; }
+</string>
+                        <key>WebResourceMIMEType</key>
+                        <string>text/css</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>text/css</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/test-css-link-recurse.css</string>
+                                <key>expectedContentLength</key>
+                                <integer>69</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/test-css-link-recurse.css</string>
+                </dict>
+                <dict>
+                        <key>WebResourceData</key>
+                        <string>@import url('test-css-link-recurse.css');
+.red { color: red; }
+</string>
+                        <key>WebResourceMIMEType</key>
+                        <string>text/css</string>
+                        <key>WebResourceResponse</key>
+                        <dict>
+                                <key>MIMEType</key>
+                                <string>text/css</string>
+                                <key>URL</key>
+                                <string>file:///LayoutTests/webarchive/resources/test-css-link.css</string>
+                                <key>expectedContentLength</key>
+                                <integer>63</integer>
+                        </dict>
+                        <key>WebResourceURL</key>
+                        <string>file:///LayoutTests/webarchive/resources/test-css-link.css</string>
+                </dict>
+        </array>
+</dict>
+</plist>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwebarchivetestcssurlresourcesinstylesheetsexpectedpng"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-in-stylesheets-expected.png (0 => 174549)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-in-stylesheets-expected.png         (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/webarchive/test-css-url-resources-in-stylesheets-expected.png        2014-10-10 00:53:20 UTC (rev 174549)
</span><span class="lines">@@ -0,0 +1,1073 @@
</span><ins>+\x89PNG
+
+
+IHDR