-
Notifications
You must be signed in to change notification settings - Fork 28
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
Sandboxing #18
Comments
It seems useful to give this information to the server, presumably only for mode= @mikewest I wonder if there's a better general model for revealing boolean flags such as this one, I can think of two approaches:
I kind of like (1) -- it seems cleaner than what we currently have. The main difference is that it would switch from making a negative assertion ("there was no user activation for this navigation") to an absence of a positive one (no header set). However, the server could still infer this based on the presence of other One other benefit this would have is that servers will almost always need the other Sec-Fetch values (e.g. |
Sandbox might be a little more complicated than a boolean, if we want to give the site detail about the various flags enforced for a given document's policy. If we extend this to the rest of feature policy's flags, it would be even more unwieldy to pack it into a series of boolean headers. It's probably worth trying to figure out what problem we're trying to solve by sending the data around in the first place to see if it ends up being worthwhile to do so on each request. As @arturjanc suggests above, limiting some headers to navigation requests might be reasonable. I'm not sure if there's much value in informing sites that a given XHR or I can also see value in dropping |
(For sandboxing I only care about the request for the resource upon which the policy will be applied. The user-activated bit though I've indeed seen others ask about as well, though I wonder effective that is as it's rather easy to obtain once you have a compromise of sorts.) |
@mikewest probably not for all SH; it tells you how to serialise a data structure, but doesn't get into things like defaults. |
I discussed with @clelland the idea that perhaps we should tell sites they're being sandboxed (or restricted in some manner).
This should probably be separate from destination/mode, but I was reminded of it when filing #17 and it seemed useful to bring up as it might inspire other solutions.
(At least in my mind these mechanisms are all somewhat related.)
The text was updated successfully, but these errors were encountered: