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

Issue 1410333012: Update WebView visibility during attach/detach (Closed)

Created:
5 years, 1 month ago by hush (inactive)
Modified:
5 years, 1 month ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update WebView visibility during attach/detach Whether WebView is attached to window is factored into the page visibility. So when the condition changes, WebView needs to update the visibility. BUG=550532 Committed: https://crrev.com/c983c0d13e74c4c1c4f90e276e8c0bd0dc8d5716 Cr-Commit-Position: refs/heads/master@{#357723}

Patch Set 1 #

Patch Set 2 : use post task to fix the visibility flip #

Total comments: 1

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Only post task when necessary to fix tests. #

Total comments: 2

Patch Set 5 : reuse runnable object #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 32 (7 generated)
hush (inactive)
Hi Bo, PTAL. So during detachFromWindow, the window visibility first becomes invisible, setting the CVC ...
5 years, 1 month ago (2015-11-03 02:47:16 UTC) #2
boliu
lgtm On 2015/11/03 02:47:16, hush wrote: > Hi Bo, > PTAL. > So during detachFromWindow, ...
5 years, 1 month ago (2015-11-03 02:49:10 UTC) #3
hush (inactive)
On 2015/11/03 02:49:10, boliu wrote: > lgtm > > On 2015/11/03 02:47:16, hush wrote: > ...
5 years, 1 month ago (2015-11-03 19:55:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410333012/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410333012/1
5 years, 1 month ago (2015-11-03 19:58:17 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/90803)
5 years, 1 month ago (2015-11-03 21:13:42 UTC) #8
hush (inactive)
On 2015/11/03 21:13:42, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-11-03 21:29:45 UTC) #9
boliu
On 2015/11/03 21:29:45, hush wrote: > On 2015/11/03 21:13:42, commit-bot: I haz the power wrote: ...
5 years, 1 month ago (2015-11-03 22:02:39 UTC) #10
hush (inactive)
PTAL ps2. I think the hidden assumption is that onAttachedToWindow and onWindowVisibilityChanged are called in ...
5 years, 1 month ago (2015-11-03 22:03:10 UTC) #11
boliu
https://codereview.chromium.org/1410333012/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1410333012/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2369 android_webview/java/src/org/chromium/android_webview/AwContents.java:2369: mHandler.post(new Runnable() { Can you not post more than ...
5 years, 1 month ago (2015-11-03 22:05:46 UTC) #12
hush (inactive)
On 2015/11/03 22:02:39, boliu wrote: > On 2015/11/03 21:29:45, hush wrote: > > On 2015/11/03 ...
5 years, 1 month ago (2015-11-03 22:07:54 UTC) #13
hush (inactive)
On 2015/11/03 22:05:46, boliu wrote: > https://codereview.chromium.org/1410333012/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java > File android_webview/java/src/org/chromium/android_webview/AwContents.java > (right): > > https://codereview.chromium.org/1410333012/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2369 ...
5 years, 1 month ago (2015-11-03 22:09:59 UTC) #14
boliu
On 2015/11/03 22:09:59, hush wrote: > On 2015/11/03 22:05:46, boliu wrote: > > > https://codereview.chromium.org/1410333012/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java ...
5 years, 1 month ago (2015-11-03 22:13:03 UTC) #15
boliu
On 2015/11/03 22:13:03, boliu wrote: > On 2015/11/03 22:09:59, hush wrote: > > On 2015/11/03 ...
5 years, 1 month ago (2015-11-03 22:14:28 UTC) #16
boliu
https://codereview.chromium.org/1410333012/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1410333012/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode327 android_webview/java/src/org/chromium/android_webview/AwContents.java:327: private class UpdateVisibilityRunnable implements Runnable { Don't really need ...
5 years, 1 month ago (2015-11-03 23:15:24 UTC) #17
hush (inactive)
okay.. so we run into a pretty grey area here: you can't always post task ...
5 years, 1 month ago (2015-11-03 23:32:47 UTC) #18
boliu
On 2015/11/03 23:32:47, hush wrote: > This leads me to think that post task should ...
5 years, 1 month ago (2015-11-03 23:35:02 UTC) #19
hush (inactive)
On 2015/11/03 23:35:02, boliu wrote: > On 2015/11/03 23:32:47, hush wrote: > > This leads ...
5 years, 1 month ago (2015-11-04 00:44:04 UTC) #20
hush (inactive)
https://codereview.chromium.org/1410333012/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1410333012/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode327 android_webview/java/src/org/chromium/android_webview/AwContents.java:327: private class UpdateVisibilityRunnable implements Runnable { On 2015/11/03 23:15:24, ...
5 years, 1 month ago (2015-11-04 00:44:13 UTC) #21
boliu
lgtm if bot agrees, so glad we have tests that actually catch things :) https://codereview.chromium.org/1410333012/diff/60001/android_webview/java/src/org/chromium/android_webview/AwContents.java ...
5 years, 1 month ago (2015-11-04 00:49:03 UTC) #22
hush (inactive)
https://codereview.chromium.org/1410333012/diff/60001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1410333012/diff/60001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2376 android_webview/java/src/org/chromium/android_webview/AwContents.java:2376: mHandler.post(new Runnable() { On 2015/11/04 00:49:02, boliu wrote: > ...
5 years, 1 month ago (2015-11-04 01:00:35 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410333012/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410333012/80001
5 years, 1 month ago (2015-11-04 01:08:45 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-04 01:38:31 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410333012/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410333012/80001
5 years, 1 month ago (2015-11-04 01:46:37 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-04 01:53:54 UTC) #31
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 01:54:55 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c983c0d13e74c4c1c4f90e276e8c0bd0dc8d5716
Cr-Commit-Position: refs/heads/master@{#357723}

Powered by Google App Engine
This is Rietveld 408576698