[Webkit-unassigned] [Bug 122907] New: Web Inspector: Infinite loop when inspecting codepen.io websites

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 16 10:49:06 PDT 2013


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

           Summary: Web Inspector: Infinite loop when inspecting
                    codepen.io websites
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: achicu at adobe.com
                CC: timothy at apple.com, joepeck at webkit.org,
                    webkit-bug-importer at group.apple.com, graouts at apple.com


1. Open http://codepen.io/RachelSeale/pen/wBqyu
2. Right click and start the inspector
3. Make sure the DOM tree is selected
4. Hide the Styles panel
5. Close the Inspector
6. Start the inspector again and go to the DOM tree.

Result: Infinite loop in the WebInspector window and process goes up to 100% CPU usage.

There's a for (;;) loop in scrollCursorIntoView and it never gets out of it. Note that the line numbers in codemirror.js might be skewed as I needed to add some instrumentation to catch this.

scrollCursorIntoView at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/External/CodeMirror/codemirror.js:2634:35
endOperation at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/External/CodeMirror/codemirror.js:1389:27
runInOp at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/External/CodeMirror/codemirror.js:1436:39
operation at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/External/CodeMirror/codemirror.js:3214:42
_resetContent at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/CSSStyleDeclarationTextEditor.js:991:35
style at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/CSSStyleDeclarationTextEditor.js:127:27
refresh at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/ComputedStyleDetailsPanel.js:64:35
_refreshPreservingScrollPosition at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/StyleDetailsPanel.js:142:21
_nodeStylesRefreshed at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/StyleDetailsPanel.js:153:50
dispatch at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/Object.js:180:55
dispatchEventToListeners at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/Object.js:187:17
fetchedComputedStyle at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/DOMNodeStyles.js:243:42
fetchedComputedStyle@[native code]
dispatch at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/InspectorBackend.js:220:31
dispatchNextQueuedMessageFromBackend at file:///Users/achicu/code/webkit/WebKitBuild/named_flows/Release/WebInspectorUI.framework/Resources/Main.js:319:34
[native code]

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