Closed Bug 449168 Opened 16 years ago Closed 16 years ago

[FIX]HasSelectionOverflowingDecorations leaks selection details

Categories

(Core :: Layout: Text and Fonts, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

(Keywords: memory-leak)

Attachments

(1 file)

Attached patch FixSplinter Review
The return value of GetSelectionDetails needs to be deleted, and in this case it's not. Patch coming up. Still looking for a good way to test it. Masayuki, do you think you can write a test that will exercise this loop?
Flags: in-testsuite?
Attachment #332307 - Flags: superreview?(roc)
Attachment #332307 - Flags: review?(masayuki)
Blocks: 421353
Attachment #332307 - Flags: superreview?(roc) → superreview+
Comment on attachment 332307 [details] [diff] [review] Fix Thank you, but I hope there is auto release way... And I have no idea for testing this.
Attachment #332307 - Flags: review?(masayuki) → review+
Well.. why was this code added? When is it ever exercised?
(In reply to comment #2) > Well.. why was this code added? When is it ever exercised? Some IME selection has overflowed underline, e.g., on Mac, the selections have thick underline in default settings. Therefore, the loop is only used on Mac when IME is composing. (Of course, IME selection style is changed by prefs, you can run the loop on other platforms too.)
Hmm. I'm on Mac! Is there a way to trigger IME programmatically?
I'm not sure. We don't have any IME automated tests.
Pushed changeset b5295239bdba.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Backed out as part of the investigation into bug 450401
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Relanded.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: