googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 413 forks source link

right-click on ACE editor will throw some errors in the console #1121

Open dinhvh opened 10 years ago

dinhvh commented 10 years ago

Refused to evaluate a string as CSS because 'unsafe-eval' is not an allowed source of style in the following Content Security Policy directive: "style-src 'self' data: chrome-extension-resource: 'unsafe-inline'". ace.js:1 Uncaught SecurityError: Failed to set the 'cssText' property on 'CSSStyleDeclaration': Refused to evaluate a string as CSS because 'unsafe-eval' is not an allowed source of style in the following Content Security Policy directive: "style-src 'self' data: chrome-extension-resource: 'unsafe-inline'". ace.js:1 Refused to evaluate a string as CSS because 'unsafe-eval' is not an allowed source of style in the following Content Security Policy directive: "style-src 'self' data: chrome-extension-resource: 'unsafe-inline'". ace.js:1 Uncaught SecurityError: Failed to set the 'cssText' property on 'CSSStyleDeclaration': Refused to evaluate a string as CSS because 'unsafe-eval' is not an allowed source of style in the following Content Security Policy directive: "style-src 'self' data: chrome-extension-resource: 'unsafe-inline'". ace.js:1

sunglim commented 10 years ago

There're errors only when we enabled 'experimental-web-platform-feature' with M33 or M34(not sure). probably from Blink side, they're doing some experimantal thing.. See https://groups.google.com/a/chromium.org/forum/#!topic/chromium-apps/8fLKfoPC9PA