--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/TvAjhn2n31oJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/criGtwUZPxUJ.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/criGtwUZPxUJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
You can't use new Function() in manifest version 2 either
Depending on what you need to eval, you may want to look into running eval() in a sandboxed iframe. Here's a sample:(it's a packaged app, but the same code will also work in an extension)main.html contains a <textarea> with a function that needs to be eval()-ed and run. It sends a postMessage to iframe.html, which can eval (and postMessage the result back).It uses the "sandbox" manifest feature, which is in Chrome 21 or later. If you need to make this work in Chrome 20, you can simulate sandboxed resources by using data: URLs and the sandbox iframe attribute.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/G_JiF1httS8J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
(BTW I have to say the chrome extension system's extensive use of postMessage makes application development ridiculously complex. All parts of my application have to use various versions of this messaging to various other parts of the application. I spend more time on messaging than any other part of my extension).