Bug 214011

Summary: [iOS] WAKWindow should override -resignFirstResponder and clear state
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Daniel Bates 2020-07-06 16:02:14 PDT
WAKWindow maintains state of what the first responder and next responder are. I need way to clear this state when removing a UIWebView from its superview.
Comment 1 Radar WebKit Bug Importer 2020-07-06 16:02:31 PDT
<rdar://problem/65152410>
Comment 2 Daniel Bates 2020-07-06 16:05:18 PDT
Note that only -[WAKWindow close] ever nils out this state. -makeFirstResponder early returns if passed nil. In AppKit, -makeFirstResponder:nil would make the window first responder, but -firstResponder is in term of WAKView and there doesn't seem to be an existing concept of a "first responder" window.
Comment 3 Daniel Bates 2020-07-06 16:21:57 PDT
Created attachment 403631 [details]
Patch
Comment 4 Daniel Bates 2020-07-06 16:27:29 PDT
Thanks Tim!
Comment 5 Daniel Bates 2020-07-06 16:28:00 PDT
Comment on attachment 403631 [details]
Patch

Clearing flags on attachment: 403631

Committed r263995: <https://trac.webkit.org/changeset/263995>
Comment 6 Daniel Bates 2020-07-06 16:28:02 PDT
All reviewed patches have been landed.  Closing bug.