Closed Bug 1386422 Opened 7 years ago Closed 7 years ago

Fix some error handling in StripHandlerFromOBJREF

Categories

(Core :: Disability Access APIs, enhancement)

Unspecified
Windows
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

Details

Attachments

(1 file, 1 obsolete file)

We should distinguish between "I have failed to read the OBJREF type" vs "this OBJREF type does not require us to make any changes"
Attached patch Patch (obsolete) — Splinter Review
This patch ensures that we return true from StripHandlerFromOBJREF when the OBJREF does not supply a handler.

This patch also modifies the postcondition of StripHandlerFromOBJREF such that, whenever the function returns true, the stream is always positioned back to the end of the OBJREF.
Attachment #8892654 - Flags: review?(jmathies)
Attached patch Patch (r2)Splinter Review
This patch ensures that we return true from StripHandlerFromOBJREF when the OBJREF does not include a handler (since there is nothing that it needs to do).

This patch also modifies the postcondition of StripHandlerFromOBJREF such that, whenever the function returns true, the stream is always positioned back to the end of the OBJREF.
Attachment #8892654 - Attachment is obsolete: true
Attachment #8892654 - Flags: review?(jmathies)
Attachment #8892738 - Flags: review?(jmathies)
Attachment #8892738 - Flags: review?(jmathies) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/6d8f6382c8d0241712b735646a1d891bf83bb27d
Bug 1386422: Clean up error handling and stream positioning in StreamHandlerFromOBJREF; r=jimm
https://hg.mozilla.org/mozilla-central/rev/6d8f6382c8d0
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: