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

Issue 2112923002: Fix crash when destroying a RenderWidgetHost that holds the pointer (Closed)

Created:
4 years, 5 months ago by lfg
Modified:
4 years, 5 months ago
Reviewers:
Charlie Reis, alexmos, nasko
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when destroying a RenderWidgetHost that holds the pointer lock. This CL fixes two separate issues. One is that when a CrossProcessFrameConnector is being destroyed, if the RenderWidgetHostViewChildFrame holds the mouse lock it must unlock the mouse. The second issue is that when flash holds a fullscreen pointer lock and releases it, the WebContents is notified of the lost mouse lock, even though it was never notified that the mouse lock was acquired (because flash has extra privileges to acquire the lock). BUG=619571 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/ad824435a11fa19a1707c5e4af5dc405fe4fe708 Cr-Commit-Position: refs/heads/master@{#405195}

Patch Set 1 #

Total comments: 11

Patch Set 2 : addressing comments #

Patch Set 3 : fixing flash fullscreen #

Patch Set 4 : send privileged request through webcontents #

Total comments: 6

Patch Set 5 : rebase #

Patch Set 6 : addressing comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -22 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 2 chunks +12 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 4 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (24 generated)
lfg
Nasko, please take a look.
4 years, 5 months ago (2016-06-30 18:25:17 UTC) #3
lfg
+Charlie, can you review since nasko@ is away?
4 years, 5 months ago (2016-07-06 16:52:49 UTC) #5
Charlie Reis
Thanks for working on the fix here. I'm not sure I understand it, though. Can ...
4 years, 5 months ago (2016-07-06 17:41:47 UTC) #6
Charlie Reis
Oh, and is there a way to add a test for this? It looks like ...
4 years, 5 months ago (2016-07-06 17:43:03 UTC) #7
lfg
Please take a look. I've updated the CL description and added a test. I've also ...
4 years, 5 months ago (2016-07-07 20:17:35 UTC) #11
Charlie Reis
Thanks. (Sounds subtle to get this right!) LGTM with nits. https://codereview.chromium.org/2112923002/diff/1/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/2112923002/diff/1/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode82 ...
4 years, 5 months ago (2016-07-07 21:47:13 UTC) #12
lfg
alexmos@chromium.org: Please review changes in site_per_process_interactive_browsertest.cc https://codereview.chromium.org/2112923002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc File chrome/browser/site_per_process_interactive_browsertest.cc (right): https://codereview.chromium.org/2112923002/diff/60001/chrome/browser/site_per_process_interactive_browsertest.cc#newcode767 chrome/browser/site_per_process_interactive_browsertest.cc:767: "removeChild(document.querySelector('iframe'))")); On 2016/07/07 ...
4 years, 5 months ago (2016-07-11 19:11:30 UTC) #14
alexmos
Test LGTM.
4 years, 5 months ago (2016-07-11 20:04:43 UTC) #15
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/2112923002/100001
4 years, 5 months ago (2016-07-11 20:07:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190444)
4 years, 5 months ago (2016-07-11 22:27:46 UTC) #20
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/2112923002/100001
4 years, 5 months ago (2016-07-11 23:08:30 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190600)
4 years, 5 months ago (2016-07-12 03:12:23 UTC) #24
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/2112923002/100001
4 years, 5 months ago (2016-07-12 19:17:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191681)
4 years, 5 months ago (2016-07-12 22:16:20 UTC) #28
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/2112923002/100001
4 years, 5 months ago (2016-07-13 15:12:52 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/217219) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 15:17:09 UTC) #32
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/2112923002/120001
4 years, 5 months ago (2016-07-13 16:50:26 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-13 16:56:07 UTC) #41
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 16:56:41 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 16:57:37 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ad824435a11fa19a1707c5e4af5dc405fe4fe708
Cr-Commit-Position: refs/heads/master@{#405195}

Powered by Google App Engine
This is Rietveld 408576698