Anyone knows a complete example as referred from Sandboxing Eval Doc
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Google Chrome has a github repo with lots of extension examples. There are two sandboxing examples:
This one builds Handlebars templates (which require
eval) inside a hidden sandboxed iframe and then passes data out to the extension at large usingpostMessage.This other one has a visible sandboxed iframe which builds a framed page using unsafe techniques.
Note that these examples require a minimum version of 23, which has not yet reached the stable channel.