javascript - Save a file to filesystem with chrome packaged app -


i have variable full of css attributes use create css file , save apps file directory. how go in chrome packaged app?

you're not going answer. can't this, , if figured out way it, considered security hole chrome team close.

part of design goals of packaged apps make entire application statically analyzable @ time it's uploaded web store. means when user making decision whether install app store, decision based on code (it contains these scripts, css, , these images, , asks these permissions) rather on whether trust developer or website. www.example.com might trustworthy today, tomorrow might sold new owner, or compromised. decision "do trust example.com?" hard. packaged apps make decision easier; in cases, "thing" you're trusting right there, right in front of you, in crx downloaded.

if understand design goal, understand why design of packaged apps doesn't allow self-modifying code (which generic term want do). if code generate code, becomes harder static analysis determine app (either intentionally or through bugs). along same lines, content security policy strict packaged apps , can't set less restrictive policy, why eval() won't work in script.

is there reason why javascript can't set dom elements' style properties? ought give flexibility want without running against boundaries of platform's security model.

edit: saw your other question, seems similar one. building css editor? or trying modify own app's css? answer above assumed second case. if i've misunderstood question, clarify , i'll attempt improve answer.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -