Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a9ef1c57161b3775421720826ac1e5c32e9e239d
https://github.com/WebKit/WebKit/commit/a9ef1c57161b3775421720826ac1e5c32e9e239d
Author: Wenson Hsieh <[email protected]>
Date: 2022-11-01 (Tue, 01 Nov 2022)
Changed paths:
M Source/WebCore/contentextensions/ContentExtensionsBackend.cpp
M Source/WebCore/contentextensions/ContentExtensionsBackend.h
M Source/WebCore/loader/cache/CachedResourceLoader.cpp
Log Message:
-----------
Add a way to customize the console log message when content extensions block
requests
https://bugs.webkit.org/show_bug.cgi?id=247330
Reviewed by Tim Horton.
Add an extension point in WebKit additions code that can be used to override
console log messages
when content blockers block requests in both the main frame and in subframes.
* Source/WebCore/contentextensions/ContentExtensionsBackend.cpp:
(WebCore::ContentExtensions::customLoadBlockingMessageForConsole):
(WebCore::ContentExtensions::ContentExtensionsBackend::processContentRuleListsForLoad):
* Source/WebCore/contentextensions/ContentExtensionsBackend.h:
(WebCore::ContentExtensions::customLoadBlockingMessageForConsole):
* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestResource):
Canonical link: https://commits.webkit.org/256204@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes