gecko/dom/events/test/test_bug648573.html
Morris Tseng 54d8e1bf96 Bug 1125419 - Disable touch/selection caret before testing test_bug648573.html. r=smaug
--HG--
extra : rebase_source : 82780109e42e7363145d3d8ff809b8c7323861aa
2015-02-01 19:29:00 +01:00

31 lines
945 B
HTML

<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE html>
<html>
<head>
<title>Bug 648573 test</title>
<style>
iframe {
width: 600px;
height: 400px;
}
</style>
</head>
<body>
<div id="container"></div>
</body>
<script>
// Touch/Selection caret's pref is checked only when PresShell is initialized.
// To turn off the pref, we test bug 648573 in an iframe.
SpecialPowers.pushPrefEnv({"set": [['touchcaret.enabled', false]]}, function() {
SpecialPowers.pushPrefEnv({"set": [['selectioncaret.enabled', false]]}, function() {
var iframe = document.createElement("iframe");
iframe.src = "bug648573.html";
document.getElementById('container').appendChild(iframe);
});
});
</script>
</html>