mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add simple implementation of content-security-policy on scripts / styles
This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
This commit is contained in:
parent
6d488f1be2
commit
b8f3e8bb2e
16 changed files with 175 additions and 41 deletions
|
@ -755,7 +755,9 @@ impl Into<RequestDestination> for NetTraitsRequestDestination {
|
|||
NetTraitsRequestDestination::Object => RequestDestination::Object,
|
||||
NetTraitsRequestDestination::Report => RequestDestination::Report,
|
||||
NetTraitsRequestDestination::Script => RequestDestination::Script,
|
||||
NetTraitsRequestDestination::ServiceWorker => {
|
||||
NetTraitsRequestDestination::ServiceWorker |
|
||||
NetTraitsRequestDestination::AudioWorklet |
|
||||
NetTraitsRequestDestination::PaintWorklet => {
|
||||
panic!("ServiceWorker request destination should not be exposed to DOM")
|
||||
},
|
||||
NetTraitsRequestDestination::SharedWorker => RequestDestination::Sharedworker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue