Skip to content

Add url property when reporting on snippets

Background

This is specifically as a fix for this issue in adblockplusui Currently, when reporting on snippet filters only the tabId, frameId attributes are returned. This means that we're not reporting the url that this event happened on.

Use case

As we already have the rest of the frame information, it seems that adding the url property when logging snippet items should be possible.

What to change

  • Add the url property to the request object that gets logged in sdk/api/content-filter.js (Line 53 currently)
  • Update the documentation of onBlockableItem to reflect this change
Edited by Rowan Deysel