New issue
Advanced search Search tips

Issue 692717 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Launch-OWP
Launch-Accessibility: ----
Launch-Exp-Leadership: ----
Launch-Leadership: ----
Launch-Legal: ----
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: ----
Launch-Security: ----
Launch-Test: ----
Launch-UI: ----
Rollout-Type: ----

Blocked on:
issue 543785

Blocking:
issue 674593


Show other hotlists

Hotlists containing this issue:
Non-Standard-IDL


Sign in to add a comment

Remove KeyboardEvent#which and MouseEvent#which

Project Member Reported by lunalu@chromium.org, Feb 15 2017

Issue description

These APIs are currently commented as non-standard APIs.

Gecko has them too.

I suppose we should try to standardize them? 
 

Comment 1 by lunalu@chromium.org, Feb 15 2017

Summary: Standardize or remove MouseEvent#which and UIEvent#which (was: Standardize or remove MouseEvent#which)

Comment 2 by lunalu@chromium.org, Feb 15 2017

Description: Show this description

Comment 3 by tkent@chromium.org, Feb 17 2017

Components: -Blink>DOM>Events Blink>Input
Cc: dtapu...@chromium.org foolip@chromium.org garykac@chromium.org
Labels: Hotlist-Input-Dev
Owner: mustaq@chromium.org
Status: Assigned (was: Untriaged)
This is issue https://github.com/w3c/uievents/issues/35

mustaq@ I believe it was decided that we would standardize on UIEvent.which. Can you own this (ie; forcing gary to update the spec :-)) and then removing the implementation for the IDLs in KeyboardEvent and MouseEvent but leaving it for UIEvent?

Comment 5 by mustaq@chromium.org, Feb 23 2017

Summary: Standardize UIEvent.which and cleanup old/dup implementations in Chromium (was: Standardize or remove MouseEvent#which and UIEvent#which)
Summary: Standardize UIEvent#which and remove KeyboardEvent#which and MouseEvent#which (was: Standardize UIEvent.which and cleanup old/dup implementations in Chromium)

Comment 7 by mustaq@chromium.org, Apr 27 2017

Summary: Remove KeyboardEvent#which and MouseEvent#which (was: Standardize UIEvent#which and remove KeyboardEvent#which and MouseEvent#which)
We already have  Issue 543785  for the UIEvent spec work. Let's use this bug to remove Mouse/KeyboardEvent.which.

Comment 8 by mustaq@chromium.org, Apr 27 2017

foolip@ I think we can remove both {Mouse,Keyboard}Event.which without waiting for the spec work on UIEvent.which, right? We will then match FF. The current state across the browsers is terrible anyways:
https://github.com/w3c/uievents/issues/35#issuecomment-297822323

Comment 9 by mustaq@chromium.org, Apr 28 2017

Labels: -Type-Bug Type-Launch-OWP
Blockedon: 543785
Labels: M-60
mustaq@, yep, I think this change can be done without waiting for anything else.
Project Member

Comment 13 by bugdroid1@chromium.org, May 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cf13270c47f29b21ce7a8c937f598989cd66c840

commit cf13270c47f29b21ce7a8c937f598989cd66c840
Author: mustaq <mustaq@chromium.org>
Date: Wed May 24 12:33:29 2017

Removed |which| from KeyboardEvent and MouseEvent.

Also changed the type of UIEvent.which to unsigned as per the
spec.

Blink intent thread: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/6V4iHkqZXvQ

BUG= 692717 ,  496400 

Review-Url: https://codereview.chromium.org/2855613002
Cr-Commit-Position: refs/heads/master@{#474261}

[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/KeyboardEvent.h
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/KeyboardEvent.idl
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/MouseEvent.cpp
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/MouseEvent.h
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/MouseEvent.idl
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/UIEvent.cpp
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/UIEvent.h
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/events/UIEvent.idl
[modify] https://crrev.com/cf13270c47f29b21ce7a8c937f598989cd66c840/third_party/WebKit/Source/core/frame/UseCounter.h

Status: Fixed (was: Assigned)

Sign in to add a comment