WICG / interventions

A place for browsers and web developers to collaborate on user agent interventions.
Other
177 stars 28 forks source link

Cannot get intervention reports with ReportingObserver #71

Closed Beraliv closed 4 years ago

Beraliv commented 4 years ago

Chrome Version: Version 83.0.4103.61 (Official Build) (64-bit) Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: No public signals Firefox: No public signals Edge: No public signals

What steps will reproduce the problem? (1) Enabled flag in chrome://flags/#heavy-ad-privacy-mitigations (2) Opened private stand (3) Created iframe, added ReportingObserver in iframe.contentWindow (4) Got an intervention report in the console (5) Didn't get the report in ReportingObserver

What is the expected result? Getting an intervention report in ReportingObserver

What happens instead? Didn't get the intervention report in ReportingObserver

Beraliv commented 4 years ago

Sorry for the late response, I figured out that there was a different iframe Finally it was found and ReportObserver returned intervention reports correctly Also there was a trick with 'beforeunload' event and takeRecords function in the callback which did return that expected