Ping requests do not follow redirects in WebKit2 with ENABLE(NETWORK_SESSION) enabled. With the exception of violation reports, ping requests should follow redirects per section "Hyperlink auditing" of the HTML standard: <https://html.spec.whatwg.org/multipage/semantics.html#hyperlink-auditing>.
Created attachment 290020 [details] Patch and Layout Tests
Patch does not apply because it depends on the change to class NetworkLoadParameters in the patch for bug #162520.
Comment on attachment 290020 [details] Patch and Layout Tests View in context: https://bugs.webkit.org/attachment.cgi?id=290020&action=review > LayoutTests/http/tests/contentextensions/hide-on-ping-with-ping-that-redirects.html:30 > + // FIXME: Is there are better way to test that a redirect occurred? See my comment in https://bugs.webkit.org/show_bug.cgi?id=162520
(In reply to comment #3) > Comment on attachment 290020 [details] > Patch and Layout Tests > > View in context: > https://bugs.webkit.org/attachment.cgi?id=290020&action=review > > > LayoutTests/http/tests/contentextensions/hide-on-ping-with-ping-that-redirects.html:30 > > + // FIXME: Is there are better way to test that a redirect occurred? > > See my comment in https://bugs.webkit.org/show_bug.cgi?id=162520 Filed bug #162968 to implement a polling approach.
<rdar://problem/28631274>
Committed r206810: <http://trac.webkit.org/changeset/206810>
Renamed test anchor-ping-and-do-not-follow-redirect-when-sending-ping.html to anchor-ping-and-follow-redirect-when-sending-ping.html to reflect what it is actually testing - that we follow a redirect when sending a ping for a <a ping> and modified save-ping-and-redirect-to-save-ping.php to only append the query string if we have a non-empty query string to avoid appending a superfluous "?" on redirect when the query string is the empty string. Committed these changes in <http://trac.webkit.org/changeset/206813>.