| Index: chrome/test/data/extensions/api_test/extension_resource_request_policy/sandboxed/sandboxed.html
|
| diff --git a/chrome/test/data/extensions/api_test/extension_resource_request_policy/sandboxed/sandboxed.html b/chrome/test/data/extensions/api_test/extension_resource_request_policy/sandboxed/sandboxed.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6652ac957c9586121dd9b8463ef3c4937c06e489
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/extension_resource_request_policy/sandboxed/sandboxed.html
|
| @@ -0,0 +1,16 @@
|
| +This page should be sandboxed.
|
| +
|
| +<script>
|
| +// We're not served with the extension default CSP, we can use inline script.
|
| +var secret = 'sandboxed_window_secret';
|
| +
|
| +try {
|
| + chrome.extension.getViews();
|
| + chrome.test.notifyFail('Should not be able to use extension APIs');
|
| +} catch (err) {
|
| + // Expected
|
| +}
|
| +
|
| +var mainWindow = window.opener || window.top;
|
| +mainWindow.postMessage(mainWindow.secret, '*');
|
| +</script>
|
|
|