Thursday, April 20, 2017

Replacing StorageImpl with itself?

hello - 

I am looking for some insight into what might be going on with the workaround to Wrong LocalStorage event fire #9205, an issue raised about a year and a half ago.

I have observed the behavior described in the issue. I have also followed the workaround described in the comments and found that it does work around the issue.

The workaround is to add the following configuration, which appears to replace StorageImpl with itself:

  <replace-with class="com.google.gwt.storage.client.StorageImpl">
   
<when-type-is class="com.google.gwt.storage.client.StorageImpl" />
   
<any>
     
<when-property-is name="user.agent" value="safari" />
     
<when-property-is name="user.agent" value="ie9" />
     
<when-property-is name="user.agent" value="ie10" />
     
<when-property-is name="user.agent" value="gecko1_8" />
   
</any>
 
</replace-with>

I am trying to understand - why does this change anything?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment