hosted.html expects the querystring to contain only the module strongName
where as it curently contains strongName + ".cache.html"

IFrameTemplate.js in maybeInjectFrame() appends .cache.html to the
strongName (line 298).

Either IFrameTemplate.js needs to not append .cache.html for hostedmode, or
hostd.html needds to strip it out.

A suggested fix (which I have verified in my dev environment) is this :

Index: dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
===================================================================
--- dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js    (revision
3953)
+++ dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js    (working
copy)
@@ -295,7 +295,7 @@
         millis:(new Date()).getTime(),
         type: 'moduleRequested'
       });
-      iframe.contentWindow.location.replace(base + strongName +
'.cache.html');
+      iframe.contentWindow.location.replace(base + strongName +
strongNameExt);
     }
   }

@@ -351,9 +351,12 @@
   });

   var strongName;
+  var strongNameExt;
   if (isHostedMode()) {
     strongName = "hosted.html?__MODULE_FUNC__";
+    strongNameExt = "";
   } else {
+    strongNameExt = ".cache.html";
     try {
 // __PERMUTATIONS_BEGIN__
       // Permutation logic

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to