https://bugs.webkit.org/show_bug.cgi?id=134776
Reviewed by Enrica Casucci.
Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
* WebView/WebView.mm:
(-[WebView _windowChangedKeyState]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170931
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-07-09 Ryosuke Niwa <rniwa@webkit.org>
+
+ REGRESSION(r167770): Cannot login in Evernote Safari extension
+ https://bugs.webkit.org/show_bug.cgi?id=134776
+
+ Reviewed by Enrica Casucci.
+
+ Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
+ so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
+
+ * WebView/WebView.mm:
+ (-[WebView _windowChangedKeyState]):
+
2014-07-09 Enrica Casucci <enrica@apple.com>
Implement Editor::fontAttributesForSelectionStart() or iOS.
- (NSView *)_hitTest:(NSPoint *)aPoint dragTypes:(NSSet *)types;
- (void)_autoscrollForDraggingInfo:(id)dragInfo timeDelta:(NSTimeInterval)repeatDelta;
- (BOOL)_shouldAutoscrollForDraggingInfo:(id)dragInfo;
+- (void)_windowChangedKeyState;
@end
@interface NSWindow (WebNSWindowDetails)
_private->page->chrome().windowScreenDidChange((PlatformDisplayID)[[[[[self window] screen] deviceDescription] objectForKey:@"NSScreenNumber"] intValue]);
}
+- (void)_windowChangedKeyState
+{
+ [self _updateActiveState];
+ [super _windowChangedKeyState];
+}
+
- (void)windowKeyStateChanged:(NSNotification *)notification
{
[self _updateActiveState];