I had a similar problem, and after debugging and reading the WebKit source, I found a solution. The most important part is presented to the WebHTMLView class , in particular, the method -[WebHTMLView _updateMouseoverWithEvent:] . There, check to see if the viewport is a key window and, of course, my window was not key, although I call it makeKeyWindow .
My window was a child window of the document window, and to solve the problem of freezing, I created a subclass of NSWindow and redid isKeyWindow as follows:
- (BOOL)isKeyWindow { return [super isKeyWindow] || [[self parentWindow] isKeyWindow]; }
This did the job of freezing in WebView in my document window.
source share