mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
10a7313c71
--HG-- extra : rebase_source : 0163bcaacf08c8b820811dc02e3365a9d1d4360f
18 lines
578 B
JavaScript
18 lines
578 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,
|
|
fileWithDate: new File(testFile, { lastModified: 123 }),
|
|
fileDate: 123,
|
|
});
|
|
});
|