[Webkit-unassigned] [Bug 152598] New: Feature request: a callback when request is blocked by the Content Blocker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 30 09:26:56 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=152598

            Bug ID: 152598
           Summary: Feature request: a callback when request is blocked by
                    the Content Blocker
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: am at adguard.com

Currently it is very hard to debug content blocker rules as we can't discover which rule has been triggered.

The only notification I see in webkit code is:

if (willBlockLoad) {
    if (currentDocument)
        currentDocument->addConsoleMessage(MessageSource::ContentBlocker,
MessageLevel::Info, makeString("Content blocker prevented frame displaying
", mainDocumentURL.string(), " from loading a resource from ",
request.url().string()));
       return BlockedStatus::Blocked;
    }

But clearly that's not enough.

It would be great if there was some kind of a callback method signaling about triggered content blocker rule.

Essential information:
1. Main document URL
2. Request URL
3. Content blocker rule (if it is possible to pass the whole rule here).

If point 3 is too hard to implement, you might add an ID property to the rule syntax and pass that ID back in the callback method.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151230/d35826a9/attachment.html>


More information about the webkit-unassigned mailing list