Chromium Code Reviews| Index: Source/core/xmlhttprequest/XMLHttpRequest.cpp |
| diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
| index 4ec6c06ee3273aa78025da1f4d662b3148431ebc..c6711a539193b687b0bd0098394af2efc3a57fac 100644 |
| --- a/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
| +++ b/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
| @@ -573,6 +573,10 @@ void XMLHttpRequest::open(const AtomicString& method, const KURL& url, bool asyn |
| { |
| WTF_LOG(Network, "XMLHttpRequest %p open('%s', '%s', %d)", this, method.utf8().data(), url.elidedString().utf8().data(), async); |
| + if (method != "GET") { |
|
yhirano
2015/08/20 07:46:55
Is it better to place the block on send function?
|
| + document()->frame()->page()->chromeClient().observedNonGetXHR(); |
| + } |
| + |
| if (!internalAbort()) |
| return; |