-
Notifications
You must be signed in to change notification settings - Fork 155
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
allow disabled-by-default features #513
Comments
One issue that might motivate the second alternative (besides it just being onerous to have to enable by attribute and header at every frame boundary) is that some contexts actually don't allow for headers to be set -- I wonder if it would actually be so bad to have a model where:
|
Does it make sense to say that a |
@smaug--- is there anyone from Mozilla who can weigh in on this? @marcoscaceres Ian mentioned you had an idea for different semantics. |
@smaug---- is there anyone from Mozilla who can weigh in on this? |
Is there another feature for which this would make sense? As per WebKit/standards-positions#200 WebKit is not sold on It also seems somewhat unfortunate to introduce new features in order to potentially remove another one. |
Motivation:
This would be a tool to use in deprecating and removing a feature. Our current motivator for this is the deprecation of unload but it could apply to any other feature.
Deprecating is hard and we want to provide a period where a feature is still usable but opt-in. The plan for
unload
is more complicated than just flipping to this state but this is the desired state.Currently the available defaults for a feature are
self
and*
. It is not possible to have a policy that disables a feature by default.Proposal
Add an allowed default value of
none
. This would mean that by default, the feature is not available. To make the feature available in a given frame, that frame would have to declare it via the header and every ancestor of that frame would also have to declare it via the header and delegate it via theallow
attribute on theiframe
element.This
The unfortunate side-effect of forcing the feature to be enabled in a the ancestor frames even if they do not want it could be avoided by also implementing
not-self
.Alternative outcomes
There are some different outcomes one could imaging trying to achieve.
require action only by the subframe itself
This would make it easier to opt back in while still giving containers utlimate control. It does not seem to sit with the existing inheritance model of PP and would require changes to the decision algorithm, not just the available defaults.
require action only by the containing frames
This would allow sites to restore
unload
functionality to 3rd party frames even without the cooperation of the 3rd party. It seems like 3rd parties have an incentive to enable the features they use, so this is of questionable benefit vs the proposed outcome.@clelland
The text was updated successfully, but these errors were encountered: