Firefox41中的GWT重复编码URL中的令牌

时间:2015-09-29 09:39:20

标签: firefox gwt

Gwt申请地点,活动等

有没有其他人在URL的令牌中遇到过重复编码%的Firefox 41.0 - 看起来像调用PlaceController goto()的时候?循环直到它崩溃!! Token从管道开始:#search:advanced | FOO | 001 | false

编码为#search:高级%7CFOO%7C001%7Cfalse

Chrome完全打开它,但最新的Firefox开始循环,添加额外的25(重复编码%??)....

实施例(从记录器):INFO:记号化searchPlace:SearchPlace:检索类别:先进%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257CFOO%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257C001%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257Cfalse%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257C%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257C%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525257Cfalse%252525252525252525252525252525252525252525252525252525252525252525252525252525252525 [...]

在以前的Firefox版本中没有发生 - 只有在我们上周末升级到41.0时!检查了附加组件......没有运气。

尝试搞乱about:config中的标准网址设置...也没有运气。

当每次调用getPlace()时user.agent包含“gecko”时,通过向“decodeURIComponent”添加应用程序代码来解决它....但肯定有一个更简单的修复 - 它是Firefox中的一个设置重置了?

3 个答案:

答案 0 :(得分:3)

转到:

  

关于>配置

然后搜索:

  

dom.url.getters_decode_hash;

并将其值更改为true

答案 1 :(得分:1)

在这里复制GWT论坛中类似问题的答案:https://groups.google.com/d/msg/google-web-toolkit/3-qX9x7nfJM/7zeBR2daBAAJ

  

这已在GWT 2.7.0中修复。我们以这种特殊的方式重构了历史实现,而不是特殊情况的Firefox。只需更新到GWT 2.7即可解决此问题。

     

如果这是不可能的,这里是使历史工作的主要补丁:
  https://gwt-review.googlesource.com/#/c/5356/

答案 2 :(得分:1)

这是旧GWT的历史实现的问题,解决方法是将替换配置放到App.gwt.xml

<replace-with class="com.google.gwt.user.client.impl.HistoryImplSafari">
<when-type-is class="com.google.gwt.user.client.impl.HistoryImpl"/>
<when-property-is name="user.agent" value="gecko1_8"/>
</replace-with>