need explanation on "This function must be called during a user gesture"
Reported by
jimmy...@gmail.com,
Jan 2 2017
|
|||
Issue descriptionUserAgent: 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.
,
Jan 3 2017
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!
,
Jan 4 2017
,
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 |
|||
Comment 1 by jimmy...@gmail.com
, Jan 2 20171012 bytes
1012 bytes Download