New issue
Advanced search Search tips

Issue 729566 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Cannot use chrome.runtime.restart() call or onUpdateAvailable event

Project Member Reported by edholden@google.com, Jun 5 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)

What steps will reproduce the problem?
(1) Create and publish kiosk app with a chrome.runtime.restart() call trigged by an onUpdateAvailable event.
(2) Start a kiosk in the OU.
(3) Observe behavior.

What is the expected result?

When a new version of the app appears in the CWS, the app should restart, booting into the new app.

What happens instead?

The app does not restart.

I've actually tried these features independently to confirm that both do not work. I added a restart call to a function that runs in response to the onUpdateAvailable event, but it never updated the app, so I changed it to simply log a message to console the confirm that the event was happening. The event never happened, despite my pushing new versions to the CWS and waiting for publication, so instead I created a button in my app that calls chrome.runtime.restart directly, and as far as I can tell the API doesn't do anything.

I will add some logs for you using the process detailed here: https://support.google.com/chrome/a/answer/3293821?hl=en

But let me know if that's not the correct process.
 
Logs are at https://drive.google.com/a/google.com/file/d/0B654vdn67xFxZXJxeU5Vb3g2MDQ/view?usp=sharing

Prior to restarting, when I was in Kiosk mode, I pressed the Restart button in my app a few times, which should have run chrome.runtime.restart, but did not.
Cc: r...@chromium.org
Components: Enterprise UI>Shell>Kiosk
Labels: OS-Chrome
Owner: tbarzic@chromium.org
Status: Assigned (was: Untriaged)
Toni, can you please take a look?
Description: Show this description
Labels: -Pri-3 Pri-2
Project Member

Comment 5 by sheriffbot@chromium.org, Jul 13 2017

Labels: Hotlist-Google
Is there any update on this? We'd love to use the restart API with our app. Could it be that we need to enable an app permission that we haven't enabled? Is anyone known to be using this API successfully?

Comment 7 by edholden@google.com, Jan 17 2018

As an update, I was recently able to use this API after further testing. It is possible that this is no longer a bug, but whether that is because something in the API changed, or I corrected an error of mine, I can't be certain.

Feel free to mark this Fixed or WontFix, depending on the circumstances.

Sign in to add a comment