Bug 13957

Summary: REGRESSION (r21367): -[WebView becomeFirstResponder] throws an exception _oldFirstResponderBeforeBecoming is not a valid message outside of a responder's implementation of -becomeFirstResponder
Product: WebKit Reporter: mitz
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: mjs, timothy
Priority: P1 Keywords: InRadar, Regression
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   

Description mitz 2007-05-31 15:39:52 PDT
I have an application that calls -[WebView becomeFirstResponder] and it's throwing an exception:

NSWindow: -_oldFirstResponderBeforeBecoming is not a valid message outside of a responder's implementation of -becomeFirstResponder.

The call to -_oldFirstResponderBeforeBecoming was added in <http://trac.webkit.org/projects/webkit/changeset/21367>.
Comment 1 Adele Peterson 2007-08-30 14:55:47 PDT
<rdar://problem/5451537>
Comment 2 Adele Peterson 2007-08-30 16:45:13 PDT
Darin says that becomesFirstResponder is meant to be called by AppKit and not directly by applications.  Applications should call makeFirstResponder with the object.

Please reopen if you disagree