Closed
Bug 240523
Opened 21 years ago
Closed 8 years ago
nsIProtocolHandler should document that newURI inherits charset from aBaseURI
Categories
(Core :: Networking, defect, P5)
Core
Networking
Tracking
()
RESOLVED
INVALID
People
(Reporter: Biesinger, Unassigned)
Details
(Whiteboard: [necko-would-take][good first bug])
Attachments
(1 file, 1 obsolete file)
|
1.07 KB,
patch
|
Details | Diff | Splinter Review |
darin said in bug 24867 comment 172:
>> + var targetURI = IOS.newURI(fileURL.file.leafName, null, targetBaseURI);
>>
>> you don't need a charset here? it seems you can use
>> contentFrame.document.characterSet...
>
>No need. The charset is inherited from targetBaseURI.
nsIIOService refers to nsIProtocolHandler for details on newURI, and
nsIProtocolHandler nowhere describes that the charset should be inherited from
the base uri:
http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsIProtocolHandler.idl#68
Updated•19 years ago
|
Assignee: darin → nobody
QA Contact: benc → networking
Updated•9 years ago
|
Status: NEW → UNCONFIRMED
Ever confirmed: false
Whiteboard: [necko-would-take][good first bug]
Comment 1•9 years ago
|
||
I'd be happy to take this one!
Comment 2•9 years ago
|
||
Can i take this bug?
Comment 3•9 years ago
|
||
Hi
I am a newbie and would like to work on this bug. can somebody assign me to it and help me in the process?
Comment 4•9 years ago
|
||
It doesn't need to be assigned - feel free to work on it and upload a patch. :mayhemer would be a good reviewer for the patch.
Comment 5•9 years ago
|
||
Since there is no language tag to it . Can somebody specify the tag as well as tell me where I can find the bits of code to work on
Comment 6•9 years ago
|
||
Since there is no language tag to it . Can somebody specify the tag as well as tell me where I can find the bits of code to work on
Is this still a bug? I fetched the code from mozilla-central, and in the nsIProtocolHandler.idl file it says
>> /* if aOriginCharset is null, then UTF-8 encoding is assumed */
>> newURI(... aSpec,
>> ... aOriginCharset,
>> ... aBaseUri)
(I shortened most of the documentation)
(In reply to han from comment #8)
> Is this still a bug? I fetched the code from mozilla-central, and in the
> nsIProtocolHandler.idl file it says
> >> /* if aOriginCharset is null, then UTF-8 encoding is assumed */
> >> newURI(... aSpec,
> >> ... aOriginCharset,
> >> ... aBaseUri)
>
> (I shortened most of the documentation)
I think this is counter to the original statement in the bug, which is that the character set would be inherited. This seems to state that, rather than being inherited, UTF-8 is assumed if null is passed.
A link to the updated idl is https://hg.mozilla.org/mozilla-central/file/tip/netwerk/base/nsIProtocolHandler.idl#l68 . Can this be closed?
| Reporter | ||
Comment 10•9 years ago
|
||
That is talking about something else... the documentation still does not mention that aBaseURI affects the charset of the resulting URI.
Comment 11•8 years ago
|
||
Attachment #8904037 -
Attachment is obsolete: true
Attachment #8904037 -
Attachment is patch: false
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Comment 14•8 years ago
|
||
This bug has a patch attached to it for the past 2 months. And the patch seems to provide the correct fix. Why is this ticket still open?
Flags: needinfo?(honzab.moz)
Comment 15•8 years ago
|
||
zy, could you hint what is further pending on this ticket? Thanks
Flags: needinfo?(zy)
Flags: needinfo?(zy)
Attachment #8904039 -
Flags: review?(honzab.moz)
Comment 16•8 years ago
|
||
After bug 1322874, we do not inherit charset from aBaseURI anymore. We do not even have charset information in URI objects now.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Attachment #8904039 -
Flags: review?(honzab.moz)
You need to log in
before you can comment on or make changes to this bug.
Description
•