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

Issue 2151243002: Using wrapWeakPersistent for VisibilityCallback in HTMLMediaElement (Closed)

Created:
4 years, 5 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 5 months ago
Reviewers:
haraken, sof, szager1
CC:
chromium-reviews, blink-reviews-html_chromium.org, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, gasubic, sof, eae+blinkwatch, fs, eric.carlson_apple.com, blink-reviews-dom_chromium.org, dglazkov+blink, nessy, blink-reviews, vcarbune.chromium, rwlbuis, mlamouri (slow - plz ping)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Using wrapWeakPersistent for VisibilityCallback in HTMLMediaElement This is a test patch that fixes a memory leak caused by the reference between HTMLMediaElement and ElementVisibilityObserver. The previous patch breaks the reference cycle but seems doesn't fix the leak. Using WeakPersistent is a workaround, but seems does not fix the leak entirely. Keeping https://crbug.com/627539 open to keep track of the remaining leaks. BUG=628367, 627539 Committed: https://crrev.com/df5e915f2075aa324e59087cfca9848b6ff3f58a Cr-Commit-Position: refs/heads/master@{#405996}

Patch Set 1 #

Patch Set 2 : prepare to land #

Patch Set 3 : prepare to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 35 (24 generated)
Zhiqiang Zhang (Slow)
Hi, I created this test patch to show the fix for the ElementVisibilityObserver leak. As ...
4 years, 5 months ago (2016-07-15 17:07:13 UTC) #12
szager1
This isn't what I had in mind in my comment on the other CL; I ...
4 years, 5 months ago (2016-07-15 18:00:25 UTC) #13
Zhiqiang Zhang (Slow)
On 2016/07/15 18:00:25, szager1 wrote: > This isn't what I had in mind in my ...
4 years, 5 months ago (2016-07-15 19:21:57 UTC) #16
haraken
Is it guaranteed that m_autoplayVisibilityObserver->stop() is called in a finite time period?
4 years, 5 months ago (2016-07-16 01:44:25 UTC) #17
Zhiqiang Zhang (Slow)
On 2016/07/16 01:44:25, haraken wrote: > Is it guaranteed that m_autoplayVisibilityObserver->stop() is called in a ...
4 years, 5 months ago (2016-07-16 12:38:04 UTC) #18
haraken
On 2016/07/16 12:38:04, Zhiqiang Zhang wrote: > On 2016/07/16 01:44:25, haraken wrote: > > Is ...
4 years, 5 months ago (2016-07-17 13:17:32 UTC) #19
Zhiqiang Zhang (Slow)
On 2016/07/17 13:17:32, haraken wrote: > On 2016/07/16 12:38:04, Zhiqiang Zhang wrote: > > On ...
4 years, 5 months ago (2016-07-18 11:06:17 UTC) #20
haraken
On 2016/07/18 11:06:17, Zhiqiang Zhang wrote: > On 2016/07/17 13:17:32, haraken wrote: > > On ...
4 years, 5 months ago (2016-07-18 12:19:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151243002/80001
4 years, 5 months ago (2016-07-18 12:50:50 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-18 15:20:50 UTC) #33
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 15:23:44 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/df5e915f2075aa324e59087cfca9848b6ff3f58a
Cr-Commit-Position: refs/heads/master@{#405996}

Powered by Google App Engine
This is Rietveld 408576698