[Webkit-unassigned] [Bug 67446] New: Double-click hangs browser when there are many SVG elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 1 15:20:26 PDT 2011


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

           Summary: Double-click hangs browser when there are many SVG
                    elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aarongoertzen at hotmail.com
                CC: zimmermann at kde.org


The following HTML file reproduces the problem in Chrome and Safari. On page load a script inserts 15K SVG rectangles into the DOM. Then when you double-click on the completely unrelated div element the browser hangs for up to ten seconds before becoming responsive again. The duration of the hang seems to be proportional to the number of SVG rect elements in the DOM. When you insert many non-SVG elements there is no problem.

----- HTML -----


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    </head>
    <body style="height: 100%; width: 100%;">

    <div>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" id="svg"><defs></defs></svg>
    </div>

    <div ondblclick="alert('That took a while');">Double-click here</button>

    <script>

        for (var i = 0; i < 15000; i++) {
            n = document.createElement('rect');
            n.setAttribute('x', 0);
            n.setAttribute('y', 0);
            n.setAttribute('width', 100);
            n.setAttribute('height', 100);
            n.setAttribute('fill', 'blue');
            document.getElementById('svg').appendChild(n);

        }

    </script>




    </body>
</html>

-- 
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