зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 5353ac12782c (bug 771273)
This commit is contained in:
Родитель
1e42487809
Коммит
6afca3f6a3
|
@ -85,7 +85,6 @@ MOCHITEST_FILES = \
|
||||||
test_browserElement_inproc_SecurityChange.html \
|
test_browserElement_inproc_SecurityChange.html \
|
||||||
file_browserElement_SecurityChange.html \
|
file_browserElement_SecurityChange.html \
|
||||||
browserElement_BackForward.js \
|
browserElement_BackForward.js \
|
||||||
test_browserElement_inproc_BackForward.html \
|
|
||||||
file_bug741717.sjs \
|
file_bug741717.sjs \
|
||||||
browserElement_Reload.js \
|
browserElement_Reload.js \
|
||||||
file_bug709759.sjs \
|
file_bug709759.sjs \
|
||||||
|
@ -104,6 +103,8 @@ MOCHITEST_FILES = \
|
||||||
|
|
||||||
# OOP tests don't work on Windows (bug 763081) or native-fennec (bug
|
# OOP tests don't work on Windows (bug 763081) or native-fennec (bug
|
||||||
# 774939).
|
# 774939).
|
||||||
|
#
|
||||||
|
# Note that there's no inproc equivalent of BackForward; that's intentional.
|
||||||
ifneq ($(OS_ARCH),WINNT) #{
|
ifneq ($(OS_ARCH),WINNT) #{
|
||||||
ifndef MOZ_JAVA_COMPOSITOR #{
|
ifndef MOZ_JAVA_COMPOSITOR #{
|
||||||
MOCHITEST_FILES += \
|
MOCHITEST_FILES += \
|
||||||
|
|
|
@ -18,6 +18,18 @@ function addOneShotIframeEventListener(event, fn) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function runTest() {
|
function runTest() {
|
||||||
|
// At the moment, this isn't going to work unless we're actually out of
|
||||||
|
// process.
|
||||||
|
//
|
||||||
|
// With in-process mozbrowser, the root SHistory for an <iframe mozbrowser>
|
||||||
|
// crosses the mozbrowser boundary. It's like the mozbrowser wasn't there;
|
||||||
|
// canGoBack reflects whether the top-level frame can go back, not whether the
|
||||||
|
// iframe itself can go back.
|
||||||
|
if (!browserElementTestHelpers.getOOPByDefaultPref()) {
|
||||||
|
ok(false, "This test only works OOP.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
browserElementTestHelpers.setEnabledPref(true);
|
browserElementTestHelpers.setEnabledPref(true);
|
||||||
browserElementTestHelpers.addToWhitelist();
|
browserElementTestHelpers.addToWhitelist();
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Test of browser element.</title>
|
|
||||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
||||||
<script type="application/javascript" src="browserElementTestHelpers.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script type="application/javascript;version=1.7" src="browserElement_BackForward.js">
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Загрузка…
Ссылка в новой задаче