Bug 735261 - navigator.mozConnection should be an instance of EventTarget. r=smaug
authorMounir Lamouri <mounir.lamouri@gmail.com>
Wed, 14 Mar 2012 19:50:11 +0100
changeset 89664 0b4e3c7608ab657bcfec929ffbc1ae3e6c659009
parent 89663 7e8278f5e8142b0ca67473c1f94b5c155cfff921
child 89665 329c07609ca8e7558cba6bdac0b34df686b96312
push id22269
push userphilringnalda@gmail.com
push dateSat, 17 Mar 2012 23:57:42 +0000
treeherdermozilla-central@8910001d4347 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs735261
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 735261 - navigator.mozConnection should be an instance of EventTarget. r=smaug
dom/base/nsDOMClassInfo.cpp
dom/network/tests/test_network_basics.html
--- a/dom/base/nsDOMClassInfo.cpp
+++ b/dom/base/nsDOMClassInfo.cpp
@@ -4065,16 +4065,17 @@ nsDOMClassInfo::Init()
   DOM_CLASSINFO_MAP_END
 
   DOM_CLASSINFO_MAP_BEGIN(MozSmsCursor, nsIDOMMozSmsCursor)
      DOM_CLASSINFO_MAP_ENTRY(nsIDOMMozSmsCursor)
   DOM_CLASSINFO_MAP_END
 
   DOM_CLASSINFO_MAP_BEGIN(MozConnection, nsIDOMMozConnection)
      DOM_CLASSINFO_MAP_ENTRY(nsIDOMMozConnection)
+     DOM_CLASSINFO_MAP_ENTRY(nsIDOMEventTarget)
   DOM_CLASSINFO_MAP_END
 
   DOM_CLASSINFO_MAP_BEGIN(CSSFontFaceRule, nsIDOMCSSFontFaceRule)
     DOM_CLASSINFO_MAP_ENTRY(nsIDOMCSSFontFaceRule)
   DOM_CLASSINFO_MAP_END
 
   DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(CSSFontFaceStyleDecl,
                                       nsIDOMCSSStyleDeclaration)
--- a/dom/network/tests/test_network_basics.html
+++ b/dom/network/tests/test_network_basics.html
@@ -20,16 +20,18 @@ function checkInterface(aInterface) {
 }
 
 ok('mozConnection' in navigator, "navigator.mozConnection should exist");
 
 ok(navigator.mozConnection, "navigator.mozConnection returns an object");
 
 ok(navigator.mozConnection instanceof MozConnection,
    "navigator.mozConnection is a MozConnection object");
+ok(navigator.mozConnection instanceof EventTarget,
+   "navigator.mozConnection is a EventTarget object");
 
 checkInterface("Connection");
 
 ok('bandwidth' in navigator.mozConnection,
    "bandwidth should be a Connection attribute");
 is(navigator.mozConnection.bandwidth, Infinity,
    "By default connection.bandwidth is equals to Infinity");