[Webkit-unassigned] [Bug 27136] New: [Qt] Webkit hangs when executing an infinite JavaScript loop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 9 16:38:54 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27136

           Summary: [Qt] Webkit hangs when executing an infinite
                    JavaScript loop
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yael.aharon at nokia.com


When executing an infinite loop in JavaScript, the Browser hangs. That is
because the built-in toimeout mechanism is not exposed through the Qt API.
The following JavaScript can cause the crash:

<html>
<head>
<script type="text/javascript">
var run = true;
var a = 1;
function startLoop(){
    while(run){
        a++;
        document.forms[0].elements[0].value=a;
    }    
}  
</script>
</head><body>
Activate the "StartLoop" link below to start an infinite loop by script
execution.<br>
<a href="#" onclick="startLoop()">Start Loop</a><br>
<form><input></form>
</body>
</html>


A patch will be uploaded shortly

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list