New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 865803 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 1
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

Cronet HttpTest.SystemCookieWithNullCreationTime triggers DCHECKs on iOS 12 beta3

Project Member Reported by mef@chromium.org, Jul 20

Issue description

The iOS-specific function GetCreationTimeFromObject() in cookie_creation_time_manager.mm fails the following DCHECK:

  // The "Created" key is not documented.
  // Return a null time if the key is missing.
  id created = [[cookie properties] objectForKey:kHTTPCookieCreated];
  DCHECK(created && [created isKindOfClass:[NSNumber class]]);

It appears that 'Created' key is missing.

Removing the DCHECK makes tests pass. Interestingly, cookie_creation_time_manager_unittest doesn't trigger this DCHECK.

 
Cc: kapishnikov@chromium.org
Owner: mef@chromium.org
Status: Assigned (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, Aug 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/600742eb2a0a265ac9d441c02e92203c64e17d80

commit 600742eb2a0a265ac9d441c02e92203c64e17d80
Author: Misha Efimov <mef@chromium.org>
Date: Wed Aug 01 11:36:48 2018

[Cronet] Disable DCHECK(created) in GetCreationTimeFromObject.

- iOS 12 returns nil for system cookie with null creation time.

Bug:  865803 ,  688540 
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I612b4ab55aedb0a2c0d9b2a7cb24418c5a0a6c19
Reviewed-on: https://chromium-review.googlesource.com/1157229
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Misha Efimov <mef@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579763}
[modify] https://crrev.com/600742eb2a0a265ac9d441c02e92203c64e17d80/ios/net/cookies/cookie_creation_time_manager.mm

Status: Fixed (was: Assigned)

Sign in to add a comment