Skip to content

Conversation

@oreoshake
Copy link
Contributor

Fixes #260

Add some basic smarts around handling the frame-src -> child-src transition. Configurations should use child-src instead of frame-src.

  • If frame-src is supplied, emit a warning.
  • If frame-src and child-src are supplied, and the values are not equal, emit a warning
  • If a browser supports child-src, send child-src || frame-src.
  • If a browser doesn't support child-src, send frame-src || child-src.

This also (re)introduces version-specific UA sniffing and policy generation for firefox 46, the first version to support child-src and emit deprecation warnings about frame-src. Browsers after a certain version will be marked "transitional" and the original set will remain for supporting old browsers. Doing this for safari should follow a same route.

@oreoshake oreoshake merged commit 4e9da9d into master Jul 8, 2016
@oreoshake oreoshake deleted the ff-child-frame-src branch July 8, 2016 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants