blob: fdbc39ac8b80d73667b204b2ad8ee33b8479430b [file] [log] [blame]
<!-- -->
<!-- Copyright 2009 Google Inc. -->
<!-- Licensed under the Apache License, Version 2.0 (the "License"); you -->
<!-- may not use this file except in compliance with the License. You may -->
<!-- may obtain a copy of the License at -->
<!-- -->
<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
<!-- -->
<!-- Unless required by applicable law or agreed to in writing, software -->
<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
<!-- implied. License for the specific language governing permissions and -->
<!-- limitations under the License. -->
<!-- Deferred binding rules for core classes based on user agent. -->
<module type="fileset">
<inherits name="com.google.gwt.core.Core"/>
<!-- Replace JS map factory to support older browsers -->
<replace-with class="java.util.InternalJsMapFactory.BackwardCompatibleJsMapFactory">
<when-type-is class="java.util.InternalJsMapFactory"/>
</replace-with>
<!-- Disable source maps for non-Chrome browsers -->
<!-- TODO(goktug): enable source maps for non-Chrome browsers -->
<set-property name="compiler.useSourceMaps" value="false">
<none>
<when-property-is name="user.agent" value="safari"/>
</none>
</set-property>
<replace-with class="com.google.gwt.core.client.impl.StackTraceCreator.CollectorModernNoSourceMap">
<when-type-is class="com.google.gwt.core.client.impl.StackTraceCreator.Collector" />
<when-property-is name="compiler.stackMode" value="native" />
<any>
<when-property-is name="user.agent" value="gecko1_8" />
<when-property-is name="user.agent" value="ie10"/>
<when-property-is name="user.agent" value="safari" />
</any>
</replace-with>
<replace-with class="com.google.gwt.core.client.impl.StackTraceCreator.CollectorModern">
<when-type-is class="com.google.gwt.core.client.impl.StackTraceCreator.Collector" />
<when-property-is name="compiler.stackMode" value="native" />
<when-property-is name="user.agent" value="safari" />
<when-property-is name="compiler.useSourceMaps" value="true"/>
</replace-with>
<!-- Utility class to query if source maps are enabled, mainly for testing -->
<replace-with class="com.google.gwt.core.client.impl.SourceMapProperty.SourceMapEnabled">
<when-type-is class="com.google.gwt.core.client.impl.SourceMapProperty.SourceMapImpl"/>
<when-property-is name="compiler.useSourceMaps" value="true"/>
</replace-with>
<!-- If stack trace emulation is on, we can still get accurate stack traces even if sourcemaps are off -->
<replace-with class="com.google.gwt.core.client.impl.SourceMapProperty.SourceMapEnabled">
<when-type-is class="com.google.gwt.core.client.impl.SourceMapProperty.SourceMapImpl"/>
<when-property-is name="compiler.useSourceMaps" value="false"/>
<when-property-is name="compiler.stackMode" value="emulated"/>
</replace-with>
</module>