The page's focusedFrame / frameSetLargestFrame do not get cleared on process swap...
[WebKit-https.git] / Source / WebKit / UIProcess / WebPageProxy.cpp
index f4c7f31..67c76fc 100644 (file)
@@ -6775,6 +6775,8 @@ void WebPageProxy::processWillBecomeForeground()
 void WebPageProxy::resetState(ResetStateReason resetStateReason)
 {
     m_mainFrame = nullptr;
+    m_focusedFrame = nullptr;
+    m_frameSetLargestFrame = nullptr;
 
 #if PLATFORM(COCOA)
     m_scrollingPerformanceData = nullptr;