<!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>[207144] 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/207144">207144</a></dd>
<dt>Author</dt> <dd>ryanhaddad@apple.com</dd>
<dt>Date</dt> <dd>2016-10-11 09:33:30 -0700 (Tue, 11 Oct 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/207067">r207067</a>.
This change caused webkitpy test failures.
Reverted changeset:
"[Win] Parallel DRTs are sharing preferences and cache."
https://bugs.webkit.org/show_bug.cgi?id=163013
http://trac.webkit.org/changeset/207067</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitwinChangeLog">trunk/Source/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitwinInterfacesIWebPreferencesPrivateidl">trunk/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl</a></li>
<li><a href="#trunkSourceWebKitwinWebApplicationCachecpp">trunk/Source/WebKit/win/WebApplicationCache.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebCachecpp">trunk/Source/WebKit/win/WebCache.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebDatabaseManagercpp">trunk/Source/WebKit/win/WebDatabaseManager.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebPreferencescpp">trunk/Source/WebKit/win/WebPreferences.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebPreferencesh">trunk/Source/WebKit/win/WebPreferences.h</a></li>
<li><a href="#trunkSourceWebKitwinWebViewcpp">trunk/Source/WebKit/win/WebView.cpp</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsDumpRenderTreewinDumpRenderTreecpp">trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp</a></li>
<li><a href="#trunkToolsScriptswebkitpyportwinpy">trunk/Tools/Scripts/webkitpy/port/win.py</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/ChangeLog        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-10-11 Ryan Haddad <ryanhaddad@apple.com>
+
+ Unreviewed, rolling out r207067.
+
+ This change caused webkitpy test failures.
+
+ Reverted changeset:
+
+ "[Win] Parallel DRTs are sharing preferences and cache."
+ https://bugs.webkit.org/show_bug.cgi?id=163013
+ http://trac.webkit.org/changeset/207067
+
</ins><span class="cx"> 2016-10-11 Per Arne Vollan <pvollan@apple.com>
</span><span class="cx">
</span><span class="cx"> [Win] Parallel DRTs are sharing preferences and cache.
</span></span></pre></div>
<a id="trunkSourceWebKitwinInterfacesIWebPreferencesPrivateidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/Interfaces/IWebPreferencesPrivate.idl        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -187,8 +187,3 @@
</span><span class="cx"> HRESULT setModernMediaControlsEnabled([in] BOOL enabled);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-[uuid(F9582D72-6348-45B1-AB09-39E33459B5B9)]
-interface IWebPreferencesPrivate4 : IWebPreferencesPrivate3
-{
- HRESULT setApplicationId([in] BSTR applicationId);
-}
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebApplicationCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebApplicationCache.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebApplicationCache.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebApplicationCache.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx">
</span><span class="cx"> #include "CFDictionaryPropertyBag.h"
</span><span class="cx"> #include "MarshallingHelpers.h"
</span><del>-#include "WebPreferences.h"
</del><span class="cx"> #include "WebSecurityOrigin.h"
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="cx"> #include <WebCore/ApplicationCache.h>
</span><span class="lines">@@ -69,7 +68,7 @@
</span><span class="cx"> String path = localUserSpecificStorageDirectory();
</span><span class="cx">
</span><span class="cx"> #if USE(CF)
</span><del>- auto cacheDirectoryPreference = adoptCF(CFPreferencesCopyAppValue(WebKitLocalCacheDefaultsKey, WebPreferences::applicationId()));
</del><ins>+ auto cacheDirectoryPreference = adoptCF(CFPreferencesCopyAppValue(WebKitLocalCacheDefaultsKey, kCFPreferencesCurrentApplication));
</ins><span class="cx"> if (cacheDirectoryPreference && CFStringGetTypeID() == CFGetTypeID(cacheDirectoryPreference.get()))
</span><span class="cx"> path = static_cast<CFStringRef>(cacheDirectoryPreference.get());
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebCache.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebCache.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebCache.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -35,13 +35,8 @@
</span><span class="cx">
</span><span class="cx"> #if USE(CURL)
</span><span class="cx"> #include <WebCore/CurlCacheManager.h>
</span><del>-#elif USE(CFNETWORK)
-#include <CFNetwork/CFURLCachePriv.h>
-#include <WebKitSystemInterface/WebKitSystemInterface.h>
</del><span class="cx"> #endif
</span><span class="cx">
</span><del>-using namespace WebCore;
-
</del><span class="cx"> // WebCache ---------------------------------------------------------------------------
</span><span class="cx">
</span><span class="cx"> WebCache::WebCache()
</span><span class="lines">@@ -248,10 +243,8 @@
</span><span class="cx"> String cacheFolder = WebCore::CurlCacheManager::getInstance().cacheDirectory();
</span><span class="cx"> *location = WebCore::BString(cacheFolder).release();
</span><span class="cx"> return S_OK;
</span><del>-#elif USE(CFNETWORK)
- RetainPtr<CFStringRef> cfurlCacheDirectory = adoptCF(wkCopyFoundationCacheDirectory(0));
- *location = BString(cfurlCacheDirectory.get()).release();
- return S_OK;
</del><ins>+#else
+ return E_NOTIMPL;
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -261,12 +254,7 @@
</span><span class="cx"> String cacheFolder(location, SysStringLen(location));
</span><span class="cx"> WebCore::CurlCacheManager::getInstance().setCacheDirectory(cacheFolder);
</span><span class="cx"> return S_OK;
</span><del>-#elif USE(CFNETWORK)
- RetainPtr<CFURLCacheRef> cache = adoptCF(CFURLCacheCopySharedURLCache());
- CFIndex memoryCapacity = CFURLCacheMemoryCapacity(cache.get());
- CFIndex diskCapacity = CFURLCacheDiskCapacity(cache.get());
- RetainPtr<CFURLCacheRef> newCache = adoptCF(CFURLCacheCreate(kCFAllocatorDefault, memoryCapacity, diskCapacity, String(location).createCFString().get()));
- CFURLCacheSetSharedURLCache(newCache.get());
- return S_OK;
</del><ins>+#else
+ return E_NOTIMPL;
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebDatabaseManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebDatabaseManager.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebDatabaseManager.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebDatabaseManager.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include "COMPropertyBag.h"
</span><span class="cx"> #include "MarshallingHelpers.h"
</span><span class="cx"> #include "WebNotificationCenter.h"
</span><del>-#include "WebPreferences.h"
</del><span class="cx"> #include "WebSecurityOrigin.h"
</span><span class="cx">
</span><span class="cx"> #include <WebCore/BString.h>
</span><span class="lines">@@ -421,7 +420,7 @@
</span><span class="cx"> static WTF::String databasesDirectory()
</span><span class="cx"> {
</span><span class="cx"> #if USE(CF)
</span><del>- RetainPtr<CFPropertyListRef> directoryPref = adoptCF(CFPreferencesCopyAppValue(WebDatabaseDirectoryDefaultsKey, WebPreferences::applicationId()));
</del><ins>+ RetainPtr<CFPropertyListRef> directoryPref = adoptCF(CFPreferencesCopyAppValue(WebDatabaseDirectoryDefaultsKey, kCFPreferencesCurrentApplication));
</ins><span class="cx"> if (directoryPref && (CFStringGetTypeID() == CFGetTypeID(directoryPref.get())))
</span><span class="cx"> return static_cast<CFStringRef>(directoryPref.get());
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebPreferencescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebPreferences.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebPreferences.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebPreferences.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -101,8 +101,6 @@
</span><span class="cx">
</span><span class="cx"> static CFDictionaryRef defaultSettings;
</span><span class="cx">
</span><del>-RetainPtr<CFStringRef> WebPreferences::m_applicationId = kCFPreferencesCurrentApplication;
-
</del><span class="cx"> static HashMap<WTF::String, COMPtr<WebPreferences>>& webPreferencesInstances()
</span><span class="cx"> {
</span><span class="cx"> static NeverDestroyed<HashMap<WTF::String, COMPtr<WebPreferences>>> webPreferencesInstances;
</span><span class="lines">@@ -185,11 +183,6 @@
</span><span class="cx"> webPreferencesInstances().remove(identifierString);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-CFStringRef WebPreferences::applicationId()
-{
- return m_applicationId.get();
-}
-
</del><span class="cx"> void WebPreferences::initializeDefaultSettings()
</span><span class="cx"> {
</span><span class="cx"> if (defaultSettings)
</span><span class="lines">@@ -313,7 +306,7 @@
</span><span class="cx"> if (value)
</span><span class="cx"> return value;
</span><span class="cx">
</span><del>- value = adoptCF(CFPreferencesCopyAppValue(key, applicationId()));
</del><ins>+ value = adoptCF(CFPreferencesCopyAppValue(key, kCFPreferencesCurrentApplication));
</ins><span class="cx"> if (value)
</span><span class="cx"> return value;
</span><span class="cx">
</span><span class="lines">@@ -324,7 +317,7 @@
</span><span class="cx"> {
</span><span class="cx"> CFDictionarySetValue(m_privatePrefs.get(), key, value);
</span><span class="cx"> if (m_autoSaves) {
</span><del>- CFPreferencesSetAppValue(key, value, applicationId());
</del><ins>+ CFPreferencesSetAppValue(key, value, kCFPreferencesCurrentApplication);
</ins><span class="cx"> save();
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -455,7 +448,7 @@
</span><span class="cx">
</span><span class="cx"> void WebPreferences::save()
</span><span class="cx"> {
</span><del>- CFPreferencesAppSynchronize(applicationId());
</del><ins>+ CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebPreferences::load()
</span><span class="lines">@@ -547,8 +540,6 @@
</span><span class="cx"> *ppvObject = static_cast<IWebPreferencesPrivate2*>(this);
</span><span class="cx"> else if (IsEqualGUID(riid, IID_IWebPreferencesPrivate3))
</span><span class="cx"> *ppvObject = static_cast<IWebPreferencesPrivate3*>(this);
</span><del>- else if (IsEqualGUID(riid, IID_IWebPreferencesPrivate4))
- *ppvObject = static_cast<IWebPreferencesPrivate4*>(this);
</del><span class="cx"> else if (IsEqualGUID(riid, CLSID_WebPreferences))
</span><span class="cx"> *ppvObject = this;
</span><span class="cx"> else
</span><span class="lines">@@ -2002,9 +1993,3 @@
</span><span class="cx"> *enabled = boolValueForKey(WebKitModernMediaControlsEnabledPreferenceKey);
</span><span class="cx"> return S_OK;
</span><span class="cx"> }
</span><del>-
-HRESULT WebPreferences::setApplicationId(BSTR applicationId)
-{
- m_applicationId = String(applicationId).createCFString();
- return S_OK;
-}
</del></span></pre></div>
<a id="trunkSourceWebKitwinWebPreferencesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebPreferences.h (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebPreferences.h        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebPreferences.h        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -23,7 +23,8 @@
</span><span class="cx"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx"> */
</span><span class="cx">
</span><del>-#pragma once
</del><ins>+#ifndef WebPreferences_H
+#define WebPreferences_H
</ins><span class="cx">
</span><span class="cx"> #include "WebKit.h"
</span><span class="cx"> #include <CoreFoundation/CoreFoundation.h>
</span><span class="lines">@@ -30,7 +31,7 @@
</span><span class="cx"> #include <WebCore/BString.h>
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="cx">
</span><del>-class WebPreferences : public IWebPreferences, public IWebPreferencesPrivate4 {
</del><ins>+class WebPreferences : public IWebPreferences, public IWebPreferencesPrivate3 {
</ins><span class="cx"> public:
</span><span class="cx"> static WebPreferences* createInstance();
</span><span class="cx"> protected:
</span><span class="lines">@@ -243,9 +244,6 @@
</span><span class="cx"> virtual HRESULT STDMETHODCALLTYPE modernMediaControlsEnabled(_Out_ BOOL*);
</span><span class="cx"> virtual HRESULT STDMETHODCALLTYPE setModernMediaControlsEnabled(BOOL);
</span><span class="cx">
</span><del>- // IWebPreferencesPrivate4
- virtual HRESULT STDMETHODCALLTYPE setApplicationId(BSTR);
-
</del><span class="cx"> // WebPreferences
</span><span class="cx">
</span><span class="cx"> // This method accesses a different preference key than developerExtrasEnabled.
</span><span class="lines">@@ -259,8 +257,6 @@
</span><span class="cx"> static void removeReferenceForIdentifier(BSTR identifier);
</span><span class="cx"> static WebPreferences* sharedStandardPreferences();
</span><span class="cx">
</span><del>- static CFStringRef applicationId();
-
</del><span class="cx"> // From WebHistory.h
</span><span class="cx"> HRESULT historyItemLimit(_Out_ int*);
</span><span class="cx"> HRESULT setHistoryItemLimit(int);
</span><span class="lines">@@ -267,8 +263,8 @@
</span><span class="cx"> HRESULT historyAgeInDaysLimit(_Out_ int*);
</span><span class="cx"> HRESULT setHistoryAgeInDaysLimit(int);
</span><span class="cx">
</span><del>- void willAddToWebView();
- void didRemoveFromWebView();
</del><ins>+ void willAddToWebView();
+ void didRemoveFromWebView();
</ins><span class="cx">
</span><span class="cx"> HRESULT postPreferencesChangesNotification();
</span><span class="cx">
</span><span class="lines">@@ -301,5 +297,6 @@
</span><span class="cx"> bool m_autoSaves { false };
</span><span class="cx"> bool m_automaticallyDetectsCacheModel { true };
</span><span class="cx"> unsigned m_numWebViews { 0 };
</span><del>- static RetainPtr<CFStringRef> m_applicationId;
</del><span class="cx"> };
</span><ins>+
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebKitwinWebViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebView.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebView.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Source/WebKit/win/WebView.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -501,7 +501,7 @@
</span><span class="cx"> RetainPtr<CFURLCacheRef> cfurlCache = adoptCF(CFURLCacheCopySharedURLCache());
</span><span class="cx"> RetainPtr<CFStringRef> cfurlCacheDirectory = adoptCF(wkCopyFoundationCacheDirectory(0));
</span><span class="cx"> if (!cfurlCacheDirectory) {
</span><del>- RetainPtr<CFPropertyListRef> preference = adoptCF(CFPreferencesCopyAppValue(WebKitLocalCacheDefaultsKey, WebPreferences::applicationId()));
</del><ins>+ RetainPtr<CFPropertyListRef> preference = adoptCF(CFPreferencesCopyAppValue(WebKitLocalCacheDefaultsKey, kCFPreferencesCurrentApplication));
</ins><span class="cx"> if (preference && (CFStringGetTypeID() == CFGetTypeID(preference.get())))
</span><span class="cx"> cfurlCacheDirectory = adoptCF(static_cast<CFStringRef>(preference.leakRef()));
</span><span class="cx"> else
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Tools/ChangeLog        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-10-11 Ryan Haddad <ryanhaddad@apple.com>
+
+ Unreviewed, rolling out r207067.
+
+ This change caused webkitpy test failures.
+
+ Reverted changeset:
+
+ "[Win] Parallel DRTs are sharing preferences and cache."
+ https://bugs.webkit.org/show_bug.cgi?id=163013
+ http://trac.webkit.org/changeset/207067
+
</ins><span class="cx"> 2016-10-11 Per Arne Vollan <pvollan@apple.com>
</span><span class="cx">
</span><span class="cx"> [Win] Parallel DRTs are sharing preferences and cache.
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreewinDumpRenderTreecpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -49,7 +49,6 @@
</span><span class="cx"> #include <fstream>
</span><span class="cx"> #include <io.h>
</span><span class="cx"> #include <math.h>
</span><del>-#include <shlobj.h>
</del><span class="cx"> #include <shlwapi.h>
</span><span class="cx"> #include <tchar.h>
</span><span class="cx"> #include <wtf/NeverDestroyed.h>
</span><span class="lines">@@ -860,52 +859,16 @@
</span><span class="cx"> setAlwaysAcceptCookies(false);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static String applicationId()
-{
- DWORD processId = ::GetCurrentProcessId();
- return String::format("com.apple.DumpRenderTree.%d", processId);
-}
-
-static void setApplicationId()
-{
- COMPtr<IWebPreferences> preferences;
- if (SUCCEEDED(WebKitCreateInstance(CLSID_WebPreferences, 0, IID_IWebPreferences, (void**)&preferences))) {
- COMPtr<IWebPreferencesPrivate4> prefsPrivate4(Query, preferences);
- ASSERT(prefsPrivate4);
- _bstr_t fileName = applicationId().charactersWithNullTermination().data();
- prefsPrivate4->setApplicationId(fileName);
- }
-}
-
-static void setCacheFolder()
-{
- String libraryPath = libraryPathForDumpRenderTree();
-
- COMPtr<IWebCache> webCache;
- if (SUCCEEDED(WebKitCreateInstance(CLSID_WebCache, 0, IID_IWebCache, (void**)&webCache))) {
- _bstr_t cacheFolder = WebCore::pathByAppendingComponent(libraryPath, "LocalCache").utf8().data();
- webCache->setCacheFolder(cacheFolder);
- }
-}
-
</del><span class="cx"> // Called once on DumpRenderTree startup.
</span><span class="cx"> static void setDefaultsToConsistentValuesForTesting()
</span><span class="cx"> {
</span><span class="cx"> #if USE(CF)
</span><del>- // Create separate preferences for each DRT instance
- setApplicationId();
-
- RetainPtr<CFStringRef> appId = applicationId().createCFString();
-
</del><span class="cx"> String libraryPath = libraryPathForDumpRenderTree();
</span><span class="cx">
</span><span class="cx"> // Set up these values before creating the WebView so that the various initializations will see these preferred values.
</span><del>- CFPreferencesSetAppValue(WebDatabaseDirectoryDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "Databases").createCFString().get(), appId.get());
- CFPreferencesSetAppValue(WebStorageDirectoryDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "LocalStorage").createCFString().get(), appId.get());
- CFPreferencesSetAppValue(WebKitLocalCacheDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "LocalCache").createCFString().get(), appId.get());
-
- // Create separate cache for each DRT instance
- setCacheFolder();
</del><ins>+ CFPreferencesSetAppValue(WebDatabaseDirectoryDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "Databases").createCFString().get(), kCFPreferencesCurrentApplication);
+ CFPreferencesSetAppValue(WebStorageDirectoryDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "LocalStorage").createCFString().get(), kCFPreferencesCurrentApplication);
+ CFPreferencesSetAppValue(WebKitLocalCacheDefaultsKey, WebCore::pathByAppendingComponent(libraryPath, "LocalCache").createCFString().get(), kCFPreferencesCurrentApplication);
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpyportwinpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/port/win.py (207143 => 207144)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/port/win.py        2016-10-11 16:28:06 UTC (rev 207143)
+++ trunk/Tools/Scripts/webkitpy/port/win.py        2016-10-11 16:33:30 UTC (rev 207144)
</span><span class="lines">@@ -28,9 +28,8 @@
</span><span class="cx"> # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">
</span><span class="cx"> import atexit
</span><del>-import glob
</del><ins>+import os
</ins><span class="cx"> import logging
</span><del>-import os
</del><span class="cx"> import re
</span><span class="cx"> import sys
</span><span class="cx"> import time
</span><span class="lines">@@ -352,12 +351,6 @@
</span><span class="cx"> self.setup_crash_log_saving()
</span><span class="cx"> self.prevent_error_dialogs()
</span><span class="cx"> self.delete_sem_locks()
</span><del>-
- preferences_files = self._filesystem.join(os.environ['APPDATA'], "Apple Computer/Preferences", "com.apple.DumpRenderTree*")
- filelist = glob.glob(preferences_files)
- for file in filelist:
- self._filesystem.remove(file)
-
</del><span class="cx"> super(WinPort, self).setup_test_run(device_class)
</span><span class="cx">
</span><span class="cx"> def clean_up_test_run(self):
</span></span></pre>
</div>
</div>
</body>
</html>