[Webkit-unassigned] [Bug 61007] Allow custom schemes to use XMLHttpRequest
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 24 15:52:53 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61007
Marshall Greenblatt <magreenblatt at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |magreenblatt at gmail.com
--- Comment #2 from Marshall Greenblatt <magreenblatt at gmail.com> 2011-05-24 15:52:52 PST ---
As an alternative approach we could do the following:
1. Add support in googleurl/src/url_util.h for registering schemes that should be treated as HTTP protocol handlers (AddHttpProtocolScheme, IsHttpProtocol). This would be similar to the existing support for registering standard protocols.
2. Change KURLGooglePrivate::initProtocolIsInHTTPFamily() to call the new url_util::IsHttpProtocol() method instead of only checking for hard-coded "HTTP" and "HTTPS" values.
This approach has the following advantages:
A. The change only affects Chromium-based clients.
B. The user must explicitly indicate that a custom scheme should be treated as an HTTP protocol handler by calling url_util::AddHttpProtocolScheme(). This addresses the concern that existing scheme handlers will see behavior changes.
C. All behavior that is currently HTTP-specific (call sites using protocolInHTTPFamily) will now recognize the new scheme with no additional changes required.
What do you think?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list