Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 25, 2015
  1. @stash-sfdc

    1.2.0

    stash-sfdc authored
  2. @stash-sfdc

    Merge pull request #40 from apsavin/issue-39_export_memstore

    stash-sfdc authored
    Export MemoryCookieStore. Fix #39.
Commits on May 24, 2015
  1. @apsavin
Commits on May 1, 2015
  1. @stash-sfdc
Commits on Apr 28, 2015
  1. @stash-sfdc

    1.1.0

    stash-sfdc authored
  2. @stash-sfdc

    Merge pull request #38 from SalesforceEng/stash/no-punycode

    stash-sfdc authored
    Use built-in punycode
  3. @stash-sfdc

    Use built-in punycode

    stash-sfdc authored
  4. @stash-sfdc

    Merge pull request #36 from apsavin/pubsuffix

    stash-sfdc authored
    Fix work with public suffixes. Fixes #16
  5. @stash-sfdc

    1.0.0

    stash-sfdc authored
  6. @stash-sfdc
  7. @stash-sfdc
  8. @stash-sfdc

    Merge pull request #37 from inikulin/master

    stash-sfdc authored
    Get rid of strict mode (closes #34, fixes #9)
Commits on Apr 27, 2015
  1. @inikulin
Commits on Apr 26, 2015
  1. @apsavin
Commits on Apr 24, 2015
  1. @stash-sfdc

    Update URLs to SalesforceEng

    stash-sfdc authored
    Temporarily remove logo until it can be re-hosted.  I've saved it as a
    gist here: https://gist.github.com/stash/814c45a58bf8df781c34
  2. @inikulin

    Fix #32

    inikulin authored
Commits on Apr 22, 2015
  1. @stash-sfdc

    0.13.0

    stash-sfdc authored
  2. @stash-sfdc
Commits on Apr 17, 2015
  1. @stash

    Merge pull request #30 from inikulin/master

    stash authored
    Adopt IETF's test suite, fix spec and browser compliance errors
    
    Amazing thanks to @inikulin !
Commits on Apr 1, 2015
  1. @inikulin

    Add test for the cookieCompare and modification of the cookie.creatio…

    inikulin authored
    …n (fallback from runtimeIdx)
Commits on Mar 31, 2015
  1. @inikulin

    Fix comment typos

    inikulin authored
  2. @inikulin

    Use another approach to resolve issues with Date() resolution.

    inikulin authored
    Use runtime creation index instead of hrTime. Track cookie.creation modifications by
    storing original UTC timestamp and comparing it with the actual cookie.creation.getTime().
    If creation date was modified we fallback to the plane dates comparison.
  3. @inikulin

    Fix date parsing:

    inikulin authored
    Previous algorithm failed at the last day of the current month. This was caused by the fact that setUTCMonth method was used. According to MDN(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth) it accepts two parameters. If second parameter (dayValue) is not specified then V8 uses current day value. So if you are setting April as month, and current system date is March 31 then if will be resolved as May 1 which doesn't works for us. Therefore, we will parse tokens separately and then create new Date() object using Date.UTC()
  4. @inikulin
Commits on Mar 30, 2015
  1. @inikulin

    Fix date parsing:

    inikulin authored
    Previous algorithm failed at the last day of the current month. This was caused by the fact that setUTCMonth method was used. According to MDN(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth) it accepts two parameters. If second parameter (dayValue) is not specified then V8 uses current day value. So if you are setting April as month, and current system date is March 31 then if will be resolved as May 1 which doesn't works for us. Therefore, we will parse tokens separately and then create new Date() object using Date.UTC()
Commits on Mar 20, 2015
  1. @inikulin
  2. @inikulin
Commits on Mar 12, 2015
  1. @inikulin
  2. @inikulin

    Fix date parsing:

    inikulin authored
    Use the exact grammar productions from the RFC for the time and day-of-month. Then perform correct validation (e.g. we should fail on "Sat, 15-Apr-17 91:22:33 21:01:22" because first met time token was incorrect. Previous approach just skipped first token, which is incorrect according to the RFC and doesn't matches browser's behavior (see: https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/cookie_util.cc#L189)
  3. @inikulin

    Fix date parsing:

    inikulin authored
    According to RFC6265  S5.1.1:
      month           = ( "jan" / "feb" / "mar" / "apr" /
                           "may" / "jun" / "jul" / "aug" /
                           "sep" / "oct" / "nov" / "dec" ) *OCTET
    
    So, spec allows suffix for the month.
  4. @inikulin

    Fix date parsing:

    inikulin authored
    According to RFC6265:
     time            = hms-time ( non-digit *OCTET )
     hms-time        = time-field ":" time-field ":" time-field
     time-field      = 1*2DIGIT
    
    Previous regexp doesn't allowed 1 digit minute/second time fields.
  5. @inikulin

    Fix date parsing: from RFC6265: year = 2*4DIGIT ( non-digit *OCTET ),…

    inikulin authored
    … meanwhile previously used regexp doesn't allowed years that starts with zero (e.g. 07). Also, it allowed 3-digits year, which is incorrect
Commits on Mar 11, 2015
  1. @inikulin

    Fix path parsing: if the path attribute doesn't have value or if the …

    inikulin authored
    …values is '/' we should fallback to the default-path. Previously code doesn't considered the case then we have two path attributes. Now we always assign null explicitly if the path attribute is empty or '/' (Fixes PATH0030 IETF test)
  2. @inikulin
Commits on Mar 10, 2015
  1. @inikulin

    Fix ordering tests: JS new Date() precision was not enough to provide…

    inikulin authored
    … correct order for the cookies which are set synchronously. So we are using high-resolution time now where possible.
Something went wrong with that request. Please try again.