Closed
Bug 666706
Opened 14 years ago
Closed 14 years ago
Don't pass IPv6 literals to the effective TLD service, since the brackets prevent them from being recognized as IPs
Categories
(Firefox :: Address Bar, defect)
Firefox
Address Bar
Tracking
()
RESOLVED
FIXED
Firefox 7
People
(Reporter: dao, Assigned: dao)
Details
Attachments
(1 file, 1 obsolete file)
3.75 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
I generated the attached tests based on <http://hg.mozilla.org/mozilla-central/rev/8b5646a07963>. The eTLD service fails for every host containing a dot, e.g. [::192.168.1.1], for which it considers "1.1]" to be the base domain.
Assignee | ||
Comment 1•14 years ago
|
||
Or maybe the problem is that I'm passing the host with the brackets to getBaseDomainFromHost?
Assignee | ||
Updated•14 years ago
|
Component: Networking → Location Bar
Product: Core → Firefox
QA Contact: networking → location.bar
Summary: Effective TLD service doesn't handle IPv6 literals containing dots correctly → Don't pass IPv6 literals to the effective TLD service, since the brackets prevent them from being recognized as IPs
Assignee | ||
Comment 2•14 years ago
|
||
Assignee: nobody → dao
Attachment #541454 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #541604 -
Flags: review?(gavin.sharp)
Comment 3•14 years ago
|
||
There's PR_StringToNetAddr logic in nsEffectiveTLDService::GetBaseDomainInternal that I would assume should be catching this. Does it just not handle the bracket format? I'm not very familiar with ipv6 IP address formats.
Comment 4•14 years ago
|
||
(In reply to comment #3)
> There's PR_StringToNetAddr logic in
> nsEffectiveTLDService::GetBaseDomainInternal that I would assume should be
> catching this. Does it just not handle the bracket format? I'm not very
> familiar with ipv6 IP address formats.
IIRC it doesn't handle that format.
Assignee | ||
Comment 5•14 years ago
|
||
Passing them without the brackets to getBaseDomainFromHost works, but removing the brackets in order to do that would be pointless, as getBaseDomainFromHost would just throw anyway.
Comment 6•14 years ago
|
||
getBaseDomainFromHost should probably also throw when the brackets are included, rather than returning a bogus result.
Comment 7•14 years ago
|
||
Comment on attachment 541604 [details] [diff] [review]
patch
can you file a followup for that and add a comment?
Attachment #541604 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 8•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7
You need to log in
before you can comment on or make changes to this bug.
Description
•