WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 98149
MediaStream API: RTCPeerConnection should send down its handler via the FrameLoaderClient directly after creation.
https://bugs.webkit.org/show_bug.cgi?id=98149
Summary
MediaStream API: RTCPeerConnection should send down its handler via the Frame...
Tommy Widenflycht
Reported
2012-10-02 04:57:55 PDT
The chromium implementation needs to know which Frame created a PeerConnection so that the right housekeeping can take place correctly.
Attachments
Patch
(11.35 KB, patch)
2012-10-02 05:02 PDT
,
Tommy Widenflycht
abarth
: review+
Details
Formatted Diff
Diff
Patch for landing
(11.33 KB, patch)
2012-10-03 02:11 PDT
,
Tommy Widenflycht
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tommy Widenflycht
Comment 1
2012-10-02 05:02:49 PDT
Created
attachment 166673
[details]
Patch
Tommy Widenflycht
Comment 2
2012-10-02 05:03:26 PDT
Trying this way instead.
WebKit Review Bot
Comment 3
2012-10-02 05:04:40 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Adam Barth
Comment 4
2012-10-02 09:55:36 PDT
Comment on
attachment 166673
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166673&action=review
> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:139 > + if (!document || !(document->frame())) {
document will always be non-0 here.
> Source/WebCore/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:61 > +WebKit::WebRTCPeerConnectionHandler* RTCPeerConnectionHandlerChromium::toWebRTCPeerConnectionHandler(RTCPeerConnectionHandler* handler) > +{ > + return static_cast<RTCPeerConnectionHandlerChromium*>(handler)->m_webHandler.get(); > +}
I probably would have just added a public accessor for m_webHandler and had FrameLoaderClientImpl do the static_cast, but this is ok too.
Tommy Widenflycht
Comment 5
2012-10-03 02:08:17 PDT
Comment on
attachment 166673
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166673&action=review
>> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:139 >> + if (!document || !(document->frame())) { > > document will always be non-0 here.
Removed check for empty document.
>> Source/WebCore/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:61 >> +} > > I probably would have just added a public accessor for m_webHandler and had FrameLoaderClientImpl do the static_cast, but this is ok too.
RTCPeerConnectionHandler doesn't know anything about any private implementations, neither should it I think, so I am keeping it like this.
Tommy Widenflycht
Comment 6
2012-10-03 02:11:23 PDT
Created
attachment 166830
[details]
Patch for landing
Adam Barth
Comment 7
2012-10-03 02:29:58 PDT
Comment on
attachment 166830
[details]
Patch for landing ok
WebKit Review Bot
Comment 8
2012-10-03 02:52:07 PDT
Comment on
attachment 166830
[details]
Patch for landing Clearing flags on attachment: 166830 Committed
r130270
: <
http://trac.webkit.org/changeset/130270
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug