mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
41669c8fe2
--HG-- extra : rebase_source : cffe31cb84bfd635458465774e77c4ff182839f0
20 lines
616 B
HTML
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>
|