Skip to content
Permalink
Browse files
Add API for accessing session ephemerality from a page bundle
https://bugs.webkit.org/show_bug.cgi?id=128410

Patch by Martin Hock <mhock@apple.com> on 2014-02-10
Reviewed by Alexey Proskuryakov.

* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageIsUsingEphemeralSession):
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::isUsingEphemeralSession):
* WebProcess/WebPage/WebPage.h:

Canonical link: https://commits.webkit.org/146559@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Martin Hock authored and webkit-commit-queue committed Feb 10, 2014
1 parent a897cb0 commit b7158dc044a9b4bb99c7b739303d0937ef8dceb7
@@ -1,3 +1,17 @@
2014-02-10 Martin Hock <mhock@apple.com>

Add API for accessing session ephemerality from a page bundle
https://bugs.webkit.org/show_bug.cgi?id=128410

Reviewed by Alexey Proskuryakov.

* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageIsUsingEphemeralSession):
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::isUsingEphemeralSession):
* WebProcess/WebPage/WebPage.h:

2014-02-10 Carlos Garcia Campos <cgarcia@igalia.com>

[GTK] Create the inspector view using the same web process as the inspected page
@@ -542,3 +542,8 @@ void WKBundlePageStopExtendingIncrementalRenderingSuppression(WKBundlePageRef pa
{
toImpl(pageRef)->stopExtendingIncrementalRenderingSuppression(token);
}

bool WKBundlePageIsUsingEphemeralSession(WKBundlePageRef pageRef)
{
return toImpl(pageRef)->isUsingEphemeralSession();
}
@@ -107,6 +107,8 @@ WK_EXPORT void WKBundlePageListenForLayoutMilestones(WKBundlePageRef page, WKLay

WK_EXPORT WKBundleInspectorRef WKBundlePageGetInspector(WKBundlePageRef page);

WK_EXPORT bool WKBundlePageIsUsingEphemeralSession(WKBundlePageRef page);

#ifdef __cplusplus
}
#endif
@@ -2102,6 +2102,11 @@ uint64_t WebPage::sessionID() const
return m_page->settings().privateBrowsingEnabled() ? SessionTracker::legacyPrivateSessionID : SessionTracker::defaultSessionID;
}

bool WebPage::isUsingEphemeralSession() const
{
return SessionTracker::isEphemeralID(sessionID());
}

void WebPage::setSessionID(uint64_t sessionID)
{
m_sessionID = sessionID;
@@ -183,6 +183,7 @@ class WebPage : public API::ObjectImpl<API::Object::Type::BundlePage>, public IP
WebCore::Page* corePage() const { return m_page.get(); }
uint64_t pageID() const { return m_pageID; }
uint64_t sessionID() const;
bool isUsingEphemeralSession() const;
void setSessionID(uint64_t);

void setSize(const WebCore::IntSize&);

0 comments on commit b7158dc

Please sign in to comment.