Revision: 9239
Author: unn...@google.com
Date: Tue Nov 16 10:12:46 2010
Log: Check for null as well as undefined in isBodyLoaded()

Review at http://gwt-code-reviews.appspot.com/1111801

Review by: con...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=9239

Modified:
 /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js

=======================================
--- /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js Mon Nov 8 06:24:23 2010 +++ /trunk/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js Tue Nov 16 10:12:46 2010
@@ -27,7 +27,7 @@
       // FF 3.5 and below does not have readyState, but it does allow us to
// append to the body before it has finished loading, so we return whether
       // the body element exists.
-      return (typeof $doc.body != "undefined");
+      return (typeof $doc.body != "undefined" && $doc.body != null);
     }
     return (/loaded|complete/.test($doc.readyState));
   }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to