When an external JavaScript file is included in an HTML file’s markup, any global variables that are defined get set back to their original values. For example: var myCounter = 0; function incrementCounter() { return ++myCounter; } Each time the incrementCounter function is called, the myCounter variable gets reset to zero, so the function always returns 1. This does NOT appear to happen with a small script such as the example above. The test case that is included DOES reproduce the error; it is unclear whether this is due to the amount of memory used, or the use of the httpRequest object, or something else entirely. (The enclosed test loads a canned website into an iframe, waits 10 seconds, then loads the next site from a list in sites.js. Some debug output is displayed in the textarea above the iframe.) This is reproducable on the week 14 QtWebKit build.
There is no test attached to this bug.
Created attachment 54054 [details] test case
This test does not work in Firefox at all, so I can't compare results to Safari. What are expected results, and how do they differ from actual results?
The unexpected output is if "ERROR: serverURL must be set before calling postResults" is posted as a serverResponse. I tried Safari 4.0.4 on Windows and QtLauncher on Linux and could not reproduce the problem. Marked the issue for Qt and Symbian only for now.
>This is reproducable on the week 14 QtWebKit build. Samuel has been trying to reproduce this without any success of reproduction. Can you be more specific on the environment ? emulator or HW? Sounds like real nasty bug but if it only can be reproduced in emulator environment I'd put this to low priority or ignore it completely. WINSCW environment is not the most trustworthy thing when webkit gets to eat all address space. Laszlo is the broken JIT in W14? that could be source of this.
It would be useful to try this with the interpreter (build-webkit --makeargs="-DENABLE_JIT=0").
Can someone actually reproduce this? To test this you need to modify sites.js unless running this with webserver.
Closing as no further info has been provided. Please re-open if issue is still valid and provide more specific instructions how to run the test set.