contentfiltering tests leak documents
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2019 22:51:13 +0000 (22:51 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2019 22:51:13 +0000 (22:51 +0000)
commitd0de202d885e4875d73149ed0c91d96502495afd
treed023528f701f71c764206fc470fd734512d2c7cc
parent5af907adf884ea080395646e62ffd1029210e41e
contentfiltering tests leak documents
https://bugs.webkit.org/show_bug.cgi?id=189434
<rdar://44239943>

Reviewed by Simon Fraser.

Changed ContentFilter to capture the blocked Frame as a WeakPtr to break a reference cycle.

This fixes world leaks in several tests in LayoutTests/contentfiltering/.

* bindings/js/ScriptController.h:
* loader/ContentFilter.cpp:
(WebCore::ContentFilter::didDecide):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/ScriptController.h
Source/WebCore/loader/ContentFilter.cpp