| Index: Source/core/html/HTMLAnchorElement.cpp
|
| diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
|
| index 1e4422c7b45ec9deec1a3993ceb7ff494944f7aa..0d2ee69ba29b1b4890d48cb9e7ac5129bd9999ab 100644
|
| --- a/Source/core/html/HTMLAnchorElement.cpp
|
| +++ b/Source/core/html/HTMLAnchorElement.cpp
|
| @@ -393,12 +393,13 @@ bool HTMLAnchorElement::isLiveLink() const
|
|
|
| void HTMLAnchorElement::sendPings(const KURL& destinationURL)
|
| {
|
| - if (!hasAttribute(pingAttr) || !document().settings() || !document().settings()->hyperlinkAuditingEnabled())
|
| + const AtomicString& pingValue = getAttribute(pingAttr);
|
| + if (pingValue.isNull() || !document().settings() || !document().settings()->hyperlinkAuditingEnabled())
|
| return;
|
|
|
| UseCounter::count(document(), UseCounter::HTMLAnchorElementPingAttribute);
|
|
|
| - SpaceSplitString pingURLs(getAttribute(pingAttr), false);
|
| + SpaceSplitString pingURLs(pingValue, false);
|
| for (unsigned i = 0; i < pingURLs.size(); i++)
|
| PingLoader::sendPing(document().frame(), document().completeURL(pingURLs[i]), destinationURL);
|
| }
|
|
|