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

Issue 2760343002: Only release the pointer lock when the RenderWidgetHost being destroyed (Closed)

Created:
3 years, 9 months ago by lfg
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis, alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Only release the pointer lock when the RenderWidgetHost being destroyed is the one holding the pointer lock. This fixes a crash where the WebContents would stop tracking which RenderWidgetHost was holding the pointer lock. BUG=703284 Review-Url: https://codereview.chromium.org/2760343002 Cr-Commit-Position: refs/heads/master@{#458446} Committed: https://chromium.googlesource.com/chromium/src/+/bf846a94da5c2b4f8ff93a7942d3d50799381675

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M content/browser/pointer_lock_browsertest.cc View 1 chunk +35 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (9 generated)
lfg
Charlie, please take a look.
3 years, 9 months ago (2017-03-21 14:59:44 UTC) #2
alexmos
LGTM
3 years, 9 months ago (2017-03-21 16:47:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2760343002/1
3 years, 9 months ago (2017-03-21 16:48:36 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/bf846a94da5c2b4f8ff93a7942d3d50799381675
3 years, 9 months ago (2017-03-21 17:09:38 UTC) #13
dgozman
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2763953003/ by dgozman@chromium.org. ...
3 years, 9 months ago (2017-03-21 20:47:21 UTC) #14
lfg
3 years, 9 months ago (2017-03-21 21:03:41 UTC) #15
Message was sent while issue was closed.
On 2017/03/21 20:47:21, dgozman wrote:
> A revert of this CL (patchset #1 id:1) has been created in
> https://codereview.chromium.org/2763953003/ by mailto:dgozman@chromium.org.
> 
> The reason for reverting is: Looks like this breaks
> PointerLockBrowserTest.PointerLockChildFrameDetached:
>
https://uberchromegw.corp.google.com/i/chromium.memory/builders/Mac%20ASan%20....

It doesn't break the test, the test was added in this CL.

This seems to be an issue with the lifetime of the RenderWidgetHostViewMac, see
the comment here:
https://cs.chromium.org/chromium/src/content/browser/renderer_host/render_wid....

For now, I'll reland this with the test disabled on Mac, as the change fixes the
#2 browser crash we have.

Powered by Google App Engine
This is Rietveld 408576698