Hi GWT community,

we are trying to reset an image content through setting the URL to an empty 
string setUrl("").
On other browsers like Firefox18 and the older the older Safari 5 it work 
as aspected.
But when done on Safari 6, we get lot of Exceptions:

com.google.gwt.event.shared.UmbrellaException: One or more exceptions 
caught, see full set in UmbrellaException#getCauses
    at 
com.google.gwt.core.client.impl.StackTraceCreator$CollectorEmulated.$fillInStackTrace(StackTraceCreator.java:168)
    at 
java.lang.RuntimeException.RuntimeException(RuntimeException.java:421)
    at 
com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:37)
    at 
com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:26)
    at 
com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:56)
    at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:129)
    at 
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)
    at com.google.gwt.user.client.ui.Widget.$onBrowserEvent(Widget.java:528)
    at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:791)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
    at Unknown.anonymous(DOMImplStandard.java:170)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java:168)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at Unknown.anonymous(Impl.java:57)
    at com.google.gwt.dom.client.DOMImpl.$imgSetSrc(DOMImpl.java:308)
    at 
com.google.gwt.user.client.ui.Image$UnclippedState.setUrl(Image.java:413)
    at com.google.gwt.user.client.ui.Image.$setUrl(Image.java:864)
    at com.google.gwt.user.client.ui.Image.$setUrl(Image.java:876)
    at com.google.gwt.user.client.ui.Image.setUrl(Image.java:875)

OR

Caused by: com.google.gwt.core.client.JavaScriptException: (RangeError): 
Maximum call stack size exceeded.
    at 
Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_2Ljava_lang_Throwable_2V(StackTraceCreator.java:168)
    at 
Unknown.com_google_gwt_core_client_JavaScriptException_JavaScriptException__Ljava_lang_Object_2V(StackTraceCreator.java:421)
    at 
Unknown.com_google_gwt_lang_Exceptions_caught__Ljava_lang_Object_2Ljava_lang_Object_2(Exceptions.java:29)
    at 
Unknown.com_google_gwt_dom_client_DOMImpl_$imgSetSrc__Lcom_google_gwt_dom_client_DOMImpl_2Lcom_google_gwt_dom_client_Element_2Ljava_lang_String_2V(DOMImpl.java:308)
    at 
Unknown.com_google_gwt_user_client_ui_Image$UnclippedState_setUrl__Lcom_google_gwt_user_client_ui_Image_2Lcom_google_gwt_safehtml_shared_SafeUri_2V(Image.java:413)
    at 
Unknown.com_google_gwt_user_client_ui_Image_$setUrl__Lcom_google_gwt_user_client_ui_Image_2Lcom_google_gwt_safehtml_shared_SafeUri_2V(Image.java:864)
    at 
Unknown.com_google_gwt_user_client_ui_Image_$setUrl__Lcom_google_gwt_user_client_ui_Image_2Ljava_lang_String_2V(Image.java:876)
    at 
Unknown.com_google_gwt_user_client_ui_Image_setUrl__Ljava_lang_String_2V(Image.java:875)

Before we set that new URL the image got another URL (not empty one).
Could it be that if we add an load and error handler before to that image 
and set the url then to expect
if it is valid or not (with the evaluation of width and height), could this 
lead to an recursive calling of that handlers?
What is right way to reset an image (make it empty, also not displaying an 
undefined image icon)?
And why do the other browser don't act like that? 
Thank you.

Maxim

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to