Bug 11444 - REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value) when submitting a form with an empty uninitialized field
: REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt ...
Status: RESOLVED FIXED
: WebKit
Forms
: 420+
: Macintosh Mac OS X 10.4
: P1 Normal
Assigned To:
: data:text/html,<form><input><input%20...
: Regression
:
:
  Show dependency treegraph
 
Reported: 2006-10-28 06:46 PST by
Modified: 2006-10-29 21:56 PST (History)


Attachments
Layout test (2.48 KB, patch)
2006-10-29 10:49 PST, mitz@webkit.org
timothy: review+
Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-10-28 06:46:16 PST
If you open the URL in a debug build of TOT and click the Crash button you get
ASSERTION FAILED: Uncaught exception - *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value

This is coming from createNSDictionary (FrameMac.mm) when the second String in a pair, which is the form field's value, is a NULL string. Before r17378 it was converted to an empty NSString, but now it's converted to nil, which cannot be inserted into the NSDictionary.
------- Comment #1 From 2006-10-28 15:47:22 PST -------
Occurs when submitting Bugzilla comments (see Bug 10933 Comment #8).
------- Comment #2 From 2006-10-29 10:08:31 PST -------
Fixed in r17408. (I didn't know about this bug report when I fixed it.)
------- Comment #3 From 2006-10-29 10:10:01 PST -------
We need a layout test for this.
------- Comment #4 From 2006-10-29 10:49:38 PST -------
Created an attachment (id=11275) [details]
Layout test
------- Comment #5 From 2006-10-29 11:03:21 PST -------
Committed revision 17419.
------- Comment #6 From 2006-10-29 21:56:34 PST -------
(From update of attachment 11275 [details])
THis landed.