<!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>[186232] 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/186232">186232</a></dd>
<dt>Author</dt> <dd>beidson@apple.com</dd>
<dt>Date</dt> <dd>2015-07-02 13:19:36 -0700 (Thu, 02 Jul 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add preference to disable all http-equiv.
&lt;rdar://problem/9091261&gt; and https://bugs.webkit.org/show_bug.cgi?id=146553

Reviewed by Sam Weinig.
Source/WebCore:

No new tests (Covered by existing test)

* dom/Document.cpp:
(WebCore::Document::processHttpEquiv):
* page/Settings.in:

Source/WebKit/mac:

* WebView/WebPreferenceKeysPrivate.h:

* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
(-[WebPreferences setMetaRefreshEnabled:]): Still expose this SPI, but have it affect
  the &quot;httpEquivEnabled&quot; setting.
(-[WebPreferences metaRefreshEnabled]): Ditto.
(-[WebPreferences setHTTPEquivEnabled:]):
(-[WebPreferences httpEquivEnabled]):
* WebView/WebPreferencesPrivate.h:

* WebView/WebView.mm:
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
(-[WebView _preferencesChanged:]):

Source/WebKit2:

* Shared/WebPreferencesDefinitions.h:

* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetMetaRefreshEnabled): Still expose this SPI, but have it affect
  the &quot;httpEquivEnabled&quot; setting.
(WKPreferencesGetMetaRefreshEnabled): Ditto
(WKPreferencesSetHTTPEquivEnabled):
(WKPreferencesGetHTTPEquivEnabled):
* UIProcess/API/C/WKPreferencesRefPrivate.h:

* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

LayoutTests:

