Closed Bug 1409691 Opened 7 years ago Closed 7 years ago

ReferenceError: reference to undefined property "doneReason" in BackgroundPageThumbs.jsm

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

I just noticed this with strict errors turned on:

ReferenceError: reference to undefined property "doneReason" in  BackgroundPageThumbs.jsm

(ESLint also complains about it with no-unused-expressions turned on).

The section of code in question is:

http://searchfox.org/mozilla-central/rev/dca019c94bf3a840ed7ff50261483410cfece24f/toolkit/components/thumbnails/BackgroundPageThumbs.jsm#402

function Capture(url, captureCallback, options) {
  ...
  this.doneReason;
  ...
}

This looks like a missing initialisation.
Blocks: 1409693
Assignee: nobody → standard8
Comment on attachment 8930873 [details]
Bug 1409691 - Fix initialisation of doneReason in Capture (BackgroundPageThumbs.jsm).

https://reviewboard.mozilla.org/r/201976/#review207370
Attachment #8930873 - Flags: review?(edilee) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/adc548643541
Fix initialisation of doneReason in Capture (BackgroundPageThumbs.jsm). r=Mardak
https://hg.mozilla.org/mozilla-central/rev/adc548643541
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: