Skip to content

Commit 9356e66

Browse files
committed
feedback
1 parent 9c656d9 commit 9356e66

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

source

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8111,19 +8111,24 @@ interface <dfn>DOMStringList</dfn> {
81118111
data-x="Serializable SameAgentCluster">SameAgentCluster</code>. It must only appear on an
81128112
interface. It must not appear more than once on an interface.</p>
81138113

8114-
<p>For a given <span>platform object</span>, only the object's <span>primary interface</span> is
8115-
considered during the (de)serialization process. Thus, if inheritance is involved in defining the
8116-
interface, each <code data-x="Serializable">[Serializable]</code>-annotated interface in the
8117-
inheritance chain needs to define standalone <span>serialization steps</span> and
8118-
<span>deserialization steps</span>, including taking into account any important data that might
8119-
come from inherited interfaces.</p>
8114+
<p class="note">The <code data-x="Serializable SameOrigin">SameOrigin</code> identifier prevents
8115+
deserialization in cross-origin realms. Similarly, the <code data-x="Serializable
8116+
SameAgentCluster">SameAgentCluster</code> identifier prevents deserialization in realms belonging
8117+
to other agent clusters.</p>
81208118

81218119
<p class="XXX">As discussed in <a href="https://github.com/whatwg/html/issues/4920">issue
81228120
#4920</a>, new features are strongly encouraged to use either <code data-x="Serializable
81238121
SameOrigin">SameOrigin</code> or <code data-x="Serializable SameOrigin">SameOrigin</code> and
81248122
<code data-x="Serializable SameAgentCluster">SameAgentCluster</code> together. A future
81258123
refactoring will likely tightly couple the latter.</p>
81268124

8125+
<p>For a given <span>platform object</span>, only the object's <span>primary interface</span> is
8126+
considered during the (de)serialization process. Thus, if inheritance is involved in defining the
8127+
interface, each <code data-x="Serializable">[Serializable]</code>-annotated interface in the
8128+
inheritance chain needs to define standalone <span>serialization steps</span> and
8129+
<span>deserialization steps</span>, including taking into account any important data that might
8130+
come from inherited interfaces.</p>
8131+
81278132
<div class="example">
81288133
<p>Let's say we were defining a platform object <code data-x="">Person</code>, which had
81298134
associated with it two pieces of associated data:</p>
@@ -8479,12 +8484,12 @@ interface <dfn>DOMStringList</dfn> {
84798484

84808485
<li><p>Set <var>serialized</var> to { [[Type]]: <var>typeString</var> }.</p></li>
84818486

8482-
<li><p>If <var>value</var>'s interface <code data-x="Serializable">[Serializable]</code>
8487+
<li><p>If <var>value</var>'s interface's <code data-x="Serializable">[Serializable]</code>
84838488
extended attribute contains the <code data-x="Serializable SameOrigin">SameOrigin</code>
84848489
identifier, then set <var>serialized</var>.[[EnforceOrigin]] to the <span>current settings
84858490
object</span>'s <span data-x="concept-settings-object-origin">origin</span>.</p></li>
84868491

8487-
<li><p>If <var>value</var>'s interface <code data-x="Serializable">[Serializable]</code>
8492+
<li><p>If <var>value</var>'s interface's <code data-x="Serializable">[Serializable]</code>
84888493
extended attribute contains the <code data-x="Serializable
84898494
SameAgentCluster">SameAgentCluster</code> identifier, then set
84908495
<var>serialized</var>.[[EnforceAgentCluster]] to the <span>surrounding agent</span>'s

0 commit comments

Comments
 (0)