| Index: tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate b/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate
|
| index ce3ebd7b2a99febc428232dc2dd4ad202d1f6783..ec2722a80f8eb02d4fc99f34bb167eb874dde26e 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate
|
| @@ -6,7 +6,10 @@ part of $LIBRARYNAME;
|
|
|
| $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| factory $CLASSNAME(Map dictionary) {
|
| - return JS('RtcIceCandidate', 'new RTCIceCandidate(#)',
|
| + var constructorName = JS('RtcIceCandidate', 'window[#]',
|
| + Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' :
|
| + 'RTCIceCandidate');
|
| + return JS('RtcIceCandidate', 'new #(#)', constructorName,
|
| convertDartToNative_SerializedScriptValue(dictionary));
|
| }
|
| $!MEMBERS
|
|
|