Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 10512011: Only set MouseLockDispatcher unlocked_by_target_ after mouse lock confirmed. (Closed)

Created:
8 years, 6 months ago by scheib
Modified:
8 years, 6 months ago
Reviewers:
piman, yzshen1, dmurph
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Only set MouseLockDispatcher unlocked_by_target_ after mouse lock confirmed. When a target application voluntarily unlocks the mouse we permit relocking the mouse silently and with no user gesture requirement. Check that the lock request is not currently pending and not yet accepted by the browser process before setting |unlocked_by_target_|. This corrects an ommision in https://chromiumcodereview.appspot.com/10443045/. It is very difficult to test this possible failure, as the requests must be processed by the renderer process before the browser process can respond to the IPCs. An attempt was made to create this exploit, but was not able to produce the failure. BUG=113460 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140598

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge to tip of tree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M content/renderer/mouse_lock_dispatcher.cc View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
yzshen1
https://chromiumcodereview.appspot.com/10512011/diff/1/content/renderer/mouse_lock_dispatcher.cc File content/renderer/mouse_lock_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10512011/diff/1/content/renderer/mouse_lock_dispatcher.cc#newcode48 content/renderer/mouse_lock_dispatcher.cc:48: // When a target application voluntarily unlocks the mouse ...
8 years, 6 months ago (2012-06-04 21:40:30 UTC) #1
scheib
https://chromiumcodereview.appspot.com/10512011/diff/1/content/renderer/mouse_lock_dispatcher.cc File content/renderer/mouse_lock_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10512011/diff/1/content/renderer/mouse_lock_dispatcher.cc#newcode48 content/renderer/mouse_lock_dispatcher.cc:48: // When a target application voluntarily unlocks the mouse ...
8 years, 6 months ago (2012-06-04 23:25:40 UTC) #2
yzshen1
LGTM Thanks!
8 years, 6 months ago (2012-06-04 23:50:55 UTC) #3
scheib
piman, owners review, please.
8 years, 6 months ago (2012-06-05 00:10:13 UTC) #4
piman
lgtm
8 years, 6 months ago (2012-06-05 00:21:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/10512011/1
8 years, 6 months ago (2012-06-05 02:41:08 UTC) #6
commit-bot: I haz the power
8 years, 6 months ago (2012-06-05 02:41:11 UTC) #7
Failed to apply patch for content/renderer/mouse_lock_dispatcher.cc:
While running patch -p1 --forward --force;
patching file content/renderer/mouse_lock_dispatcher.cc
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file
content/renderer/mouse_lock_dispatcher.cc.rej

Powered by Google App Engine
This is Rietveld 408576698