On 16/04/2015 09:37, Jan Odvarko wrote:
If not, can you take the same approach here?
We are obviously trying to avoid C++ code in devtools, but also XUL/XBL in
favor of pure JS/HTML/CSS stack.
Not sure if there is yet another way how to manipulate content with a script
that is living outside the content (frame script?).
Yes, you could use a frame script for this, but that would still require
that application/json loads as text in the browser, which I think it
currently doesn't? But maybe you have patches for that already...
Right now if you open a plaintext file it ends up in an HTML document
wrapped in a <pre>. You could do DOM manipulation on that document from
a frame script.
~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform