Skip to content

Reconsider Clear-Site-Data impression-deletion criteria #289

@apasel422

Description

@apasel422

While working on end-to-end tests for the clear impressions for a conversion site algorithm in the simulator, I wondered about a few possible issues:

  1. Step 1 (If origin is not a tuple origin with a scheme of https, return.) is unnecessary to include in the specification, as it is simply an optimization in the case that the origin is opaque or non-HTTPS, which would need to be adjusted for Site identification and localhost #146. It would be more future-proof to remove this step.
  2. As currently specified, a top-level site that registers an impression is not capable of removing it (though an intermediary site that registers one is capable of doing so). According to Clear-Site-Data integration #125 (comment) this was intentional, but I'm not sure there's a good reason to prevent it: What if an impression site registers impressions with an empty conversion sites set (allowing conversions anywhere), but realizes that they made a mistake in their other options (e.g. matchValue)? It might make sense to allow the impression site to clear out impressions with a step like "If impression's intermediary site is undefined and its impression site is equal to site, remove impression from the impression store." so that they don't get bogus conversions.
  3. The algorithm is misleadingly named, precisely because of that intermediary-site check, which is unrelated to conversion sites.
  4. It's unclear to me whether we should allow conversion callers to remove impressions, in addition to conversion sites, as Clear-Site-Data integration #160 was written before the conversion-callers concept was added to the spec.

Metadata

Metadata

Assignees

Labels

cr-blockerThis issue needs be resolved before we go to CR (snapshot).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions