mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
08997000eb
Backed out changeset 647025383676 (bug1202902
) Backed out changeset d70c7fe532c6 (bug1202902
)
18 lines
576 B
JavaScript
18 lines
576 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),
|
|
mtime: testFile.lastModifiedTime,
|
|
fileWithDate: new File(testFile, { lastModified: 123 }),
|
|
fileDate: 123,
|
|
});
|
|
});
|