Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-16275] iOS Cookie management #5466

Merged
merged 11 commits into from Mar 18, 2014
Merged

Conversation

pec1985
Copy link
Contributor

@pec1985 pec1985 commented Mar 13, 2014

Details in Jira ticket
Test case here

platforms: [iphone, ipad]
since: "3.3.0"
returns:
type: String
Copy link
Contributor

Choose a reason for hiding this comment

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

String??Also what happens if I call this method on a cookieProxy created from a cookie that already exists in the system? When creating a cookie what values are required for a cookie to be valid

@vishalduggal
Copy link
Contributor

Code Reviewed. REJECTED

{
if(self = [super _initWithPageContext:context])
{
for(NSString *key in [cookie properties])
Copy link
Contributor

Choose a reason for hiding this comment

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

_cookieDict = [[NSMutableDictionary dictionaryWithDictionary:[cookie properties]] retain]

Copy link
Contributor

Choose a reason for hiding this comment

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

httpOnly = [cookie isHttpOnly] and modify the getter for iSHttpOnly to use this boolean

summary: Returns true if the cookie is valid.
description: |
This method checks wheather the cookie is valid. For a cookie to be valid the
minimum properties requiered are `domain`, `name`, `value`, and `path`
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually on iOS you need path, name,value and either domain or original Url

@vishalduggal
Copy link
Contributor

Code Reviewed. ACCEPTED

@vishalduggal
Copy link
Contributor

FR ok. APPROVED

vishalduggal added a commit that referenced this pull request Mar 18, 2014
[TIMOB-16275] iOS Cookie management
@vishalduggal vishalduggal merged commit df66cdf into tidev:master Mar 18, 2014
farfromrefug pushed a commit to Akylas/titanium_mobile that referenced this pull request Aug 15, 2014
[TIMOB-16275] iOS Cookie management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants