DescriptionAvoid image resource leaks in frame-related unit tests.
When ImageLoader issues a (successful) load, it will keep its associated
element alive until the load has finished, so as to guarantee that the
load will complete without DOM mutations destructing the element.
This keep-alive reference is at odds with tidy shutdowns from unit tests
that issue image resource loads in particular, as they will not have
completed upon shutdown if the load hasn't otherwise been triggered.
By default they won't be, eaving the associated element and its
ImageLoader referred-to resources as reportedly leaking.
To avoid such leaks, insist that image resources are eagerly loaded
from the network by WebViewHelpers, if needs be. Which means that all such
external resources are mocked & accounted for.
R=haraken, thakis
BUG=526423
Committed: https://crrev.com/fc199ea30c9558abb49215948fd6aa3936764c7c
Cr-Commit-Position: refs/heads/master@{#355318}
Patch Set 1 #Patch Set 2 : remove redundant #include #
Messages
Total messages: 12 (4 generated)
|