mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
24
dom/inputmethod/mochitest/inputmethod_common.js
Normal file
24
dom/inputmethod/mochitest/inputmethod_common.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
function inputmethod_setup(callback) {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.requestCompleteLog();
|
||||
let appInfo = SpecialPowers.Cc['@mozilla.org/xre/app-info;1']
|
||||
.getService(SpecialPowers.Ci.nsIXULAppInfo);
|
||||
if (appInfo.name != 'B2G') {
|
||||
SpecialPowers.Cu.import("resource://gre/modules/Keyboard.jsm", this);
|
||||
}
|
||||
|
||||
let prefs = [
|
||||
['dom.mozBrowserFramesEnabled', true],
|
||||
['network.disable.ipc.security', true],
|
||||
// Enable navigator.mozInputMethod.
|
||||
['dom.mozInputMethod.enabled', true]
|
||||
];
|
||||
SpecialPowers.pushPrefEnv({set: prefs}, function() {
|
||||
SimpleTest.waitForFocus(callback);
|
||||
});
|
||||
}
|
||||
|
||||
function inputmethod_cleanup() {
|
||||
SpecialPowers.wrap(navigator.mozInputMethod).setActive(false);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue