Closed
Bug 1064088
Opened 10 years ago
Closed 10 years ago
PeerConnection should log deprecation warnings when required callbacks are missing.
Categories
(Core :: WebRTC: Signaling, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: abr, Assigned: jib)
Details
Attachments
(1 file, 1 obsolete file)
2.62 KB,
patch
|
jib
:
review+
|
Details | Diff | Splinter Review |
As a follow-up to Bug 1063971: at some point, we're going to want to enforce spec compliance where the WebRTC spec requires successs and failure callbacks to be passed to various PeerConnection methods. In order to give developers reasonable time to adjust their code, it would be ideal if we emitted deprecation warnings in the console whenever a call to a function requiring callbacks omits them. Since we already know we plan to make such behavior an error in the future, I'd argue that the time to add these warnings is now.
I completely agree with you. If i had a console warning it would have been easy understand why the code was no more working.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8486210 -
Flags: review?(adam)
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8486210 [details] [diff] [review] deprecation warnings when required callbacks are missing Review of attachment 8486210 [details] [diff] [review]: ----------------------------------------------------------------- This appears to be missing warnings for createOffer and createAnswer. r+, assuming you add warnings to those two functions. I also suggest being very clear about what we mean by "deprecated" -- something like: "setLocalDescription called without success/failure callbacks. This is deprecated, and will be an error in the future."
Attachment #8486210 -
Flags: review?(adam) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Incorporated warning text. (In reply to Adam Roach [:abr] from comment #3) > This appears to be missing warnings for createOffer and createAnswer. Those are not optional in webidl: http://mxr.mozilla.org/mozilla-central/source/dom/webidl/RTCPeerConnection.webidl?mark=76-80#76
Attachment #8486210 -
Attachment is obsolete: true
Attachment #8486449 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7f7bca193de0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•