Hello!
Recently I was playing with webix in chrome extensions and had to loosen extension restrictions in manifest due to eval/Function() usage, inline style addition and one of the things I couldn’t resolve loosening restrictions: “view: iframe” injects inline event handler(onload) which causes error
Refused to execute inline event handler because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution.
I tried removing “onload” handler which you are injecting, but everything stopped working. In the end I work arounded using htmlform with iframe template.
You can download extension at:
Also wanted to note that I commented line in webix_debug.js where I try to remove iframe onload handler, here’s the line:
// $(top_node._viewobj).find(‘iframe’).attr(‘onload’, null)
So in the end “view: iframe”'s onload handler renders iframe component unusable.
Thank you!