Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 302133002: Fix a document memory leak in drag-and-drop. (Closed)

Created:
6 years, 6 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Fix a document memory leak in drag-and-drop. TEST=fast/events/drag-leak-document.html (run_webkit_tests with --enable-leak-detection) BUG=364392 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175257

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove dragState().m_dragSrc = nullptr #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : ready #

Total comments: 6

Patch Set 5 : addressed the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
A LayoutTests/fast/events/drag-leak-document.html View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/drag-leak-document-expected.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/clipboard/Clipboard.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/clipboard/Clipboard.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Dai Mikurube (NOT FULLTIME)
Trying to fix a memory leak crbug.com/364392. Not sure it's the right fix, though. Could ...
6 years, 6 months ago (2014-05-30 12:26:05 UTC) #1
kouhei (in TOK)
lgtm if the test pass. https://codereview.chromium.org/302133002/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/302133002/diff/1/Source/core/page/EventHandler.cpp#newcode3059 Source/core/page/EventHandler.cpp:3059: dragState().m_dragSrc = nullptr; remove ...
6 years, 6 months ago (2014-05-30 12:29:54 UTC) #2
haraken
Would it be possible to add a test? c.f., NodeIterator-leak-document.html https://codereview.chromium.org/302133002/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/302133002/diff/1/Source/core/page/EventHandler.cpp#newcode3041 ...
6 years, 6 months ago (2014-05-30 12:35:29 UTC) #3
Dai Mikurube (NOT FULLTIME)
Hmm, actually |dragState().m_dragSrc = nullptr;| caused a crush maybe because of freeClipboard(); in tryStartDrag() which ...
6 years, 6 months ago (2014-05-30 12:38:28 UTC) #4
kouhei (in TOK)
On 2014/05/30 12:35:29, haraken wrote: > Would it be possible to add a test? > ...
6 years, 6 months ago (2014-05-30 12:39:37 UTC) #5
haraken
On 2014/05/30 12:39:37, kouhei wrote: > On 2014/05/30 12:35:29, haraken wrote: > > Would it ...
6 years, 6 months ago (2014-05-30 12:41:22 UTC) #6
Dai Mikurube (NOT FULLTIME)
Tried adding a test case. No expectation, though. (Failing to add -expect.txt. Will try Monday.)
6 years, 6 months ago (2014-05-30 13:24:48 UTC) #7
kouhei (in TOK)
https://codereview.chromium.org/302133002/diff/40001/LayoutTests/fast/events/drag-leak-document.html File LayoutTests/fast/events/drag-leak-document.html (right): https://codereview.chromium.org/302133002/diff/40001/LayoutTests/fast/events/drag-leak-document.html#newcode26 LayoutTests/fast/events/drag-leak-document.html:26: </body> <p>PASS if no leak is detected by the ...
6 years, 6 months ago (2014-05-30 13:27:50 UTC) #8
Dai Mikurube (NOT FULLTIME)
It's now ready. PTAL?
6 years, 6 months ago (2014-06-02 02:16:14 UTC) #9
haraken
LGTM. https://codereview.chromium.org/302133002/diff/60001/LayoutTests/fast/events/drag-leak-document.html File LayoutTests/fast/events/drag-leak-document.html (right): https://codereview.chromium.org/302133002/diff/60001/LayoutTests/fast/events/drag-leak-document.html#newcode4 LayoutTests/fast/events/drag-leak-document.html:4: <script> Nit: We normally write a <script> tag ...
6 years, 6 months ago (2014-06-02 02:24:16 UTC) #10
Dai Mikurube (NOT FULLTIME)
Done. Thanks! https://codereview.chromium.org/302133002/diff/60001/LayoutTests/fast/events/drag-leak-document.html File LayoutTests/fast/events/drag-leak-document.html (right): https://codereview.chromium.org/302133002/diff/60001/LayoutTests/fast/events/drag-leak-document.html#newcode4 LayoutTests/fast/events/drag-leak-document.html:4: <script> On 2014/06/02 02:24:17, haraken wrote: > ...
6 years, 6 months ago (2014-06-02 03:11:50 UTC) #11
Dai Mikurube (NOT FULLTIME)
The CQ bit was checked by dmikurube@chromium.org
6 years, 6 months ago (2014-06-02 06:36:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/302133002/80001
6 years, 6 months ago (2014-06-02 06:36:15 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 08:50:39 UTC) #14
Message was sent while issue was closed.
Change committed as 175257

Powered by Google App Engine
This is Rietveld 408576698