Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Side by Side Diff: chrome/test/data/extensions/get_app_details_for_frame_reversed.html

Issue 10174001: Add an API for hosted apps to check their install and running states. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/resources/extensions/app_custom_bindings.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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;
10 }
11 return false;
12 }
13
14 function getFrameURL(host) {
15 var result = "http://" + host;
16 if (location.port) {
17 result += ":";
18 result += location.port;
19 }
20 result += location.pathname;
21 return result;
22 }
23
24 var iframe = document.createElement("iframe");
25 iframe.src = getFrameURL("nonapp.com");
26 document.documentElement.appendChild(iframe);
27 </script>
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/app_custom_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698