declarativeNetRequest.getMatchedRules() does not return the blocked URLs of the current website until refreshed

We used declarativeNetRequest.getMatchedRules() to retrieve the blocked URLs. While we do receive a list, we noticed that the URLs captured do not always reflect the ones the content blocker is actively blocking at that moment. However, upon reloading the same page, the correct URLs appear.

Screenshots are attached for your reference.

First load:

After reload:

It's hard to tell exactly what is going on without seeing the invocation of how you are calling getMatchedRules.

Is it possible to file feedback at https://feedbackassistant.apple.com including steps to reproduce and a sample project and include the feedback ID here once you do?

Thanks!

We have filed a feedback can we get any update on this? https://feedbackassistant.apple.com/feedback/15381109 and attached a sample app as well. FB15381109

declarativeNetRequest.getMatchedRules() does not return the blocked URLs of the current website until refreshed
 
 
Q