Changeset 83933 in webkit


Ignore:
Timestamp:
Apr 14, 2011 7:40:13 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-14 Vsevolod Vlasov <vsevik@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: No headers information in network panel for downloads.
https://bugs.webkit.org/show_bug.cgi?id=58139

Passed resource response to inspector for PolicyDownload and PolicyIgnore requests.

  • http/tests/inspector/network/download-expected.txt: Added.
  • http/tests/inspector/network/download.html: Added.
  • http/tests/inspector/network/resources/download.zzz: Added.

2011-04-14 Vsevolod Vlasov <vsevik@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: No headers information in network panel for downloads.
https://bugs.webkit.org/show_bug.cgi?id=58139

Passed resource response to inspector for PolicyDownload and PolicyIgnore requests.

Test: http/tests/inspector/network/download.html

  • inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::didReceiveResourceResponseButCanceledImpl): (WebCore::InspectorInstrumentation::continueWithPolicyDownloadImpl): (WebCore::InspectorInstrumentation::continueWithPolicyIgnoreImpl):
  • inspector/InspectorInstrumentation.h: (WebCore::InspectorInstrumentation::continueWithPolicyDownload): (WebCore::InspectorInstrumentation::continueWithPolicyIgnore):
  • loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::continueAfterContentPolicy):
Location:
trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83930 r83933  
     12011-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
    1142011-04-14  Naoki Takano  <takano.naoki@gmail.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r83932 r83933  
     12011-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
    1222011-04-14  Joone Hur  <joone.hur@collabora.co.uk>
    223
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp

    r82847 r83933  
    458458}
    459459
     460void 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
     466void InspectorInstrumentation::continueWithPolicyDownloadImpl(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r)
     467{
     468    didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r);
     469}
     470
     471void InspectorInstrumentation::continueWithPolicyIgnoreImpl(Frame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r)
     472{
     473    didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r);
     474}
     475
    460476void InspectorInstrumentation::didReceiveContentLengthImpl(InspectorAgent* inspectorAgent, unsigned long identifier, int dataLength, int lengthReceived)
    461477{
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.h

    r82281 r83933  
    119119    static InspectorInstrumentationCookie willReceiveResourceResponse(Frame*, unsigned long identifier, const ResourceResponse&);
    120120    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&);
    121123    static void didReceiveContentLength(Frame*, unsigned long identifier, int dataLength, int lengthReceived);
    122124    static void didFinishLoading(Frame*, unsigned long identifier, double finishTime);
     
    235237    static InspectorInstrumentationCookie willReceiveResourceResponseImpl(InspectorAgent*, unsigned long identifier, const ResourceResponse&);
    236238    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&);
    237242    static void didReceiveContentLengthImpl(InspectorAgent*, unsigned long identifier, int dataLength, int lengthReceived);
    238243    static void didFinishLoadingImpl(InspectorAgent*, unsigned long identifier, double finishTime);
     
    666671}
    667672
     673inline 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
     681inline 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
    668689inline void InspectorInstrumentation::didReceiveContentLength(Frame* frame, unsigned long identifier, int dataLength, int lengthReceived)
    669690{
  • trunk/Source/WebCore/loader/MainResourceLoader.cpp

    r80832 r83933  
    4040#include "FrameLoaderClient.h"
    4141#include "HTMLFormElement.h"
     42#include "InspectorInstrumentation.h"
    4243#include "Page.h"
    4344#if PLATFORM(QT)
     
    263264            return;
    264265        }
     266        InspectorInstrumentation::continueWithPolicyDownload(m_frame.get(), documentLoader(), identifier(), r);
    265267        frameLoader()->client()->download(m_handle.get(), request(), m_handle.get()->firstRequest(), r);
    266268        // It might have gone missing
     
    270272
    271273    case PolicyIgnore:
     274        InspectorInstrumentation::continueWithPolicyIgnore(m_frame.get(), documentLoader(), identifier(), r);
    272275        stopLoadingForPolicyChange();
    273276        return;
Note: See TracChangeset for help on using the changeset viewer.