-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix: Crashing due to input element hack #36461
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: DK Liao <dklassic@gmail.com>
|
🔨 Triggering try run (#14395202705) for Linux (WPT) |
wusyong
reviewed
Apr 11, 2025
Signed-off-by: DK Liao <dklassic@gmail.com>
|
Test results for linux-wpt from try job (#14395202705): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (12)
Stable unexpected results (3)
|
|
|
Signed-off-by: DK Liao <dklassic@gmail.com>
|
Test results for linux-wpt from try job (#14395202705): Flaky unexpected result (2)
Stable unexpected results that are known to be intermittent (2)
Stable unexpected results (2)
|
|
|
1e00bf7 to
4ff5806
Compare
Signed-off-by: DK Liao <dklassic@gmail.com>
4ff5806 to
b2cd88e
Compare
jdm
approved these changes
Apr 11, 2025
tests/wpt/meta/html/rendering/widgets/button-layout/input-type-button-clip.html.ini
Outdated
Show resolved
Hide resolved
...pt/meta/css/css-inline/baseline-source/baseline-source-first-textarea-001.tentative.html.ini
Outdated
Show resolved
Hide resolved
11e1c79 to
be6e66a
Compare
Signed-off-by: DK Liao <dklassic@gmail.com>
auto-merge was automatically disabled
April 11, 2025 06:19
Head branch was pushed to by a user without write access
be6e66a to
88e8313
Compare
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Apr 11, 2025
This avoids some minor code duplication. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Apr 11, 2025
This avoids some minor code duplication. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses a crash in text input element due to a hack to prevent text input being trimmed.
The updated behavior will only add
zero width spaceunicode character to the node if there's no text content instead of adding it constantly. Also by adding the samezero width spaceunicode character to text area when there's no text content within will allow text area element to properly display caret.This PR also addresses issues with multiple glyph runs:
2025-04-11.1.54.53.mov
Testing: This PR is tested using:
./mach run -d 'data:text/html,<input id="input_element" value="xxxxxxxxxxxxxxxxxxxx">'./mach run -d 'data:text/html,<textarea id="input_element" value="xxxxxxxxxxxxxxxxxxxx">'without causing crashes, while the results should be covered by WPT tests
Fixes: #36449