<!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>[204196] 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/204196">204196</a></dd>
<dt>Author</dt> <dd>ryanhaddad@apple.com</dd>
<dt>Date</dt> <dd>2016-08-05 15:26:01 -0700 (Fri, 05 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/204181">r204181</a>.

This change caused an existing LayoutTest to fail on WK1

Reverted changeset:

&quot;Don't set document.domain to an IP address fragment&quot;
https://bugs.webkit.org/show_bug.cgi?id=126045
http://trac.webkit.org/changeset/204181</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityaboutBlanksecuritycontextaliashtml">trunk/LayoutTests/http/tests/security/aboutBlank/security-context-alias.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityaboutBlanksecuritycontextgrandchildrenaliashtml">trunk/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritypostMessageoriginunaffectedbydocumentdomainhtml">trunk/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html</a></li>
<li><a href="#trunkLayoutTestshttptestsworkersworkerdocumentdomainsecurityhtml">trunk/LayoutTests/http/tests/workers/worker-document-domain-security.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestdocumentdomainsethtml">trunk/LayoutTests/http/tests/xmlhttprequest/document-domain-set.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCorepageOriginAccessEntrycpp">trunk/Source/WebCore/page/OriginAccessEntry.cpp</a></li>
<li><a href="#trunkSourceWebCorepageOriginAccessEntryh">trunk/Source/WebCore/page/OriginAccessEntry.h</a></li>
<li><a href="#trunkSourceWebCorepageSecurityPolicycpp">trunk/Source/WebCore/page/SecurityPolicy.cpp</a></li>
<li><a href="#trunkSourceWebCorepageSettingsin">trunk/Source/WebCore/page/Settings.in</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestssecuritysetdomainremovesubdomainforipaddressexpectedtxt">trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritysetdomainremovesubdomainforipaddresshtml">trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/ChangeLog        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-08-05  Ryan Haddad  &lt;ryanhaddad@apple.com&gt;
+
+        Unreviewed, rolling out r204181.
+
+        This change caused an existing LayoutTest to fail on WK1
+
+        Reverted changeset:
+
+        &quot;Don't set document.domain to an IP address fragment&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=126045
+        http://trac.webkit.org/changeset/204181
+
</ins><span class="cx"> 2016-08-05  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Sierra WK1: compositing/masks/compositing-clip-path-change-no-repaint.html failing
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityaboutBlanksecuritycontextaliashtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/aboutBlank/security-context-alias.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/aboutBlank/security-context-alias.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/security/aboutBlank/security-context-alias.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -7,9 +7,6 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">   testRunner.dumpAsText();
</span><span class="cx"> 
</span><del>-if (window.internals)
-    window.internals.settings.setTreatIPAddressAsDomain(true);
-
</del><span class="cx"> document.write('--- Test begins ---\n');
</span><span class="cx"> document.write('* &quot;about:blank&quot;\n');
</span><span class="cx"> document.write('document.domain = ' + frames[0].document.domain + '\n');
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityaboutBlanksecuritycontextgrandchildrenaliashtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -6,9 +6,6 @@
</span><span class="cx">   testRunner.waitUntilDone();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (window.internals)
-    window.internals.settings.setTreatIPAddressAsDomain(true);
-
</del><span class="cx"> function log(msg) {
</span><span class="cx">   var line = document.createElement('div');
</span><span class="cx">   line.appendChild(document.createTextNode(msg));
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritypostMessageoriginunaffectedbydocumentdomainhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -8,9 +8,6 @@
</span><span class="cx">     testRunner.waitUntilDone();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if (window.internals)
-    window.internals.settings.setTreatIPAddressAsDomain(true);
-
</del><span class="cx"> addEventListener(&quot;message&quot;, recv, false);
</span><span class="cx"> 
</span><span class="cx"> function test() {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritysetdomainremovesubdomainforipaddressexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address-expected.txt (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address-expected.txt        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address-expected.txt        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>-Test whether a page loaded straight from an IP address can set document.domain and wrongly treat IP address octets as subdomains.
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-PASS document.domain = '0.0.1' threw exception SecurityError (DOM Exception 18): The operation is insecure..
-PASS document.domain is &quot;127.0.0.1&quot;
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritysetdomainremovesubdomainforipaddresshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/security/set-domain-remove-subdomain-for-ip-address.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -1,21 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html lang=&quot;en&quot;&gt;
-&lt;head&gt;
-    &lt;meta charset=&quot;UTF-8&quot;&gt;
-    &lt;title&gt;Try to set document.domain and wrongly treat IP address octets as subdomains&lt;/title&gt;
-    &lt;script src=&quot;../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    description(&quot;Test whether a page loaded straight from an IP address can set document.domain and wrongly treat IP address octets as subdomains.&quot;);
-
-    if (document.domain != &quot;127.0.0.1&quot;) {
-        document.location.hostname = &quot;127.0.0.1&quot;;
-    }
-
-    shouldThrow(&quot;document.domain = '0.0.1'&quot;, &quot;'SecurityError (DOM Exception 18): The operation is insecure.'&quot;);
-    shouldBeEqualToString(&quot;document.domain&quot;, &quot;127.0.0.1&quot;);
-&lt;/script&gt;
-&lt;script src=&quot;../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsworkersworkerdocumentdomainsecurityhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/workers/worker-document-domain-security.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/workers/worker-document-domain-security.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/workers/worker-document-domain-security.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -5,9 +5,6 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.dumpAsText();
</span><span class="cx"> 
</span><del>-if (window.internals)
-    window.internals.settings.setTreatIPAddressAsDomain(true);
-
</del><span class="cx"> function log(message)
</span><span class="cx"> {
</span><span class="cx">     document.getElementById(&quot;result&quot;).innerHTML += message + &quot;&lt;br&gt;&quot;;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestdocumentdomainsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/document-domain-set.html (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/document-domain-set.html        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/document-domain-set.html        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -5,9 +5,6 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">   testRunner.dumpAsText();
</span><span class="cx"> 
</span><del>-if (window.internals)
-    window.internals.settings.setTreatIPAddressAsDomain(true);
-
</del><span class="cx"> document.domain = '0.0.1';
</span><span class="cx"> 
</span><span class="cx"> document.write('Waiting...\n');
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/ChangeLog        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-08-05  Ryan Haddad  &lt;ryanhaddad@apple.com&gt;
+
+        Unreviewed, rolling out r204181.
+
+        This change caused an existing LayoutTest to fail on WK1
+
+        Reverted changeset:
+
+        &quot;Don't set document.domain to an IP address fragment&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=126045
+        http://trac.webkit.org/changeset/204181
+
</ins><span class="cx"> 2016-08-05  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r204128.
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/dom/Document.cpp        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -121,7 +121,6 @@
</span><span class="cx"> #include &quot;NodeIterator.h&quot;
</span><span class="cx"> #include &quot;NodeRareData.h&quot;
</span><span class="cx"> #include &quot;NodeWithIndex.h&quot;
</span><del>-#include &quot;OriginAccessEntry.h&quot;
</del><span class="cx"> #include &quot;OverflowEvent.h&quot;
</span><span class="cx"> #include &quot;PageConsoleClient.h&quot;
</span><span class="cx"> #include &quot;PageGroup.h&quot;
</span><span class="lines">@@ -4498,13 +4497,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    OriginAccessEntry::IPAddressSetting ipAddressSetting = settings() &amp;&amp; settings()-&gt;treatIPAddressAsDomain() ? OriginAccessEntry::TreatIPAddressAsDomain : OriginAccessEntry::TreatIPAddressAsIPAddress;
-    OriginAccessEntry accessEntry(securityOrigin()-&gt;protocol(), newDomain, OriginAccessEntry::AllowSubdomains, ipAddressSetting);
-    if (!accessEntry.matchesOrigin(*securityOrigin())) {
-        ec = SECURITY_ERR;
-        return;
-    }
-
</del><span class="cx">     String test = domain();
</span><span class="cx">     // Check that it's a subdomain, not e.g. &quot;ebkit.org&quot;
</span><span class="cx">     if (test[oldLength - newLength - 1] != '.') {
</span></span></pre></div>
<a id="trunkSourceWebCorepageOriginAccessEntrycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/OriginAccessEntry.cpp (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/OriginAccessEntry.cpp        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/page/OriginAccessEntry.cpp        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -35,11 +35,10 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx">     
</span><del>-OriginAccessEntry::OriginAccessEntry(const String&amp; protocol, const String&amp; host, SubdomainSetting subdomainSetting, IPAddressSetting ipAddressSetting)
</del><ins>+OriginAccessEntry::OriginAccessEntry(const String&amp; protocol, const String&amp; host, SubdomainSetting subdomainSetting)
</ins><span class="cx">     : m_protocol(protocol.convertToASCIILowercase())
</span><span class="cx">     , m_host(host.convertToASCIILowercase())
</span><span class="cx">     , m_subdomainSettings(subdomainSetting)
</span><del>-    , m_ipAddressSettings(ipAddressSetting)
</del><span class="cx"> {
</span><span class="cx">     ASSERT(subdomainSetting == AllowSubdomains || subdomainSetting == DisallowSubdomains);
</span><span class="cx"> 
</span><span class="lines">@@ -66,9 +65,9 @@
</span><span class="cx">     // Otherwise we can only match if we're matching subdomains.
</span><span class="cx">     if (m_subdomainSettings == DisallowSubdomains)
</span><span class="cx">         return false;
</span><del>-
</del><ins>+    
</ins><span class="cx">     // Don't try to do subdomain matching on IP addresses.
</span><del>-    if (m_hostIsIPAddress &amp;&amp; m_ipAddressSettings == TreatIPAddressAsIPAddress)
</del><ins>+    if (m_hostIsIPAddress)
</ins><span class="cx">         return false;
</span><span class="cx">     
</span><span class="cx">     // Match subdomains.
</span></span></pre></div>
<a id="trunkSourceWebCorepageOriginAccessEntryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/OriginAccessEntry.h (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/OriginAccessEntry.h        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/page/OriginAccessEntry.h        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -44,34 +44,24 @@
</span><span class="cx">         DisallowSubdomains
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    enum IPAddressSetting {
-        TreatIPAddressAsDomain,
-        TreatIPAddressAsIPAddress
-    };
-
</del><span class="cx">     // If host is empty string and SubdomainSetting is AllowSubdomains, the entry will match all domains in the specified protocol.
</span><del>-    OriginAccessEntry(const String&amp; protocol, const String&amp; host, SubdomainSetting, IPAddressSetting);
</del><ins>+    OriginAccessEntry(const String&amp; protocol, const String&amp; host, SubdomainSetting);
</ins><span class="cx">     bool matchesOrigin(const SecurityOrigin&amp;) const;
</span><span class="cx"> 
</span><span class="cx">     const String&amp; protocol() const { return m_protocol; }
</span><span class="cx">     const String&amp; host() const { return m_host; }
</span><span class="cx">     SubdomainSetting subdomainSettings() const { return m_subdomainSettings; }
</span><del>-    IPAddressSetting ipAddressSettings() const { return m_ipAddressSettings; }
</del><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     String m_protocol;
</span><span class="cx">     String m_host;
</span><span class="cx">     SubdomainSetting m_subdomainSettings;
</span><del>-    IPAddressSetting m_ipAddressSettings;
</del><span class="cx">     bool m_hostIsIPAddress;
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> inline bool operator==(const OriginAccessEntry&amp; a, const OriginAccessEntry&amp; b)
</span><span class="cx"> {
</span><del>-    return equalIgnoringASCIICase(a.protocol(), b.protocol())
-        &amp;&amp; equalIgnoringASCIICase(a.host(), b.host())
-        &amp;&amp; a.subdomainSettings() == b.subdomainSettings()
-        &amp;&amp; a.ipAddressSettings() == b.ipAddressSettings();
</del><ins>+    return equalIgnoringASCIICase(a.protocol(), b.protocol()) &amp;&amp; equalIgnoringASCIICase(a.host(), b.host()) &amp;&amp; a.subdomainSettings() == b.subdomainSettings();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline bool operator!=(const OriginAccessEntry&amp; a, const OriginAccessEntry&amp; b)
</span></span></pre></div>
<a id="trunkSourceWebCorepageSecurityPolicycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SecurityPolicy.cpp (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SecurityPolicy.cpp        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/page/SecurityPolicy.cpp        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx">         result.iterator-&gt;value = std::make_unique&lt;OriginAccessWhiteList&gt;();
</span><span class="cx"> 
</span><span class="cx">     OriginAccessWhiteList* list = result.iterator-&gt;value.get();
</span><del>-    list-&gt;append(OriginAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains, OriginAccessEntry::TreatIPAddressAsIPAddress));
</del><ins>+    list-&gt;append(OriginAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void SecurityPolicy::removeOriginAccessWhitelistEntry(const SecurityOrigin&amp; sourceOrigin, const String&amp; destinationProtocol, const String&amp; destinationDomain, bool allowDestinationSubdomains)
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     OriginAccessWhiteList&amp; list = *it-&gt;value;
</span><del>-    OriginAccessEntry originAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains, OriginAccessEntry::TreatIPAddressAsIPAddress);
</del><ins>+    OriginAccessEntry originAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains);
</ins><span class="cx">     if (!list.removeFirst(originAccessEntry))
</span><span class="cx">         return;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageSettingsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Settings.in (204195 => 204196)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Settings.in        2016-08-05 21:54:59 UTC (rev 204195)
+++ trunk/Source/WebCore/page/Settings.in        2016-08-05 22:26:01 UTC (rev 204196)
</span><span class="lines">@@ -271,5 +271,3 @@
</span><span class="cx"> shouldConvertInvalidURLsToBlank initial=true
</span><span class="cx"> 
</span><span class="cx"> springTimingFunctionEnabled initial=false
</span><del>-
-treatIPAddressAsDomain initial=false
</del></span></pre>
</div>
</div>

</body>
</html>