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

Commit 529b2854 authored by Patrick Scott's avatar Patrick Scott Committed by Android (Google) Code Review
Browse files

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

parents 08d5b1fd 2807dbd5
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.