Bug 119122 - REGRESSION(r139282): Fix document leak when selection is created inside the document
Summary: REGRESSION(r139282): Fix document leak when selection is created inside the d...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: BlinkMergeCandidate, InRadar, Regression
Depends on: 103955
Blocks: 146182
  Show dependency treegraph
 
Reported: 2013-07-25 20:43 PDT by Ryosuke Niwa
Modified: 2015-06-20 09:06 PDT (History)
3 users (show)

See Also:


Attachments
Fixes the bug (4.90 KB, patch)
2013-07-25 20:50 PDT, Ryosuke Niwa
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-07-25 20:43:10 PDT
The FrameSelection::m_previousCaretNode may hold onto a Node inside the document with the selection.

Merge https://chromium.googlesource.com/chromium/blink/+/b908cb4c8da93316d787de31c93f2a43de332a10
Comment 1 Ryosuke Niwa 2013-07-25 20:50:08 PDT
Created attachment 207505 [details]
Fixes the bug
Comment 2 Radar WebKit Bug Importer 2013-07-25 20:50:42 PDT
<rdar://problem/14556358>
Comment 3 Ryosuke Niwa 2013-07-25 20:56:03 PDT
Clearly, this is a regression from http://trac.webkit.org/changeset/146403.
Comment 4 Ryosuke Niwa 2013-07-25 20:57:18 PDT
Rather http://trac.webkit.org/changeset/139282.
Comment 5 Ryosuke Niwa 2013-07-25 20:58:01 PDT
Committed r153366: <http://trac.webkit.org/changeset/153366>
Comment 6 Alexey Proskuryakov 2013-07-30 13:28:35 PDT
The test added here is super flaky (maybe b/f cache)?

I can reproduce locally with 

run-webkit-tests editing/selection/leak-document-with-selection-inside.html --repeat-each 2
Comment 7 Alexey Proskuryakov 2013-07-30 15:16:26 PDT
Added a gc() call in <http://trac.webkit.org/r153498>, let's see how much this helps.
Comment 8 David Kilzer (:ddkilzer) 2015-06-20 09:06:03 PDT
(In reply to comment #7)
> Added a gc() call in <http://trac.webkit.org/r153498>, let's see how much
> this helps.

Test is flaking a bit more in June 2015:

Bug 146182: editing/selection/leak-document-with-selection-inside.html is flaky (always fails on Apple Win 7)
<https://bugs.webkit.org/show_bug.cgi?id=146182>