honzajde
honzajde

Reputation: 2398

Chrome extension manifest 2 sandboxing example

Anyone knows a complete example as referred from Sandboxing Eval Doc

Upvotes: 1

Views: 666

Answers (2)

apsillers
apsillers

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

Related Questions