Closed Bug 958793 Opened 10 years ago Closed 9 years ago

Add 'use strict' to application update

Categories

(Toolkit :: Application Update, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(1 file, 3 obsolete files)

While testing the patch in bug 956468 which added 'use strict' to nsUpdateService.js I encountered some test failures. The failures should be diagnosed and 'use strict' added to nsUpdateService.js and other files.
Note: checked unit_aus_update tests... so far
downloadAndHashCheckMar.js and downloadInterruptedRecovery.js both failed. In the output is the following.
*** AUS:SVC Downloader:_verifyDownload - failed to compute hash of the downloaded update archive
Attached patch patch in progress (obsolete) — Splinter Review
Try push
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6900b177aee1
Assignee: nobody → robert.strong.bugs
Status: NEW → ASSIGNED
Attached patch patch in progress (obsolete) — Splinter Review
Attachment #8588953 - Attachment is obsolete: true
Attached patch patch rev1 (obsolete) — Splinter Review
Attachment #8588975 - Attachment is obsolete: true
Comment on attachment 8589255 [details] [diff] [review]
patch rev1

Review of attachment 8589255 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/mozapps/update/nsUpdateService.js
@@ +616,5 @@
> + */
> +XPCOMUtils.defineLazyGetter(this, "gCanStageUpdatesSession",
> +                            function aus_gCanStageUpdatesSession() {
> +  try {
> +    var updateTestFile = getInstallDirRoot();

nit (since we're touching this): s/var/let/

@@ +1922,5 @@
>     * See nsIPropertyBag.idl
>     */
>    get enumerator() {
>      var properties = [];
> +    for (var p in this._properties) {

nit: s/var/let/
Attachment #8589255 - Flags: review?(spohl.mozilla.bugs) → review+
Attachment #8589255 - Attachment is obsolete: true
Attachment #8589886 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/820eb24e50a9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: