Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearrange spec structure as more explicit patches #189

Merged
merged 2 commits into from
May 4, 2020
Merged

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented May 4, 2020

This brings the spec closer to how it would look upon landing in HTML, and explicitly calls out what sections it would expect things to land in. Notable changes:

  • Moved window.portalHost from "Miscellaneous extensions" into a new "Portal hosts" section, which contains the definitions for both window.portalHost and the PortalHost interface.

  • Made the onportalactivate event handler addition match HTML's existing structure.

  • Moved subsections of "Security considerations" which were spec patches into a new dedicated section, "Updates to other specifications".

  • Noted the connection to HTML's "navigate" algorithm should handle 'X-Frame-Options' and CSP's 'frame-ancestors' whatwg/html#1230 in addition to RFC 7034.

  • Tweaks the wording in the "Fetch Metadata Request Headers" section's non-normative summary notes.


Preview | Diff

This brings the spec closer to how it would look upon landing in HTML, and explicitly calls out what sections it would expect things to land in. Notable changes:

* Moved window.portalHost from "Miscellaneous extensions" into a new "Portal hosts" section, which contains the definitions for both window.portalHost and the PortalHost interface.

* Made the onportalactivate event handler addition match HTML's existing structure.

* Moved subsections of "Security considerations" which were spec patches into a new dedicated section, "Updates to other specifications".

* Noted the connection to whatwg/html#1230 in addition to RFC 7034.

* Tweaks the wording in the "Fetch Metadata Request Headers" section's non-normative summary notes.
@domenic domenic requested a review from jeremyroman May 4, 2020 19:51
index.bs Outdated
</tr>
</thead>
<tbody>
<tr>
<td><dfn event for="Window"><code>portalactivate</code></dfn></td>
<td>{{PortalActivateEvent}}</td>
<td>The window is associated with a new [=top-level browsing context=] due to activation of its [=portal browsing context=].</td>
<td>{{Window}}</td>
<td>Fired at the {{Window}} when it is associated with a new [=top-level browsing context=]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the {{Window}} (i.e. the object itself) is still associated with the same top-level browsing context; it's the UA-level window that is associated with a new browsing context. This wording was awkward before this PR too (probably because this was one of the earlier things to be written and terminology has changed).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yeah, I see. Maybe something like this?

Fired at the Window of a portal browsing context when that portal browsing context is activated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, sg. The exact details are elsewhere, so this only needs to give the right general intution.

@domenic domenic merged commit 66c16ec into master May 4, 2020
@domenic domenic deleted the rearrange-spec branch May 4, 2020 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants