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