git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only send Messages::WebPageProxy::DidSaveToPageCache once when entering page cache.
[WebKit-https.git]
/
Source
/
WebKit2
/
WebProcess
/
WebCoreSupport
/
WebFrameLoaderClient.cpp
diff --git
a/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
b/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
index
84df264
..
2c57ace
100644
(file)
--- a/
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
+++ b/
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
@@
-1370,7
+1370,8
@@
void WebFrameLoaderClient::didSaveToPageCache()
if (!webPage)
return;
- webPage->send(Messages::WebPageProxy::DidSaveToPageCache());
+ if (m_frame->isMainFrame())
+ webPage->send(Messages::WebPageProxy::DidSaveToPageCache());
}
void WebFrameLoaderClient::didRestoreFromPageCache()