1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:07:59 +01:00

Factor out unnecessary and potentially problematic use of threadYield in editFieldExternally.

This commit is contained in:
Kris Maglione
2010-12-22 04:33:32 -05:00
parent 35a0917084
commit 9a1d78ee56
3 changed files with 71 additions and 61 deletions

View File

@@ -200,9 +200,9 @@ const IO = Module("io", {
*/
createTempFile: function () {
let file = services.directory.get("TmpD", Ci.nsIFile);
file.append(config.tempFile);
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, octal(600));
Cc["@mozilla.org/uriloader/external-helper-app-service;1"]
.getService(Ci.nsPIExternalAppLauncher).deleteTemporaryFileOnExit(file);
@@ -279,7 +279,7 @@ lookup:
function () {
if (!process.isRunning) {
timer.cancel();
callback();
dactyl.trapErrors(blocking);
}
},
100, services.Timer.TYPE_REPEATING_SLACK);