Closed Bug 1018446 Opened 11 years ago Closed 11 years ago

Return errors properly in WebCryptoTasks

Categories

(Core :: DOM: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: rbarnes, Assigned: rbarnes)

References

Details

Attachments

(1 file, 2 obsolete files)

Currently, some WebCryptoTasks do not properly handle errors when encountered. Constructors should set mEarlyRv and return; other methods should just return the nsresult.
Attached patch webcrypto-1018446.patch (obsolete) (deleted) — Splinter Review
Verified that all instances of "mEarlyRv = " are followed by returns, and all bare returns preceded by appropriate setting of mEarlyRv.
Attachment #8431917 - Flags: review?(bzbarsky)
Blocks: 1018538
Comment on attachment 8431917 [details] [diff] [review] webcrypto-1018446.patch Typical DOM style is to not have else-after-return as you have in that second hunk. r=me with that fixed.
Attachment #8431917 - Flags: review?(bzbarsky) → review+
Attached patch webcrypto-1018446.1.patch r=bz (obsolete) (deleted) — Splinter Review
Addressing bz's comment
Attachment #8431917 - Attachment is obsolete: true
Attached patch webcrypto-1018446.2.patch r=bz (deleted) — Splinter Review
Missed a failure on one path (the test suite caught it, though).
Attachment #8434439 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: