DNR: Add excludedTopFrameDomains (and topFrameDomains) #762
Labels
supportive: chrome
Supportive from Chrome
supportive: firefox
Supportive from Firefox
supportive: safari
Supportive from Safari
topic: dnr
Related to declarativeNetRequest
In addition to
excludedInitiatorDomains
(andinitiatorDomains
). HavingexcludedTopFrameDomains
(andtopFrameDomains
) would solve the problem of excluding (or including) requests based specifically on the top-level document's domain, not the initiator's (immediate parent frame's) domain.excludedTopFrameDomains
will work just likeexcludedInitiatorDomains
with the one difference being thatexcludedTopFrameDomains
compares against the top-level frame's domain instead of the immediate parent frame's domain.Developers should be able to feature detect the availability of
excludedTopFrameDomains
, so that they can use it when it is available and fall back onexcludedInitiatorDomains
otherwise.For a real world example of what this would solve, see EFForg/privacybadger#3048 (comment)
The text was updated successfully, but these errors were encountered: