changeset 280:7c353a230c70

catch exceptions when onresize gets called before the script has loaded in the stream view
author Myk Melez <myk@mozilla.org>
date Mon, 01 Sep 2008 19:00:11 -0700
parents 910120e0ac63
children 92bff6641dcd
files content/stream.xul
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/content/stream.xul	Mon Sep 01 18:58:44 2008 -0700
+++ b/content/stream.xul	Mon Sep 01 19:00:11 2008 -0700
@@ -46,7 +46,8 @@
       title="&page.title;"
       onload="SnowlMessageView.onLoad()"
       onclick="return window.parent.contentAreaClick(event, true);"
-      onresize="SnowlMessageView.onResize()">
+      onresize="try { SnowlMessageView.onResize() }
+                catch(ex) { /* before script loaded */ }">
 
   <script type="application/javascript" src="chrome://snowl/content/strands.js"/>
   <script type="application/javascript" src="chrome://snowl/content/stream.js"/>