Closed Bug 953360 Opened 11 years ago Closed 11 years ago

ping should split on whitespace, not only space

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: Ms2ger, Assigned: longsonr)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Attached patch like so? (obsolete) — Splinter Review
Attachment #8351652 - Flags: review?(jst)
Comment on attachment 8351652 [details] [diff] [review] like so? r=jst, but please do write tests for this as well! Thanks!
Attachment #8351652 - Flags: review?(jst) → review+
Assignee: nobody → longsonr
The original implementation seems to have come from bug 324642. That landed without tests. Can you give me some hints as to how to write a test for this?
Flags: needinfo?(Ms2ger)
Not sure. Maybe bz has an idea? I'll think about it some more.
You could write a mochitest with an sjs where the ping points to the sjs and then after you click the link and the link navigation finishes you query the sjs to see whether it got pinged...
Flags: needinfo?(Ms2ger)
Rebased patch from Robert. Carrying over r=jst.
Attachment #8351652 - Attachment is obsolete: true
Attachment #8424417 - Flags: review+
Wrote a test to ensure the <a ping> attribute properly splits on white spaces.
Attachment #8424419 - Flags: review?(jst)
Attachment #8424419 - Flags: review?(jst) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: