Closed Bug 1953961 Opened 1 year ago Closed 1 year ago

Pasting to Outlook.com removes whitespaces preceding insertion point

Categories

(Web Compatibility :: Site Reports, defect, P2)

Firefox 136

Tracking

(Webcompat Priority:P2, Webcompat Score:3, firefox139 fixed)

RESOLVED FIXED
Webcompat Priority P2
Webcompat Score 3
Tracking Status
firefox139 --- fixed

People

(Reporter: brille1, Unassigned)

References

()

Details

(Keywords: webcompat:have-login, webcompat:platform-bug, webcompat:site-report)

User Story

platform:windows,mac,linux,android
impact:annoyance
configuration:general
affects:all
branch:release
user-impact-score:600

Attachments

(1 file)

When pasting text into an e-mail message body on Outlook.com, Firefox erroneously removes white-space preceding the insertion point.

Component: General → DOM: Editor
Product: Firefox → Core

Do you know what's going on here Masayuki?

Flags: needinfo?(masayuki)

Will be fixed in bug 1951832 (nightly and early beta) and bug 1658699 (late beta and release) completely. However, I'll try to check whether we can fix this in current nightly to ship a fix for this as soon as possible.

Assignee: nobody → masayuki
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(masayuki)

The pasting is completely handled by Outlook itself with a paste event listener. I think they treat ASCII white-space before the padding <br> is also invisible and delete it when inserting the pasted content. So, we can do nothing for now. After enabling the new white-space normalizer, it'll insert an NBSP for the last character of each Text node so that it won't be considered as invisible.

Assignee: masayuki → nobody
Severity: S3 → --
Status: ASSIGNED → NEW
Component: DOM: Editor → Site Reports
Product: Core → Web Compatibility
Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 7
Priority: -- → P2
Webcompat Score: 7 → 3

I confirmed that this works as expected, with the preference editor.white_space_normalization.blink_compatible enabled.

Works for me 👍

The issue has been fixed.

Tested with:

Browser / Version: Firefox Nightly 139.0a1 (2025-04-22)
Operating System: Windows 10

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Whiteboard: [webcompat:sightline]
Whiteboard: [webcompat:sightline]
Whiteboard: [webcompat:sightline]
Whiteboard: [webcompat:sightline]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: