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)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: Biesinger, Unassigned)

Details

(Whiteboard: [necko-would-take][good first bug])

Attachments

(1 file, 1 obsolete file)

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
Assignee: darin → nobody
QA Contact: benc → networking
Status: NEW → UNCONFIRMED
Ever confirmed: false
Whiteboard: [necko-would-take][good first bug]
I'd be happy to take this one!
Can i take this bug?
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?
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.
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
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 0 is just referring to the idl files of the same name
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?
That is talking about something else... the documentation still does not mention that aBaseURI affects the charset of the resulting URI.
Attached file Git patch file for Bug 240523 (obsolete) —
Attachment #8904037 - Attachment is obsolete: true
Attachment #8904037 - Attachment is patch: false
Priority: -- → P5
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)
zy, could you hint what is further pending on this ticket? Thanks
Flags: needinfo?(zy)
Flags: needinfo?(zy)
Attachment #8904039 - Flags: review?(honzab.moz)
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
Attachment #8904039 - Flags: review?(honzab.moz)
Flags: needinfo?(honzab.moz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: