This error appeared for me for the first time today. I'm using Firefox 28 which seems to be the most recent version.
Here is the code: When it gets to the last line I get the error "Can't access dead object" and the page freezes, won't accept clicks anymore. Not seeing this error in Chrome.
function setCookie(name, value, expiredays) {
console.log("setting cookie to: " + name + ", value: " + value);
var exdate = new Date();
exdate.setDate(exdate.getDate() + expiredays);
var newcookie = name + "=" + escape(value) + ((expiredays === null) ? "" : ";expires=" + exdate.toGMTString());
document.cookie = newcookie;
}
When I look at document.cookie in the console, it's just a string. newcookie is a string too. Document looks alright.
What is this error?
Thanks for any clues