w3c / dnt

Archive of DNT deliverables
https://www.w3.org/TR/tracking-dnt/
Other
12 stars 19 forks source link

Changes to TrackingException API to return indication of site-wide co… #42

Closed michael-oneill closed 7 years ago

michael-oneill commented 7 years ago

…nsent

The storeSiteSpeciificTrackingException now returns a Promise resolving to a "TrackingExceptionResult" object that contains a boolean "siteWide", set to true if a site-wide exception has been registered.

For consistency and simplicity of implementation the confirm calls (both confirmSiteSpecificTrackingException and confirmWebWideTrackingException now also return a TrackingExcpetionResult object with a boolean "exists" property indicating existence, rather than resolving to a boolean which would have been inconsistent. storeWebWideTrackingException, removeSiteSpecificTrackingException and removeWebWideTrackingException still resolve to a void.