Release pointer lock when page state is reset for any reason, not just for process...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2017 19:23:48 +0000 (19:23 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2017 19:23:48 +0000 (19:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166654
<rdar://problem/29849769>

Patch by Jeremy Jones <jeremyj@apple.com> on 2017-01-04
Reviewed by Tim Horton.

Pointer lock was not being released when the window is closed.
Move the pointer lock to resetState() so it happens whenever the page is
reset, not just when it is reset after process exit.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::resetState): Release here.
(WebKit::WebPageProxy::resetStateAfterProcessExited): Don't release here.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210281 268f45cc-cd09-0410-ab3c-d52691b4dbfc


No differences found