diff options
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp')
| -rw-r--r-- | Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp b/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp index 9a5e8075c..0684d6df2 100644 --- a/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp +++ b/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp @@ -103,6 +103,9 @@ void InjectedBundle::initialize(WKBundleRef bundle, WKTypeRef initializationUser activateFonts(); WKBundleActivateMacFontAscentHack(m_bundle); + + // FIXME: We'd like to start with a clean state for every test, but this function can't be used more than once yet. + WKBundleSwitchNetworkLoaderToNewTestingSession(m_bundle); } void InjectedBundle::didCreatePage(WKBundlePageRef page) @@ -242,7 +245,6 @@ void InjectedBundle::beginTesting(WKDictionaryRef settings) WKBundleSetAllowUniversalAccessFromFileURLs(m_bundle, m_pageGroup, true); WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true); WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false); - WKBundleSwitchNetworkLoaderToNewTestingSession(m_bundle); WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true); WKBundleSetFrameFlatteningEnabled(m_bundle, m_pageGroup, false); WKBundleSetMinimumLogicalFontSize(m_bundle, m_pageGroup, 9); |
