mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
498 B
JavaScript
16 lines
498 B
JavaScript
|
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||
|
Cu.importGlobalProperties(["File"]);
|
||
|
|
||
|
let 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),
|
||
|
mtime: testFile.lastModifiedTime,
|
||
|
});
|
||
|
});
|