Bug 263504
| Summary: | Show console warning when input[type=color] is clicked without user gesture | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | akeerthi, cdumez, inspector-bugzilla-changes, karlcow, web-inspector-bugs, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ahmad Saleem
Hi Team,
While going through Blink's commit, I came across commit, which we should merge to align with other browsers.
Blink Commit: https://chromium.googlesource.com/chromium/src/+/763af8e1bbc32e4833e2b64211c65d8aca804076
___
How to reproduce:
1) Create local html:
<body>
<input id="color-picker" type="color" />
<script>
document.getElementById('color-picker').click();
</script>
</body>
2) Load and see, there is no console warning in Safari but there is in Chrome:
A user gesture is required to show the color picker.
(anonymous) @ testpage_fiddle-0121.html:4
____
Just wanted to raise so we can fix it.
Thanks!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Seems like a nice diagnostic for developers indeed. I don't think that console logging qualifies as "BrowserCompat" though.
Karl Dubost
Yes This should probably be a feature for Web Inspector.
Radar WebKit Bug Importer
<rdar://problem/117393527>