Comments (6)
As it stands, I think the plan is to require the FP policy to be present on every response - i.e. there is no persistence of the policy across pages. Does that address this?
from webappsec-permissions-policy.
Sorry, the issue @noncombatant pointed out was that if a Feature-Policy allows a particular permission, say "camera", then a jsfiddle page could request and be granted it. Then the user opens another jsfiddle page, which will likely have the same Feature-Policy since it's the same site, and Chrome would have defaulted to saving the granted permission. However, that persistence isn't a good idea on this particular site.
from webappsec-permissions-policy.
Sorry, the issue @noncombatant pointed out was that if a Feature-Policy allows a particular permission, say "camera", then a jsfiddle page could request and be granted it.
Isn't that more of a permissions API question? Sounds like you want to grant a ~one time permission, or some such? I guess it's not clear to me how Feature Policy helps or hinders here.
from webappsec-permissions-policy.
On jsfiddle, whoever writes the path controls what javascript runs, so while the permissions API could let those authors ask for temporary access, it would also let them ask for permanent access. To control the behavior of the authors, there'd need to be a header that the overall server sets.
I don't think this is high priority, but wanted to think about it publicly.
from webappsec-permissions-policy.
Ah, ok.. with you now, thanks for the patience :)
from webappsec-permissions-policy.
I think this is a really great idea. I agree it's not high priority, but I think it would be a great thing to have (e.g. have a feature which is "persistent permissions"). I never want to persist a decision for jsfiddle :)
from webappsec-permissions-policy.
Related Issues (20)
- support <meta http-equiv> mechanism to set the policy HOT 2
- document.featurePolicy vs document.permissionsPolicy HOT 2
- Clarify the expected usage of "Should request be allowed to use feature?"
- Potential bug in access delegation to cross-origin iframe for feature that has default allowlist value "self"? HOT 2
- allow disabled-by-default features HOT 5
- Does url match expression in origin with redirect count? takes a URL, not an origin HOT 7
- "If the allowlist contains an origin representing self" is unclear HOT 2
- Editorial: "If origin is opaque" needs to use a cross reference
- Inconsistency in text and parsing algorithm (invalid member value)
- Add "mediasession" to the list of permission policies HOT 1
- Set declared policy for powerful features to self by default HOT 9
- A request's "window" is never a Window HOT 1
- methiyaowala HOT 2
- Permissions Policy report missing a document URL HOT 2
- Send reports for Permissions Policy violations in iframe to parent frame's endpoint HOT 19
- > 07881334 2 002065 031525 054161 F-3525824 PANYA YAOWALA ( AIA ) 0107537002761 0872220535 3410200102061 *01401125350 341020009143 3410200102096 41001470 165467 T-078813339 T078813342 HOT 1
- Query: Can trusted subframe allocate permission to one of it's cross-domain subframe HOT 2
- [clipboard] document.execCommand('copy') and presumably paste bypass permissions policy
- Permissions Policy "deferred-fetch"
- JS playgrounds leak permissions. Guidelines and examples needed HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webappsec-permissions-policy.