android_webview: explicitly use gcc for target binaries.
[chromium-blink-merge.git] / chrome / test / data / extensions / get_app_details_for_frame_reversed.html
bloba0388df6ff0ae00d13b65ce18418160f60cbad44
1 <script>
2 function testUnsuccessfulAccess() {
3 try {
4 chrome.app.getDetailsForFrame(frames[0]);
5 } catch (e) {
6 if (e.indexOf("Access denied") == 0)
7 return true;
8 else
9 throw e;
11 return false;
14 function getFrameURL(host) {
15 var result = "http://" + host;
16 if (location.port) {
17 result += ":";
18 result += location.port;
20 result += location.pathname;
21 return result;
24 var iframe = document.createElement("iframe");
25 iframe.src = getFrameURL("nonapp.com");
26 document.documentElement.appendChild(iframe);
27 </script>