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 Jan 19, 2022
1 parent c1e9d5f commit b24d80d
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 @@ -1397,6 +1397,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 b24d80d

Please sign in to comment.