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
Review-Url: https://codereview.chromium.org/2151243002
Cr-Commit-Position: refs/heads/master@{#405996}
1 file changed