Summary: This implementation is about cookie management for Crosswalk Android. The cookies created by http/https response and JavaScript will be persistent to external storage rather than in memory, so that cookies won't lost after apps are relaunched. A Java interface will also be implemented to set, clear, allow accept, disable cookies.
Affected component: N/A Related feature: XWALK-156<https://crosswalk-project.org/jira/browse/XWALK-156> Target Release: Crosswalk 3 Implementation details: 1. Introduce the cookie access policy for network to enable/disable cookies. 2. Create persistent cookie storage for CookieMonster to store cookies. 3. Add a JNI class CookieManager for Java to set cookie access policy and manage cookies. The methods are: void setAcceptCookie(boolean accept) // Control whether cookie is enabled or disabled boolean acceptCookie() void setCookie(final String url, final String value) String getCookie(final String url) void removeSessionCookie() void removeAllCookie() boolean hasCookies() void removeExpiredCookie() void flushCookieStore() void setAcceptFileSchemeCookies(boolean accept) // Control whether cookies are accepted for file scheme URLs. boolean allowFileSchemeCookies() Remark: This feature is for Crosswalk Android, but Tizen may have the similar requirement, if it's not an emergency for Tizen, the implementation could landed to Android first. Thanks, Gao Chun
_______________________________________________ Crosswalk-dev mailing list Crosswalk-dev@lists.crosswalk-project.org https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev