Skip to content

Commit 80194a7

Browse files
committed
Move examples out of the main text.
1 parent f457f3f commit 80194a7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

index.bs

+13-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ and embodied in the various standards that user agents implement.
8080

8181
[[design-principles#safe-to-browse|It should be safe to visit a web page.]]
8282
That is, simply visiting a page must not allow
83-
the page to make permanent changes to the user's computer or environment
84-
(for example by installing malware),
83+
the page to make permanent changes to the user's computer or environment,
8584
and simply visiting should reveal
8685
as little information as practical about the user to the page,
8786
to the user's environment,
@@ -90,8 +89,7 @@ and to any other interested actor.
9089
Users can opt into sharing more information with a page they visit,
9190
for example by entering or auto-filling data into form fields,
9291
or granting permissions to the page.
93-
Users can also allow the page to make changes to their environment,
94-
for example by installing native programs that the page offers.
92+
Users can also allow the page to make changes to their environment.
9593
Even in these cases,
9694
user agents should strive to prevent pages from tricking their users
9795
and should help their users notice
@@ -142,6 +140,17 @@ This motivates behaviors like
142140
<a element-state for="input" lt="File Upload">`<input type=file>`</a> uploads, and
143141
* restricting which local fonts can be used in <a at-rule>@font-face</a> rules.
144142

143+
User agents are not expected
144+
to entirely prevent users from letting web pages read or write local files.
145+
As mentioned,
146+
<a element-state for="input" lt="File Upload">`<input type=file>`</a>
147+
allows uploading file contents,
148+
and user agents allow people to download files from the web,
149+
including dangerous executables.
150+
Smoother experiences like the [[file-system-access inline]] API
151+
also don't violate any duties,
152+
as long as users can [[design-principles#consent|meaningfully consent]].
153+
145154
</div>
146155

147156
## Honesty ## {#honesty}

0 commit comments

Comments
 (0)