mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
67 lines
1.8 KiB
HTML
67 lines
1.8 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1114507
|
|
-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for Bug 1114507</title>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
</head>
|
|
<body>
|
|
<a target="_blank"
|
|
href="https://bugzilla.mozilla.org/show_bug.cgi?id=1114507">Mozilla Bug1114507</a>
|
|
<p id="display"></p>
|
|
<div id="container" style="display: none"></div>
|
|
<script type="text/javascript" src="test_permission_helper.js"></script>
|
|
<script type="application/javascript">
|
|
// Put all the tests in order
|
|
var tests = [
|
|
// Setup preferences and permissions
|
|
setupPrefsAndPermissions,
|
|
|
|
// ****************************************************
|
|
// Setup the enviroment for testing nested-oop cases: *
|
|
// test 3,4,5 *
|
|
// ****************************************************
|
|
|
|
// Install the app
|
|
installApp,
|
|
|
|
// Allow permission for embedApp to open mozbrowser and mozapp
|
|
function() {
|
|
var appId = gAppsService.getAppLocalIdByManifestURL(embedAppHostedManifestURL);
|
|
var context = { url: embedApp.origin,
|
|
originAttributes: { appId: appId } };
|
|
setupOpenAppPermission(context, runTests);
|
|
},
|
|
|
|
// +-----------------------------------------------+
|
|
// | Test 5: Open a test-target-app on 3rd level |
|
|
// | process then crash its parent-process |
|
|
// +-----------------------------------------------+
|
|
//
|
|
// level
|
|
// 1 chrome process
|
|
// |
|
|
// 2 child process <-- crash this process
|
|
// |
|
|
// 3 child process <-- app is here
|
|
|
|
// Add permission to app
|
|
function() {
|
|
addPermissionToApp(APP_URL, APP_MANIFEST);
|
|
},
|
|
|
|
test5,
|
|
|
|
uninstallApp
|
|
|
|
];
|
|
|
|
runTests();
|
|
</script>
|
|
</body>
|
|
</html>
|