Incorrect FilterMatchInfo.docDomain for main frame request
Environment
- Browser and full version: 97.0.4692.71
- Extension using this toolkit: test-mv2
- Commit hash: a13af03f
Steps to reproduce
- Run the following code in the background page:
EWE.reporting.onBlockableItem.addListener(
({request, filter, matchInfo}) => console.log(request.url, matchInfo.docDomain),
{
filterType: "all",
includeUnmatched: true
}
)
- Open new tab and navigate to example.com.
- Navigate to adblockplus.org.
- Navigate to example.com.
Actual behavior
The following logs are shown in the background page:
- After 2)
https://example.com/ undefined
- After 3)
https://adblockplus.org/ example.com
https://adblockplus.org/ adblockplus.org
...other requests...
- After 4)
https://example.com/ adblockplus.org
Expected behavior
The following logs are shown in the background page:
- After 2)
https://example.com/ example.com
- After 3)
https://adblockplus.org/ adblockplus.org
...other requests...
- After 4)
https://example.com/ example.com
Further information
This causes the main frame request to appear multiple times in the Adblock Plus developer tools panel, one of which without or with a wrong docDomain
.