Skip to content

Commit

Permalink
chore: cancel active pending requests if denied
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 8, 2022
1 parent 66c8ab1 commit 77b0107
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/api/electron_api_web_contents.cc
Expand Up @@ -1403,6 +1403,9 @@ void WebContents::RequestExclusivePointerAccess(
if (allowed) {
exclusive_access_manager_->mouse_lock_controller()->RequestToLockMouse(
web_contents, user_gesture, last_unlocked_by_target);
} else {
web_contents->GotResponseToLockMouseRequest(
blink::mojom::PointerLockResult::kPermissionDenied);
}
}

Expand Down

0 comments on commit 77b0107

Please sign in to comment.