• vsevik@chromium.org's avatar
    2011-07-05 Vsevolod Vlasov <vsevik@chromium.org> · d8b27104
    vsevik@chromium.org authored
            Web Inspector: Show content for plugin requests in network panel.
            https://bugs.webkit.org/show_bug.cgi?id=30080
    
            Added GTK symbols for new window.internals methods.
    
            Reviewed by Pavel Feldman.
    
            * Source/autotools/symbols.filter:
    2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
    
            Web Inspector: Show content for plugin requests in network panel.
            https://bugs.webkit.org/show_bug.cgi?id=30080
    
            Added tests for plugin content saving and replacing in NetworkResourcesData.
            Adjusted older tests to use new window.internals method setInspectorResourcesDataSizeLimits
            to ensure NetworkResourcesData is in the correct state before test.
    
            Reviewed by Pavel Feldman.
    
            * http/tests/inspector/network/network-content-replacement-embed-expected.txt: Added.
            * http/tests/inspector/network/network-content-replacement-embed.html: Added.
            * http/tests/inspector/network/network-content-replacement-xhr-expected.txt: Added.
            * http/tests/inspector/network/network-content-replacement-xhr.html: Added.
            * http/tests/inspector/network/network-embed-expected.txt: Added.
            * http/tests/inspector/network/network-embed.html: Added.
            * http/tests/inspector/network/network-xhr-async-expected.txt:
            * http/tests/inspector/network/network-xhr-async.html:
            * http/tests/inspector/network/network-xhr-sync-expected.txt:
            * http/tests/inspector/network/network-xhr-sync.html:
            * http/tests/inspector/network/resources/cp1251.xml: Added.
            * http/tests/inspector/network/resources/plugin-data.php: Added.
            * http/tests/inspector/network/resources/resource.php:
            * http/tests/inspector/network/resources/utf8.xml: Added.
            * platform/chromium/test_expectations.txt:
    2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
    
            Web Inspector: Show content for plugin requests in network panel.
            https://bugs.webkit.org/show_bug.cgi?id=30080
    
            Now the data from didReceiveData callback is passed to inspector.
            It is then saved in NetworkResourcesData structure for plugin requests.
            Added window.internals.setInspectorResourcesDataSizeLimits() method
            for testing replacement logic.
    
            Reviewed by Pavel Feldman.
    
            Tests: http/tests/inspector/network/network-content-replacement-embed.html
                   http/tests/inspector/network/network-content-replacement-xhr.html
                   http/tests/inspector/network/network-embed.html
    
            * WebCore.exp.in:
            * inspector/InspectorController.cpp:
            (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
            * inspector/InspectorController.h:
            * inspector/InspectorInstrumentation.cpp:
            (WebCore::InspectorInstrumentation::didReceiveDataImpl):
            * inspector/InspectorInstrumentation.h:
            (WebCore::InspectorInstrumentation::didReceiveData):
            * inspector/InspectorResourceAgent.cpp:
            (WebCore::InspectorResourceAgent::didReceiveResponse):
            (WebCore::InspectorResourceAgent::didReceiveData):
            (WebCore::InspectorResourceAgent::didFinishLoading):
            (WebCore::InspectorResourceAgent::setInitialXHRContent):
            (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
            (WebCore::InspectorResourceAgent::getResourceContent):
            * inspector/InspectorResourceAgent.h:
            * inspector/NetworkResourcesData.cpp:
            (WebCore::NetworkResourcesData::ResourceData::ResourceData):
            (WebCore::NetworkResourcesData::ResourceData::setContent):
            (WebCore::NetworkResourcesData::ResourceData::purgeContent):
            (WebCore::NetworkResourcesData::ResourceData::createDecoder):
            (WebCore::NetworkResourcesData::ResourceData::dataLength):
            (WebCore::NetworkResourcesData::ResourceData::appendData):
            (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
            (WebCore::NetworkResourcesData::NetworkResourcesData):
            (WebCore::NetworkResourcesData::responseReceived):
            (WebCore::NetworkResourcesData::setResourceContent):
            (WebCore::NetworkResourcesData::maybeAddResourceData):
            (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
            (WebCore::NetworkResourcesData::data):
            (WebCore::NetworkResourcesData::clear):
            (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
            (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
            (WebCore::NetworkResourcesData::ensureFreeSpace):
            * inspector/NetworkResourcesData.h:
            (WebCore::NetworkResourcesData::ResourceData::hasContent):
            (WebCore::NetworkResourcesData::ResourceData::content):
            (WebCore::NetworkResourcesData::ResourceData::decoder):
            (WebCore::NetworkResourcesData::ResourceData::buffer):
            (WebCore::NetworkResourcesData::ResourceData::setBuffer):
            (WebCore::NetworkResourcesData::ResourceData::hasData):
            * inspector/front-end/Resource.js:
            (WebInspector.Resource.prototype.get contentEncoded):
            * inspector/front-end/ResourcePreviewView.js:
            (WebInspector.ResourcePreviewView.prototype.contentLoaded):
            (WebInspector.ResourcePreviewView.prototype._createEmptyView):
            (WebInspector.ResourcePreviewView.prototype._createPreviewView):
            * inspector/front-end/ResourceView.js:
            (WebInspector.ResourceView.hasTextContent):
            * loader/DocumentThreadableLoader.cpp:
            (WebCore::DocumentThreadableLoader::didReceiveData):
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::willLoadMediaElementURL):
            (WebCore::FrameLoader::commitProvisionalLoad):
            (WebCore::FrameLoader::loadResourceSynchronously):
            (WebCore::FrameLoader::loadedResourceFromMemoryCache):
            * loader/ResourceLoadNotifier.cpp:
            (WebCore::ResourceLoadNotifier::didReceiveData):
            (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
            (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
            * loader/ResourceLoadNotifier.h:
            * loader/appcache/ApplicationCacheGroup.cpp:
            (WebCore::ApplicationCacheGroup::didReceiveData):
            * testing/Internals.cpp:
            (WebCore::Internals::setInspectorResourcesDataSizeLimits):
            * testing/Internals.h:
            * testing/Internals.idl:
    2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
    
            Web Inspector: Show content for plugin requests in network panel.
            https://bugs.webkit.org/show_bug.cgi?id=30080
    
            Added win symbols for new window.internals methods.
    
            Reviewed by Pavel Feldman.
    
            * win/WebKit2.def:
            * win/WebKit2CFLite.def:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d8b27104
WebKit2CFLite.def 5.54 KB