Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b8f7989 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Fix for bug 3407633 Cookie not set in CookieManager - DO NOT MERGE

Setting http:// at the start if there is no :// in the url

Change-Id: Idfae4f724808267fe9c8ab3864cfc4305ddac0e7
parent 84a34059
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -294,6 +294,8 @@ public final class CookieManager {
     */
    public void setCookie(String url, String value) {
        if (JniUtil.useChromiumHttpStack()) {
            if (url.indexOf("://") == -1)
                url = "http://" + url;
            nativeSetCookie(url, value);
            return;
        }
@@ -425,6 +427,8 @@ public final class CookieManager {
     */
    public String getCookie(String url) {
        if (JniUtil.useChromiumHttpStack()) {
            if (url.indexOf("://") == -1)
                url = "http://" + url;
            return nativeGetCookie(url);
        }