Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Fix SetCookieWithDetailsAsync with failure callback #258

Merged
merged 1 commit into from
Jul 28, 2017
Merged

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Jul 18, 2017

@darkdh darkdh added this to the 4.4.2 milestone Jul 18, 2017
@darkdh darkdh self-assigned this Jul 18, 2017
// Only append * for .domain
if (base::StartsWith(base::UTF16ToUTF8(host_key),
".", base::CompareCase::INSENSITIVE_ASCII)) {
host.append(base::UTF8ToUTF16("*"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't '*' go at the beginning of the host, not at the end?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it appends to the empty string16 object

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops i got host and host_key mixed up

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need changes then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host_key is extracted from sql and it will be directly used as ImportedCookieEntry.domain
host is determined by host_key and will be used as ImportedCookieEntry.host

@bridiver bridiver merged commit c776a5e into master Jul 28, 2017
bridiver added a commit that referenced this pull request Jul 28, 2017
Fix SetCookieWithDetailsAsync with failure callback
@darkdh darkdh modified the milestones: 4.4.5, 4.4.2 Jul 28, 2017
@bsclifton bsclifton deleted the cookie-error branch June 18, 2018 18:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import cookie error
3 participants