New issue
Advanced search Search tips

Issue 610718 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: ----



Sign in to add a comment

Events coming from CustomTabsCallback::onNavigationEvent are not symmetrical when switching screen off

Reported by jagger...@gmail.com, May 10 2016

Issue description

The event CustomTabsCallback::TAB_HIDDEN is always paired with CustomTabsCallback::TAB_SHOWN, except for the case when the screen is switched off (with hardware button).

Application Version (from "Chrome Settings > About Chrome"): 50.0.2661.89
Android Build Number (from "Android Settings > About Phone/Tablet"): LRX22G.T715XXU2APB2
Device: SM-T715

Steps to reproduce: 
Disable device's lock screen (device cannot be locked when screen is turned off)
Launch Chrome Tab
Switch Off the screen with hardware button (mind that the phone doesn't get locked)
Switch On the screen
Leave Chrome Tab

Observed behaviour (order of events (ignoring NAVIGATION_* events)):

TAB_SHOWN
TAB_HIDDEN
TAB_HIDDEN

Expected order of events (ignoring NAVIGATION_* events):

TAB_SHOWN
TAB_HIDDEN
TAB_SHOWN
TAB_HIDDEN

Frequency: 100 out of 100

Additional comments: Also happens when I share from Chrome Tabs as the system's share button is pausing the Chrome Tab's activity
 
Cc: yus...@chromium.org
Components: UI>Browser>Mobile>CustomTabs
Owner: ian...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 2 by ian...@chromium.org, Jan 26 2017

Cc: pasko@chromium.org
Owner: lizeb@chromium.org
There might be some tricky lifecycle related issues with how we send these signals to client, especially when there are share dialogs showing up, which pauses ChromeActivity.

I will reassign this to lizeb@, an expert of CCT Callbacks and Sessions.
Labels: Pri-2
Setting defect without priority to Pri-2.

Sign in to add a comment