Skip to content

Commit 5803252

Browse files
committed
Merge remote-tracking branch 'wicg/master' into add-usecases
2 parents 5203200 + 13325d4 commit 5803252

4 files changed

Lines changed: 62 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Boundary Scroll Action
1+
# Scroll Boundary Behavior
22
---
3+
# Draft Specification
4+
https://wicg.github.io/scroll-boundary-behavior
35

46
# Problem
57

@@ -33,11 +35,3 @@ where:
3335
* none - Same as contain but also hint that no overscroll affordance should be triggered.
3436

3537
This should apply to all, non-programatic, user scroll actions.
36-
37-
# Issues to file
38-
39-
* Should the property disable scroll chaining through itself to an ancestor if scrolling is initiated from a child element?
40-
41-
* What if the property is attached to a potentially scrollable element without a scrollbox?
42-
43-
* What if the property is attached to an element which is not scrollable?

index.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,15 @@ Note: In the case where a user agent does not implement scroll chaining and over
209209
these values will have no side effects for a compliant implementation.
210210

211211
Note: Programmatic scrolling is clamped and can not trigger any <a>boundary default actions</a>.
212+
213+
214+
215+
Security and Privacy Considerations {#security-and-privacy}
216+
===================================
217+
There are no known security or privacy impacts of this feature. The feature may be used to prevent
218+
certain native UI features such as overscroll affordances and overscroll navigations (e.g., pull-
219+
to-refresh, swipe navigations). However, this does not expose any additional abilities beyond what
220+
is already possible in the platform e.g., by preventing the default action of the event that would
221+
cause a scroll.
222+
223+

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,7 @@ <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
14671467
<li><a href="#scroll-chaining-and-boundary-default-actions"><span class="secno">3</span> <span class="content">Scroll chaining and boundary default actions</span></a>
14681468
<li><a href="#overview"><span class="secno">4</span> <span class="content">Overview</span></a>
14691469
<li><a href="#scroll-boundary-behavior-properties"><span class="secno">5</span> <span class="content">Scroll Boundary Behavior Properties</span></a>
1470+
<li><a href="#security-and-privacy"><span class="secno">6</span> <span class="content">Security and Privacy Considerations</span></a>
14701471
<li><a href="#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
14711472
<li>
14721473
<a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
@@ -1658,6 +1659,12 @@ <h2 class="heading settled" data-level="5" id="scroll-boundary-behavior-properti
16581659
<p class="note" role="note"><span>Note:</span> In the case where a user agent does not implement scroll chaining and overscroll affordances,
16591660
these values will have no side effects for a compliant implementation.</p>
16601661
<p class="note" role="note"><span>Note:</span> Programmatic scrolling is clamped and can not trigger any <a data-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action⑤">boundary default actions</a>.</p>
1662+
<h2 class="heading settled" data-level="6" id="security-and-privacy"><span class="secno">6. </span><span class="content">Security and Privacy Considerations</span><a class="self-link" href="#security-and-privacy"></a></h2>
1663+
There are no known security or privacy impacts of this feature. The feature may be used to prevent
1664+
certain native UI features such as overscroll affordances and overscroll navigations (e.g., pull-
1665+
to-refresh, swipe navigations). However, this does not expose any additional abilities beyond what
1666+
is already possible in the platform e.g., by preventing the default action of the event that would
1667+
cause a scroll.
16611668
</main>
16621669
<div data-fill-with="conformance">
16631670
<h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="#conformance"></a></h2>

security-privacy-questionnaire.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Summary
2+
3+
Scroll Boundary Behavior introduces a new method to control over the behavior of a scroll container
4+
element when its scrollport reaches the boundary of its scroll box. It allows the content author to
5+
specify that a scroll container element must prevent scroll chaining and/or overscroll affordances.
6+
7+
To our knowledge it poses no known security or privacy risks.
8+
9+
## Questionnaire
10+
11+
Source: https://www.w3.org/TR/security-privacy-questionnaire/
12+
13+
14+
|Question | Answer|
15+
|---------|-------|
16+
|3.1 Does this specification deal with personally-identifiable information?| NO |
17+
|3.2 Does this specification deal with high-value data?| NO |
18+
|3.3 Does this specification introduce new state for an origin that persists across browsing sessions?| NO |
19+
|3.4 Does this specification expose persistent, cross-origin state to the web?| NO |
20+
|3.5 Does this specification expose any other data to an origin that it doesn’t currently have access to?| NO |
21+
|3.6 Does this specification enable new script execution/loading mechanisms?| NO |
22+
|3.7 Does this specification allow an origin access to a user’s location?| NO |
23+
|3.8 Does this specification allow an origin access to sensors on a user’s device?| NO |
24+
|3.9 Does this specification allow an origin access to aspects of a user’s local computing environment?| NO |
25+
|3.10 Does this specification allow an origin access to other devices?| NO |
26+
|3.11 Does this specification allow an origin some measure of control over a user agent’s native UI?| YES|
27+
|3.12 Does this specification expose temporary identifiers to the web?| NO |
28+
|3.13 Does this specification distinguish between behavior in first-party and third-party contexts?| NO |
29+
|3.14 How should this specification work in the context of a user agent’s "incognito" mode?| SAME|
30+
|3.15 Does this specification persist data to a user’s local device?| NO |
31+
|3.16 Does this specification have a "Security Considerations" and "Privacy Considerations" section?| YES |
32+
|3.17 Does this specification allow downgrading default security characteristics?| NO |
33+
34+
## Additional Clarifications
35+
36+
3.11 Does this specification allow an origin some measure of control over a user agent’s native UI?
37+
38+
Yes. The feature may be used to prevent overscroll affordances and overscroll navigations (pull-to-refresh, swipe navigations).
39+
However this power is not new and may be achieve by prevent defaulting the event that causes the scroll to begin with.
40+

0 commit comments

Comments
 (0)