In-page search may incorrectly behave for characters with Unicode code points greater than U+10000
Categories
(Toolkit :: Find Toolbar, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: tjj.rikap, Assigned: tjj.rikap)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Steps to reproduce:
Search a character in page of which the Unicode point is U+x00yy where:
- x >= 1
- yy is 09, 0A, 0D or 20.
Here are some of the characters may be used:
[𐀉] [𠀍] [] [𰀠]
Actual results:
All spaces in page will be matched. These characters also will match each other.
Tested on Linux Firefox 134, 136-nightly, and Windows Firefox.
Expected results:
Only these specific characters will be matched.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
I'm trying to fix it! If anyone has progress please share it here!
| Assignee | ||
Comment 3•1 year ago
|
||
I think I've fixed it! Could anyone kindly assign it to me and review my patch?
Comment 4•1 year ago
|
||
You will automatically be assigned to the bug after submitting the patch.
| Assignee | ||
Comment 5•1 year ago
|
||
The original IsSpace macro uses nsCRT::IsAsciiSpace which doesn't handle
UTF-32 characters (characters above U+FFFF) correctly. Add a check for UTF-32
characters to ensure correct matching behavior. Also add a test case to
test_nsFind.html to verify the fix for Bug 1943846.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•1 year ago
|
||
Backed out for causing bustages at nsFind.cpp.
Backout link: https://hg.mozilla.org/integration/autoland/rev/441b1202a649de00c6ad0c83a9083003550d4bf3
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=e1882c174191a6cc1fb9d2dadcbb1093de5b0fb2
Failure log: https://treeherder.mozilla.org/logviewer?job_id=492837035&repo=autoland&lineNumber=45250
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
(In reply to Atila Butkovits from comment #7)
Backed out for causing bustages at nsFind.cpp.
Backout link: https://hg.mozilla.org/integration/autoland/rev/441b1202a649de00c6ad0c83a9083003550d4bf3
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=e1882c174191a6cc1fb9d2dadcbb1093de5b0fb2
Failure log: https://treeherder.mozilla.org/logviewer?job_id=492837035&repo=autoland&lineNumber=45250
Sorry for the inconvenient. I updated the patch.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Comment 13•1 year ago
|
||
Wat
| Assignee | ||
Comment 14•1 year ago
|
||
I'm sorry but I have no idea about this error... I think I need help.
Comment 15•1 year ago
|
||
Yeah, can look into it... Maybe some code is choking on the characters on the test or something? But shouldn't really be the case.
| Assignee | ||
Comment 16•1 year ago
|
||
Can it be an occasion? I downloaded the target.crashreporter-symbols.zip and it validates well...
Comment 17•1 year ago
|
||
Yeah I suspect it was some infra fluke. I pushed this to try to check tho. https://treeherder.mozilla.org/jobs?repo=try&revision=733705b4546b315b4059396fcc0c12ff411b7e7f
Comment 19•1 year ago
|
||
Comment 20•1 year ago
|
||
| bugherder | ||
Description
•