diff -r d50db46c366d dom/src/base/nsDOMClassInfo.cpp --- a/dom/src/base/nsDOMClassInfo.cpp Mon Jun 23 12:43:26 2008 -0700 +++ b/dom/src/base/nsDOMClassInfo.cpp Mon Jun 23 17:03:01 2008 -0700 @@ -4536,10 +4536,14 @@ nsWindowSH::GetProperty(nsIXPConnectWrap const char *name = JS_GET_CLASS(cx, JSVAL_TO_OBJECT(*vp))->name; // The list of Window class names here need to be kept in sync - // with the actual class names! + // with the actual class names! The class name + // XPCCrossOriginWrapper needs to be handled here too as XOWs + // define child frame names with a XOW as the value, and thus + // we'll need to get through here with XOWs class name too. if ((*name == 'W' && strcmp(name, "Window") == 0) || (*name == 'C' && strcmp(name, "ChromeWindow") == 0) || - (*name == 'M' && strcmp(name, "ModalContentWindow") == 0)) { + (*name == 'M' && strcmp(name, "ModalContentWindow") == 0) || + (*name == 'X' && strcmp(name, "XPCCrossOriginWrapper") == 0)) { nsCOMPtr vpwrapper; sXPConnect->GetWrappedNativeOfJSObject(cx, JSVAL_TO_OBJECT(*vp), getter_AddRefs(vpwrapper)); diff -r d50db46c366d dom/tests/mochitest/bugs/Makefile.in --- a/dom/tests/mochitest/bugs/Makefile.in Mon Jun 23 12:43:26 2008 -0700 +++ b/dom/tests/mochitest/bugs/Makefile.in Mon Jun 23 17:03:01 2008 -0700 @@ -77,6 +77,8 @@ _TEST_FILES = \ test_bug430276.html \ iframe_bug430276.html \ iframe_bug430276-2.html \ + test_bug440572.html \ + iframe_bug440572.html \ $(NULL) libs:: $(_TEST_FILES) diff -r d50db46c366d dom/tests/mochitest/bugs/iframe_bug440572.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/tests/mochitest/bugs/iframe_bug440572.html Mon Jun 23 17:03:01 2008 -0700 @@ -0,0 +1,17 @@ + + + +

Move on, nothing to see here...

+ + diff -r d50db46c366d dom/tests/mochitest/bugs/test_bug440572.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/tests/mochitest/bugs/test_bug440572.html Mon Jun 23 17:03:01 2008 -0700 @@ -0,0 +1,48 @@ + + + + + Test for Bug 440572 + + + + + +Mozilla Bug 440572 + + +
+ +
+ +
+ + + +