[Webkit-unassigned] [Bug 52143] New: 100% CPU usage with exeCommand
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 10 02:32:57 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52143
Summary: 100% CPU usage with exeCommand
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: Normal
Priority: P1
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: skylined at chromium.org
CC: eric at webkit.org
Created an attachment (id=78385)
--> (https://bugs.webkit.org/attachment.cgi?id=78385&action=review)
Repro
Chromium bug: http://code.google.com/p/chromium/issues/detail?id=69042
Repro:
<script>
function go() {
var iInterval = setInterval(repro, 100);
setTimeout(function() {
clearTimeout(iInterval);
document.body.innerHTML = 'PASS';
}, 1000);
}
function repro() {
document.designMode="on";
document.execCommand("selectall",false);
document.execCommand("InsertImage",false);
document.execCommand("SelectAll");
document.execCommand("insertorderedlist");
document.execCommand("Outdent");
document.execCommand("justifyleft",false);
document.execCommand("Underline",false);
document.execCommand("insertorderedlist",false);
document.execCommand("InsertHorizontalRule");
document.execCommand("Indent");
document.execCommand("SelectAll",false);
document.execCommand("justifycenter");
document.execCommand("InsertHorizontalRule",false);
document.execCommand("insertorderedlist",false);
document.execCommand("selectall",false);
document.execCommand("RemoveFormat");
document.execCommand("justifyright",false);
document.execCommand("insertorderedlist");
document.execCommand("indent");
document.execCommand("justifycenter");
document.execCommand("Indent");
document.execCommand("insertunorderedlist",false);
document.execCommand("Indent",false);
document.execCommand("InsertImage",false);
document.execCommand("InsertParagraph",false);
document.execCommand("delete",false);
document.execCommand("selectall",false);
document.execCommand("justifyright");
document.execCommand("Outdent");
document.execCommand("underline");
document.execCommand("InsertParagraph");
document.execCommand("inserthorizontalrule",false);
document.execCommand("Outdent");
document.execCommand("insertorderedlist");
document.execCommand("selectall",false);
document.execCommand("Outdent",false);
document.execCommand("Outdent",false);
}
</script>
<body onload="go();"></body>
The repro can probably be reduced a lot further. It should show "PASS" after running for 1 second, but it ends up in an infinite loop and uses 100% CPU forever.
--
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