Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

setAcceptFileSchemeCookies Support cookies on file:// option #98

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ellisium
Copy link

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)

@deefens
Copy link

deefens commented Dec 10, 2016

This one would definitely save my life!

@fujunwei
Copy link

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;

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) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to initWebViewSettings() function

@kas84
Copy link

kas84 commented Mar 7, 2017

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: mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mtc20k) applewebkit/537.36 (khtml, like gecko) chrome/53.0.2785.143 crosswalk/23.53.589.4 mobile safari/537.36

Any ideas on what's happening? I thought crosswalk would embed a chromium version into the webview loaded by cordova.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants