зеркало из https://github.com/mozilla/pjs.git
bug 734294 - when installing an app the InstallTime is returning undefined; r=fabrice
--HG-- extra : rebase_source : 91e5a5d467826927f6c6df4c97ab5cecab73b26f
This commit is contained in:
Родитель
d7b03333ea
Коммит
e9b25fc325
|
@ -181,7 +181,7 @@ let DOMApplicationRegistry = {
|
|||
}
|
||||
|
||||
let appObject = this._cloneAppObject(app);
|
||||
appObject.installTime = (new Date()).getTime();
|
||||
appObject.installTime = app.installTime = Date.now();
|
||||
let appNote = JSON.stringify(appObject);
|
||||
appNote.id = id;
|
||||
|
||||
|
|
|
@ -269,6 +269,7 @@ function install(appURL, check, next) {
|
|||
[{
|
||||
status: "== \"success\"",
|
||||
installOrigin: "== " + installOrigin.quote(),
|
||||
installTime: "!== undefined",
|
||||
origin: "== " + origin.quote(),
|
||||
manifestURL: "== " + appURL.quote(),
|
||||
// |manifest| is not accessible to content, so js_traverse needs to
|
||||
|
@ -334,4 +335,3 @@ function check_event_listener_fired (next) {
|
|||
triggered = false;
|
||||
next();
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
<!-- test results are displayed in the html:body -->
|
||||
<body xmlns="http://www.w3.org/1999/xhtml">
|
||||
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=741549"
|
||||
target="_blank">Mozilla Bug 741549</a>
|
||||
target="_blank">Mozilla Bug 741549</a> <br />
|
||||
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=734294"
|
||||
target="_blank">Mozilla Bug 734294</a>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
|
@ -84,4 +86,3 @@ function uninstall_wild_crazy(next) {
|
|||
</script>
|
||||
|
||||
</window>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче