diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-11-21 12:54:44 +0000 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-11-24 14:35:39 +0000 |
commit | 15ab5a903e26caade17bc69468717e8e56f51f23 (patch) | |
tree | 48a90b8735522c8a7a90429901c3d4d7dc52588b /annotations/generate_annotated_java_files.py | |
parent | 4736a508137bcfcf134f0e350dcc80fd747acb06 (diff) |
Adjust cookie max-age from expires time calculation.
Use whenCreated field (set when a cookie is created) for the
max-age calculation. Previous, parsing-related change switched
(erroneously) to use the current time inside the expires
assignor method.
Special case was added to avoid situation where
expires-currentTime == -1 which means an undefined expiry time.
This would create a persisting cookie (where value of -2 and
lower would result in cookie deletion).
Added test for Android N HttpCookiehasExpired() behavior change.
Test: CtsLibcoreTestCases
Bug: 31039416
Change-Id: Idc5417d16a49d56116ed4a6bef7cf56ee922047f
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions