Summary: | REGRESSION: Crash when control-clicking on an image for contextual menu | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniele Metilli <daniele.metilli> | ||||
Component: | New Bugs | Assignee: | Beth Dakin <bdakin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Major | CC: | bdakin | ||||
Priority: | P1 | Keywords: | NeedsReduction, Regression | ||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
URL: | http://www.gathering.nl/discographie.php | ||||||
Attachments: |
|
Description
Daniele Metilli
2007-01-08 04:17:57 PST
Confirmed using locally-built debug build of WebKit r18658 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8L127). Stack trace: Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000018 Thread 0 Crashed: 0 com.apple.WebCore 0x017f13f8 WebCore::RetainPtr<NSMutableArray>::get() const + 20 (RetainPtr.h:74) 1 com.apple.WebCore 0x014f6e10 WebCore::ContextMenu::platformDescription() const + 40 (ContextMenuMac.mm:135) 2 com.apple.WebKit 0x003517e8 -[WebHTMLView menuForEvent:] + 372 (WebHTMLView.m:2555) 3 com.apple.AppKit 0x93767830 -[NSWindow sendEvent:] + 4520 4 com.apple.Safari 0x00021734 0x1000 + 132916 5 com.apple.AppKit 0x937108d4 -[NSApplication sendEvent:] + 4172 6 com.apple.Safari 0x00021238 0x1000 + 131640 7 com.apple.AppKit 0x93707d10 -[NSApplication run] + 508 8 com.apple.AppKit 0x937f887c NSApplicationMain + 452 9 com.apple.Safari 0x0005c77c 0x1000 + 374652 10 com.apple.Safari 0x0005c624 0x1000 + 374308 Oooh, i see what's going on here. we are missing a nil check. I will have a patch soon. Created attachment 12307 [details]
Nil-check and code clean-up
Comment on attachment 12307 [details]
Nil-check and code clean-up
r=me, although it would be nice if you could go ahead and change every line of ContextMenu::populate again.
|