{"action":"opened","number":3659,"pull_request":{"url":"https://api.github.com/repos/whatwg/html/pulls/3659","id":185192994,"html_url":"https://github.com/whatwg/html/pull/3659","diff_url":"https://github.com/whatwg/html/pull/3659.diff","patch_url":"https://github.com/whatwg/html/pull/3659.patch","issue_url":"https://api.github.com/repos/whatwg/html/issues/3659","number":3659,"state":"open","locked":false,"title":"Treat trusted `contextmenu` events as user activation.","user":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars3.githubusercontent.com/u/8505377?v=4","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"body":"The `contextmenu` event should be considered a user activation because it indicates that the user is interacting with the page.\r\n\r\nFirefox already treats `contextmenu` events as user activation, hence allows web apps to use restricted APIs like `navigator.vibrate()`.  In Chromium, we are [on track](https://www.chromestatus.com/feature/5726389672083456) to match the Firefox behavior because on mobile platforms, a web app should be able to mimic the native behavior of vibrating the device on long-press gestures (which fire `contextmenu` events).  Here is a [demo](output.jsbin.com/bonadab).\r\n\r\nNote that on desktop, both Chromium and Firefox already treat `contextmenu` events as user activation (e.g. `navigator.vibrate` returns `true` in the above demo).\r\n\r\nThis PR is remotely related to #1903 (which is a work in progress in Chromium).\r\n\r\n","created_at":"2018-05-01T14:43:06Z","updated_at":"2018-05-01T14:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/whatwg/html/pulls/3659/commits","review_comments_url":"https://api.github.com/repos/whatwg/html/pulls/3659/comments","review_comment_url":"https://api.github.com/repos/whatwg/html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whatwg/html/issues/3659/comments","statuses_url":"https://api.github.com/repos/whatwg/html/statuses/fb78d9e722a05ab7a1d856e10bb4db6c116bc800","head":{"label":"mustaqahmed:master","ref":"master","sha":"fb78d9e722a05ab7a1d856e10bb4db6c116bc800","user":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars3.githubusercontent.com/u/8505377?v=4","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"repo":{"id":131719723,"name":"html","full_name":"mustaqahmed/html","owner":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars3.githubusercontent.com/u/8505377?v=4","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mustaqahmed/html","description":"HTML Standard","fork":true,"url":"https://api.github.com/repos/mustaqahmed/html","forks_url":"https://api.github.com/repos/mustaqahmed/html/forks","keys_url":"https://api.github.com/repos/mustaqahmed/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mustaqahmed/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mustaqahmed/html/teams","hooks_url":"https://api.github.com/repos/mustaqahmed/html/hooks","issue_events_url":"https://api.github.com/repos/mustaqahmed/html/issues/events{/number}","events_url":"https://api.github.com/repos/mustaqahmed/html/events","assignees_url":"https://api.github.com/repos/mustaqahmed/html/assignees{/user}","branches_url":"https://api.github.com/repos/mustaqahmed/html/branches{/branch}","tags_url":"https://api.github.com/repos/mustaqahmed/html/tags","blobs_url":"https://api.github.com/repos/mustaqahmed/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mustaqahmed/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mustaqahmed/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/mustaqahmed/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mustaqahmed/html/statuses/{sha}","languages_url":"https://api.github.com/repos/mustaqahmed/html/languages","stargazers_url":"https://api.github.com/repos/mustaqahmed/html/stargazers","contributors_url":"https://api.github.com/repos/mustaqahmed/html/contributors","subscribers_url":"https://api.github.com/repos/mustaqahmed/html/subscribers","subscription_url":"https://api.github.com/repos/mustaqahmed/html/subscription","commits_url":"https://api.github.com/repos/mustaqahmed/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/mustaqahmed/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/mustaqahmed/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/mustaqahmed/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/mustaqahmed/html/contents/{+path}","compare_url":"https://api.github.com/repos/mustaqahmed/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mustaqahmed/html/merges","archive_url":"https://api.github.com/repos/mustaqahmed/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mustaqahmed/html/downloads","issues_url":"https://api.github.com/repos/mustaqahmed/html/issues{/number}","pulls_url":"https://api.github.com/repos/mustaqahmed/html/pulls{/number}","milestones_url":"https://api.github.com/repos/mustaqahmed/html/milestones{/number}","notifications_url":"https://api.github.com/repos/mustaqahmed/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mustaqahmed/html/labels{/name}","releases_url":"https://api.github.com/repos/mustaqahmed/html/releases{/id}","deployments_url":"https://api.github.com/repos/mustaqahmed/html/deployments","created_at":"2018-05-01T14:02:04Z","updated_at":"2018-05-01T14:20:05Z","pushed_at":"2018-05-01T14:20:02Z","git_url":"git://github.com/mustaqahmed/html.git","ssh_url":"git@github.com:mustaqahmed/html.git","clone_url":"https://github.com/mustaqahmed/html.git","svn_url":"https://github.com/mustaqahmed/html","homepage":"https://html.spec.whatwg.org/multipage/","size":191656,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"whatwg:master","ref":"master","sha":"423c66403522b09138dc3b366bf96111bc030a04","user":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars1.githubusercontent.com/u/2226336?v=4","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"repo":{"id":11969507,"name":"html","full_name":"whatwg/html","owner":{"login":"whatwg","id":2226336,"avatar_url":"https://avatars1.githubusercontent.com/u/2226336?v=4","gravatar_id":"","url":"https://api.github.com/users/whatwg","html_url":"https://github.com/whatwg","followers_url":"https://api.github.com/users/whatwg/followers","following_url":"https://api.github.com/users/whatwg/following{/other_user}","gists_url":"https://api.github.com/users/whatwg/gists{/gist_id}","starred_url":"https://api.github.com/users/whatwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatwg/subscriptions","organizations_url":"https://api.github.com/users/whatwg/orgs","repos_url":"https://api.github.com/users/whatwg/repos","events_url":"https://api.github.com/users/whatwg/events{/privacy}","received_events_url":"https://api.github.com/users/whatwg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whatwg/html","description":"HTML Standard","fork":false,"url":"https://api.github.com/repos/whatwg/html","forks_url":"https://api.github.com/repos/whatwg/html/forks","keys_url":"https://api.github.com/repos/whatwg/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whatwg/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whatwg/html/teams","hooks_url":"https://api.github.com/repos/whatwg/html/hooks","issue_events_url":"https://api.github.com/repos/whatwg/html/issues/events{/number}","events_url":"https://api.github.com/repos/whatwg/html/events","assignees_url":"https://api.github.com/repos/whatwg/html/assignees{/user}","branches_url":"https://api.github.com/repos/whatwg/html/branches{/branch}","tags_url":"https://api.github.com/repos/whatwg/html/tags","blobs_url":"https://api.github.com/repos/whatwg/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whatwg/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whatwg/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/whatwg/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whatwg/html/statuses/{sha}","languages_url":"https://api.github.com/repos/whatwg/html/languages","stargazers_url":"https://api.github.com/repos/whatwg/html/stargazers","contributors_url":"https://api.github.com/repos/whatwg/html/contributors","subscribers_url":"https://api.github.com/repos/whatwg/html/subscribers","subscription_url":"https://api.github.com/repos/whatwg/html/subscription","commits_url":"https://api.github.com/repos/whatwg/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/whatwg/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/whatwg/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/whatwg/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/whatwg/html/contents/{+path}","compare_url":"https://api.github.com/repos/whatwg/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whatwg/html/merges","archive_url":"https://api.github.com/repos/whatwg/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whatwg/html/downloads","issues_url":"https://api.github.com/repos/whatwg/html/issues{/number}","pulls_url":"https://api.github.com/repos/whatwg/html/pulls{/number}","milestones_url":"https://api.github.com/repos/whatwg/html/milestones{/number}","notifications_url":"https://api.github.com/repos/whatwg/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whatwg/html/labels{/name}","releases_url":"https://api.github.com/repos/whatwg/html/releases{/id}","deployments_url":"https://api.github.com/repos/whatwg/html/deployments","created_at":"2013-08-08T06:26:07Z","updated_at":"2018-05-01T04:54:00Z","pushed_at":"2018-05-01T05:32:28Z","git_url":"git://github.com/whatwg/html.git","ssh_url":"git@github.com:whatwg/html.git","clone_url":"https://github.com/whatwg/html.git","svn_url":"https://github.com/whatwg/html","homepage":"https://html.spec.whatwg.org/multipage/","size":191656,"stargazers_count":1816,"watchers_count":1816,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":621,"mirror_url":null,"archived":false,"open_issues_count":823,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0"},"forks":621,"open_issues":823,"watchers":1816,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whatwg/html/pulls/3659"},"html":{"href":"https://github.com/whatwg/html/pull/3659"},"issue":{"href":"https://api.github.com/repos/whatwg/html/issues/3659"},"comments":{"href":"https://api.github.com/repos/whatwg/html/issues/3659/comments"},"review_comments":{"href":"https://api.github.com/repos/whatwg/html/pulls/3659/comments"},"review_comment":{"href":"https://api.github.com/repos/whatwg/html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whatwg/html/pulls/3659/commits"},"statuses":{"href":"https://api.github.com/repos/whatwg/html/statuses/fb78d9e722a05ab7a1d856e10bb4db6c116bc800"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"mustaqahmed"}}