Chromium Code Reviews
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)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||