gigebyte / cookies

Automatically exported from code.google.com/p/cookies
0 stars 0 forks source link

Problem parseCookie on ff #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps reproduce the problem?
I try $.cookie.get('mycookie'); When there is no cookie 'mycookie', only on 
firefox, javascript breaks on the function parseCookie at line 121 
(JSON.parse(value)). On chrome and ie, no issue.

By adding a if(document.cookie != '') around the for loop in parseCookie i have 
no more problem.

What version of the following are you using?
  jQuery: 1.4.2
  cookies: 2.2.0

What browser/version are you using?
Firefox 3.6.8

What OS/version are you using?
win xp pro

Original issue reported on code.google.com by dum.step...@gmail.com on 6 Sep 2010 at 1:27

Attachments:

GoogleCodeExporter commented 9 years ago
I have more precisions. When datas in the cookie are not in json, there is no 
exception thrown at line 121 only in firefox.

Original comment by dum.step...@gmail.com on 6 Sep 2010 at 2:07

GoogleCodeExporter commented 9 years ago
I canot reproduce this issue at all. Are you able to? Can you provide some code 
at http://jsfiddle.net which shows me the problem?

Thanks,
Jim

Original comment by auldrid...@gmail.com on 10 Nov 2010 at 2:17

GoogleCodeExporter commented 9 years ago
I cannot reproduce and individual who opened issue has not responded to query 
for more info. What's more, I've totally reorged this are of code in r76

Closing

Original comment by auldrid...@gmail.com on 26 Jan 2011 at 7:53