[Webkit-unassigned] [Bug 24150] Add virtual ScriptExecutionContext::encoding()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 5 00:41:55 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=24150





------- Comment #10 from ap at webkit.org  2009-03-05 00:41 PDT -------
(From update of attachment 28295)
That's very interesting, thanks! So, it turns out that the charset is inherited
as a default for nested worker script decoding, correct?

> +    // Note Document::completeURL provides a charset here (to encode query portion of url when
> +    // submitting charset-encoded forms data). Workers always use UTF-8 which is default for KURL.
>      return KURL(m_location->url(), url);

How does URL completion work in Firefox for Worker source and importScript()
URLs? If I remember correctly, Firefox doesn't use document encoding for
completing XHR URLs even on main thread, and we don't currently match this
quirk.

If 'new Worker(relativeUrl)' syntax uses UTF-8 even on main thread in Firefox,
then we should consider moving XMLHttpRequest and Worker off completeURL
entirely (but we'll need to test IE behavior for XHR URL completion then).

Any changes to XHR and Worker behavior on main thread will need a separate bug
of course, but I'd like to have a full understanding of correct expected
behavior before going forward with this change.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list