Disabled content blockers should not block any loads
https://bugs.webkit.org/show_bug.cgi?id=150261
Reviewed by Brady Eidson.
This fix was tested manually by reloading without content blockers
on websites with iframes and content blockers that block the contents of the iframes.
* page/UserContentController.cpp:
(WebCore::UserContentController::removeAllUserContentExtensions):
(WebCore::contentExtensionsEnabled):
(WebCore::UserContentController::processContentExtensionRulesForLoad):
(WebCore::UserContentController::actionsForResourceLoad):
Check the DocumentLoader of the main frame when checking if content extensions are disabled,
because that is the DocumentLoader that has the flag from reloading without content blockers.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@191223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2 files changed