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)

x86
Windows 2000
defect
Not set
normal

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>
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.
Flags: blocking1.4a?
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.
I can check it in the morning.
This works for me on 0326 linux build.
Flags: blocking1.4a? → blocking1.4a-
*** This bug has been marked as a duplicate of 198870 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
working for me on today's build
You need to log in before you can comment on or make changes to this bug.