Closed Bug 823175 Opened 13 years ago Closed 13 years ago

Add a method to return the next sub domain of a given host

Categories

(Core :: Networking: DNS, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mounir, Assigned: mounir)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

Attached patch PatchSplinter Review
For example, "foo.bar.co.uk" => "bar.co.uk". It is needed in bug 816956 and that would be better to simply use the current logic of nsIEffectiveTLDService.
Attachment #693979 - Flags: review?(bzbarsky)
Comment on attachment 693979 [details] [diff] [review] Patch s/test.assert/test.throw/ in the test, perhaps? > + * Returns the next sub-domain of a host string. Maybe "Returns the parent sub-domain of a host string"? And maybe give an example or two to make it clear what's being returned...
Attachment #693979 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: