From af9b5dc33d65f3eb929afdc5be4ac9b44303def1 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Fri, 15 Sep 2017 11:41:47 +0300 Subject: [PATCH] Tie [=latest reading=] map to an origin In order to prevent unsanctioned cross-origin communication. --- index.bs | 14 +- index.html | 403 ++++++++++++++++++++++++++--------------------------- 2 files changed, 209 insertions(+), 208 deletions(-) diff --git a/index.bs b/index.bs index 7882ce3..17b1bba 100644 --- a/index.bs +++ b/index.bs @@ -751,14 +751,16 @@ A sensor has an associated [=ordered set|set=] of activated sensor objects. This set is initially [=set/is empty|empty=]. -A [=sensor=] has an associated latest reading [=ordered map|map=] -which holds the latest available [=sensor readings=]. +The current [=browsing context=]'s [=sensor=] has an associated latest reading +[=ordered map|map=] which holds the latest available [=sensor readings=]. -Any time the UA obtains a new [=sensor reading=] for a [=sensor=] from the underlying platform, -it invokes [=update latest reading=] with the [=sensor=] and the [=sensor reading=] as arguments. +Note: User agents can share [=sensor readings=] [=ordered map|map=] between different +[=browsing context|contexts=] only if the [=origins=] of these contexts' [=active documents=] +are [=same origin-domain=]. -Issue: does the [=latest reading=] map need to be -tied to an origin? +Any time the user agent obtains a new [=sensor reading=] for a [=sensor=] from the underlying +platform, it invokes [=update latest reading=] with the [=sensor=] and the [=sensor reading=] +as arguments. The [=latest reading=] [=ordered map|map=] contains an [=map/entry=] diff --git a/index.html b/index.html index d873deb..80a9b6b 100644 --- a/index.html +++ b/index.html @@ -1183,7 +1183,7 @@ background-attachment: fixed; } - + +/* This is a weird hack for me not yet following the commonmark spec + regarding paragraph and lists. */ +[data-md] > :first-child { + margin-top: 0; +} +[data-md] > :last-child { + margin-bottom: 0; +} +a.self-link::before { content: "¶"; } +.heading > a.self-link::before { content: "§"; } +dfn > a.self-link::before { content: "#"; } +figcaption { + counter-increment: figure; +} +figcaption:not(.no-marker)::before { + content: "Figure " counter(figure) " "; +} +[data-link-type=biblio] { + white-space: pre; +}