commit | 7c42f27de0923929387782e13767da05ad8aa563 | [log] [tgz] |
---|---|---|
author | unnurg@google.com <unnurg@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Nov 16 18:12:46 2010 +0000 |
committer | unnurg@google.com <unnurg@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Nov 16 18:12:46 2010 +0000 |
tree | 4459c952a1b60c5f845832fe5939a8dce4b6786b | |
parent | d1effa0e8ee33c1d31ce084d272f6929371b8175 [diff] |
Check for null as well as undefined in isBodyLoaded() Review at http://gwt-code-reviews.appspot.com/1111801 Review by: conroy@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9239 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js b/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js index d776b54..47a611d 100644 --- a/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js +++ b/dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js
@@ -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)); }