Closed
Bug 199233
Opened 22 years ago
Closed 22 years ago
browser buster page counter that uses cookies is broken
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 198870
People
(Reporter: chofmann, Assigned: darin.moz)
References
()
Details
-2003 03 25 08 build on windows 2k.
-clean profile and one that I've used for awhile.
-go to the test page.
-upper right frame that shows a count of the pages that get loaded should update
every time the page refreshes.
-it does not. seemed to be working on builds from about 2 weeks ago when I last
ran browser buster.
js for the frame looks something like this
<html>
<head>
<title>
JS World.com
</title>
</head>
<!-- BODY BGCOLOR="FFFFFF" TEXT="000000" -->
<body BGCOLOR="FFFFFF" TEXT="000000">
<basefont size=2>
<script LANGUAGE="JavaScript">
<!--
/*
This script was created by the administration
from www.jsworld.com. Permission is hereby
granted to use this script freely for any
commercial or non commercial use, as long as
this message remains in tact.
© 1998 JavaScript World
All Rights Reserved
http://www.jsworld.com/
*/
document.write("<FORM><INPUT TYPE=HIDDEN NAME='saved' value='1'></FORM>")
function welcome()
{
if(document.cookie == "")
{
var counting = "1";
var when = new Date()
document.cookie = "counting=; expires=" + when.toGMTString();
when.setMonth(when.getMonth() + 1)
var counting = document.forms[0].saved.value;
document.cookie = "counting="+counting+" `; expires=" + when.toGMTString()
document.write("1st page");
}
else
{
var get = document.cookie;
get = get.substring((get.indexOf("=")+1),get.length);
var count = get.split(" ");
count[0]++
document.write("pg:"+count[0]+"");
document.forms[0].saved.value=count[0];
saveit()
}
}
function saveit()
{
var when = new Date()
document.cookie = "counting=; expires=" + when.toGMTString();
when.setMonth(when.getMonth() + 1)
var counting = document.forms[0].saved.value;
document.cookie = "counting="+counting+"; expires=" + when.toGMTString()
}
welcome()
// -->
</SCRIPT>
</body>
</html>
Reporter | ||
Comment 1•22 years ago
|
||
more direct link to just the test page is here
http://komodo.mozilla.org/buster/count.html
[shift]reload should cause the counter to update.
Reporter | ||
Updated•22 years ago
|
Flags: blocking1.4a?
Comment 2•22 years ago
|
||
chris: any chance you could test on a build made after 11.08am thismorning? this
looks like a dup of bug 198870 (fix checked in @ 1108).
in the meantime i'll see if i can confirm.
Reporter | ||
Comment 3•22 years ago
|
||
I can check it in the morning.
Comment 5•22 years ago
|
||
*** This bug has been marked as a duplicate of 198870 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 6•22 years ago
|
||
working for me on today's build
You need to log in
before you can comment on or make changes to this bug.
Description
•