Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated keyIdentifier #14312

Merged
merged 2 commits into from
Sep 15, 2016
Merged

Conversation

mchv
Copy link
Member

@mchv mchv commented Sep 15, 2016

What does this change?

Remove keyIdentifier as a property from bean.js as this is now deprecated and will be removed soon.

Currently console display a warning on every page:

'KeyboardEvent.keyIdentifier' is deprecated and will be removed in M53, around September 2016. See https://www.chromestatus.com/features/5316065118650368 for more details.

As bean.js seems to be copied, I don't know if we should diverge or wait for the upstream issue being fixed and then update to the latest version.

What is the value of this and can you measure success?

Prevent breaking frontend (throwing an client side error potentially breaking other features) when latest chrome will remove keyIdentifier.

Does this affect other platforms - Amp, Apps, etc?

keyIdentifier does not seems to be used on frontend so I don't think it should break anything or anyone.

keyIdentifier is a deprecated property that will be removed from Chrome in September
@rich-nguyen
Copy link
Contributor

👍

@@ -106,7 +106,7 @@
'fromElement offsetX offsetY pageX pageY screenX screenY toElement'))
, mouseWheelProps = mouseProps.concat(str2arr('wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ ' +
'axis')) // 'axis' is FF specific
, keyProps = commonProps.concat(str2arr('char charCode key keyCode keyIdentifier ' +
, keyProps = commonProps.concat(str2arr('char charCode key keyCode ' +
Copy link
Contributor

@gtrufitt gtrufitt Sep 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think until the issue is fixed in Bean this is the only thing we can do. Can you add a comment to this PR? 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry updated the link in PR description

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this library in membership as well, it might be worth pushing this upstream or just plain forking it before we diverge further.

@mchv mchv merged commit 27a4023 into master Sep 15, 2016
@mchv mchv deleted the mc-remove-deprecated-key-identifier branch September 15, 2016 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants