DescriptionMake ScriptLoader into a ResourceOwner
This change turns ScriptLoader a ResourceOwner, that ensures that
it subscribes Resource if the owner has a reference to it, and that
it unsubscribes the Resource otherwise. Before this change,
There are some situation where ScriptLoader has a reference to Resource
but doesn't subscribe it, that is error prone and left deleted instance
being subscribed. ResourceOwner guarantees reference and subscription
consistency.
TEST=script-cancel-crash.html
BUG=368551
R=eseidel@chromium.org, japhet@chromium.org, esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173566
Patch Set 1 #
Total comments: 5
Patch Set 2 : Landing #Patch Set 3 : Updated to ToT #Patch Set 4 : With a fix #
Messages
Total messages: 16 (0 generated)
|