| commit | 7dde34c4d957b93f883235f8d0d8152455a9d5bd | [log] [tgz] |
|---|---|---|
| author | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu May 22 01:39:46 2008 +0000 |
| committer | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu May 22 01:39:46 2008 +0000 |
| tree | 50f6231016d3405f7569a6ec627ffe7b794080b0 | |
| parent | e28df843b21af8da09078ac2963fe1027242507e [diff] |
Fixes a refresh bug with FF2 where it tries to reload an old (now non-existent) strongname script instead of the correct strongname script. Found by: knorton Review by: knorton git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2907 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js b/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js index 6c76a97..eefedd3 100644 --- a/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js +++ b/dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js
@@ -366,9 +366,10 @@ /* * The src has to be set after the iframe is attached to the DOM to avoid - * refresh quirks in Safari. + * refresh quirks in Safari. We have to use the location.replace trick to + * avoid FF2 refresh quirks. */ - iframe.src = base + strongName; + iframe.contentWindow.location.replace(base + strongName); } }
diff --git a/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js b/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js index 496f3ee..415e221 100644 --- a/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js +++ b/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
@@ -334,9 +334,10 @@ /* * The src has to be set after the iframe is attached to the DOM to avoid - * refresh quirks in Safari. + * refresh quirks in Safari. We have to use the location.replace trick to + * avoid FF2 refresh quirks. */ - iframe.src = base + strongName; + iframe.contentWindow.location.replace(base + strongName); } }