Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Update CSP feature detect to latest API (document.securityPolicy) #1577

Closed
ebidel opened this issue Nov 14, 2012 · 0 comments
Closed

Update CSP feature detect to latest API (document.securityPolicy) #1577

ebidel opened this issue Nov 14, 2012 · 0 comments

Comments

@ebidel
Copy link

ebidel commented Nov 14, 2012

http://trac.webkit.org/changeset/133620 renamed the DOM API:

document.SecurityPolicy -> document.securityPolicy

This has alreay landed in Chrome Canary.

Reference: https://github.com/angular/angular.js/blob/master/src/ng/sniffer.js#L44

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Nov 15, 2012
window.SecurityPolicy is now window.securityPolicy

since this is available only in Chrome Canary which has already been
updated, we can safely make this change without worrying about
backwards compatilibty.

Closes angular#1577
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants