Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit feacd20

Browse files
committed
Remove check for document.securityPolicy
R=arv BUG= Review URL: https://codereview.appspot.com/96790044
1 parent c57f0e0 commit feacd20

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/observe.js

-9
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@
5959
var hasObserve = detectObjectObserve();
6060

6161
function detectEval() {
62-
// don't test for eval if document has CSP securityPolicy object and we can see that
63-
// eval is not supported. This avoids an error message in console even when the exception
64-
// is caught
65-
if (global.document &&
66-
'securityPolicy' in global.document &&
67-
!global.document.securityPolicy.allowsEval) {
68-
return false;
69-
}
70-
7162
// Don't test for eval if we're running in a Chrome App environment.
7263
// We check for APIs set that only exist in a Chrome App context.
7364
if (typeof chrome !== 'undefined' && chrome.app && chrome.app.runtime) {

0 commit comments

Comments
 (0)