Changeset 85316 in webkit
- Timestamp:
- Apr 29, 2011 4:43:30 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85315 r85316 1 2011-04-29 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: Hyperlink Auditing (ping) requests are not shown in network panel 6 https://bugs.webkit.org/show_bug.cgi?id=58794 7 8 Added ping requests to network panel. 9 10 * http/tests/inspector/network/ping-expected.txt: Added. 11 * http/tests/inspector/network/ping.html: Added. 12 1 13 2011-04-28 Pavel Podivilov <podivilov@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r85315 r85316 1 2011-04-29 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: Hyperlink Auditing (ping) requests are not shown in network panel 6 https://bugs.webkit.org/show_bug.cgi?id=58794 7 8 Added ping requests to network panel. 9 10 Test: http/tests/inspector/network/ping.html 11 12 * English.lproj/localizedStrings.js: 13 * inspector/InspectorInstrumentation.cpp: 14 (WebCore::InspectorInstrumentation::continueAfterPingLoaderImpl): 15 * inspector/InspectorInstrumentation.h: 16 (WebCore::InspectorInstrumentation::continueAfterPingLoader): 17 * inspector/front-end/NetworkPanel.js: 18 (WebInspector.NetworkDataGridNode.prototype.refreshResource): 19 (WebInspector.NetworkDataGridNode.prototype._refreshStatusCell): 20 (WebInspector.NetworkDataGridNode.prototype._refreshTypeCell): 21 * inspector/front-end/Resource.js: 22 (WebInspector.Resource.prototype.get formParameters): 23 (WebInspector.Resource.prototype.requestContentType): 24 (WebInspector.Resource.prototype.isPingRequest): 25 * loader/PingLoader.cpp: 26 (WebCore::PingLoader::PingLoader): 27 * loader/PingLoader.h: 28 1 29 2011-04-28 Pavel Podivilov <podivilov@chromium.org> 2 30 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r84774 r85316 404 404 } 405 405 406 void InspectorInstrumentation::continueAfterPingLoaderImpl(InspectorAgent* inspectorAgent, unsigned long identifier, DocumentLoader* loader, ResourceRequest& request, const ResourceResponse& response) 407 { 408 willSendRequestImpl(inspectorAgent, identifier, loader, request, response); 409 } 410 406 411 void InspectorInstrumentation::markResourceAsCachedImpl(InspectorAgent* inspectorAgent, unsigned long identifier) 407 412 { -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r85030 r85316 114 114 static void applyUserAgentOverride(Frame*, String*); 115 115 static void willSendRequest(Frame*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse); 116 static void continueAfterPingLoader(Frame*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse&); 116 117 static void markResourceAsCached(Page*, unsigned long identifier); 117 118 static void didLoadResourceFromMemoryCache(Page*, DocumentLoader*, const CachedResource*); … … 235 236 static void applyUserAgentOverrideImpl(InspectorAgent*, String*); 236 237 static void willSendRequestImpl(InspectorAgent*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse); 238 static void continueAfterPingLoaderImpl(InspectorAgent*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse&); 237 239 static void markResourceAsCachedImpl(InspectorAgent*, unsigned long identifier); 238 240 static void didLoadResourceFromMemoryCacheImpl(InspectorAgent*, DocumentLoader*, const CachedResource*); … … 629 631 } 630 632 633 inline void InspectorInstrumentation::continueAfterPingLoader(Frame* frame, unsigned long identifier, DocumentLoader* loader, ResourceRequest& request, const ResourceResponse& response) 634 { 635 #if ENABLE(INSPECTOR) 636 if (InspectorAgent* ic = inspectorAgentForFrame(frame)) 637 InspectorInstrumentation::continueAfterPingLoaderImpl(ic, identifier, loader, request, response); 638 #endif 639 } 640 631 641 inline void InspectorInstrumentation::markResourceAsCached(Page* page, unsigned long identifier) 632 642 { -
trunk/Source/WebCore/inspector/front-end/NetworkPanel.js
r85312 r85316 1489 1489 1490 1490 this._refreshStatusCell(); 1491 1492 if (this._resource.mimeType) { 1493 this._typeCell.removeStyleClass("network-dim-cell"); 1494 this._typeCell.setTextAndTitle(this._resource.mimeType); 1495 } else { 1496 this._typeCell.addStyleClass("network-dim-cell"); 1497 this._typeCell.setTextAndTitle(WebInspector.UIString("Pending")); 1498 } 1499 1491 this._refreshTypeCell(); 1500 1492 this._refreshSizeCell(); 1501 1493 this._refreshTimeCell(); … … 1580 1572 if (this._resource.isDataURL() && this._resource.finished) 1581 1573 this._statusCell.setTextAndTitle(WebInspector.UIString("(data url)")); 1574 else if (this._resource.isPingRequest()) 1575 this._statusCell.setTextAndTitle(WebInspector.UIString("(ping)")); 1582 1576 else 1583 1577 this._statusCell.setTextAndTitle(WebInspector.UIString("(Pending)")); 1584 1578 this._statusCell.addStyleClass("network-dim-cell"); 1579 } 1580 }, 1581 1582 _refreshTypeCell: function() 1583 { 1584 if (this._resource.mimeType) { 1585 this._typeCell.removeStyleClass("network-dim-cell"); 1586 this._typeCell.setTextAndTitle(this._resource.mimeType); 1587 } else if (this._resource.isPingRequest) { 1588 this._typeCell.removeStyleClass("network-dim-cell"); 1589 this._typeCell.setTextAndTitle(this._resource.requestContentType()); 1590 } else { 1591 this._typeCell.addStyleClass("network-dim-cell"); 1592 this._typeCell.setTextAndTitle(WebInspector.UIString("Pending")); 1585 1593 } 1586 1594 }, -
trunk/Source/WebCore/inspector/front-end/Resource.js
r84778 r85316 588 588 if (!this.requestFormData) 589 589 return; 590 var requestContentType = this.request HeaderValue("Content-Type");590 var requestContentType = this.requestContentType(); 591 591 if (!requestContentType || !requestContentType.match(/^application\/x-www-form-urlencoded\s*(;.*)?$/i)) 592 592 return; … … 848 848 }, 849 849 850 requestContentType: function() 851 { 852 return this.requestHeaderValue("Content-Type"); 853 }, 854 855 isPingRequest: function() 856 { 857 return "text/ping" === this.requestContentType(); 858 }, 859 850 860 _contentURL: function() 851 861 { -
trunk/Source/WebCore/loader/PingLoader.cpp
r85030 r85316 37 37 #include "Frame.h" 38 38 #include "FrameLoaderClient.h" 39 #include "InspectorInstrumentation.h" 39 40 #include "Page.h" 40 41 #include "ProgressTracker.h" … … 111 112 } 112 113 113 PingLoader::PingLoader(Frame* frame, constResourceRequest& request)114 PingLoader::PingLoader(Frame* frame, ResourceRequest& request) 114 115 : m_timeout(this, &PingLoader::timeout) 115 116 { … … 117 118 m_shouldUseCredentialStorage = frame->loader()->client()->shouldUseCredentialStorage(frame->loader()->activeDocumentLoader(), identifier); 118 119 m_handle = ResourceHandle::create(frame->loader()->networkingContext(), request, this, false, false); 120 121 InspectorInstrumentation::continueAfterPingLoader(frame, identifier, frame->loader()->activeDocumentLoader(), request, ResourceResponse()); 119 122 120 123 // If the server never responds, FrameLoader won't be able to cancel this load and -
trunk/Source/WebCore/loader/PingLoader.h
r84478 r85316 62 62 63 63 private: 64 PingLoader(Frame*, constResourceRequest&);64 PingLoader(Frame*, ResourceRequest&); 65 65 66 66 void didReceiveResponse(ResourceHandle*, const ResourceResponse&) { delete this; }
Note: See TracChangeset
for help on using the changeset viewer.