Bug 21038

Summary: Uncaught exceptions in regex replace callbacks crash webkit
Product: WebKit Reporter: Mark Luffel <markluffel>
Component: JavaScriptCoreAssignee: Geoffrey Garen <ggaren>
Severity: Critical CC: mrowe
Priority: P1 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://notlime.com/2008/regex_replace_callback_exceptions.html
Description Flags
patch oliver: review+

Description Mark Luffel 2008-09-23 13:55:49 PDT
Any javascript exception thrown from the callback to a string replacement will cause a crash. Catching the exception within the callback prevents the crash.

This is a regression relative to Safari 3.1.2
The bug is present in r35203 and r36766.
Comment 1 Mark Rowe (bdash) 2008-09-23 14:12:43 PDT
Comment 2 Geoffrey Garen 2008-09-23 23:37:30 PDT
Created attachment 23739 [details]
Comment 3 Geoffrey Garen 2008-09-23 23:44:35 PDT
Committed revision 36842.