Sandboxed Frame Sample
Item logo image for Sandboxed Frame Sample

Sandboxed Frame Sample

Developer Tools70 users
Item media 1 screenshot

Overview

Sandbox This sample creates a sandboxed iframe (sandbox.html) to which the main page (mainpage.html) passes a counter variable. The…

Sandbox This sample creates a sandboxed iframe (sandbox.html) to which the main page (mainpage.html) passes a counter variable. The sandboxed page uses the Handlebars template library to evaluate and compose a message using the counter variable which is then passed back to the main page for rendering. The default packaged app Content Security Policy (CSP) value disallows the use of eval() or new Function() (or variants like Function.apply()) so using a sandbox is necessary for this process. To enable sandboxing in your app you add the sandbox property to your app's manifest file. See more info on using eval safely in packaged apps. See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/sandbox This version was built from git commit d0e4bdf https://github.com/GoogleChrome/chrome-app-samples/tree/d0e4bdf/sandbox

0 out of 5No ratings

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    1.0.2
  • Updated
    October 1, 2013
  • Offered by
    Chrome App Samples
  • Size
    77.52KiB
  • Languages
    English (United States)
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has not provided any information about the collection or usage of your data.

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps