Chromium Code Reviews| Index: third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp |
| diff --git a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp |
| index a4bdd715b4aee27eda21eecc871e944e426fea19..21f2423573e235aa1f151ef7028c2d77e408933c 100644 |
| --- a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp |
| +++ b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp |
| @@ -6,6 +6,7 @@ |
| #include "core/frame/LocalDOMWindow.h" |
| #include "core/frame/UseCounter.h" |
| +#include "core/inspector/InspectorInstrumentation.h" |
| #include "core/workers/WorkerGlobalScope.h" |
| #include "modules/fetch/FetchManager.h" |
| #include "modules/fetch/Request.h" |
| @@ -49,6 +50,9 @@ public: |
| Request* r = Request::create(scriptState, input, init, exceptionState); |
| if (exceptionState.hadException()) |
| return ScriptPromise(); |
| + |
| + if (ExecutionContext* executionContext = m_fetchManager->getExecutionContext()) |
| + InspectorInstrumentation::willSendXMLHttpRequest(executionContext, r->url()); |
|
dgozman
2016/05/25 22:00:32
Let's rename this to |willIssueNetworkRequest|.
kozy
2016/05/25 22:24:31
Done.
|
| return m_fetchManager->fetch(scriptState, r->passRequestData(scriptState)); |
| } |