Skip to content
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
37 changes: 30 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ <h3>The <dfn>unobserve()</dfn> method</h3>
<li>
[=map/Remove=] |this|.{{PressureObserver/[[LastRecordMap]]}}[|source|].
</li>
<li>
[=map/Remove=] |this|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|].
</li>
<li>
[=list/For each=] (|promiseSource|, |pendingPromise|) of [=this=].{{PressureObserver/[[PendingObservePromises]]}},
if |source| is equal to |promiseSource|, [=reject=] |pendingPromise| with an {{AbortError}}.
Expand Down Expand Up @@ -646,6 +649,9 @@ <h3>The <dfn>disconnect()</dfn> method</h3>
<li>
[=map/Clear=] |this|.{{PressureObserver/[[LastRecordMap]]}}.
</li>
<li>
[=map/Clear=] |this|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}.
</li>
<li>
[=list/For each=] (|promiseSource|, |pendingPromise|) of [=this=].{{PressureObserver/[[PendingObservePromises]]}},
[=reject=] |pendingPromise| with an {{AbortError}}.
Expand Down Expand Up @@ -1051,24 +1057,41 @@ <h3>Data delivery</h3>
and {{PressureRecord/[[Time]]}} set to |timestamp|.
</li>
<li>
If |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[source] exists,
set observer.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[source] to |record|
and [=iteration/continue=].
If |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[source] [=map/exists]:
<ol>
<li>
Set |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|] to |record|.
</li>
<li>
[=iteration/Continue=].
</li>
</ol>
</li>
<li>
If running [=passes rate obfuscation test=] with |observer| and |source| returns false:
<ol>
<li>
Set |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|] to |record|.
</li>
<li>
Set |observer|.{{PressureObserver/[[ChangesCountMap]]}}[|source|] to 0.
</li>
<li>
Create timer of |observer|.{{PressureObserver/[[PenaltyDuration]]}} duration with the following callback:
<ol>
<li>
Let |record| be the result of taking |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|].
</li>
<li>
Run [=queue a record=] with |observer|, |source|, |record|.
If |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[source] [=map/exists]:
<ol>
<li>
Let |record| be |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|].
</li>
<li>
[=map/Remove=] |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[|source|].
</li>
<li>
Run [=queue a record=] with |observer|, |source|, |record|.
</li>
</ol>
</li>
</ol>
</li>
Expand Down