Closed
Bug 1641727
Opened 4 years ago
Closed 4 years ago
callbackProgress is missing a state argument
Categories
(Thunderbird :: Address Book, defect)
Thunderbird
Address Book
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 78.0
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
References
Details
Attachments
(1 file)
912 bytes,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
One of the calls to callbackProgress in the function verifyImage is missing an argument, at the moment it is callbackProgress(92) and I suspect the 92 is meant to be the percentage:
https://searchfox.org/comm-central/search?q=callbackProgress%28&path=&case=false®exp=false
Not sure what the state needs to be passed, probably STATE_RESIZING but maybe STATE_TRANSFERRING.
As far as I can tell the state is not used anyway:
https://searchfox.org/comm-central/source/mail/components/addrbook/content/abCard.js#1141-1146
Let's assume STATE_RESIZING is the correct state to be passing at this point.
Assignee: nobody → iann_bugzilla
Status: NEW → ASSIGNED
Attachment #9152644 -
Flags: review?(acelists)
Comment on attachment 9152644 [details] [diff] [review] Add a state It looks like the 92 percentage is emptied when entering the verifyImage function and resizing is only done after that. So it looks like semantically there should be some separate STATE_VERIFYING state, but I agree the state is ignored right now. Maybe it is a debugging feature. So for now, I agree we could lump both percentages 92 and 95 under the same STATE_RESING state, the 2 cases are still distinguishable vie the percentage value. The error reporting mechanism in this file still has some bug that it is not actually showing to the user if an error happens.
Attachment #9152644 -
Flags: review?(acelists) → review+
Keywords: checkin-needed-tb
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/a637a794de33
callbackProgress is missing a state argument. r=aceman
Updated•4 years ago
|
Target Milestone: --- → Thunderbird 78.0
You need to log in
before you can comment on or make changes to this bug.
Description
•