<!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>[172699] trunk</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/172699">172699</a></dd>
<dt>Author</dt> <dd>aestes@apple.com</dd>
<dt>Date</dt> <dd>2014-08-18 00:35:18 -0700 (Mon, 18 Aug 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Revert <a href="http://trac.webkit.org/projects/webkit/changeset/172697">r172697</a>.

It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.

Source/WebCore:

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
* loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::shouldScheduleNavigation):
* page/Settings.in:

Source/WebKit/mac:

* Misc/WebKitVersionChecks.h:
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

LayoutTests:

* fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt: Added.
* fast/loader/allow-redirect-to-invalid-url-using-javascript.html: Added.
* fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt: Added.
* fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html: Added.
* fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt: Added.
* fast/loader/disallow-redirect-to-invalid-url-using-javascript.html: Added.
* fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt: Added.
* fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html: Added.
* fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt: Removed.
* fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html: Removed.
* fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt: Removed.
* fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html: Removed.
* fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt: Removed.
* fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html: Removed.
* fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt: Removed.
* fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html: Removed.
* fast/loader/resources/redirect-to-invalid-url-using-javascript.html: Added.
* fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html: Added.
* fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt: Removed.
* fast/loader/window-open-to-invalid-url-calls-policy-delegate.html: Removed.
* fast/loader/window-open-to-invalid-url-disallowed-expected.txt: Removed.
* fast/loader/window-open-to-invalid-url-disallowed.html: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderNavigationSchedulercpp">trunk/Source/WebCore/loader/NavigationScheduler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageSettingsin">trunk/Source/WebCore/page/Settings.in</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacMiscWebKitVersionChecksh">trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingjavascriptexpectedtxt">trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingjavascripthtml">trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingmetarefreshexpectedtxt">trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingmetarefreshhtml">trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingjavascriptexpectedtxt">trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingjavascripthtml">trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingmetarefreshexpectedtxt">trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingmetarefreshhtml">trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedafterloadhtml">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-after-load.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderresourcesredirecttoinvalidurlusingjavascripthtml">trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-javascript.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderresourcesredirecttoinvalidurlusingmetarefreshhtml">trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptcallspolicydelegateexpectedtxt">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptcallspolicydelegatehtml">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedexpectedtxt">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedhtml">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshcallspolicydelegateexpectedtxt">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshcallspolicydelegatehtml">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshdisallowedexpectedtxt">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshdisallowedhtml">trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderwindowopentoinvalidurlcallspolicydelegateexpectedtxt">trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderwindowopentoinvalidurlcallspolicydelegatehtml">trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate.html</a></li>
<li><a href="#trunkLayoutTestsfastloaderwindowopentoinvalidurldisallowedexpectedtxt">trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastloaderwindowopentoinvalidurldisallowedhtml">trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/ChangeLog        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,3 +1,32 @@
</span><ins>+2014-08-18  Andy Estes  &lt;aestes@apple.com&gt;
+
+        Revert r172697.
+
+        It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
+
+        * fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt: Added.
+        * fast/loader/allow-redirect-to-invalid-url-using-javascript.html: Added.
+        * fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt: Added.
+        * fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html: Added.
+        * fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt: Added.
+        * fast/loader/disallow-redirect-to-invalid-url-using-javascript.html: Added.
+        * fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt: Added.
+        * fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html: Added.
+        * fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt: Removed.
+        * fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html: Removed.
+        * fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt: Removed.
+        * fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html: Removed.
+        * fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt: Removed.
+        * fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html: Removed.
+        * fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt: Removed.
+        * fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html: Removed.
+        * fast/loader/resources/redirect-to-invalid-url-using-javascript.html: Added.
+        * fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html: Added.
+        * fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt: Removed.
+        * fast/loader/window-open-to-invalid-url-calls-policy-delegate.html: Removed.
+        * fast/loader/window-open-to-invalid-url-disallowed-expected.txt: Removed.
+        * fast/loader/window-open-to-invalid-url-disallowed.html: Removed.
+
</ins><span class="cx"> 2014-08-15  Andy Estes  &lt;aestes@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
</span></span></pre></div>
<a id="trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingjavascriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+frame &quot;frame&quot; - didStartProvisionalLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didCommitLoadForFrame
+frame &quot;frame&quot; - willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b 
+frame &quot;frame&quot; - didFinishDocumentLoadForFrame
+main frame - didHandleOnloadEventsForFrame
+frame &quot;frame&quot; - didFinishLoadForFrame
+main frame - didFinishLoadForFrame
+Tests that we allow redirection to an invalid URL initiated by JavaScript when setting allowNavigationToInvalidURL is true. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b&quot;.
+
+Note, this test must be run in DumpRenderTree.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingjavascripthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-javascript.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpFrameLoadCallbacks();
+    testRunner.waitUntilDone();
+}
+
+if (window.internals)
+    window.internals.settings.setAllowNavigationToInvalidURL(true);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Tests that we allow redirection to an invalid URL initiated by JavaScript when setting allowNavigationToInvalidURL is true. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;amp;B=b&amp;quot;.&lt;/p&gt;
+&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
+&lt;iframe id=&quot;frame&quot; src=&quot;resources/redirect-to-invalid-url-using-javascript.html&quot;&gt;&lt;/iframe&gt;
+&lt;script&gt;
+function done()
+{
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(done, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingmetarefreshexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+frame &quot;frame&quot; - didStartProvisionalLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didCommitLoadForFrame
+frame &quot;frame&quot; - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didHandleOnloadEventsForFrame
+main frame - didHandleOnloadEventsForFrame
+frame &quot;frame&quot; - willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b 
+frame &quot;frame&quot; - didFinishLoadForFrame
+main frame - didFinishLoadForFrame
+Tests that we allow redirection to an invalid URL initiated by &lt;meta http-equiv=&quot;refresh&quot;&gt; when setting allowNavigationToInvalidURL is true. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b&quot;.
+
+Note, this test must be run in DumpRenderTree.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderallowredirecttoinvalidurlusingmetarefreshhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/allow-redirect-to-invalid-url-using-meta-refresh.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpFrameLoadCallbacks();
+    testRunner.waitUntilDone();
+}
+
+if (window.internals)
+    window.internals.settings.setAllowNavigationToInvalidURL(true);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Tests that we allow redirection to an invalid URL initiated by &amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot;&amp;gt; when setting allowNavigationToInvalidURL is true. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;amp;B=b&amp;quot;.&lt;/p&gt;
+&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
+&lt;iframe id=&quot;frame&quot; src=&quot;resources/redirect-to-invalid-url-using-meta-refresh.html&quot;&gt;&lt;/iframe&gt;
+&lt;script&gt;
+function done()
+{
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(done, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingjavascriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+frame &quot;frame&quot; - didStartProvisionalLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didCommitLoadForFrame
+frame &quot;frame&quot; - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didHandleOnloadEventsForFrame
+main frame - didHandleOnloadEventsForFrame
+frame &quot;frame&quot; - didFinishLoadForFrame
+main frame - didFinishLoadForFrame
+Tests that we do not redirect to an invalid URL initiated by JavaScript when setting allowNavigationToInvalidURL is false. This test PASSED if you do not see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b&quot;.
+
+Note, this test must be run in DumpRenderTree.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingjavascripthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-javascript.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpFrameLoadCallbacks();
+    testRunner.waitUntilDone();
+}
+
+if (window.internals)
+    window.internals.settings.setAllowNavigationToInvalidURL(false);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by JavaScript when setting allowNavigationToInvalidURL is false. This test PASSED if you do not see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;amp;B=b&amp;quot;.&lt;/p&gt;
+&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
+&lt;iframe id=&quot;frame&quot; src=&quot;resources/redirect-to-invalid-url-using-javascript.html&quot;&gt;&lt;/iframe&gt;
+&lt;script&gt;
+function done()
+{
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(done, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingmetarefreshexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+frame &quot;frame&quot; - didStartProvisionalLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didCommitLoadForFrame
+frame &quot;frame&quot; - didFinishDocumentLoadForFrame
+frame &quot;frame&quot; - didHandleOnloadEventsForFrame
+main frame - didHandleOnloadEventsForFrame
+frame &quot;frame&quot; - didFinishLoadForFrame
+main frame - didFinishLoadForFrame
+Tests that we do not redirect to an invalid URL initiated by &lt;meta http-equiv=&quot;refresh&quot;&gt; when setting allowNavigationToInvalidURL is false. This test PASSED if you do not see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;B=b&quot;.
+
+Note, this test must be run in DumpRenderTree.
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderdisallowredirecttoinvalidurlusingmetarefreshhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/disallow-redirect-to-invalid-url-using-meta-refresh.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpFrameLoadCallbacks();
+    testRunner.waitUntilDone();
+}
+
+if (window.internals)
+    window.internals.settings.setAllowNavigationToInvalidURL(false);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by &amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot;&amp;gt; when setting allowNavigationToInvalidURL is false. This test PASSED if you do not see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: x-dummy://A=a&amp;amp;B=b&amp;quot;.&lt;/p&gt;
+&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
+&lt;iframe id=&quot;frame&quot; src=&quot;resources/redirect-to-invalid-url-using-meta-refresh.html&quot;&gt;&lt;/iframe&gt;
+&lt;script&gt;
+function done()
+{
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(done, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptcallspolicydelegateexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-Policy delegate: attempt to load http://A=a&amp;B=b with navigation type 'other'
-Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a&amp;B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptcallspolicydelegatehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.setCustomPolicyDelegate(true, false);
-    testRunner.waitUntilDone();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-window.location.href = &quot;http://A=a&amp;B=b&quot;;
-window.setTimeout(function() {
-    if (window.testRunner)
-        testRunner.notifyDone();
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedafterloadhtmlfromrev172698trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-after-load.html (from rev 172698, trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html) (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-after-load.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-after-load.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpFrameLoadCallbacks();
+    testRunner.waitUntilDone();
+}
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
+&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
+&lt;script&gt;
+document.body.onload = function() {
+    window.location.href = &quot;http://A=a&amp;B=b&quot;;
+    window.setTimeout(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, 0);
+}
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,7 +0,0 @@
</span><del>-main frame - willPerformClientRedirectToURL: http://A=a&amp;B=b 
-main frame - didFinishDocumentLoadForFrame
-main frame - didFinishLoadForFrame
-main frame - didCancelClientRedirectForFrame
-Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a&amp;B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingjavascriptdisallowedhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.dumpFrameLoadCallbacks();
-    testRunner.waitUntilDone();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-window.location.href = &quot;http://A=a&amp;B=b&quot;;
-window.setTimeout(function() {
-    if (window.testRunner)
-        testRunner.notifyDone();
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshcallspolicydelegateexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-Policy delegate: attempt to load http://A=a&amp;B=b with navigation type 'other'
-Tests that we do not redirect to an invalid URL initiated by &lt;meta http-equiv=&quot;refresh&quot;&gt;. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a&amp;B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshcallspolicydelegatehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,27 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=http://A=a&amp;B=b&quot;&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.setCustomPolicyDelegate(true, false);
-    testRunner.waitUntilDone();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by &amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot;&amp;gt;. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-// This ugly double-timeout ensures that the scheduled meta-refresh, whose timer isn't even started until the frame finishes loading,
-// fires before notifyDone() is called, ensuring that didCancelClientRedirectForFrame is logged by DumpRenderTree.
-window.setTimeout(function() {
-    window.setTimeout(function() {
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }, 0);
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshdisallowedexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,8 +0,0 @@
</span><del>-main frame - didFinishDocumentLoadForFrame
-main frame - didHandleOnloadEventsForFrame
-main frame - willPerformClientRedirectToURL: http://A=a&amp;B=b 
-main frame - didFinishLoadForFrame
-main frame - didCancelClientRedirectForFrame
-Tests that we do not redirect to an invalid URL initiated by &lt;meta http-equiv=&quot;refresh&quot;&gt;. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a&amp;B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderredirecttoinvalidurlusingmetarefreshdisallowedhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,27 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=http://A=a&amp;B=b&quot;&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.dumpFrameLoadCallbacks();
-    testRunner.waitUntilDone();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we do not redirect to an invalid URL initiated by &amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot;&amp;gt;. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-// This ugly double-timeout ensures that the scheduled meta-refresh, whose timer isn't even started until the frame finishes loading,
-// fires before notifyDone() is called, ensuring that didCancelClientRedirectForFrame is logged by DumpRenderTree.
-window.setTimeout(function() {
-    window.setTimeout(function() {
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }, 0);
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderresourcesredirecttoinvalidurlusingjavascripthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-javascript.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-javascript.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-javascript.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;script&gt;
+window.location.href = &quot;x-dummy://A=a&amp;B=b&quot;;
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderresourcesredirecttoinvalidurlusingmetarefreshhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html (0 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html                                (rev 0)
+++ trunk/LayoutTests/fast/loader/resources/redirect-to-invalid-url-using-meta-refresh.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+    &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=x-dummy://A=a&amp;B=b&quot;&gt;
+&lt;/head&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastloaderwindowopentoinvalidurlcallspolicydelegateexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-Policy delegate: attempt to load http://A=a&amp;B=b with navigation type 'other'
-Tests that we call the navigation policy delegate when opening a new window to an invalid URL.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderwindowopentoinvalidurlcallspolicydelegatehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/window-open-to-invalid-url-calls-policy-delegate.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,24 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.setCustomPolicyDelegate(true, false);
-    testRunner.waitUntilDone();
-    testRunner.setCanOpenWindows();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we call the navigation policy delegate when opening a new window to an invalid URL.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-window.open(&quot;http://A=a&amp;B=b&quot;, &quot;_top&quot;);
-window.setTimeout(function() {
-    if (window.testRunner)
-        testRunner.notifyDone();
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderwindowopentoinvalidurldisallowedexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed-expected.txt (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed-expected.txt        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed-expected.txt        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,7 +0,0 @@
</span><del>-main frame - willPerformClientRedirectToURL: http://A=a&amp;B=b 
-main frame - didFinishDocumentLoadForFrame
-main frame - didFinishLoadForFrame
-main frame - didCancelClientRedirectForFrame
-Tests that we do not open a new window to an invalid URL. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a&amp;B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.
-
-Note, this test must be run in DumpRenderTree.
</del></span></pre></div>
<a id="trunkLayoutTestsfastloaderwindowopentoinvalidurldisallowedhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed.html (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed.html        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/LayoutTests/fast/loader/window-open-to-invalid-url-disallowed.html        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,24 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.dumpFrameLoadCallbacks();
-    testRunner.waitUntilDone();
-    testRunner.setCanOpenWindows();
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;p&gt;Tests that we do not open a new window to an invalid URL. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &amp;quot;willPerformClientRedirectToURL: http://A=a&amp;amp;B=b&amp;quot; followed by &amp;quot;didCancelClientRedirectForFrame&amp;quot;.&lt;/p&gt;
-&lt;p&gt;Note, this test must be run in DumpRenderTree.&lt;/p&gt;
-&lt;script&gt;
-window.open(&quot;http://A=a&amp;B=b&quot;, &quot;_top&quot;);
-window.setTimeout(function() {
-    if (window.testRunner)
-        testRunner.notifyDone();
-}, 0);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebCore/ChangeLog        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-08-18  Andy Estes  &lt;aestes@apple.com&gt;
+
+        Revert r172697.
+
+        It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
+
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
+        * loader/NavigationScheduler.cpp:
+        (WebCore::NavigationScheduler::shouldScheduleNavigation):
+        * page/Settings.in:
+
</ins><span class="cx"> 2014-08-15  Andy Estes  &lt;aestes@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -2889,7 +2889,7 @@
</span><span class="cx">     return chrome.runBeforeUnloadConfirmPanel(text, &amp;m_frame);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void FrameLoader::continueLoadAfterNavigationPolicy(const ResourceRequest&amp; request, PassRefPtr&lt;FormState&gt; formState, bool shouldContinue)
</del><ins>+void FrameLoader::continueLoadAfterNavigationPolicy(const ResourceRequest&amp;, PassRefPtr&lt;FormState&gt; formState, bool shouldContinue)
</ins><span class="cx"> {
</span><span class="cx">     // If we loaded an alternate page to replace an unreachableURL, we'll get in here with a
</span><span class="cx">     // nil policyDataSource because loading the alternate page will have passed
</span><span class="lines">@@ -2898,14 +2898,11 @@
</span><span class="cx"> 
</span><span class="cx">     bool isTargetItem = history().provisionalItem() ? history().provisionalItem()-&gt;isTargetItem() : false;
</span><span class="cx"> 
</span><del>-    bool willRedirectToInvalidURL = m_quickRedirectComing &amp;&amp; !request.url().isValid();
-
-    // Three reasons we can't continue:
</del><ins>+    // Two reasons we can't continue:
</ins><span class="cx">     //    1) Navigation policy delegate said we can't so request is nil. A primary case of this 
</span><span class="cx">     //       is the user responding Cancel to the form repost nag sheet.
</span><span class="cx">     //    2) User responded Cancel to an alert popped up by the before unload event handler.
</span><del>-    //    3) A redirect will occur to an invalid URL.
-    bool canContinue = shouldContinue &amp;&amp; shouldClose() &amp;&amp; !willRedirectToInvalidURL;
</del><ins>+    bool canContinue = shouldContinue &amp;&amp; shouldClose();
</ins><span class="cx"> 
</span><span class="cx">     if (!canContinue) {
</span><span class="cx">         // If we were waiting for a quick redirect, but the policy delegate decided to ignore it, then we 
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderNavigationSchedulercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/NavigationScheduler.cpp (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/NavigationScheduler.cpp        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebCore/loader/NavigationScheduler.cpp        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -311,6 +311,8 @@
</span><span class="cx">         return false;
</span><span class="cx">     if (protocolIsJavaScript(url))
</span><span class="cx">         return true;
</span><ins>+    if (!url.isValid() &amp;&amp; !m_frame.settings().allowNavigationToInvalidURL())
+        return false;
</ins><span class="cx">     return NavigationDisablerForBeforeUnload::isNavigationAllowed();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageSettingsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Settings.in (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Settings.in        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebCore/page/Settings.in        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -226,6 +226,10 @@
</span><span class="cx"> 
</span><span class="cx"> useImageDocumentForSubframePDF initial=false
</span><span class="cx"> 
</span><ins>+# Allow clients to permit navigation to an invalid URL. Some apps may use invalid URLs
+# as a means to pass data from the web-portion of their app to the native portion.
+allowNavigationToInvalidURL initial=false
+
</ins><span class="cx"> # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes
</span><span class="cx"> # of 1080p video and stereo audio.
</span><span class="cx"> maximumSourceBufferSize type=int, initial=318767104, conditional=MEDIA_SOURCE
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2014-08-18  Andy Estes  &lt;aestes@apple.com&gt;
+
+        Revert r172697.
+
+        It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
+
+        * Misc/WebKitVersionChecks.h:
+        * WebView/WebView.mm:
+        (-[WebView _preferencesChanged:]):
+
</ins><span class="cx"> 2014-08-15  Andy Estes  &lt;aestes@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
</span></span></pre></div>
<a id="trunkSourceWebKitmacMiscWebKitVersionChecksh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -71,6 +71,7 @@
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_CSS_ATTRIBUTE_SETTERS_IGNORING_PRIORITY 2239 // iOS 6.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITH_YOUTUBE_EMBED_IFRAME_TRANSFORM 2239 // iOS 6.0
</span><span class="cx"> #define WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR 2665 // iOS 7.0
</span><ins>+#define WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION 3185 // iOS 8.0
</ins><span class="cx"> #endif // PLATFORM(IOS)
</span><span class="cx"> 
</span><span class="cx"> #ifdef __cplusplus
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (172698 => 172699)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2014-08-18 06:03:46 UTC (rev 172698)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2014-08-18 07:35:18 UTC (rev 172699)
</span><span class="lines">@@ -2327,6 +2327,8 @@
</span><span class="cx"> #if ENABLE(IOS_TEXT_AUTOSIZING)
</span><span class="cx">     settings.setMinimumZoomFontSize([preferences _minimumZoomFontSize]);
</span><span class="cx"> #endif
</span><ins>+
+    settings.setAllowNavigationToInvalidURL(!WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION));
</ins><span class="cx"> #endif // PLATFORM(IOS)
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span></span></pre>
</div>
</div>

</body>
</html>