Closed
Bug 164153
Opened 22 years ago
Closed 9 years ago
"network.protocol-handler.external.<scheme>" needs to support syntax of scheme
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: benc, Unassigned)
Details
(Keywords: helpwanted)
From Bug 163767:
------- Additional Comment #16 From Benjamin Chuang 2002-08-22 11:23 -------
Is your patch the first implementation of this, or modifying the existing prefs
that are supported?
I'm working on URL scheme test cases right now, so I'm hoping you are going to
say that the scheme handling is caps insensitive, as well as handling other
aspects of scheme formating:
(from RFC 2396:)
scheme = alpha *( alpha | digit | "+" | "-" | "."
Does anyone know how well the punctuation will work in a pref?
I'm concerned that the "." that is valid in schemes will cause problems. I don't
know about "+" nor "-".
Adding URL and prefs experts to discuss this problem.
Keywords: helpwanted
Comment 2•22 years ago
|
||
There are several functions in nsURLHelper.cpp that handle the scheme syntax,
for example net_IsValidScheme(const char *scheme, PRUint32 schemeLen) and of
course it is case insensitive. But I fail to see what this has to do with these
prefs ...
Comment 3•22 years ago
|
||
The period will place the preference into a different "branch" of the preference
tree. As there is only one preference tree, this shouldn't be an issue...
however, it could become a problem if the way preferences are stored internally
changes...
Also, I don't know if it matters but, preferencs are case sensitive. Thus:
network.protocol-handler.external.myscheme
and
network.protocol-handler.external.MyScheme
are considered two unique preference entries.
If a pref were created to handle the schemes: "ben.dot" and "ben", which is
legal, the pref would be:
network.protocol-handler.external.ben.dot
network.protocol-handler.external.ben
I think we should have some convention for escaping the "." in the mapping of
the scheme string to the prefs tree.
As for the caps issue, I assume that we want whatever code is reading the prefs
tree for a scheme match to convert to lowercase, and require that people store
all their scheme prefs in lower case as well.
I'm not sure where this should go now. Do we send it to prefs people for a solution?
Assignee: benc → new-network-bugs
Keywords: helpwanted
Comment 7•22 years ago
|
||
prefs is currently without an owner (ben's working on other projects, afaik), so
i wouldn't send it there for the time being.
Updated•22 years ago
|
Keywords: helpwanted
Target Milestone: --- → Future
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•