aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-26 18:19:52 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-26 22:11:13 +0100
commitaaa94080ca9e80fd71c3baf40b028139961c3a49 (patch)
tree615e2e1a02f9390150a7f1649e20ab5a5392fb6b /doc
parent4a98e7940971dc7d8ff36907ee37f0aad6d7cb38 (diff)
downloadchawan-aaa94080ca9e80fd71c3baf40b028139961c3a49.tar.gz
buffer: add "app" scripting mode
For APIs that cannot be implemented in a privacy-friendly manner. As a start, I've added accurate screen size queries; getComputedStyle, getBoundingClientRect, etc. should follow. (We have a harmless getComputedStyle already, but it's broken.) Probably, things like JS-based scroll belong in here too, but I'm not sure yet. (Perhaps autofocus should be reused instead?)
Diffstat (limited to 'doc')
-rw-r--r--doc/config.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/config.md b/doc/config.md
index 3c337194..1fee73a3 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -144,8 +144,12 @@ Defaults to true (i.e. enabled).</td>
<tr>
<td>scripting</td>
-<td>boolean</td>
+<td>boolean / "app"</td>
<td>Enable/disable JavaScript in *all* buffers.<br>
+`"app"` also enables JavaScript APIs that can be used to fingerprint
+users (e.g. querying the window's size.)<br>
+This may achieve better compatibility with websites that behave like
+applications, at the cost of reduced privacy.<br>
Defaults to false. For security reasons, users are encouraged to selectively
enable JavaScript with `[[siteconf]]` instead of using this setting.</td>
</tr>
@@ -841,9 +845,11 @@ Overrides `buffer.referer-from`.
<tr>
<td>scripting</td>
-<td>boolean</td>
+<td>boolean / "app"</td>
<td>Enable/disable JavaScript execution on this site. Overrides
-`buffer.scripting`.</td>
+`buffer.scripting`.<br>
+See the description of `buffer.scripting` for an explanation of
+"app".</td>
</tr>
<tr>