Copying and pasting text from Microsoft Word creates a broken character
Categories
(Core :: Widget: Win32, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox138 | --- | unaffected |
firefox139 | --- | unaffected |
firefox140 | + | disabled |
firefox141 | + | disabled |
People
(Reporter: selim, Assigned: handyman)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
90.23 KB,
image/jpeg
|
Details |
Steps to reproduce
- Copy any text from Microsoft Word. (I'm using the latest version: 2504)
- Paste into the Firefox location bar or any form field.
Result
A broken character appears at the end of the copied text. See the screenshot attached.
I'm using the latest Nightly on Windows 11 and I can reproduce this on troubleshoot mode. I believe this issue has appeared in the past few days. I cannot reproduce this when copying from Notepad or any other Office apps. It's just Word.
Comment 1•3 months ago
|
||
(In reply to Selim Şumlu from comment #0)
I believe this issue has appeared in the past few days. I cannot reproduce this when copying from Notepad or any other Office apps. It's just Word.
Thanks for reporting this issue.
Is it possible that you can help to run mozregression to find the regression window?
Reporter | ||
Comment 2•3 months ago
|
||
Differential Revision: https://phabricator.services.mozilla.com/D249702
Comment 3•3 months ago
|
||
Thanks! David, could you take a look?
Comment 4•3 months ago
|
||
Set release status flags based on info from the regressing bug 1966443
Assignee | ||
Comment 5•3 months ago
|
||
Looking at it now.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 6•3 months ago
|
||
Set release status flags based on info from the regressing bug 1966443
Updated•3 months ago
|
Assignee | ||
Comment 7•3 months ago
|
||
Word inserts a stray line feed (0x000a) at the end of strings. Sometimes,
it is preceeded by a null character (0x0000 0x000a). Sometimes the null
character follows the LF (0x000a 0x0000). Line breaks are added as LF-CR
(0x000a 0x000d) and are therefore not removed here.
Comment 10•3 months ago
|
||
Backed out for causing multiple failures "clipboard" related
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | editor/libeditor/tests/test_bug830600.html | Timed out while polling clipboard for requested data, got:
- https://treeherder.mozilla.org/logviewer?job_id=510288094&repo=autoland
TEST-UNEXPECTED-FAIL | toolkit/components/aboutwindowsmessages/tests/browser/browser_aboutwindowsmessages.js | should copy the right number of lines to the clipboard - 19 == 20 -
Comment 11•3 months ago
|
||
The bug is marked as tracked for firefox140 (beta) and tracked for firefox141 (nightly). However, the bug still has low severity.
:hsinyi, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Assignee | ||
Comment 12•3 months ago
|
||
Instead of trying to do something consistent, which causes the kinds of errors seen in the test failures, we'll just keep the one-character-null removal from before and also ignore 0x0000 0x000a
nonsense strings at the end of the buffer. This would not do the "right" thing with every copy from Word but it should do the right thing in most cases and not break clipboard copies from applications that don't have the Word bug. The failure case is copying just one line break from Word -- it copies that as 0x0000 0x000a
, which we will obviously reduce to nothing. Two line breaks are copied as 000d 000a 000d 000a 0000
, which gets properly pasted as two line breaks. FTR, Edge and Chrome do the same thing -- a copy of one line break is reduced to nothing.
Updated•3 months ago
|
Assignee | ||
Comment 13•3 months ago
|
||
Comment 14•3 months ago
|
||
Comment 15•3 months ago
|
||
bugherder |
Comment 16•3 months ago
|
||
The patch landed in nightly and beta is affected.
:handyman, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox140
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 17•3 months ago
|
||
Comment on attachment 9491053 [details]
Bug 1968267: Ignore 0x0 0xa combination at end of clipboard text r=#win-reviewers!
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Pastes of copies from Word will have an extra nonsense byte appended.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): At most, the patch removes a couple of bytes from the paste.
- String changes made/needed: N/A
- Is Android affected?: No
Comment 18•3 months ago
|
||
Comment on attachment 9491053 [details]
Bug 1968267: Ignore 0x0 0xa combination at end of clipboard text r=#win-reviewers!
Approved for 140.0b4.
Updated•3 months ago
|
Comment 19•3 months ago
|
||
uplift |
Comment 20•2 months ago
|
||
uplift |
Comment 21•2 months ago
|
||
Backed out from beta, as part of backing out the regressor Bug 1966443
Comment 22•2 months ago
|
||
Backed out from autoland: https://github.com/mozilla-firefox/firefox/commit/4cbd07eea6ce
Comment 23•2 months ago
|
||
Set release status flags based on info from the regressing bug 1966443
Comment 24•2 months ago
|
||
The severity field is not set for this bug.
:handyman, could you have a look please?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 25•2 months ago
|
||
Fixed by regressor backout.
Updated•2 months ago
|
Updated•2 months ago
|
Description
•