New issue
Advanced search Search tips

Issue 677789 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

need explanation on "This function must be called during a user gesture"

Reported by jimmy...@gmail.com, Jan 2 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce the problem:
1. load the extension in the attachment and inspect background page
2. right click on a page
3. click "test2" in the context menu

What is the expected behavior?
a permission requirements popup should appear

What went wrong?
in developer console: test2 error: This function must be called during a user gesture

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

test1 and test2 works fine, the differences between them:

test1: calls chrome.permission.request right away
test2: in a chrome.storage.sync.get callback
test3: test2 in a chrome.notifications.create callback

I think we need a clear guideline on how not to break a user gesture chain.
 

Comment 1 by jimmy...@gmail.com, Jan 2 2017

updated demo
must-user-gesture-demo.zip
1012 bytes Download
Labels: M-57 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Windows-10, Ubuntu 14.04 and Mac OS 10.12 using chrome latest stable M55-55.0.2883.87 by following steps mentioned in the original comment. Observed test2 error: This function must be called during a user gesture in console.

Tested the same on chrome earlier version of M35-35.0.1849.0 and observed the extensions is not getting supported and clicking on right click no "test 2" option available in context menu. This issue is observed on M48-48.0.2562.0 as well. Considering this to be a non-regression issue and marking it as untriaged.

Thanks!
Components: -Blink>PermissionsAPI Platform>Apps

Comment 4 by benl...@mobify.me, Jun 30 2017

As noted in https://bugs.chromium.org/p/chromium/issues/detail?id=735097 the same issue is present if the action takes place in a Promise chain.

Sign in to add a comment