Filed a bug on URL encoding, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=482388">https://bugzilla.mozilla.org/show_bug.cgi?id=482388</a><br><br><div class="gmail_quote">On Mon, Mar 9, 2009 at 5:02 PM, Jonas Sicking <span dir="ltr"><jonas@sicking.cc></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Mar 6, 2009 at 4:51 PM, Dmitry Titov <<a href="mailto:dimich@chromium.org">dimich@chromium.org</a>> wrote:<br>
> Hi,<br>
> I have a couple of questions about Web Workers and text encoding of URLs.<br>
> Usually, 'server' and 'path' portions of URLs are always sent in UTRF-8, the<br>
> 'query' portion may be sent encoded if it contains non-ascii characters. I'm<br>
> looking at what should be an encoding used for this.<br>
> Lets say we have the Page that creates a Worker which uses includeScripts to<br>
> load the NestedScript.<br>
> Lets say the Page has some text encoding (from http header, meta tag or<br>
> otherwise). For example, in latest FF nightly (Minefield) the following<br>
> behaviors can be observed:<br>
> - XmlHttpRequest created on the Page would send its URL to server encoded<br>
> using UTF8, irrespective to the encoding of the Page. However, a<br>
> XmlHttpRequest created in the Worker would send the URL encoded using Page's<br>
> encoding. It seems that either XHR on the Page should also use Page's<br>
> encoding, or XHR in the Worker should use UTF-8. Bug?<br>
<br>
</div>Sounds like it. Would be great if you could file a bug. That is why we<br>
have beta releases :)<br>
<div class="im"><br>
> - When a script of the Worker is decoded, the encoding of the Page is used,<br>
> unless Worker's script comes with http header overriding the ecncoding. That<br>
> sounds right. However, if the Worker in turn creates a nested Worker, uses<br>
> an XHR or importScripts(url), the URL encoding defaults back to the Page's,<br>
> even if there was overriding http header. It might be ok but seems a bit<br>
> illogical - the nested worker or imported scripts are 'sub resources', their<br>
> relative url is resolved against the Worker's base url, so it feels that<br>
> their default encoding should be inherited from Worker. Is it a bug?<br>
<br>
</div>I suspect so yes.<br>
<font color="#888888"><br>
/ Jonas<br>
</font></blockquote></div><br>