2012-07-20 03:14:11 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=758258
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Test for nsIPrincipal extendedOrigin, appStatus and appId</title>
|
|
|
|
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=758258">Mozilla Bug 758258</a>
|
|
|
|
<p id="display"></p>
|
|
|
|
<div id="content">
|
2012-08-29 18:31:10 +04:00
|
|
|
|
2012-07-20 03:14:11 +04:00
|
|
|
</div>
|
|
|
|
<pre id="test">
|
2012-07-22 04:14:25 +04:00
|
|
|
<script type="application/javascript;version=1.7">
|
2012-07-20 03:14:11 +04:00
|
|
|
|
|
|
|
/** Test for Bug 758258 **/
|
|
|
|
|
2012-07-20 09:44:03 +04:00
|
|
|
var Ci = Components.interfaces;
|
|
|
|
|
2013-02-27 10:23:08 +04:00
|
|
|
if (navigator.platform.startsWith("Linux")) {
|
2013-03-15 21:17:20 +04:00
|
|
|
SimpleTest.expectAssertions(2, 4);
|
2013-02-26 06:39:21 +04:00
|
|
|
}
|
|
|
|
|
2012-07-20 03:14:11 +04:00
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
2012-07-20 11:26:05 +04:00
|
|
|
/*
|
|
|
|
* gData is an array of objects. Each object represents a test case.
|
|
|
|
* - app: gives the app manifest URL, will set mozapp to it on the iframe;
|
|
|
|
* - origin: gives the origin of the iframe. This is the URL thas is going to
|
|
|
|
* to be passed as iframe.src but also the expected principal's
|
|
|
|
* origin.
|
|
|
|
* - isapp: tells if the iframe is really a mozapp. If the manifest url isn't
|
|
|
|
* valid, the iframe will not be considered as a mozapp.
|
|
|
|
* - browser: say if the iframe should be a mozbrowser. This is implicit when
|
|
|
|
* app is set.
|
|
|
|
* - test: an array of tests to run for this test case:
|
|
|
|
* - eo-unique: the extendedOrigin of the prinicpal must be unique in the
|
|
|
|
* current list.
|
|
|
|
* - eo-as-last: the extendedOrigin of the principal must be the same as the
|
|
|
|
* last added to the list.
|
|
|
|
*/
|
2012-07-20 03:14:11 +04:00
|
|
|
var gData = [
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
2012-07-20 11:26:05 +04:00
|
|
|
app: "https://example.com/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "https://example.com/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://test1.example.org/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://test1.example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://test1.example.org:8000/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://test1.example.org:8000/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://sub1.test1.example.org/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://sub1.test1.example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
|
|
|
test: [ "eo-unique" ],
|
|
|
|
},
|
|
|
|
// WebApps implementation doesn't allow apps with the same origin. Sad...
|
|
|
|
// {
|
|
|
|
// app: "http://example.org/foo/manifest.webapp",
|
|
|
|
// src: "http://example.org/",
|
|
|
|
// isapp: true,
|
|
|
|
// test: [ "eo-unique" ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// app: "http://example.org/bar/manifest.webapp",
|
|
|
|
// src: "http://example.org/",
|
|
|
|
// isapp: true,
|
|
|
|
// test: [ "eo-unique" ],
|
|
|
|
// },
|
2012-07-20 03:14:11 +04:00
|
|
|
{
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: false,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
browser: true,
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: false,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://example.org/wedonthaveanyappinthatdirectory/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "http://example.org/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: false,
|
|
|
|
// TODO: this is a browser because we need apps to be browser and it's not
|
|
|
|
// an app because the manifest is invalid. Ideally, it should not be a
|
|
|
|
// browser.
|
|
|
|
browser: true,
|
|
|
|
test: [ "eo-as-last" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
2012-07-20 11:32:12 +04:00
|
|
|
// {
|
|
|
|
// app: "http://example.org/manifest.webapp",
|
|
|
|
// src: "data:text/html,foobar",
|
|
|
|
// test: [ "todo-src" ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// app: "http://example.org/manifest.webapp",
|
|
|
|
// src: "data:text/html,foobar2",
|
|
|
|
// test: [ "todo-src" ],
|
|
|
|
// },
|
2012-07-20 03:14:11 +04:00
|
|
|
{
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "file:///",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: false,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
2012-07-22 04:14:25 +04:00
|
|
|
src: "file:///tmp/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: false,
|
|
|
|
test: [ "eo-unique" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
2012-07-20 09:44:03 +04:00
|
|
|
src: "file:///",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
2012-08-29 18:31:10 +04:00
|
|
|
test: [ "eo-unique", "in-app-not-installed" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
2012-07-22 04:14:25 +04:00
|
|
|
src: "file:///tmp/",
|
2012-07-20 11:26:05 +04:00
|
|
|
isapp: true,
|
2012-08-29 18:31:10 +04:00
|
|
|
test: [ "eo-unique", "in-app-not-installed" ],
|
2012-07-20 03:14:11 +04:00
|
|
|
},
|
2012-07-22 04:14:25 +04:00
|
|
|
// iframe inside an app is part of the app.
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: true,
|
|
|
|
child: {
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: true
|
|
|
|
},
|
|
|
|
test: [ "child-has-same-eo" ],
|
|
|
|
},
|
|
|
|
// app A inside app B aren't the same app.
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: true,
|
|
|
|
child: {
|
|
|
|
app: "https://example.com/manifest.webapp",
|
|
|
|
src: "https://example.com/chrome/",
|
|
|
|
isapp: true
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-same-appstatus", "child-has-different-appid" ],
|
|
|
|
},
|
|
|
|
// app A inside app A are the same app.
|
|
|
|
{
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: true,
|
|
|
|
child: {
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: true
|
|
|
|
},
|
|
|
|
test: [ "child-has-same-eo" ],
|
|
|
|
},
|
|
|
|
// app inside a regular iframe is an app.
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
child: {
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: true
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-different-appstatus", "child-has-different-appid" ],
|
|
|
|
},
|
|
|
|
// browser inside app is a browser, has appid but isn't installed.
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
isapp: true,
|
|
|
|
child: {
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-different-appstatus", "child-has-same-appid" ],
|
|
|
|
},
|
|
|
|
// app inside a browser is an app.
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
child: {
|
|
|
|
app: "http://example.org/manifest.webapp",
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: true,
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-different-appstatus", "child-has-different-appid" ],
|
|
|
|
},
|
|
|
|
// browser inside a browser are two browsers
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
child: {
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
test: [ "child-has-same-eo" ],
|
|
|
|
},
|
|
|
|
// browser inside a browser are two browsers
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
child: {
|
|
|
|
src: "https://example.com/chrome/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-same-appstatus", "child-has-same-appid" ],
|
|
|
|
},
|
|
|
|
// iframe containing a browser
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
browser: false,
|
|
|
|
child: {
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
test: [ "child-has-different-eo", "child-has-same-appstatus", "child-has-same-appid" ],
|
|
|
|
},
|
|
|
|
// browser containing an iframe is part of the browser
|
|
|
|
{
|
|
|
|
src: "http://example.org/",
|
|
|
|
isapp: false,
|
|
|
|
browser: true,
|
|
|
|
child: {
|
|
|
|
src: "http://example.org/chrome/",
|
|
|
|
isapp: false,
|
2012-07-31 19:47:20 +04:00
|
|
|
inBrowser: true,
|
2012-07-22 04:14:25 +04:00
|
|
|
},
|
|
|
|
test: [ "child-has-same-eo" ],
|
|
|
|
},
|
2012-07-20 03:14:11 +04:00
|
|
|
];
|
|
|
|
|
2012-07-20 11:26:05 +04:00
|
|
|
// The list of all data ids generated by this test.
|
|
|
|
var eoList = [];
|
|
|
|
|
2012-07-20 03:14:11 +04:00
|
|
|
var content = document.getElementById('content');
|
|
|
|
var checkedCount = 0;
|
|
|
|
var checksTodo = gData.length;
|
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
function checkIFrame(aFrame, data) {
|
2012-07-20 03:14:11 +04:00
|
|
|
var principal = aFrame.contentDocument.nodePrincipal;
|
|
|
|
|
|
|
|
if (!data.test) {
|
|
|
|
data.test = [];
|
|
|
|
}
|
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
if (navigator.platform.indexOf("Mac") != -1) {
|
|
|
|
is(principal.URI.spec,
|
|
|
|
data.src.replace('file:///tmp/', 'file:///private/tmp/'),
|
|
|
|
'the correct URL should have been loaded');
|
|
|
|
} else {
|
|
|
|
is(principal.URI.spec, data.src,
|
|
|
|
'the correct URL should have been loaded');
|
|
|
|
}
|
2012-07-20 09:44:03 +04:00
|
|
|
|
2012-07-20 11:26:05 +04:00
|
|
|
if (data.isapp) {
|
2012-08-29 18:31:10 +04:00
|
|
|
if (data.test.indexOf("in-app-not-installed") != -1) {
|
|
|
|
is(principal.appStatus, Ci.nsIPrincipal.APP_STATUS_NOT_INSTALLED, 'this should not be an installed app');
|
|
|
|
} else {
|
|
|
|
is(principal.appStatus, Ci.nsIPrincipal.APP_STATUS_INSTALLED, 'this should be an installed app');
|
|
|
|
}
|
2012-07-20 11:26:05 +04:00
|
|
|
} else {
|
|
|
|
is(principal.appStatus, Ci.nsIPrincipal.APP_STATUS_NOT_INSTALLED,
|
|
|
|
'this should not be an installed app');
|
|
|
|
is(principal.appId, Ci.nsIScriptSecurityManager.NO_APP_ID,
|
|
|
|
"principals from non-installed app should have NO_APP_ID");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!data.isapp && !data.browser) {
|
|
|
|
is(principal.extendedOrigin, principal.origin,
|
|
|
|
'extendedOrigin should return the origin for non-app and non-browsers principals');
|
|
|
|
} else {
|
|
|
|
isnot(principal.extendedOrigin, principal.origin,
|
|
|
|
'extendedOrigin should not return the origin for apps or mozbrowsers');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("eo-unique") != -1) {
|
|
|
|
is(eoList.indexOf(principal.extendedOrigin), -1,
|
|
|
|
"extendedOrigin should be unique");
|
|
|
|
}
|
|
|
|
if (data.test.indexOf("eo-as-last") != -1) {
|
|
|
|
is(principal.extendedOrigin, eoList[eoList.length-1],
|
|
|
|
"extendedOrigin should be the same as the last inserted one");
|
|
|
|
}
|
|
|
|
|
2012-07-31 19:47:20 +04:00
|
|
|
is(principal.isInBrowserElement, !!data.browser,
|
|
|
|
"check principal.isInBrowserElement");
|
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
if (data.child) {
|
|
|
|
let childPrincipal = aFrame.contentWindow.frames[0].document.nodePrincipal;
|
|
|
|
|
|
|
|
if (data.child.isapp) {
|
|
|
|
is(childPrincipal.appStatus, Ci.nsIPrincipal.APP_STATUS_INSTALLED,
|
|
|
|
"child should be an installed app");
|
|
|
|
}
|
|
|
|
|
2012-07-31 19:47:20 +04:00
|
|
|
is(childPrincipal.isInBrowserElement, !!data.child.browser || !!data.child.inBrowser,
|
|
|
|
"check childPrincipal.isInBrowserElement");
|
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
if (data.test.indexOf("child-has-same-eo") != -1) {
|
|
|
|
is(childPrincipal.extendedOrigin, principal.extendedOrigin,
|
|
|
|
"child should have the same extendedOrigin as parent");
|
|
|
|
is(childPrincipal.appStatus, principal.appStatus,
|
|
|
|
"child should have the same appStatus if it has the same extendedOrigin");
|
|
|
|
is(childPrincipal.appId, principal.appId,
|
|
|
|
"child should have the same appId if it has the same extendedOrigin");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("child-has-different-eo") != -1) {
|
|
|
|
isnot(childPrincipal.extendedOrigin, principal.extendedOrigin,
|
|
|
|
"child should not have the same extendedOrigin as parent");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("child-has-same-appstatus") != -1) {
|
|
|
|
is(childPrincipal.appStatus, principal.appStatus,
|
|
|
|
"childPrincipal and parent principal should have the same appStatus");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("child-has-different-appstatus") != -1) {
|
|
|
|
isnot(childPrincipal.appStatus, principal.appStatus,
|
|
|
|
"childPrincipal and parent principal should not have the same appStatus");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("child-has-same-appid") != -1) {
|
|
|
|
is(childPrincipal.appId, principal.appId,
|
|
|
|
"childPrincipal and parent principal should have the same appId");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.test.indexOf("child-has-different-appid") != -1) {
|
|
|
|
isnot(childPrincipal.appId, principal.appId,
|
|
|
|
"childPrincipal and parent principal should have different appId");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-20 11:26:05 +04:00
|
|
|
eoList.push(principal.extendedOrigin);
|
2012-07-20 03:14:11 +04:00
|
|
|
|
|
|
|
checkedCount++;
|
|
|
|
if (checkedCount == checksTodo) {
|
2012-08-15 21:22:30 +04:00
|
|
|
SpecialPowers.removePermission("browser", "http://example.org");
|
2012-09-26 21:47:57 +04:00
|
|
|
SpecialPowers.removePermission("embed-apps", "http://example.org");
|
2012-07-20 03:14:11 +04:00
|
|
|
SimpleTest.finish();
|
2012-07-22 04:14:25 +04:00
|
|
|
} else {
|
|
|
|
gTestRunner.next();
|
2012-07-20 03:14:11 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-20 09:44:03 +04:00
|
|
|
is('appStatus' in document.nodePrincipal, true,
|
|
|
|
'appStatus should be present in nsIPrincipal');
|
|
|
|
is('extendedOrigin' in document.nodePrincipal, true,
|
|
|
|
'extendedOrigin should be present in nsIPrincipal');
|
|
|
|
is('appId' in document.nodePrincipal, true,
|
|
|
|
'appId should be present in nsIPrincipal');
|
2012-07-20 03:14:11 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
function runTest() {
|
|
|
|
// We want to use a generator. Those only work in a one level stack so we
|
|
|
|
// can't use .forEach() here.
|
|
|
|
for (var i=0; i<gData.length; ++i) {
|
|
|
|
let data = gData[i];
|
2012-07-20 11:26:05 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
var iframe = document.createElement('iframe');
|
|
|
|
iframe.check = function() {
|
|
|
|
checkIFrame(this, data);
|
|
|
|
};
|
|
|
|
iframe.addChild = function() {
|
2012-08-23 22:47:55 +04:00
|
|
|
SpecialPowers.addPermission("browser", true, iframe.contentDocument);
|
2012-09-26 21:47:57 +04:00
|
|
|
SpecialPowers.addPermission("embed-apps", true, iframe.contentDocument);
|
2012-08-23 22:47:55 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
var childFrame = document.createElement('iframe');
|
2012-07-20 11:26:05 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
if (data.child.app) {
|
|
|
|
childFrame.setAttribute('mozapp', data.child.app)
|
|
|
|
childFrame.setAttribute('mozbrowser', '');
|
|
|
|
} else if (data.child.browser) {
|
|
|
|
childFrame.setAttribute('mozbrowser', '');
|
|
|
|
}
|
2012-07-20 03:14:11 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
childFrame.src = data.child.src;
|
2012-07-20 03:14:11 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
this.removeEventListener('load', this.addChild.bind(this));
|
|
|
|
childFrame.addEventListener('load', this.check.bind(this));
|
|
|
|
|
|
|
|
this.contentDocument.body.appendChild(childFrame);
|
|
|
|
};
|
|
|
|
|
|
|
|
if (data.app) {
|
|
|
|
iframe.setAttribute('mozapp', data.app);
|
|
|
|
iframe.setAttribute('mozbrowser', '');
|
|
|
|
} else if (data.browser) {
|
|
|
|
iframe.setAttribute('mozbrowser', '');
|
|
|
|
}
|
|
|
|
|
|
|
|
iframe.src = data.src;
|
|
|
|
|
|
|
|
if (data.child) {
|
|
|
|
iframe.addEventListener('load', iframe.addChild.bind(iframe));
|
|
|
|
} else {
|
|
|
|
iframe.addEventListener('load', iframe.check.bind(iframe));
|
|
|
|
}
|
|
|
|
|
|
|
|
content.appendChild(iframe);
|
|
|
|
|
|
|
|
yield;
|
|
|
|
}
|
|
|
|
}
|
2012-07-20 03:14:11 +04:00
|
|
|
|
2012-07-22 04:14:25 +04:00
|
|
|
var gTestRunner = runTest();
|
2012-07-20 03:14:11 +04:00
|
|
|
|
2012-08-15 21:22:30 +04:00
|
|
|
SpecialPowers.pushPrefEnv({'set':[["dom.mozBrowserFramesEnabled", true]]},
|
2012-07-22 04:14:25 +04:00
|
|
|
function() { gTestRunner.next(); });
|
2012-07-20 11:26:05 +04:00
|
|
|
|
2012-07-20 03:14:11 +04:00
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|