Title: [249575] trunk
Revision
249575
Author
[email protected]
Date
2019-09-06 09:19:50 -0700 (Fri, 06 Sep 2019)

Log Message

When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
https://bugs.webkit.org/show_bug.cgi?id=201480

Reviewed by Youenn Fablet.

Source/WebCore:

No change in behavior, but this blocks bug 200050 which will make WebKitTestRunner use a persistent, non-default session.
Without this change, that change causes lots of test failures because we are switching from the legacy private browsing session
to the default session instead of the session we were using.

* page/Page.cpp:
(WebCore::Page::enableLegacyPrivateBrowsing): Deleted.
* page/Page.h:
* page/PageGroup.cpp:
(WebCore::PageGroup::addPage):
(WebCore::PageGroup::setSessionIDForTesting):
(WebCore::PageGroup::enableLegacyPrivateBrowsingForTesting): Deleted.
* page/PageGroup.h:
* storage/StorageNamespaceProvider.cpp:
(WebCore::StorageNamespaceProvider::setSessionIDForTesting):
(WebCore::StorageNamespaceProvider::enableLegacyPrivateBrowsingForTesting): Deleted.
* storage/StorageNamespaceProvider.h:

Source/WebKit:

* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::setPrivateBrowsingEnabled):
* WebProcess/InjectedBundle/InjectedBundle.h:

Source/WebKitLegacy/mac:

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

Source/WebKitLegacy/win:

* WebView.cpp:
(WebView::notifyPreferencesChanged):

Tools:

* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::beginTesting):
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setPrivateBrowsingEnabled):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (249574 => 249575)


--- trunk/Source/WebCore/ChangeLog	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/ChangeLog	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1,3 +1,27 @@
+2019-09-06  Alex Christensen  <[email protected]>
+
+        When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
+        https://bugs.webkit.org/show_bug.cgi?id=201480
+
+        Reviewed by Youenn Fablet.
+
+        No change in behavior, but this blocks bug 200050 which will make WebKitTestRunner use a persistent, non-default session.
+        Without this change, that change causes lots of test failures because we are switching from the legacy private browsing session
+        to the default session instead of the session we were using.
+
+        * page/Page.cpp:
+        (WebCore::Page::enableLegacyPrivateBrowsing): Deleted.
+        * page/Page.h:
+        * page/PageGroup.cpp:
+        (WebCore::PageGroup::addPage):
+        (WebCore::PageGroup::setSessionIDForTesting):
+        (WebCore::PageGroup::enableLegacyPrivateBrowsingForTesting): Deleted.
+        * page/PageGroup.h:
+        * storage/StorageNamespaceProvider.cpp:
+        (WebCore::StorageNamespaceProvider::setSessionIDForTesting):
+        (WebCore::StorageNamespaceProvider::enableLegacyPrivateBrowsingForTesting): Deleted.
+        * storage/StorageNamespaceProvider.h:
+
 2019-09-06  Youenn Fablet  <[email protected]>
 
         Remove MediaStreamPrivate::scheduleDeferredTask

Modified: trunk/Source/WebCore/page/Page.cpp (249574 => 249575)


--- trunk/Source/WebCore/page/Page.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/page/Page.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1676,14 +1676,6 @@
         view->storageBlockingStateChanged();
 }
 
-void Page::enableLegacyPrivateBrowsing(bool privateBrowsingEnabled)
-{
-    // Don't allow changing the legacy private browsing state if we have set a session ID.
-    ASSERT(m_sessionID == PAL::SessionID::defaultSessionID() || m_sessionID == PAL::SessionID::legacyPrivateSessionID());
-
-    setSessionID(privateBrowsingEnabled ? PAL::SessionID::legacyPrivateSessionID() : PAL::SessionID::defaultSessionID());
-}
-
 void Page::updateIsPlayingMedia(uint64_t sourceElementID)
 {
     MediaProducer::MediaStateFlags state = MediaProducer::IsNotPlaying;

Modified: trunk/Source/WebCore/page/Page.h (249574 => 249575)


--- trunk/Source/WebCore/page/Page.h	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/page/Page.h	2019-09-06 16:19:50 UTC (rev 249575)
@@ -607,7 +607,6 @@
 
     WEBCORE_EXPORT PAL::SessionID sessionID() const;
     WEBCORE_EXPORT void setSessionID(PAL::SessionID);
-    WEBCORE_EXPORT void enableLegacyPrivateBrowsing(bool privateBrowsingEnabled);
     bool usesEphemeralSession() const { return m_sessionID.isEphemeral(); }
 
     MediaProducer::MediaStateFlags mediaState() const { return m_mediaState; }

Modified: trunk/Source/WebCore/page/PageGroup.cpp (249574 => 249575)


--- trunk/Source/WebCore/page/PageGroup.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/page/PageGroup.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -95,7 +95,7 @@
     m_pages.add(&page);
     
     if (m_isLegacyPrivateBrowsingEnabledForTesting)
-        page.enableLegacyPrivateBrowsing(true);
+        page.setSessionID(PAL::SessionID::legacyPrivateSessionID());
 }
 
 void PageGroup::removePage(Page& page)
