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

Issue 179123002: Fix bug causing blank pages on resume of Chrome for Android. (Closed)

Created:
6 years, 9 months ago by Yaron
Modified:
6 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, ppi, Ted C, klobag.chromium, joth
Visibility:
Public.

Description

Fix bug causing blank pages on resume of Chrome for Android. https://codereview.chromium.org/14297022 had a faulty assumption that RenderProcessHost would be unique in the face of the underly RenderProcess crashing. This is not the case, so listen for the appropriate callback on RenderProcessHostObserver until the refactoring discussed in the above is complete. BUG=321610 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256153

Patch Set 1 #

Patch Set 2 : reitveld #

Total comments: 10

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Make SuspendedProcessWatcher a full-fledge class and clean up properly #

Patch Set 5 : add dchecks for strictness #

Total comments: 2

Patch Set 6 : add hasconnection check #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -25 lines) Patch
M content/browser/android/content_view_statics.cc View 1 2 3 4 5 3 chunks +52 lines, -25 lines 1 comment Download

Messages

Total messages: 22 (0 generated)
Yaron
This is a continuation of https://codereview.chromium.org/14297022 in spirit. While it doesn't do the clean-up (that ...
6 years, 9 months ago (2014-02-25 00:48:00 UTC) #1
Philippe
Thanks Yaron, great find! LGTM https://codereview.chromium.org/179123002/diff/20001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://codereview.chromium.org/179123002/diff/20001/content/browser/android/content_view_statics.cc#newcode38 content/browser/android/content_view_statics.cc:38: base::LazyInstance<std::vector<int /* process id ...
6 years, 9 months ago (2014-02-25 09:41:12 UTC) #2
Yaron
https://codereview.chromium.org/179123002/diff/20001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://codereview.chromium.org/179123002/diff/20001/content/browser/android/content_view_statics.cc#newcode38 content/browser/android/content_view_statics.cc:38: base::LazyInstance<std::vector<int /* process id */> > g_suspended_processes = On ...
6 years, 9 months ago (2014-02-25 18:14:47 UTC) #3
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 9 months ago (2014-02-25 18:15:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/179123002/40001
6 years, 9 months ago (2014-02-25 18:20:31 UTC) #5
bulach
late lgtm, thanks!
6 years, 9 months ago (2014-02-25 18:21:24 UTC) #6
benm (inactive)
On 2014/02/25 18:21:24, bulach wrote: > late lgtm, thanks! I don't think that this can ...
6 years, 9 months ago (2014-02-25 18:31:37 UTC) #7
Yaron
On 2014/02/25 18:31:37, benm wrote: > On 2014/02/25 18:21:24, bulach wrote: > > late lgtm, ...
6 years, 9 months ago (2014-02-25 19:28:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/179123002/40001
6 years, 9 months ago (2014-02-25 21:51:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/179123002/40001
6 years, 9 months ago (2014-02-25 22:16:01 UTC) #10
klobag.chromium
https://chromiumcodereview.appspot.com/179123002/diff/40001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://chromiumcodereview.appspot.com/179123002/diff/40001/content/browser/android/content_view_statics.cc#newcode71 content/browser/android/content_view_statics.cc:71: host->AddObserver(g_suspended_processes_watcher.Pointer()); Hmm, are we calling this every time in ...
6 years, 9 months ago (2014-02-25 22:19:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/179123002/40001
6 years, 9 months ago (2014-02-25 23:19:27 UTC) #12
Yaron
The CQ bit was unchecked by yfriedman@chromium.org
6 years, 9 months ago (2014-02-25 23:29:29 UTC) #13
ppi
Thanks, Yaron! How about adding: DCHECK(shared_timer_suspended_ > 0); at the beginning of WebKitPlatformSupportImpl::ResumeSharedTimer() ?
6 years, 9 months ago (2014-02-26 14:16:01 UTC) #14
Yaron
ppi: thats' being handled in https://codereview.chromium.org/181823006/ https://codereview.chromium.org/179123002/diff/40001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://codereview.chromium.org/179123002/diff/40001/content/browser/android/content_view_statics.cc#newcode71 content/browser/android/content_view_statics.cc:71: host->AddObserver(g_suspended_processes_watcher.Pointer()); On 2014/02/25 ...
6 years, 9 months ago (2014-03-08 00:56:01 UTC) #15
klobag.chromium
https://codereview.chromium.org/179123002/diff/80001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://codereview.chromium.org/179123002/diff/80001/content/browser/android/content_view_statics.cc#newcode63 content/browser/android/content_view_statics.cc:63: host->AddObserver(this); should we only do so if host has ...
6 years, 9 months ago (2014-03-11 00:36:18 UTC) #16
Yaron
https://codereview.chromium.org/179123002/diff/80001/content/browser/android/content_view_statics.cc File content/browser/android/content_view_statics.cc (right): https://codereview.chromium.org/179123002/diff/80001/content/browser/android/content_view_statics.cc#newcode63 content/browser/android/content_view_statics.cc:63: host->AddObserver(this); On 2014/03/11 00:36:19, klobag.chromium wrote: > should we ...
6 years, 9 months ago (2014-03-11 00:41:23 UTC) #17
klobag.chromium
lgtm
6 years, 9 months ago (2014-03-11 00:43:40 UTC) #18
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 9 months ago (2014-03-11 00:55:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/179123002/100001
6 years, 9 months ago (2014-03-11 01:04:07 UTC) #20
commit-bot: I haz the power
Change committed as 256153
6 years, 9 months ago (2014-03-11 09:13:23 UTC) #21
benm (inactive)
6 years, 6 months ago (2014-06-17 17:03:02 UTC) #22
Message was sent while issue was closed.
Sorry to revive an old CL, but seems to be breaking some WebView compatibility
cases ... :-/

https://codereview.chromium.org/179123002/diff/100001/content/browser/android...
File content/browser/android/content_view_statics.cc (right):

https://codereview.chromium.org/179123002/diff/100001/content/browser/android...
content/browser/android/content_view_statics.cc:63: if (host->HasConnection()) {
Why do we add this check here?

This seems to be causing a compatibility break for WebView where an app calls
pauseTimers before navigating to the initial document and expects that page to
be loaded with the shared timer paused. Do you think that removing it would
cause an issue for Chrome?

Powered by Google App Engine
This is Rietveld 408576698