<div dir="ltr">Absolutely agree with Andrey, debugging issues caused by content blocker rules is currently impossible. Being able to add/see a unique rule ID would be a huge improvement.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 6:15 AM, Andrey Meshkov <span dir="ltr">&lt;<a href="mailto:am@adguard.com" target="_blank">am@adguard.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi!</div><div><br></div><div>Currently it is very hard to debug content blocker rules as we can&#39;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-&gt;addConsoleMessage(MessageSource::ContentBlocker, MessageLevel::Info, makeString(&quot;Content blocker prevented frame displaying &quot;, mainDocumentURL.string(), &quot; from loading a resource from &quot;, request.url().string()));<br>       return BlockedStatus::Blocked;<br>    }</font><br><br>But clearly that&#39;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><div dir="ltr">--<br>wbr, Andrey Meshkov</div></div></div>
</div></div>
<br>_______________________________________________<br>
webkit-help mailing list<br>
<a href="mailto:webkit-help@lists.webkit.org">webkit-help@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-help" rel="noreferrer" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-help</a><br>
<br></blockquote></div><br></div>