@@ -126,15 +126,16 @@
 }
 #endif
 
-void PageGroup::enableLegacyPrivateBrowsingForTesting(bool enabled)
+void PageGroup::setSessionIDForTesting(const PAL::SessionID& sessionID)
 {
-    if (m_isLegacyPrivateBrowsingEnabledForTesting == enabled)
+    bool legacyPrivate = sessionID == PAL::SessionID::legacyPrivateSessionID();
+    if (m_isLegacyPrivateBrowsingEnabledForTesting == legacyPrivate)
         return;
 
-    m_isLegacyPrivateBrowsingEnabledForTesting = enabled;
+    m_isLegacyPrivateBrowsingEnabledForTesting = legacyPrivate;
     
     for (auto* page : m_pages)
-        page->enableLegacyPrivateBrowsing(enabled);
+        page->setSessionID(sessionID);
 }
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/page/PageGroup.h (249574 => 249575)


--- trunk/Source/WebCore/page/PageGroup.h	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/page/PageGroup.h	2019-09-06 16:19:50 UTC (rev 249575)
@@ -29,6 +29,10 @@
 #include <wtf/Noncopyable.h>
 #include <wtf/text/WTFString.h>
 
+namespace PAL {
+class SessionID;
+}
+
 namespace WebCore {
 
 class Page;
@@ -58,7 +62,7 @@
     WEBCORE_EXPORT CaptionUserPreferences& captionPreferences();
 #endif
 
-    WEBCORE_EXPORT void enableLegacyPrivateBrowsingForTesting(bool);
+    WEBCORE_EXPORT void setSessionIDForTesting(const PAL::SessionID&);
 
 private:
     String m_name;

Modified: trunk/Source/WebCore/storage/StorageNamespaceProvider.cpp (249574 => 249575)


--- trunk/Source/WebCore/storage/StorageNamespaceProvider.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/storage/StorageNamespaceProvider.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -82,9 +82,8 @@
     return *slot;
 }
 
-void StorageNamespaceProvider::enableLegacyPrivateBrowsingForTesting(bool enabled)
+void StorageNamespaceProvider::setSessionIDForTesting(const PAL::SessionID& newSessionID)
 {
-    auto newSessionID = enabled ? PAL::SessionID::legacyPrivateSessionID() : PAL::SessionID::defaultSessionID();
     if (m_localStorageNamespace && newSessionID != m_localStorageNamespace->sessionID())
         m_localStorageNamespace->setSessionIDForTesting(newSessionID);
     

Modified: trunk/Source/WebCore/storage/StorageNamespaceProvider.h (249574 => 249575)


--- trunk/Source/WebCore/storage/StorageNamespaceProvider.h	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebCore/storage/StorageNamespaceProvider.h	2019-09-06 16:19:50 UTC (rev 249575)
@@ -52,7 +52,7 @@
 
     Ref<StorageArea> localStorageArea(Document&);
 
-    WEBCORE_EXPORT void enableLegacyPrivateBrowsingForTesting(bool enabled);
+    WEBCORE_EXPORT void setSessionIDForTesting(const PAL::SessionID&);
 
 protected:
     StorageNamespace* optionalLocalStorageNamespace() { return m_localStorageNamespace.get(); }

Modified: trunk/Source/WebKit/ChangeLog (249574 => 249575)


--- trunk/Source/WebKit/ChangeLog	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKit/ChangeLog	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1,3 +1,14 @@
+2019-09-06  Alex Christensen  <[email protected]>
+
+        When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
+        https://bugs.webkit.org/show_bug.cgi?id=201480
+
+        Reviewed by Youenn Fablet.
+
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
+        * WebProcess/InjectedBundle/InjectedBundle.h:
+
 2019-09-06  Patrick Griffis  <[email protected]>
 
         [GTK][WPE] Do not enable the sandbox in Snap

Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp (249574 => 249575)


--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -166,9 +166,9 @@
     WebKit::toImpl(bundleRef)->setJavaScriptCanAccessClipboard(WebKit::toImpl(pageGroupRef), enabled);
 }
 
