Bug 156801

Summary: Anchor element 'ping' property should only apply to http/https destinations
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, beidson, bfulgham, cdumez, commit-queue, japhet, mike, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=156747
Attachments:
Description Flags
Patch
none
Patch none

Description Brent Fulgham 2016-04-20 11:39:00 PDT
The HTML5 specification <https://developers.whatwg.org/links.html#ping> indicates: "The ping attribute, if present, gives the URLs of the resources that are interested in being notified if the user follows the hyperlink. The value must be a set of space-separated tokens, each of which must be a valid non-empty URL."

Although the specification indicates that it must be a "valid non-empty URL", it doesn't really make sense to support anything besides http/https destinations.

We should tighten up WebKit to ignore other protocols.
Comment 1 Radar WebKit Bug Importer 2016-04-20 11:40:06 PDT
<rdar://problem/25834419>
Comment 2 Brent Fulgham 2016-04-20 17:05:11 PDT
Created attachment 276870 [details]
Patch
Comment 3 Brent Fulgham 2016-04-21 11:08:26 PDT
Created attachment 276938 [details]
Patch
Comment 4 Chris Dumez 2016-04-21 11:20:59 PDT
Comment on attachment 276938 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=276938&action=review

> Source/WebCore/ChangeLog:14
> +        Tested by http/tests/navigation/ping-attribute tests.

Then why weren't this rebaselined?
Comment 5 Brent Fulgham 2016-04-22 09:40:39 PDT
(In reply to comment #4)
> Comment on attachment 276938 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=276938&action=review
> 
> > Source/WebCore/ChangeLog:14
> > +        Tested by http/tests/navigation/ping-attribute tests.
> 
> Then why weren't this rebaselined?

It just confirms expected behavior still works. WebKitTestRunner doesn't have a way to test that local files have not been read.
Comment 6 Chris Dumez 2016-04-22 10:21:28 PDT
Comment on attachment 276938 [details]
Patch

r=me
Comment 7 Brent Fulgham 2016-04-22 13:57:02 PDT
Comment on attachment 276938 [details]
Patch

Clearing flags on attachment: 276938

Committed r199900: <http://trac.webkit.org/changeset/199900>
Comment 8 Brent Fulgham 2016-04-22 13:57:06 PDT
All reviewed patches have been landed.  Closing bug.