This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25544 - Options attribute of createOffer / createAnswer should be validated before processing.
Summary: Options attribute of createOffer / createAnswer should be validated before pr...
Status: RESOLVED WONTFIX
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: WebRTC API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Web RTC Working Group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-05 04:54 UTC by Kiran
Modified: 2014-10-31 16:51 UTC (History)
3 users (show)

See Also:


Attachments

Description Kiran 2014-05-05 04:54:22 UTC
createOffer / createAnswer methods accept options attribute as an optional argument.

Validation steps for this argument is missing, which should be added for better Error Handling.
Comment 1 Harald Alvestrand 2014-10-31 14:13:13 UTC
Given that CreateOffer / CreateAnswer are being turned into promise-returning functions by default, and promise-returning functions do not throw on argument errors (they reject instead), the argument validation should result in a rejection / error callback return.
Comment 2 Dan Burnett 2014-10-31 16:51:23 UTC
Only standard WebIDL type checking should be applied.