-void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
+void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, WKBundlePageRef pageRef, bool enabled)
 {
-    WebKit::toImpl(bundleRef)->setPrivateBrowsingEnabled(WebKit::toImpl(pageGroupRef), enabled);
+    WebKit::toImpl(bundleRef)->setPrivateBrowsingEnabled(WebKit::toImpl(pageGroupRef), WebKit::toImpl(pageRef), enabled);
 }
 
 void WKBundleSetPopupBlockingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)

Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h (249574 => 249575)


--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h	2019-09-06 16:19:50 UTC (rev 249575)
@@ -49,7 +49,7 @@
 WK_EXPORT void WKBundleSetMinimumLogicalFontSize(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, int size);
 WK_EXPORT void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
 WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
-WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
+WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundlePageRef pageRef, bool enabled);
 WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
 WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
 WK_EXPORT void WKBundleSetSpatialNavigationEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);

Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp (249574 => 249575)


--- trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -346,16 +346,27 @@
         (*iter)->settings().setJavaScriptCanAccessClipboard(enabled);
 }
 
-void InjectedBundle::setPrivateBrowsingEnabled(WebPageGroupProxy* pageGroup, bool enabled)
+void InjectedBundle::setPrivateBrowsingEnabled(WebPageGroupProxy* pageGroup, WebPage* page, bool enabled)
 {
     ASSERT(!hasProcessPrivilege(ProcessPrivilege::CanAccessRawCookies));
-    if (enabled)
+
+    PAL::SessionID newSessionID = PAL::SessionID::legacyPrivateSessionID();
+    if (enabled) {
+        auto currentSessionID = page->corePage()->sessionID();
+        if (currentSessionID == PAL::SessionID::legacyPrivateSessionID())
+            return;
+        m_initialSessionID = currentSessionID;
         WebProcess::singleton().ensureLegacyPrivateBrowsingSessionInNetworkProcess();
+    } else {
+        if (!m_initialSessionID)
+            return;
+        newSessionID = *std::exchange(m_initialSessionID, WTF::nullopt);
+    }
 
-    PageGroup::pageGroup(pageGroup->identifier())->enableLegacyPrivateBrowsingForTesting(enabled);
+    PageGroup::pageGroup(pageGroup->identifier())->setSessionIDForTesting(newSessionID);
 
     auto webStorageNameSpaceProvider = WebStorageNamespaceProvider::getOrCreate(*pageGroup);
-    webStorageNameSpaceProvider->enableLegacyPrivateBrowsingForTesting(enabled);
+    webStorageNameSpaceProvider->setSessionIDForTesting(newSessionID);
 }
 
 void InjectedBundle::setPopupBlockingEnabled(WebPageGroupProxy* pageGroup, bool enabled)

Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.h (249574 => 249575)


--- trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.h	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.h	2019-09-06 16:19:50 UTC (rev 249575)
@@ -31,6 +31,7 @@
 #include <_javascript_Core/_javascript_.h>
 #include <WebCore/UserContentTypes.h>
 #include <WebCore/UserScriptTypes.h>
+#include <pal/SessionID.h>
 #include <wtf/RefPtr.h>
 #include <wtf/RetainPtr.h>
 #include <wtf/text/WTFString.h>
@@ -104,7 +105,7 @@
     void setAsyncFrameScrollingEnabled(WebPageGroupProxy*, bool);
     void setPluginsEnabled(WebPageGroupProxy*, bool);
     void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool);
-    void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool);
+    void setPrivateBrowsingEnabled(WebPageGroupProxy*, WebPage*, bool);
     void setPopupBlockingEnabled(WebPageGroupProxy*, bool);
     void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool);
     void setSpatialNavigationEnabled(WebPageGroupProxy*, bool);
@@ -173,6 +174,8 @@
 
     std::unique_ptr<API::InjectedBundle::Client> m_client;
 
+    Optional<PAL::SessionID> m_initialSessionID;
+
 #if PLATFORM(COCOA)
     RetainPtr<WKWebProcessBundleParameters> m_bundleParameters;
     RetainPtr<NSSet> m_classesForCoder;

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (249574 => 249575)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1,3 +1,13 @@
+2019-09-06  Alex Christensen  <[email protected]>
+
+        When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
+        https://bugs.webkit.org/show_bug.cgi?id=201480
+
+        Reviewed by Youenn Fablet.
+
+        * WebView/WebView.mm:
+        (-[WebView _preferencesChanged:]):
+
 2019-09-06  Rob Buis  <[email protected]>
 
         Add runtime flag for lazy image loading

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (249574 => 249575)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2019-09-06 16:19:50 UTC (rev 249575)
@@ -2888,8 +2888,8 @@
     settings.setPluginsEnabled([preferences arePlugInsEnabled]);
     settings.setLocalStorageEnabled([preferences localStorageEnabled]);
 
