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

Commit 2807dbd5 authored by Patrick Scott's avatar Patrick Scott
Browse files

If both cookies have null values, use the name difference.

Change-Id: Idee9763a14dd559f136ee8b1eea9abaf265d15a1
parent bb2bf8fa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -219,7 +219,11 @@ public final class CookieManager {
            // If cookie2 has a null value, it should come later in
            // the list.
            if (cookie2.value == null) {
                // If both cookies have null values, fall back to using the name
                // difference.
                if (cookie1.value != null) {
                    return -1;
                }
            } else if (cookie1.value == null) {
                // Now we know that cookie2 does not have a null value, if
                // cookie1 has a null value, place it later in the list.