angular.js/test/ng
Igor Minar 2b87c814ab feat($parse): CSP compatibility
CSP (content security policy) forbids apps to use eval or
Function(string) generated functions (among other things). For us to be
compatible, we just need to implement the "getterFn" in $parse without
violating any of these restrictions.

We currently use Function(string) generated functions as a speed
optimization. With this change, it will be possible to opt into the CSP
compatible mode using the ngCsp directive. When this mode is on Angular
will evaluate all expressions up to 30% slower than in non-CSP mode, but
no security violations will be raised.

In order to use this feature put ngCsp directive on the root element of
the application. For example:

<!doctype html>
<html ng-app ng-csp>
  ...
  ...
</html>

Closes #893
2012-04-27 23:04:24 -07:00
..
directive feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
filter chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
anchorScrollSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
browserSpecs.js chore($browser): remove the addJs method 2012-04-09 17:59:47 -07:00
cacheFactorySpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
compilerSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
controllerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
deferSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js chore($browser): remove the addJs method 2012-04-09 17:59:47 -07:00
httpSpec.js feat($http): expose the defaults config as $http.defaults 2012-04-11 17:29:16 -07:00
interpolateSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix($location): properly rewrite urls in html5 mode with base url set 2012-04-12 02:36:03 -07:00
logSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
parseSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
qSpec.js fix($q): $q.reject should forward callbacks if missing 2012-04-02 10:14:04 -07:00
rootScopeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
routeParamsSpec.js feat($route): allow chaining of whens and otherwise 2012-04-04 16:10:44 -07:00
routeSpec.js feat($route): allow chaining of whens and otherwise 2012-04-04 16:10:44 -07:00
snifferSpec.js feat($sniffer): add hasEvent method for sniffing events 2012-04-03 10:10:44 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00