Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Feb 13, 2024

Description

This PR fixes an 'Unexpected null value' error related to autoFill.
When using Autofill feature, Chrome emits keyboard events whose event.code and event.key are null.

Related Issue

Fixes flutter/flutter#114620.

Tests

Adds 1 test.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Feb 13, 2024
@bleroux bleroux force-pushed the web_ignore_invalid_keyboard_event_related_to_autofill branch from d1bd462 to 5b3a0b6 Compare February 13, 2024 13:33
@bleroux bleroux requested review from dkwingsmt and htoor3 February 13, 2024 14:42
Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this!

@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 16, 2024
@auto-submit auto-submit bot merged commit 224367a into flutter:main Feb 16, 2024
@bleroux bleroux deleted the web_ignore_invalid_keyboard_event_related_to_autofill branch February 16, 2024 18:17
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 16, 2024
…143593)

flutter/engine@dd530f1...5fd5ccf

2024-02-16 [email protected] Use the Pixel 7/API 33 device in the Firebase test lab script (flutter/engine#50721)
2024-02-16 [email protected] [Web] Ignore invalid keyboard events related to autofill (flutter/engine#50590)
2024-02-16 [email protected] Add the web package to the set of Dart third_party packages in DEPS (flutter/engine#50714)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@aran
Copy link

aran commented Feb 16, 2024

Will this make it into a hotfix / dot release or would it wait for next stable?

@dkwingsmt
Copy link
Contributor

I think it's unlikely to make into a hotfix. If you want to propose it as a hot fix, maybe you can discuss it in the discord server.

@SaltH2OFish
Copy link

This fix will help get Flutter into a production environments for web applications. Thank you.

@Dararii
Copy link

Dararii commented Mar 6, 2024

In what version this fix be included?

@movaid7
Copy link

movaid7 commented May 13, 2024

In what version this fix be included?

Looks like 3.22.0 - it's listed in the Flutter 3.22.0 release notes

@speed1057
Copy link

This issue still persist in 3.22.2 version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web autofill throw exception when using html InputElement

7 participants