Created attachment 229676 [details] Reduction of issue CSS files with lines with over 500 characters in them (whitespace, non-whitespace) will freeze inspector and throw this exception: [Error] TypeError: undefined is not an object (evaluating 'state.stack.length') runInOp (codemirror.js, line 1972) operation (codemirror.js, line 4216) string (TextEditor.js, line 140) _populateWithContent (SourceCodeTextEditor.js, line 358) _contentAvailable (SourceCodeTextEditor.js, line 374) (anonymous function) ([native code], line 0) servicePendingContentRequests (SourceCode.js, line 238) _processContent (SourceCode.js, line 258) (anonymous function) ([native code], line 0) dispatch (InspectorBackend.js, line 231) dispatchNextQueuedMessageFromBackend (MessageDispatcher.js, line 31) (anonymous function) ([native code], line 0) To reproduce: 1. Open the attached file resources.webarchive. 2. Open the inspector and navigate to Resources. 3. Open 2_breaks.css. (throws the exception) 4. Open 3_finally.css. 5. File doesn't load, wheel spins.
<rdar://problem/16663653>
Fixed in https://bugs.webkit.org/show_bug.cgi?id=132090