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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: Ms2ger, Assigned: longsonr)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
|
2.60 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
|
7.26 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
https://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp?rev=8939e7f497db#370 splits on U+20 only, rather than on HTML whitespace.
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8351652 -
Flags: review?(jst)
Comment 2•11 years ago
|
||
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 | ||
Updated•11 years ago
|
Assignee: nobody → longsonr
| Assignee | ||
Comment 3•11 years ago
|
||
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)
| Reporter | ||
Comment 4•11 years ago
|
||
Not sure. Maybe bz has an idea? I'll think about it some more.
Comment 5•11 years ago
|
||
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...
Comment 6•11 years ago
|
||
The patch I landed in bug 786347 has tests [1].
[1] https://hg.mozilla.org/mozilla-central/rev/0099c1899f99
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(Ms2ger)
Comment 7•11 years ago
|
||
Rebased patch from Robert. Carrying over r=jst.
Attachment #8351652 -
Attachment is obsolete: true
Attachment #8424417 -
Flags: review+
Comment 8•11 years ago
|
||
Wrote a test to ensure the <a ping> attribute properly splits on white spaces.
Attachment #8424419 -
Flags: review?(jst)
Updated•11 years ago
|
Attachment #8424419 -
Flags: review?(jst) → review+
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c2c91ff3ec49
https://hg.mozilla.org/integration/mozilla-inbound/rev/d49aee2034ae
Status: NEW → ASSIGNED
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c2c91ff3ec49
https://hg.mozilla.org/mozilla-central/rev/d49aee2034ae
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•