Reputation: 2398
Anyone knows a complete example as referred from Sandboxing Eval Doc
Upvotes: 1
Views: 666
Reputation: 2398
The link to the complete example, you were searching for, is here.
Upvotes: 0
Reputation: 116050
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 using postMessage
.
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.
Upvotes: 5