Changeset 83933 in webkit
- Timestamp:
- Apr 14, 2011 7:40:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83930 r83933 1 2011-04-14 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: No headers information in network panel for downloads. 6 https://bugs.webkit.org/show_bug.cgi?id=58139 7 8 Passed resource response to inspector for PolicyDownload and PolicyIgnore requests. 9 10 * http/tests/inspector/network/download-expected.txt: Added. 11 * http/tests/inspector/network/download.html: Added. 12 * http/tests/inspector/network/resources/download.zzz: Added. 13 1 14 2011-04-14 Naoki Takano <takano.naoki@gmail.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r83932 r83933 1 2011-04-14 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: No headers information in network panel for downloads. 6 https://bugs.webkit.org/show_bug.cgi?id=58139 7 8 Passed resource response to inspector for PolicyDownload and PolicyIgnore requests. 9 10 Test: http/tests/inspector/network/download.html 11 12 * inspector/InspectorInstrumentation.cpp: 13 (WebCore::InspectorInstrumentation::didReceiveResourceResponseButCanceledImpl): 14 (WebCore::InspectorInstrumentation::continueWithPolicyDownloadImpl): 15 (WebCore::InspectorInstrumentation::continueWithPolicyIgnoreImpl): 16 * inspector/InspectorInstrumentation.h: 17 (WebCore::InspectorInstrumentation::continueWithPolicyDownload): 18 (WebCore::InspectorInstrumentation::continueWithPolicyIgnore): 19 * loader/MainResourceLoader.cpp: 20 (WebCore::MainResourceLoader::continueAfterContentPolicy): 21 1 22 2011-04-14 Joone Hur <joone.hur@collabora.co.uk> 2 23 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r82847 r83933 458 458 } 459 459 460 void InspectorInstrumentation::didReceiveResourceResponseButCanceledImpl(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 461 { 462 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willReceiveResourceResponse(frame, identifier, r); 463 InspectorInstrumentation::didReceiveResourceResponse(cookie, identifier, loader, r); 464 } 465 466 void InspectorInstrumentation::continueWithPolicyDownloadImpl(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 467 { 468 didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r); 469 } 470 471 void InspectorInstrumentation::continueWithPolicyIgnoreImpl(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 472 { 473 didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r); 474 } 475 460 476 void InspectorInstrumentation::didReceiveContentLengthImpl(InspectorAgent* inspectorAgent, unsigned long identifier, int dataLength, int lengthReceived) 461 477 { -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r82281 r83933 119 119 static InspectorInstrumentationCookie willReceiveResourceResponse(Frame*, unsigned long identifier, const ResourceResponse&); 120 120 static void didReceiveResourceResponse(const InspectorInstrumentationCookie&, unsigned long identifier, DocumentLoader*, const ResourceResponse&); 121 static void continueWithPolicyDownload(Frame*, DocumentLoader*, unsigned long identifier, const ResourceResponse&); 122 static void continueWithPolicyIgnore(Frame*, DocumentLoader*, unsigned long identifier, const ResourceResponse&); 121 123 static void didReceiveContentLength(Frame*, unsigned long identifier, int dataLength, int lengthReceived); 122 124 static void didFinishLoading(Frame*, unsigned long identifier, double finishTime); … … 235 237 static InspectorInstrumentationCookie willReceiveResourceResponseImpl(InspectorAgent*, unsigned long identifier, const ResourceResponse&); 236 238 static void didReceiveResourceResponseImpl(const InspectorInstrumentationCookie&, unsigned long identifier, DocumentLoader*, const ResourceResponse&); 239 static void didReceiveResourceResponseButCanceledImpl(Frame*, DocumentLoader*, unsigned long identifier, const ResourceResponse&); 240 static void continueWithPolicyDownloadImpl(Frame*, DocumentLoader*, unsigned long identifier, const ResourceResponse&); 241 static void continueWithPolicyIgnoreImpl(Frame*, DocumentLoader*, unsigned long identifier, const ResourceResponse&); 237 242 static void didReceiveContentLengthImpl(InspectorAgent*, unsigned long identifier, int dataLength, int lengthReceived); 238 243 static void didFinishLoadingImpl(InspectorAgent*, unsigned long identifier, double finishTime); … … 666 671 } 667 672 673 inline void InspectorInstrumentation::continueWithPolicyDownload(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 674 { 675 #if ENABLE(INSPECTOR) 676 if (inspectorAgentWithFrontendForFrame(frame)) 677 InspectorInstrumentation::continueWithPolicyDownloadImpl(frame, loader, identifier, r); 678 #endif 679 } 680 681 inline void InspectorInstrumentation::continueWithPolicyIgnore(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 682 { 683 #if ENABLE(INSPECTOR) 684 if (inspectorAgentWithFrontendForFrame(frame)) 685 InspectorInstrumentation::continueWithPolicyIgnoreImpl(frame, loader, identifier, r); 686 #endif 687 } 688 668 689 inline void InspectorInstrumentation::didReceiveContentLength(Frame* frame, unsigned long identifier, int dataLength, int lengthReceived) 669 690 { -
trunk/Source/WebCore/loader/MainResourceLoader.cpp
r80832 r83933 40 40 #include "FrameLoaderClient.h" 41 41 #include "HTMLFormElement.h" 42 #include "InspectorInstrumentation.h" 42 43 #include "Page.h" 43 44 #if PLATFORM(QT) … … 263 264 return; 264 265 } 266 InspectorInstrumentation::continueWithPolicyDownload(m_frame.get(), documentLoader(), identifier(), r); 265 267 frameLoader()->client()->download(m_handle.get(), request(), m_handle.get()->firstRequest(), r); 266 268 // It might have gone missing … … 270 272 271 273 case PolicyIgnore: 274 InspectorInstrumentation::continueWithPolicyIgnore(m_frame.get(), documentLoader(), identifier(), r); 272 275 stopLoadingForPolicyChange(); 273 276 return;
Note: See TracChangeset
for help on using the changeset viewer.