1 This page should be sandboxed.
4 // We're not served with the extension default CSP, we can use inline script.
6 var secret
= 'sandboxed_window_secret';
8 if (chrome
.extension
) {
9 chrome
.test
.notifyFail('Extension APIs should not be injected.');
13 var mainWindow
= window
.opener
|| window
.top
;
14 var mainWindowSecret
= undefined;
16 mainWindowSecret
= mainWindow
.secret
;
18 mainWindow
.postMessage(mainWindowSecret
, '*');