Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: use associated Document in place of responsible document #359

Merged
merged 2 commits into from
May 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ and an [=environment settings object=] |settings|, run the following steps:
1. Let |currentTime| be the current time.
1. Assert: |params|["{{AttributionSourceParams/attributionDestination}}"] and
|params|["{{AttributionSourceParams/attributionSourceEventId}}"] [=map/exist=].
1. If |settings|'s [=environment settings object/responsible document=] is
1. If |settings|'s [=relevant global object=]'s [=associated Document=] is
not [=allowed to use=] the [=attribution-reporting=] [=policy-controlled feature=], return null.
1. Let |attributionDestination| be the result of running
[=parse an attribution destination=] with |params|["{{AttributionSourceParams/attributionDestination}}"].
Expand Down Expand Up @@ -699,7 +699,7 @@ Given a [=request=] |request|:
return <strong>allowed</strong>.
1. Let |environment| be |request|'s [=request/window=].
1. If |environment| is not an [=environment settings object=], return <strong>allowed</strong>.
1. If |environment|'s [=environment settings object/responsible document=] is not [=allowed to use=] the [=attribution-reporting=] [=policy-controlled feature=],
1. If |environment|'s [=relevant global object=]'s [=associated Document=] is not [=allowed to use=] the [=attribution-reporting=] [=policy-controlled feature=],
return <strong>allowed</strong>.
1. If |environment|'s [=environment settings object/origin=] is not a [=potentially trustworthy origin=], return <strong>allowed</strong>.
1. If |environment|'s [=environment/top-level origin=] is an [=opaque origin=], return <strong>allowed</strong>.
Expand Down Expand Up @@ -890,12 +890,12 @@ To <dfn>queue a report for delivery</dfn> given an [=attribution report=] |repor
1. If |report|'s [=attribution report/delivered=] value is true, return.
1. Set |report|'s [=attribution report/delivered=] value to true.
1. If |report|'s [=attribution report/report time=] is less than the current time, add an [=implementation-defined=] random amount to report time.
Note: On startup, it is possible the user agent will need to send many reports whose report times passed while the browser was

Note: On startup, it is possible the user agent will need to send many reports whose report times passed while the browser was
closed. Adding random delay prevents temporal joining of reports from different [=attribution source/source origin=]s.
1. Wait until |report|'s [=attribution report/report time=] is the current time.
1. Optionally, wait a further [=implementation-defined=] length of time.

Note: This is intended to allow user agents to optimize device resource usage.
1. Run [=attempt to deliver a report=] with |report|.

Expand Down Expand Up @@ -986,7 +986,7 @@ To <dfn>attempt to deliver a report</dfn> given an [=attribution report=] |repor
:: "`no-store`"
1. [=Queue a task=] to [=fetch=] |request| with [=fetch/processResponse=] being these steps:
1. [=Queue a task=] to remove |report| from the [=attribution report cache=].

Issue(220): This fetch should use a network partition key for an opaque origin.

A user agent MAY retry this algorithm in the event that there was an error.
Expand Down