gecko-dev/dom/browser-element/mochitest/file_browserElement_AllowEmbedAppsInNestedOOIframe.html
Kevin Chen 41669c8fe2 Bug 1097479 - Allow nested content process to embed apps and add a nested pref check function. r=kanru
--HG--
extra : rebase_source : cffe31cb84bfd635458465774e77c4ff182839f0
2015-04-29 03:48:00 +02:00

20 lines
616 B
HTML

<html>
<head>
<script type="text/javascript">
addEventListener('load', function(e) {
var iframe = document.createElement('iframe');
iframe.setAttribute('mozbrowser', 'true');
iframe.setAttribute('remote', 'true');
iframe.setAttribute('mozapp', 'http://example.org/manifest.webapp');
iframe.addEventListener('mozbrowsershowmodalprompt', function(e) {
alert(e.detail.message);
});
document.body.appendChild(iframe);
iframe.src = 'http://example.org/tests/dom/browser-element/mochitest/file_browserElement_AppFramePermission.html';
});
</script>
</head>
<body>
</body>
</html>