* loader/meta-refresh-disabled.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsloadermetarefreshdisabledhtml">trunk/LayoutTests/loader/meta-refresh-disabled.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="#trunkSourceWebCorepageSettingsin">trunk/Source/WebCore/page/Settings.in</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferenceKeysPrivateh">trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferencesmm">trunk/Source/WebKit/mac/WebView/WebPreferences.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferencesPrivateh">trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedWebPreferencesDefinitionsh">trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPreferencescpp">trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPreferencesRefPrivateh">trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebsiteDataWebsiteDataStoreh">trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/LayoutTests/ChangeLog        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1,5 +1,14 @@
</span><span class="cx"> 2015-07-02  Brady Eidson  &lt;beidson@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Add preference to disable all http-equiv.
+        &lt;rdar://problem/9091261&gt; and https://bugs.webkit.org/show_bug.cgi?id=146553
+
+        Reviewed by Sam Weinig.
+
+        * loader/meta-refresh-disabled.html:
+
+2015-07-02  Brady Eidson  &lt;beidson@apple.com&gt;
+
</ins><span class="cx">         [Content Extensions] Block synchronous XMLHTTPRequest.
</span><span class="cx">         &lt;rdar://problem/21573006&gt; and https://bugs.webkit.org/show_bug.cgi?id=146271
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsloadermetarefreshdisabledhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/loader/meta-refresh-disabled.html (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/loader/meta-refresh-disabled.html        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/LayoutTests/loader/meta-refresh-disabled.html        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> if (window.testRunner) {
</span><del>-    testRunner.overridePreference(&quot;WebKitMetaRefreshEnabled&quot;, &quot;0&quot;);
</del><ins>+    testRunner.overridePreference(&quot;WebKitHTTPEquivEnabled&quot;, &quot;0&quot;);
</ins><span class="cx">     testRunner.dumpAsText();
</span><span class="cx">     testRunner.waitUntilDone();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebCore/ChangeLog        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2015-07-02  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Add preference to disable all http-equiv.
+        &lt;rdar://problem/9091261&gt; and https://bugs.webkit.org/show_bug.cgi?id=146553
+
+        Reviewed by Sam Weinig.
+
+        No new tests (Covered by existing test)
+
+        * dom/Document.cpp:
+        (WebCore::Document::processHttpEquiv):
+        * page/Settings.in:
+
</ins><span class="cx"> 2015-07-02  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         [Streams API] Remove ReadableStreamController.enqueue() custom binding
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebCore/dom/Document.cpp        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -3023,6 +3023,9 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!equiv.isNull() &amp;&amp; !content.isNull());
</span><span class="cx"> 
</span><ins>+    if (page() &amp;&amp; !page()-&gt;settings().httpEquivEnabled())
+        return;
+
</ins><span class="cx">     Frame* frame = this-&gt;frame();
</span><span class="cx"> 
</span><span class="cx">     HTTPHeaderName headerName;
</span><span class="lines">@@ -3043,9 +3046,6 @@
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">     case HTTPHeaderName::Refresh: {
</span><del>-        if (page() &amp;&amp; !page()-&gt;settings().metaRefreshEnabled())
-            break;
-
</del><span class="cx">         double delay;
</span><span class="cx">         String urlString;
</span><span class="cx">         if (frame &amp;&amp; parseHTTPRefresh(content, true, delay, urlString)) {
</span></span></pre></div>
<a id="trunkSourceWebCorepageSettingsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Settings.in (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Settings.in        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebCore/page/Settings.in        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -242,4 +242,4 @@
</span><span class="cx"> 
</span><span class="cx"> newBlockInsideInlineModelEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
</span><span class="cx"> 
</span><del>-metaRefreshEnabled initial=true
</del><ins>+httpEquivEnabled initial=true
</ins></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit/mac/ChangeLog        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2015-07-02  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Add preference to disable all http-equiv.
+        &lt;rdar://problem/9091261&gt; and https://bugs.webkit.org/show_bug.cgi?id=146553
+
+        Reviewed by Sam Weinig.
+        
+        * WebView/WebPreferenceKeysPrivate.h:
+        
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+        (-[WebPreferences setMetaRefreshEnabled:]): Still expose this SPI, but have it affect
+          the &quot;httpEquivEnabled&quot; setting.
+        (-[WebPreferences metaRefreshEnabled]): Ditto.
+        (-[WebPreferences setHTTPEquivEnabled:]):
+        (-[WebPreferences httpEquivEnabled]):
+        * WebView/WebPreferencesPrivate.h:
+        
+        * WebView/WebView.mm:
+        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
+        (-[WebView _preferencesChanged:]):
+
</ins><span class="cx"> 2015-07-02  Timothy Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         iOS WebKitLegacy should match WebKit2's viewport behavior
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferenceKeysPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx"> #define WebKitDebugFullPageZoomPreferenceKey @&quot;WebKitDebugFullPageZoomPreferenceKey&quot;
</span><span class="cx"> #define WebKitMinimumZoomFontSizePreferenceKey @&quot;WebKitMinimumZoomFontSizePreferenceKey&quot;
</span><span class="cx"> #define WebKitAntialiasedFontDilationEnabledKey @&quot;AntialiasedFontDilationEnabled&quot;
</span><del>-#define WebKitMetaRefreshEnabledPreferenceKey @&quot;WebKitMetaRefreshEnabled&quot;
</del><ins>+#define WebKitHTTPEquivEnabledPreferenceKey @&quot;WebKitHTTPEquivEnabled&quot;
</ins><span class="cx"> 
</span><span class="cx"> #if TARGET_OS_IPHONE
</span><span class="cx"> #define WebKitStandalonePreferenceKey @&quot;WebKitStandalonePreferenceKey&quot;
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferencesmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferences.mm (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferences.mm        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit/mac/WebView/WebPreferences.mm        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -443,7 +443,8 @@
</span><span class="cx"> #endif
</span><span class="cx">         [NSNumber numberWithBool:YES],  WebKitPluginsEnabledPreferenceKey,
</span><span class="cx">         [NSNumber numberWithBool:YES],  WebKitDatabasesEnabledPreferenceKey,
</span><del>-        [NSNumber numberWithBool:YES],  WebKitMetaRefreshEnabledPreferenceKey,
</del><ins>+        [NSNumber numberWithBool:YES],  WebKitHTTPEquivEnabledPreferenceKey,
+
</ins><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">         [NSNumber numberWithBool:NO],   WebKitStorageTrackerEnabledPreferenceKey,
</span><span class="cx"> #endif
</span><span class="lines">@@ -2538,14 +2539,24 @@
</span><span class="cx"> 
</span><span class="cx"> - (void)setMetaRefreshEnabled:(BOOL)enabled
</span><span class="cx"> {
</span><del>-    [self _setBoolValue:enabled forKey:WebKitMetaRefreshEnabledPreferenceKey];
</del><ins>+    [self setHTTPEquivEnabled:enabled];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)metaRefreshEnabled
</span><span class="cx"> {
</span><del>-    return [self _boolValueForKey:WebKitMetaRefreshEnabledPreferenceKey];
</del><ins>+    return [self metaRefreshEnabled];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (void)setHTTPEquivEnabled:(BOOL)enabled
+{
+    [self _setBoolValue:enabled forKey:WebKitHTTPEquivEnabledPreferenceKey];
+}
+
+- (BOOL)httpEquivEnabled
+{
+    return [self _boolValueForKey:WebKitHTTPEquivEnabledPreferenceKey];
+}
+
</ins><span class="cx"> - (BOOL)javaScriptMarkupEnabled
</span><span class="cx"> {
</span><span class="cx">     return [self _boolValueForKey:WebKitJavaScriptMarkupEnabledPreferenceKey];
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferencesPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -448,6 +448,9 @@
</span><span class="cx"> - (void)setMetaRefreshEnabled:(BOOL)flag;
</span><span class="cx"> - (BOOL)metaRefreshEnabled;
</span><span class="cx"> 
</span><ins>+- (void)setHTTPEquivEnabled:(BOOL)flag;
+- (BOOL)httpEquivEnabled;
+
</ins><span class="cx"> @property (nonatomic) BOOL javaScriptMarkupEnabled;
</span><span class="cx"> 
</span><span class="cx"> #if TARGET_OS_IPHONE &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &lt; 80000
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1233,7 +1233,7 @@
</span><span class="cx">     _private-&gt;page-&gt;settings().setMinimumFontSize([_private-&gt;preferences minimumFontSize]);
</span><span class="cx"> 
</span><span class="cx">     // This is a workaround for &lt;rdar://problem/21309911&gt;.
</span><del>-    _private-&gt;page-&gt;settings().setMetaRefreshEnabled([_private-&gt;preferences metaRefreshEnabled]);
</del><ins>+    _private-&gt;page-&gt;settings().setHTTPEquivEnabled([_private-&gt;preferences httpEquivEnabled]);
</ins><span class="cx"> 
</span><span class="cx">     _private-&gt;page-&gt;setGroupName(groupName);
</span><span class="cx"> 
</span><span class="lines">@@ -2327,7 +2327,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     settings.setPlugInSnapshottingEnabled([preferences plugInSnapshottingEnabled]);
</span><del>-    settings.setMetaRefreshEnabled([preferences metaRefreshEnabled]);
</del><ins>+    settings.setHttpEquivEnabled([preferences httpEquivEnabled]);
</ins><span class="cx"> 
</span><span class="cx">     settings.setFixedPositionCreatesStackingContext(true);
</span><span class="cx"> #if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/ChangeLog        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2015-07-02  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Add preference to disable all http-equiv.
+        &lt;rdar://problem/9091261&gt; and https://bugs.webkit.org/show_bug.cgi?id=146553
+
+        Reviewed by Sam Weinig.
+
+        * Shared/WebPreferencesDefinitions.h:
+        
+        * UIProcess/API/C/WKPreferences.cpp:
+        (WKPreferencesSetMetaRefreshEnabled): Still expose this SPI, but have it affect
+          the &quot;httpEquivEnabled&quot; setting.
+        (WKPreferencesGetMetaRefreshEnabled): Ditto
+        (WKPreferencesSetHTTPEquivEnabled):
+        (WKPreferencesGetHTTPEquivEnabled):
+        * UIProcess/API/C/WKPreferencesRefPrivate.h:
+        
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
+        
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updatePreferences):
+
</ins><span class="cx"> 2015-07-02  Mark Lam  &lt;mark.lam@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WKWebView evaluateJavaScript:completionHandler: should reuse its JSContext instance.
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebPreferencesDefinitionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -199,7 +199,7 @@
</span><span class="cx">     macro(LongMousePressEnabled, longMousePressEnabled, Bool, bool, false) \
</span><span class="cx">     macro(NewBlockInsideInlineModelEnabled, newBlockInsideInlineModelEnabled, Bool, bool, false) \
</span><span class="cx">     macro(AntialiasedFontDilationEnabled, antialiasedFontDilationEnabled, Bool, bool, false) \
</span><del>-    macro(MetaRefreshEnabled, metaRefreshEnabled, Bool, bool, true) \
</del><ins>+    macro(HTTPEquivEnabled, httpEquivEnabled, Bool, bool, true) \
</ins><span class="cx"> 
</span><span class="cx"> #define FOR_EACH_WEBKIT_DOUBLE_PREFERENCE(macro) \
</span><span class="cx">     macro(IncrementalRenderingSuppressionTimeout, incrementalRenderingSuppressionTimeout, Double, double, 5) \
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPreferencescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -1359,14 +1359,24 @@
</span><span class="cx"> 
</span><span class="cx"> void WKPreferencesSetMetaRefreshEnabled(WKPreferencesRef preferencesRef, bool enabled)
</span><span class="cx"> {
</span><del>-    toImpl(preferencesRef)-&gt;setMetaRefreshEnabled(enabled);
</del><ins>+    toImpl(preferencesRef)-&gt;setHTTPEquivEnabled(enabled);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool WKPreferencesGetMetaRefreshEnabled(WKPreferencesRef preferencesRef)
</span><span class="cx"> {
</span><del>-    return toImpl(preferencesRef)-&gt;metaRefreshEnabled();
</del><ins>+    return toImpl(preferencesRef)-&gt;httpEquivEnabled();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void WKPreferencesSetHTTPEquivEnabled(WKPreferencesRef preferencesRef, bool enabled)
+{
+    toImpl(preferencesRef)-&gt;setHTTPEquivEnabled(enabled);
+}
+
+bool WKPreferencesGetHTTPEquivEnabled(WKPreferencesRef preferencesRef)
+{
+    return toImpl(preferencesRef)-&gt;httpEquivEnabled();
+}
+
</ins><span class="cx"> void WKPreferencesSetAllowsAirPlayForMediaPlayback(WKPreferencesRef preferencesRef, bool enabled)
</span><span class="cx"> {
</span><span class="cx">     toImpl(preferencesRef)-&gt;setAllowsAirPlayForMediaPlayback(enabled);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPreferencesRefPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -373,6 +373,10 @@
</span><span class="cx"> WK_EXPORT void WKPreferencesSetMetaRefreshEnabled(WKPreferencesRef preferences, bool enabled);
</span><span class="cx"> WK_EXPORT bool WKPreferencesGetMetaRefreshEnabled(WKPreferencesRef preferences);
</span><span class="cx"> 
</span><ins>+// Defaults to true.
+WK_EXPORT void WKPreferencesSetHTTPEquivEnabled(WKPreferencesRef preferences, bool enabled);
+WK_EXPORT bool WKPreferencesGetHTTPEquivEnabled(WKPreferencesRef preferences);
+
</ins><span class="cx"> #ifdef __cplusplus
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebsiteDataWebsiteDataStoreh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -74,7 +74,7 @@
</span><span class="cx">     static void cloneSessionData(WebPageProxy&amp; sourcePage, WebPageProxy&amp; newPage);
</span><span class="cx"> 
</span><span class="cx">     void fetchData(WebsiteDataTypes, std::function&lt;void (Vector&lt;WebsiteDataRecord&gt;)&gt; completionHandler);
</span><del>-    void removeData(WebsiteDataTypes, std::chrono::system_clock::time_point modifiedSince, std::function&lt;void ()&gt; completionHandler);
</del><ins>+//    void removeData(WebsiteDataTypes, std::chrono::system_clock::time_point modifiedSince, std::function&lt;void ()&gt; completionHandler);
</ins><span class="cx">     void removeData(WebsiteDataTypes, const Vector&lt;WebsiteDataRecord&gt;&amp;, std::function&lt;void ()&gt; completionHandler);
</span><span class="cx"> 
</span><span class="cx">     StorageManager* storageManager() { return m_storageManager.get(); }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx">     macro(WebKitEnableCaretBrowsing, CaretBrowsingEnabled, caretBrowsingEnabled) \
</span><span class="cx">     macro(WebKitDisplayImagesKey, LoadsImagesAutomatically, loadsImagesAutomatically) \
</span><span class="cx">     macro(WebKitMediaStreamEnabled, MediaStreamEnabled, mediaStreamEnabled) \
</span><del>-    macro(WebKitMetaRefreshEnabled, MetaRefreshEnabled, metaRefreshEnabled)
</del><ins>+    macro(WebKitHTTPEquivEnabled, HttpEquivEnabled, httpEquivEnabled)
</ins><span class="cx"> 
</span><span class="cx"> #define OVERRIDE_PREFERENCE_AND_SET_IN_EXISTING_PAGES(TestRunnerName, SettingsName, WebPreferencesName) \
</span><span class="cx">     if (preference == #TestRunnerName) { \
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (186231 => 186232)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2015-07-02 19:27:24 UTC (rev 186231)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2015-07-02 20:19:36 UTC (rev 186232)
</span><span class="lines">@@ -2784,7 +2784,7 @@
</span><span class="cx">     settings.setInteractiveFormValidationEnabled(store.getBoolValueForKey(WebPreferencesKey::interactiveFormValidationEnabledKey()));
</span><span class="cx">     settings.setSpatialNavigationEnabled(store.getBoolValueForKey(WebPreferencesKey::spatialNavigationEnabledKey()));
</span><span class="cx"> 
</span><del>-    settings.setMetaRefreshEnabled(store.getBoolValueForKey(WebPreferencesKey::metaRefreshEnabledKey()));
</del><ins>+    settings.setHttpEquivEnabled(store.getBoolValueForKey(WebPreferencesKey::httpEquivEnabledKey()));
</ins><span class="cx"> 
</span><span class="cx">     DatabaseManager::singleton().setIsAvailable(store.getBoolValueForKey(WebPreferencesKey::databasesEnabledKey()));
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>