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 89744 dc412fe94df66d018e8f40de30402a3ae2a20566
parent 89743 64c0ad72611178222797cb422cf0c5dba8582fd4
child 89745 d5713db687498156de6728400be91a7889b4ae10
push id22282
push usermlamouri@mozilla.com
push dateTue, 20 Mar 2012 10:40:32 +0000
treeherdermozilla-central@ee554888d071 [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");