Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / sandboxed_pages / sandboxed.html
blob97a6372b41c4a9a7d698b41412265c32f82ee397
1 This page should be sandboxed.
3 <script>
4 // We're not served with the extension default CSP, we can use inline script.
5 onload = function() {
6 var secret = 'sandboxed_window_secret';
8 if (chrome.extension) {
9 chrome.test.notifyFail('Extension APIs should not be injected.');
10 return;
13 var mainWindow = window.opener || window.top;
14 var mainWindowSecret = undefined;
15 try {
16 mainWindowSecret = mainWindow.secret;
17 } catch(e) {}
18 mainWindow.postMessage(mainWindowSecret, '*');
20 </script>