mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-21 04:31:26 +00:00
16 lines
458 B
JavaScript
16 lines
458 B
JavaScript
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
|
Cu.importGlobalProperties(["File"]);
|
|
|
|
var testFile = Cc["@mozilla.org/file/directory_service;1"]
|
|
.getService(Ci.nsIDirectoryService)
|
|
.QueryInterface(Ci.nsIProperties)
|
|
.get("ProfD", Ci.nsIFile);
|
|
testFile.append("prefs.js");
|
|
|
|
addMessageListener("file.open", function () {
|
|
sendAsyncMessage("file.opened", {
|
|
file: new File(testFile)
|
|
});
|
|
});
|
|
|