Closed
Bug 1014304
Opened 12 years ago
Closed 12 years ago
Remove onconnection and onclosedconnection from PC
Categories
(Core :: WebRTC, defect)
Core
WebRTC
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: drno, Assigned: drno)
References
Details
(Keywords: dev-doc-needed, site-compat)
Attachments
(1 file, 3 obsolete files)
|
14.68 KB,
patch
|
Details | Diff | Splinter Review |
According to this
http://dxr.mozilla.org/mozilla-central/source/dom/webidl/RTCPeerConnection.webidl#142
our RTCPeerConnection has events for 'onconnection' and 'onclosedconnection'. But these events are nowhere to be found in the standard
http://dev.w3.org/2011/webrtc/editor/webrtc.html
and should therefore be removed.
Updated•12 years ago
|
Keywords: dev-doc-needed,
site-compat
| Assignee | ||
Comment 1•12 years ago
|
||
This builds cleanly and passes tests (which is not surprising as the tests don't cover these at all).
But I'm not sure if there are more implementation parts which need to get removed (I was not able to locate any).
Attachment #8426729 -
Flags: review?(rjesup)
Attachment #8426729 -
Flags: review?(jib)
Comment 2•12 years ago
|
||
Comment on attachment 8426729 [details] [diff] [review]
remove_onconnection_event.patch
Review of attachment 8426729 [details] [diff] [review]:
-----------------------------------------------------------------
r+ provided you remove this code as well http://mxr.mozilla.org/mozilla-central/source/dom/media/PeerConnection.js#310
Attachment #8426729 -
Flags: review?(jib) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Added removal of 'onconnection' and 'onclosedconnection' getter/setter from PeerConnection.js according to :jib's hint.
Carrying forward r+=jib
Attachment #8426729 -
Attachment is obsolete: true
Attachment #8426729 -
Flags: review?(rjesup)
Attachment #8426849 -
Flags: review?(rjesup)
Comment 4•12 years ago
|
||
Comment on attachment 8426849 [details] [diff] [review]
remove_onconnection_event.patch
Review of attachment 8426849 [details] [diff] [review]:
-----------------------------------------------------------------
Touched webidl, so you need a DOM reviewer
Attachment #8426849 -
Flags: review?(rjesup)
Attachment #8426849 -
Flags: review?(bugs)
Attachment #8426849 -
Flags: review+
Comment 5•12 years ago
|
||
But we dispatch those events.
Shouldn't we remove http://mxr.mozilla.org/mozilla-central/source/dom/media/PeerConnection.js?rev=50116088c244&mark=1285-1285,1289-1289#1284 ?
The spec doesn't talk about those events at all.
Updated•12 years ago
|
Attachment #8426849 -
Flags: review?(bugs)
Comment 6•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #5)
> But we dispatch those events. Shouldn't we remove
Yes there is more plumbing to pull out here. http://mxr.mozilla.org/mozilla-central/search?string=notifyClosedConnection and the same for notifyConnection - Thanks for spotting it!
drno, let me know if you need help.
| Assignee | ||
Comment 7•12 years ago
|
||
Thanks for finding this. I overlooked it because I was only looking for onclosedconnection.
I'll go through the remaining plumbing, remove it and submit another patch later.
| Assignee | ||
Comment 8•12 years ago
|
||
This should hopefully remove all implementation and unit testing code.
Try run: https://tbpl.mozilla.org/?tree=Try&rev=5bd72913cc86
Attachment #8426849 -
Attachment is obsolete: true
Attachment #8429583 -
Flags: review?(rjesup)
Attachment #8429583 -
Flags: review?(jib)
Comment 9•12 years ago
|
||
Comment on attachment 8429583 [details] [diff] [review]
remove_onconnection_event.patch
Since the .webidl changes need a dom peer review, r=smaug for those.
Attachment #8429583 -
Flags: review+
Comment 10•12 years ago
|
||
Comment on attachment 8429583 [details] [diff] [review]
remove_onconnection_event.patch
Review of attachment 8429583 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit.
::: netwerk/sctp/datachannel/DataChannel.h
@@ +474,5 @@
>
> // for ON_CONNECTION/ON_DISCONNECTED
> DataChannelOnMessageAvailable(int32_t aType,
> DataChannelConnection *aConnection,
> bool aResult = true)
aResult can go away too, I think.
Attachment #8429583 -
Flags: review?(jib) → review+
Comment 11•12 years ago
|
||
Comment on attachment 8429583 [details] [diff] [review]
remove_onconnection_event.patch
Review of attachment 8429583 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/sctp/datachannel/DataChannel.h
@@ -540,5 @@
> - // FIX - on mResult false (failure) we should do something. Needs spec work here
> - break;
> - case ON_DISCONNECTED:
> - mConnection->mListener->NotifyClosedConnection();
> - break;
perhaps to avoid compiler warnings add "default: break;"
Attachment #8429583 -
Flags: review?(rjesup) → review+
| Assignee | ||
Comment 12•12 years ago
|
||
Addressed jesup's and jib's comments (removed aResult and added default switch statement).
Carrying forward r+=:jib,:jesup
Try run: https://tbpl.mozilla.org/?tree=Try&rev=a40f26cc6e62
Attachment #8429583 -
Attachment is obsolete: true
| Assignee | ||
Comment 13•12 years ago
|
||
Try build looks green, requesting checkin.
Assignee: nobody → drno
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•