-
Notifications
You must be signed in to change notification settings - Fork 350
setAcceptFileSchemeCookies Support cookies on file:// option #98
base: master
Are you sure you want to change the base?
Conversation
This one would definitely save my life! |
Please combine those commits into ones. |
@@ -72,9 +74,12 @@ Licensed to the Apache Software Foundation (ASF) under one | |||
protected XWalkActivityDelegate activityDelegate; | |||
protected String startUrl; | |||
protected CordovaPreferences preferences; | |||
protected boolean xwalkFileSchemeCookies; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local variable please
@@ -87,6 +92,11 @@ public void run() { | |||
public void run() { | |||
cookieManager = new XWalkCordovaCookieManager(); | |||
|
|||
if (xwalkFileSchemeCookies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to initWebViewSettings() function
Hi, is this fix working for you when system's webview is not updated? I've patched my crosswalk and only works when system's webview is updated (even though user agent is still the same: Any ideas on what's happening? I thought crosswalk would embed a chromium version into the webview loaded by cordova. |
Chromium disable cookies on file:// so we have to use localStorage in Ionic application
However, some third party may require cookies.
XWALK_FILE_SCHEME_COOKIES preference setting enable cookie
(default / false)