Repository navigation
fix: Crashing due to input element hack - #36461
Merged
Merged
Conversation
Signed-off-by: DK Liao <[email protected]>
dklassic
requested review from
Loirooriol,
mrobinson and
nicoburns
as code owners
April 11, 2025 03:51
|
🔨 Triggering try run (#14395202705) for Linux (WPT) |
wusyong
reviewed
Apr 11, 2025
Signed-off-by: DK Liao <[email protected]>
|
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 <[email protected]>
|
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)
|
|
|
dklassic
force-pushed
the
multi-glyph-run-crash
branch
from
April 11, 2025 05:14
1e00bf7 to
4ff5806
Compare
Signed-off-by: DK Liao <[email protected]>
dklassic
force-pushed
the
multi-glyph-run-crash
branch
from
April 11, 2025 05:15
4ff5806 to
b2cd88e
Compare
jdm
approved these changes
Apr 11, 2025
dklassic
force-pushed
the
multi-glyph-run-crash
branch
from
April 11, 2025 06:18
11e1c79 to
be6e66a
Compare
jdm
enabled auto-merge
April 11, 2025 06:19
Signed-off-by: DK Liao <[email protected]>
auto-merge was automatically disabled
April 11, 2025 06:19
Head branch was pushed to by a user without write access
dklassic
force-pushed
the
multi-glyph-run-crash
branch
from
April 11, 2025 06:19
be6e66a to
88e8313
Compare
jdm
enabled auto-merge
April 11, 2025 06:22
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 <[email protected]>
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 <[email protected]>
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Apr 11, 2025
This avoids some minor code duplication. Testing: not needed (no behavior change) Signed-off-by: Oriol Brufau <[email protected]>
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
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