Closed Bug 785319 Opened 12 years ago Closed 12 years ago

Setting WebSocket.binaryType to an invalid value should no longer throw

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: Ms2ger, Assigned: avp)

References

Details

(Whiteboard: [good first bug][mentor=Ms2ger][lang=c++])

Attachments

(1 file, 3 obsolete files)

http://html5.org/tools/web-apps-tracker?from=7260&to=7261

nsWebSocket::SetBinaryType should return NS_OK instead of NS_ERROR_INVALID_ARG when an unknown value is passes. The code is here:

http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsWebSocket.cpp#1213
Hi Ms2ger,

I am interested in working on this bug. Could you please guide me on getting started on this bug.....



Thanks.
Hi there! To fix this bug, you'll need to remove the else branch at <http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsWebSocket.cpp#1213>, and update the test at <http://mxr.mozilla.org/mozilla-central/source/content/base/test/test_websocket.html?force=1#1282>.

If you need any help setting up a build environment etc., see <https://developer.mozilla.org/en-US/docs/Introduction> or come hang around on irc.mozilla.org, #introduction.
Attachment #655053 - Flags: feedback?(Ms2ger)
Attached patch edited test_websocket.html (obsolete) — Splinter Review
Attachment #655054 - Flags: feedback?(Ms2ger)
Comment on attachment 655053 [details] [diff] [review]
removed the else branch in file nsWebSocket.cpp

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

Looks good, thanks!
Attachment #655053 - Flags: review?(bugs)
Attachment #655053 - Flags: feedback?(Ms2ger)
Attachment #655053 - Flags: feedback+
Comment on attachment 655054 [details] [diff] [review]
edited test_websocket.html

Looks good too.
Attachment #655054 - Flags: review?(bugs)
Attachment #655054 - Flags: feedback?(Ms2ger)
Attachment #655054 - Flags: feedback+
Attachment #655053 - Flags: review?(bugs) → review+
Attachment #655054 - Flags: review?(bugs) → review+
Abhishek, could you generate a single patch following the instructions at <https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F>? That would be helpful to get it checked in.
Assignee: nobody → abhishekp.bugzilla
Status: NEW → ASSIGNED
Attached patch patch (obsolete) — Splinter Review
Attachment #655290 - Flags: review?
Attachment #655053 - Attachment is obsolete: true
Attachment #655054 - Attachment is obsolete: true
Attachment #655290 - Attachment is obsolete: true
Attachment #655290 - Flags: review?
Attachment #655297 - Flags: checkin?
Attachment #655297 - Flags: checkin? → checkin+
https://hg.mozilla.org/mozilla-central/rev/e4d15fd2146d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: