- fix bugzilla.opendarwin.org/show_bug.cgi?id=3784
<rdar://problem/
4483827> JavaScript save dialog disappears right away (sheet triggers blur event) (3784)
* WebView/WebHTMLView.m:
(-[WebHTMLView _updateFocusState]): Treat window as having focus if its sheet is key.
(-[WebHTMLView addWindowObservers]): Observe all focus notifications, not just the ones involving this window.
(-[WebHTMLView removeWindowObservers]): Ditto.
(-[WebHTMLView windowDidBecomeKey:]): Add checks so that we call the methods only when appropriate,
since this will now be called for all windows.
(-[WebHTMLView windowDidResignKey:]): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13431
268f45cc-cd09-0410-ab3c-
d52691b4dbfc