Bug 17603 - Crashes in CSSMutableStyleDeclaration while editing CSS on web page
Summary: Crashes in CSSMutableStyleDeclaration while editing CSS on web page
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.alternet.org/
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2008-02-29 03:19 PST by Matt Lilek
Modified: 2011-01-12 00:23 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Lilek 2008-02-29 03:19:06 PST
I haven't been able to pin down 100% reproducible, step by step instructions for reproducing this, but you can trigger it fairly easily within a couple minutes if you play around a bit.

First, set a personal style sheet and navigate to <http://www.alternet.org/> (my sheet consisted of one rule: div { background: purple; }).  Inspect a few elements and, thanks to bug 17602, scroll on down to the "inline" personal sheet you set and start editing the CSS.  You may need to jump around to a few different elements before you can get it to crash, and I always had to edit the property twice before it crashed (crashing while applying the 2nd edit).

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000065746175
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.WebCore             	0x01b6ead5 WebCore::StyleBase::parent() const + 9 (StyleBase.h:45)
1   com.apple.WebCore             	0x01b6fd92 WebCore::CSSMutableStyleDeclaration::setChanged(WebCore::StyleChangeType) + 146 (CSSMutableStyleDeclaration.cpp:469)
2   com.apple.WebCore             	0x01b71cc9 WebCore::CSSMutableStyleDeclaration::removeProperty(int, bool, bool, int&) + 445 (CSSMutableStyleDeclaration.cpp:441)
3   com.apple.WebCore             	0x01b72435 WebCore::CSSMutableStyleDeclaration::removeProperty(int, int&) + 57 (CSSMutableStyleDeclaration.cpp:512)
4   com.apple.WebCore             	0x01b9044a WebCore::CSSStyleDeclaration::removeProperty(WebCore::String const&, int&) + 80 (CSSStyleDeclaration.cpp:114)
5   com.apple.WebCore             	0x01db6a6c WebCore::jsCSSStyleDeclarationPrototypeFunctionRemoveProperty(KJS::ExecState*, KJS::JSObject*, KJS::List const&) + 202 (JSCSSStyleDeclaration.cpp:273)
Comment 1 Kenan Sulayman 2010-09-24 15:38:27 PDT
Cannot be replicated on WebKit 534.9. Maybe fixed in an earlier build?
Comment 2 Alexey Proskuryakov 2011-01-12 00:23:07 PST
The steps to reproduce cannot be followed, as bug 17602 has been fixed. There have been many fixes in CSSOM since 2008, and chances are that the underlying issue is also fixed.