Closed Bug 1779343 Opened 2 years ago Closed 2 years ago

Rewrap command for "> " causes Thunderbird to crash

Categories

(Core :: DOM: Editor, defect)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
thunderbird_esr102 + fixed
firefox-esr102 --- fixed
firefox104 --- fixed

People

(Reporter: emoore, Assigned: mkmelin)

References

Details

(Keywords: crash, reproducible)

Crash Data

Attachments

(1 file)

I'm using Thunderbird 102.0.2 and Windows 11Pro .

Compose a HTML message and type '>' (without the quotes), a space, select the two characters and then either press Control+R or use Edit->Rewrap to rewrap the message

Actual effect: Thunderbird crashes to the desktop.

Expected effect: Selected message text is rewrapped.

This problem occurs with 102.0.2 , 91.11.0. and 104.0a1 (2022-07-11) (64-bit) on my PC. I tested this after somebody in the MozillaZine forums ran into this problem with version 91 and wanted to know if it also occurred with 102.

Crash reports:

bp-cb01a811-17f4-4160-9d4c-4cb220220713
bp-df31c643-b304-41fc-a3e4-07f5d0220712
bp-4389bddd-affb-46bf-94f5-de25f0220712
bp-dd7d2d20-1bf8-493f-8c0e-819830220712

After restarting Thunderbird 102.0.2 I looked at the error tab in the error console. It had:

Uncaught TypeError: gFolderDisplay is null
get currentViewValue chrome://messenger/content/msgViewPickerOverlay.js:98
RefreshViewPopup chrome://messenger/content/msgViewPickerOverlay.js:171
RefreshAllViewPopups chrome://messenger/content/msgViewPickerOverlay.js:154
ViewPickerOnLoad chrome://messenger/content/msgViewPickerOverlay.js:293

Bug 1778836 also had gFolderDisplay is null .

Thanks for the steps - immediately reproducible. My crash bp-c549a101-05a2-4994-821d-554e10220713

Crash Signature: [@ mozilla::detail::nsTStringRepr<T>::First | mozilla::HTMLEditor::InsertTextWithQuotationsInternal ]
Flags: needinfo?(mkmelin+mozilla)
Keywords: crash, reproducible
OS: Unspecified → All
See Also: → 1649005

bp-cb01a811-17f4-4160-9d4c-4cb220220713

0 xul.dll mozilla::detail::nsTStringRepr<char16_t>::First() const xpcom/string/nsTSubstring.cpp:956 context
1 xul.dll mozilla::HTMLEditor::InsertTextWithQuotationsInternal(nsTSubstring<char16_t> const&) editor/libeditor/HTMLEditorDataTransfer.cpp:2852 cfi
2 xul.dll mozilla::HTMLEditor::Rewrap(bool) editor/libeditor/HTMLEditorDataTransfer.cpp:3210 cfi
3 xul.dll XPTC__InvokebyIndex cfi
4 xul.dll static XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) js/xpconnect/src/XPCWrappedNative.cpp:1125 cfi
5 xul.dll XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) js/xpconnect

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mkmelin+mozilla)
Summary: Rewrap command causes Thunderbird to crash → Rewrap command for "> " causes Thunderbird to crash
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/integration/autoland/rev/c38ede3a4e99
Don't crash rewrapping "> ". r=masayuki
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

Comment on attachment 9285236 [details]
Bug 1779343 - Don't crash rewrapping "> ". r=masayuki

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Crash fix
  • User impact if declined: Crashes reproducibly
  • Fix Landed on Version: 104
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Contained crash fix.
Attachment #9285236 - Flags: approval-mozilla-esr102?
Component: Message Compose Window → DOM: Editor
Product: Thunderbird → Core
Version: Thunderbird 102 → unspecified

Comment on attachment 9285236 [details]
Bug 1779343 - Don't crash rewrapping "> ". r=masayuki

Approved for 102.2esr.

Attachment #9285236 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: