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

Issue 1103213003: [Android] Avoid using ContentViewCore when detaching from RWHVAndroid (Closed)

Created:
5 years, 7 months ago by jdduke (slow)
Modified:
5 years, 7 months ago
Reviewers:
no sievers
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Avoid using ContentViewCore when detaching from RWHVAndroid The shutdown sequence for a given WebContents involves the ContentViewCore detaching itself from WebContentsViewAndroid. This in turn detaches the ContentViewCore from RenderWidgetHostViewAndroid. However, as the state of the ContentViewCore may be inconsistent during shutdown, calls into ContentViewCore during detachment may be unreliable. Avoid such calls by caching the WindowAndroid exposed by ContentViewCore; the window has stronger lifetime guarantees and can safely be used during detachment. BUG=479878, 464642 Committed: https://crrev.com/039f8ee45bcdcc61bf62f1f1f18a92b6a4a3958a Cr-Commit-Position: refs/heads/master@{#327401}

Patch Set 1 #

Patch Set 2 : Final usage #

Patch Set 3 : Proper build #

Total comments: 1

Patch Set 4 : Comment #

Total comments: 2

Patch Set 5 : Remove unnecessary change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 8 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jdduke (slow)
sievers@: I haven't been able to repro any of the crashes/issues from crbug.com/479878 and crbug.com/464642. ...
5 years, 7 months ago (2015-04-28 18:38:01 UTC) #2
no sievers
https://codereview.chromium.org/1103213003/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/1103213003/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1433 content/browser/renderer_host/render_widget_host_view_android.cc:1433: layer_->RemoveFromParent(); Why did you make this change? It seems ...
5 years, 7 months ago (2015-04-28 21:07:58 UTC) #3
jdduke (slow)
https://codereview.chromium.org/1103213003/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/1103213003/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1433 content/browser/renderer_host/render_widget_host_view_android.cc:1433: layer_->RemoveFromParent(); On 2015/04/28 21:07:58, sievers wrote: > Why did ...
5 years, 7 months ago (2015-04-28 21:58:45 UTC) #4
no sievers
lgtm
5 years, 7 months ago (2015-04-28 22:06:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1103213003/80001
5 years, 7 months ago (2015-04-28 22:16:29 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-04-29 00:22:27 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 00:23:19 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/039f8ee45bcdcc61bf62f1f1f18a92b6a4a3958a
Cr-Commit-Position: refs/heads/master@{#327401}

Powered by Google App Engine
This is Rietveld 408576698