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

Issue 2849873002: [Android WebAPK] Don't navigate WebAPK as a result of WindowClient.focus() (Closed)

Created:
3 years, 7 months ago by pkotwicz
Modified:
3 years, 7 months ago
Reviewers:
dominickn, Xi Han, Yaron
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebAPK] Don't navigate WebAPK as a result of WindowClient.focus() This CL makes WindowClient.Focus() not navigate the WebAPK if the WebAPK is already open. When a user taps on a Twitter notification, the following race condition occurs: - The service worker uses postMessage() and the main page navigates by setting window.location.href - The service worker calls WindowClient.Focus(). This causes a navigation to the current page This CL will remove the race by making WindowClient.Focus() not do any navigation if the WebAPK is already running BUG=711011 Review-Url: https://codereview.chromium.org/2849873002 Cr-Commit-Position: refs/heads/master@{#472327} Committed: https://chromium.googlesource.com/chromium/src/+/dcab9933793a5bb76c6627541211f86c20d6a5b2

Patch Set 1 #

Patch Set 2 : Merge branch 'master' into test2000 #

Patch Set 3 : Merge branch 'master' into twitter #

Total comments: 5

Patch Set 4 : Merge branch 'master' into twitter #

Messages

Total messages: 40 (17 generated)
pkotwicz
Xi, can you please take a look?
3 years, 7 months ago (2017-04-28 14:57:35 UTC) #2
Xi Han
Thanks for fixing it! lgtm
3 years, 7 months ago (2017-05-01 19:04:05 UTC) #4
pkotwicz
Dominick for OWNERS
3 years, 7 months ago (2017-05-03 01:28:59 UTC) #6
dominickn
webapps lgtm
3 years, 7 months ago (2017-05-03 01:52:03 UTC) #7
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/2849873002/60001
3 years, 7 months ago (2017-05-04 19:17:59 UTC) #10
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/427627)
3 years, 7 months ago (2017-05-04 19:27:26 UTC) #12
pkotwicz
Yaron for chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java OWNERS
3 years, 7 months ago (2017-05-05 20:47:49 UTC) #14
Yaron
have you tested the case of inside a webapk, clicking a link to external app ...
3 years, 7 months ago (2017-05-08 16:51:47 UTC) #15
Yaron
https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/shell_apk_version.gni File chrome/android/webapk/shell_apk/shell_apk_version.gni (right): https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/shell_apk_version.gni#newcode9 chrome/android/webapk/shell_apk/shell_apk_version.gni:9: template_shell_apk_version = 5 On 2017/05/08 16:51:47, Yaron (limited availability) ...
3 years, 7 months ago (2017-05-10 17:56:17 UTC) #16
pkotwicz
If a user taps a link inside a WebAPK which is a URL shortener which ...
3 years, 7 months ago (2017-05-10 19:00:07 UTC) #17
Yaron
On 2017/05/10 19:00:07, pkotwicz wrote: > If a user taps a link inside a WebAPK ...
3 years, 7 months ago (2017-05-11 14:54:45 UTC) #18
Yaron
https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java File chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java (right): https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java#newcode101 chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java:101: forceNavigation = getIntent().getBooleanExtra( wait, actually. so this means there ...
3 years, 7 months ago (2017-05-11 15:00:04 UTC) #19
pkotwicz
Yaron can you please take another look? https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java File chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java (right): https://codereview.chromium.org/2849873002/diff/60001/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java#newcode101 chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java:101: forceNavigation = ...
3 years, 7 months ago (2017-05-13 02:53:33 UTC) #20
Yaron
lgtm
3 years, 7 months ago (2017-05-15 15:24:36 UTC) #21
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/2849873002/60001
3 years, 7 months ago (2017-05-15 18:02:43 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/294028)
3 years, 7 months ago (2017-05-15 18:34:23 UTC) #25
Yaron
On 2017/05/15 18:34:23, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-05-16 16:01:32 UTC) #26
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/2849873002/80001
3 years, 7 months ago (2017-05-16 16:30:07 UTC) #29
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/371933)
3 years, 7 months ago (2017-05-16 17:56:58 UTC) #31
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/2849873002/80001
3 years, 7 months ago (2017-05-16 18:38:56 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/446346)
3 years, 7 months ago (2017-05-16 23:43:11 UTC) #35
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/2849873002/80001
3 years, 7 months ago (2017-05-17 01:12:20 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 04:41:06 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/dcab9933793a5bb76c6627541211...

Powered by Google App Engine
This is Rietveld 408576698