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

Issue 2417463003: Account for failure of coordinate space transformations in browser (Closed)

Created:
4 years, 2 months ago by kenrb
Modified:
4 years, 2 months ago
Reviewers:
ncarter (slow)
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, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Account for failure of coordinate space transformations in browser In some situations, DCHECKs were triggering due to failed transformations of points between cc::Surface coordinate spaces. This is because of raciness that can occur when we cache RenderWidgetHostView pointers: specifically, if the RWHV has changed its Surface due to (for example) a resize, and the new SurfaceID has not yet propagated through an embedding renderer process and back to the browser, then the browser process does not have enough information to compute the transformation. This CL allows the RenderWidgetHostInputEventRouter to handle that situation gracefully, rather than hitting a DCHECK. BUG=647311 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/9380a25fe8cc25c6c588218a2af44f34a4d115be Cr-Commit-Position: refs/heads/master@{#425316}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -129 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 2 chunks +2 lines, -14 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.h View 1 2 1 chunk +13 lines, -10 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 chunk +28 lines, -19 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 1 chunk +13 lines, -8 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 2 1 chunk +11 lines, -10 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 1 chunk +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.cc View 1 4 chunks +17 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 1 chunk +14 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 1 chunk +10 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 1 chunk +9 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 1 chunk +14 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
kenrb
Nick: PTAL?
4 years, 2 months ago (2016-10-12 23:59:36 UTC) #11
ncarter (slow)
lgtm, just comments https://codereview.chromium.org/2417463003/diff/20001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/2417463003/diff/20001/content/browser/frame_host/cross_process_frame_connector.h#newcode101 content/browser/frame_host/cross_process_frame_connector.h:101: // converted to the root surface's ...
4 years, 2 months ago (2016-10-13 20:34:42 UTC) #12
kenrb
Thanks for the review. https://codereview.chromium.org/2417463003/diff/20001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/2417463003/diff/20001/content/browser/frame_host/cross_process_frame_connector.h#newcode101 content/browser/frame_host/cross_process_frame_connector.h:101: // converted to the root ...
4 years, 2 months ago (2016-10-14 13:02:43 UTC) #13
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/2417463003/40001
4 years, 2 months ago (2016-10-14 13:03:05 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-14 14:22:06 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 14:24:04 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9380a25fe8cc25c6c588218a2af44f34a4d115be
Cr-Commit-Position: refs/heads/master@{#425316}

Powered by Google App Engine
This is Rietveld 408576698