RESOLVED FIXED99826
Web Inspector: Crash when adding a keyframes rule in the Styles pane
https://bugs.webkit.org/show_bug.cgi?id=99826
Summary Web Inspector: Crash when adding a keyframes rule in the Styles pane
Alexander Pavlov (apavlov)
Reported 2012-10-19 03:15:20 PDT
In the Styles pane, add a new CSS rule with the selector "@-webkit-keyframes shake" (unquoted). Bam! Upstreaming http://code.google.com/p/chromium/issues/detail?id=156516
Attachments
Patch (5.35 KB, patch)
2012-10-19 05:43 PDT, Alexander Pavlov (apavlov)
no flags
Patch (9.08 KB, patch)
2012-10-19 06:31 PDT, Alexander Pavlov (apavlov)
no flags
Alexander Pavlov (apavlov)
Comment 1 2012-10-19 05:43:10 PDT
Pavel Feldman
Comment 2 2012-10-19 05:52:28 PDT
Comment on attachment 169605 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169605&action=review > Source/WebCore/inspector/InspectorStyleSheet.cpp:816 > + CSSParser p(m_pageStyleSheet->ownerDocument() ? CSSParserContext(m_pageStyleSheet->ownerDocument()) : strictCSSParserContext()); We use different parser constructors in this class. Why? Could we introduce factory methods with descriptive names? > Source/WebCore/inspector/InspectorStyleSheet.cpp:821 > + return 0; Do you want to extract this into a separate method? > Source/WebCore/inspector/InspectorStyleSheet.cpp:845 > + m_pageStyleSheet->deleteRule(lastRuleIndex, ec); You should assign exception code there. > LayoutTests/inspector/styles/styles-add-new-rule.html:59 > + function step6() Please add test per case.
Alexander Pavlov (apavlov)
Comment 3 2012-10-19 06:31:13 PDT
WebKit Review Bot
Comment 4 2012-10-23 08:57:43 PDT
Comment on attachment 169610 [details] Patch Clearing flags on attachment: 169610 Committed r132229: <http://trac.webkit.org/changeset/132229>
WebKit Review Bot
Comment 5 2012-10-23 08:57:47 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.