-    _private->page->enableLegacyPrivateBrowsing([preferences privateBrowsingEnabled]);
-    _private->group->storageNamespaceProvider().enableLegacyPrivateBrowsingForTesting([preferences privateBrowsingEnabled]);
+    _private->page->setSessionID([preferences privateBrowsingEnabled] ? PAL::SessionID::legacyPrivateSessionID() : PAL::SessionID::defaultSessionID());
+    _private->group->storageNamespaceProvider().setSessionIDForTesting([preferences privateBrowsingEnabled] ? PAL::SessionID::legacyPrivateSessionID() : PAL::SessionID::defaultSessionID());
     settings.setSansSerifFontFamily([preferences sansSerifFontFamily]);
     settings.setSerifFontFamily([preferences serifFontFamily]);
     settings.setStandardFontFamily([preferences standardFontFamily]);

Modified: trunk/Source/WebKitLegacy/win/ChangeLog (249574 => 249575)


--- trunk/Source/WebKitLegacy/win/ChangeLog	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKitLegacy/win/ChangeLog	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1,3 +1,13 @@
+2019-09-06  Alex Christensen  <[email protected]>
+
+        When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
+        https://bugs.webkit.org/show_bug.cgi?id=201480
+
+        Reviewed by Youenn Fablet.
+
+        * WebView.cpp:
+        (WebView::notifyPreferencesChanged):
+
 2019-09-06  Rob Buis  <[email protected]>
 
         Add runtime flag for lazy image loading

Modified: trunk/Source/WebKitLegacy/win/WebView.cpp (249574 => 249575)


--- trunk/Source/WebKitLegacy/win/WebView.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Source/WebKitLegacy/win/WebView.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -5307,7 +5307,7 @@
     else
         WebFrameNetworkingContext::destroyPrivateBrowsingSession();
 #endif
-    m_page->enableLegacyPrivateBrowsing(!!enabled);
+    m_page->setSessionID(!!enabled ? PAL::SessionID::legacyPrivateSessionID() : PAL::SessionID::defaultSessionID());
 
     hr = preferences->sansSerifFontFamily(&str);
     if (FAILED(hr))

Modified: trunk/Tools/ChangeLog (249574 => 249575)


--- trunk/Tools/ChangeLog	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Tools/ChangeLog	2019-09-06 16:19:50 UTC (rev 249575)
@@ -1,3 +1,15 @@
+2019-09-06  Alex Christensen  <[email protected]>
+
+        When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
+        https://bugs.webkit.org/show_bug.cgi?id=201480
+
+        Reviewed by Youenn Fablet.
+
+        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
+        (WTR::InjectedBundle::beginTesting):
+        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
+        (WTR::TestRunner::setPrivateBrowsingEnabled):
+
 2019-09-06  Rob Buis  <[email protected]>
 
         Add runtime flag for lazy image loading

Modified: trunk/Tools/TestWebKitAPI/glib/CMakeLists.txt (249574 => 249575)


--- trunk/Tools/TestWebKitAPI/glib/CMakeLists.txt	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Tools/TestWebKitAPI/glib/CMakeLists.txt	2019-09-06 16:19:50 UTC (rev 249575)
@@ -7,8 +7,6 @@
 )
 
 set(WebKitGLibAPITests_INCLUDE_DIRECTORIES
-    ${CMAKE_SOURCE_DIR}/Source
-    ${CMAKE_SOURCE_DIR}/Source/WTF
     ${FORWARDING_HEADERS_DIR}
     ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib
     ${TOOLS_DIR}/TestWebKitAPI/glib/WebKitGLib

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp (249574 => 249575)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -497,7 +497,7 @@
     // Don't change experimental or internal features here; those should be set in TestController::resetPreferencesToConsistentValues().
     WKBundleSetAllowUniversalAccessFromFileURLs(m_bundle, m_pageGroup, true);
     WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true);
-    WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false);
+    WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, page()->page(), false);
     WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true);
     WKBundleSetFrameFlatteningEnabled(m_bundle, m_pageGroup, false);
     WKBundleSetMinimumLogicalFontSize(m_bundle, m_pageGroup, 9);

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp (249574 => 249575)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp	2019-09-06 15:49:39 UTC (rev 249574)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp	2019-09-06 16:19:50 UTC (rev 249575)
@@ -534,7 +534,7 @@
 void TestRunner::setPrivateBrowsingEnabled_DEPRECATED(bool enabled)
 {
     auto& injectedBundle = InjectedBundle::singleton();
-    WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
+    WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), injectedBundle.page()->page(), enabled);
 }
 
 void TestRunner::setPopupBlockingEnabled(bool enabled)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to