public
Created

Chrome extension sandbox pages test

  • Download Gist
index.html
HTML
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h1>Inside the sandbox</h1>
</body>
</html>
main.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Options</title>
</head>
<body>
 
<iframe id="iframe" src="index.html" width="100%" height="100%" frameborder="none"></iframe>
 
</body>
</html>
manifest.json
JSON
1 2 3 4 5 6 7 8 9 10
{
"name": "Sandbox test",
"description": "Options page loads a sandboxed page into an iframe",
"version": "1.0",
"manifest_version": 2,
"options_page": "main.html",
"sandbox": {
"pages": [ "index.html" ]
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.