Bug 842100 - Restore the virtual keyboard in desktop builds r=cjones

This commit is contained in:
Fabrice Desré 2013-02-16 18:58:00 -08:00
Родитель 10e278b1c2
Коммит c1b6529a8c
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -46,6 +46,16 @@ let Keyboard = {
let frameLoader = subject.QueryInterface(Ci.nsIFrameLoader);
let mm = frameLoader.messageManager;
mm.addMessageListener('Forms:Input', this);
// When not running apps OOP, we need to load forms.js here since this
// won't happen from dom/ipc/preload.js
try {
if (Services.prefs.getBoolPref("dom.ipc.tabs.disabled") === true) {
mm.loadFrameScript(kFormsFrameScript, true);
}
} catch (e) {
dump('Error loading ' + kFormsFrameScript + ' as frame script: ' + e + '\n');
}
},
receiveMessage: function keyboardReceiveMessage(msg) {