-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fix references to html after navigation and session history rewrite #580
Conversation
@@ -3467,35 +3474,32 @@ this algorithm returns normally if compilation is allowed, and throws a | |||
</h5> | |||
|
|||
This directive's <a for="directive">initialization</a> algorithm is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we actually get rid completely of the initialization hook (and move the worker part to html, too)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that would make things simpler, but I'm totally willing to believe that it would? Put up a patch to talk through?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does seem nicer!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I filed #581. I'll take a stab at it when I have time.
index.bs
Outdated
former two (also including navigations). This is true even when the data is | ||
semantically equivalent to content which would otherwise be restricted by | ||
another directive, such as an <{object}> element with a `text/html` MIME | ||
type. | ||
|
||
Note: When a plugin resource is navigated to directly (that is, as a <a>plugin document</a> in the | ||
<a>top-level browsing context</a> or a <a>nested browsing context</a>, and not as an embedded | ||
Note: When a plugin resource is navigated to directly (that is, as a <a>plugin</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The part about plugins should probably be rewritten to take into account that we only have pdf left. I guess we can do it in a follow-up change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generally true, but I think Chromium at least also has weird things NaCL modules in extensions (behind an enterprise policy).
cc @domenic |
index.bs
Outdated
text: content security policy state; url: attr-meta-http-equiv-content-security-policy | ||
text: create and initialize a new document object; url: initialise-the-document-object | ||
text: initializing a new Document object; url: initialise-the-document-object | ||
text: prepare the script element; url: prepare-the-script-element | ||
text: container document; for: navigable; url: nav-container-document | ||
text: CSP-derived sandboxing flags; url: csp-derived-sandboxing-flags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably be exported then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The navigable container document makes sense (whatwg/html#8556). For the CSP-derived sandboxing flags I am not sure. It looks more like an internal html thing, and we reference it here only to recall that html takes care of that. Should the definition be exported in such a case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not. Those cases are somewhat tricky. You could link those inline using an explicit spec=html
attribute I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty reasonable to me, but I'll defer to @domenic since he's the expert on the navigation work.
@@ -3467,35 +3474,32 @@ this algorithm returns normally if compilation is allowed, and throws a | |||
</h5> | |||
|
|||
This directive's <a for="directive">initialization</a> algorithm is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that would make things simpler, but I'm totally willing to believe that it would? Put up a patch to talk through?
index.bs
Outdated
former two (also including navigations). This is true even when the data is | ||
semantically equivalent to content which would otherwise be restricted by | ||
another directive, such as an <{object}> element with a `text/html` MIME | ||
type. | ||
|
||
Note: When a plugin resource is navigated to directly (that is, as a <a>plugin document</a> in the | ||
<a>top-level browsing context</a> or a <a>nested browsing context</a>, and not as an embedded | ||
Note: When a plugin resource is navigated to directly (that is, as a <a>plugin</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generally true, but I think Chromium at least also has weird things NaCL modules in extensions (behind an enterprise policy).
3eeed87
to
1bc6ac4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the reference stuff being slightly nicer with for=html
than via adding to the anchors block.
1bc6ac4
to
5af2e5d
Compare
Thanks, suggestions implemented! |
This PR fixes broken references to html, which were mostly a result of the navigation and session history rewrite.
In particular, this change:
This fixes #576.