<div dir="ltr"><div>Hi!</div><div><br></div><div>Currently it is very hard to debug content blocker rules as we can't discover which rule has been triggered.</div><div><br></div><div>The only notification I see in webkit code is:</div><div><br></div><font face="monospace, monospace">if (willBlockLoad) {<br> if (currentDocument)<br> currentDocument->addConsoleMessage(MessageSource::ContentBlocker, MessageLevel::Info, makeString("Content blocker prevented frame displaying ", mainDocumentURL.string(), " from loading a resource from ", request.url().string()));<br> return BlockedStatus::Blocked;<br> }</font><br><br>But clearly that's not enough.<div><br></div><div>It would be great if there was some kind of a callback method signaling about triggered content blocker rule.</div><div><br></div><div>Essential information:</div><div>1. Main document URL</div><div>2. Request URL</div><div>3. Content blocker rule (if it is possible to pass the whole rule here).</div><div><br></div><div>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.</div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">--<br>wbr, Andrey Meshkov</div></div></div>
</div></div>