Description[worklets] Fixes leak document leak for AnimationWorklet.
It looks like this may have been a reference cycle between Document
and AnimationWorklet.
AnimationWorklet had a ThreadedMessagingProxyBase which held a
persistent to Document. (ThreadedMessagingProxyBase was a raw pointer).
The AnimationWorklet destructor was never being called at the right time
to destroy the ThreadedMessagingProxyBase.
Test:
./third_party/WebKit/Tools/Scripts/run-webkit-tests -t Default --additional-driver-flag=--enable-leak-detection third_party/WebKit/LayoutTests/virtual/threaded/http/tests/worklet/animation-worklet-import.html
BUG=652535
Committed: https://crrev.com/643218b3cc1e809e8fbb5f23e1300d18a676dff4
Cr-Commit-Position: refs/heads/master@{#431081}
Patch Set 1 #
Messages
Total messages: 16 (9 generated)
|