2010-12-15 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Dec 2010 08:22:16 +0000 (08:22 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Dec 2010 08:22:16 +0000 (08:22 +0000)
commit7e5e1eab766c1e21b8a3602af84f78d777084535
treeb6d9da6f4eea11241dc35fe22667a7746b184cc8
parentd7674cddc1d67d04bfa1356c59dff1a063a90a3d
2010-12-15  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: [Extension API] add support for adding/overriding HTTP request headers
        https://bugs.webkit.org/show_bug.cgi?id=50493

        Test: http/tests/inspector/extensions-headers.html

        * inspector/Inspector.idl:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::willSendRequest): Apply extra headers.
        (WebCore::InspectorController::setExtraHeaders):
        * inspector/InspectorController.h:
        * inspector/front-end/ExtensionAPI.js:
        (WebInspector.injectedExtensionAPI.Resources.prototype.getHAR):
        (WebInspector.injectedExtensionAPI.Resources.prototype.addRequestHeaders):
        * inspector/front-end/ExtensionServer.js:
        (WebInspector.ExtensionServer):
        (WebInspector.ExtensionServer.prototype._onAddRequestHeaders):

2010-12-15  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: [Extension API] add support for adding/overriding HTTP request headers
        Moved extensions test frameworks under http/tests/inspector, so HTTP tests may reuse it.
        https://bugs.webkit.org/show_bug.cgi?id=50493

        * http/tests/inspector/extensions-headers-expected.txt: Added.
        * http/tests/inspector/extensions-headers.html: Added.
        * http/tests/inspector/extensions-test.js: Renamed from LayoutTests/inspector/extensions-test.js.
        (log):
        (extensionFunctions):
        (initialize_ExtensionsTest.InspectorTest.dispatchOnMessage):
        (initialize_ExtensionsTest.InspectorTest.runExtensionTests):
        (initialize_ExtensionsTest.extensionOutput):
        (initialize_ExtensionsTest.dumpSidebarContent):
        (initialize_ExtensionsTest.reloadPage):
        (test):
        * http/tests/inspector/resources/echo-headers.php: Added.
        * http/tests/inspector/resources/extension-main.html: Renamed from LayoutTests/inspector/resources/extension-main.html.
        * http/tests/inspector/resources/extension-main.js: Renamed from LayoutTests/inspector/resources/extension-main.js.
        (fetchTests.callback):
        (fetchTests):
        (runTests):
        (onTestsDone):
        (dispatchOnFrontend.callbackWrapper):
        (dispatchOnFrontend):
        (callbackAndNextTest.callbackWrapper):
        (callbackAndNextTest):
        * http/tests/inspector/resources/extension-panel.html: Renamed from LayoutTests/inspector/resources/extension-panel.html.
        * http/tests/inspector/resources/extension-sidebar.html: Renamed from LayoutTests/inspector/resources/extension-sidebar.html.
        * inspector/extensions-api-expected.txt:
        * inspector/extensions-api.html:
        * inspector/extensions-audits-api.html:
        * inspector/extensions-audits.html:
        * inspector/extensions-eval.html:
        * inspector/extensions-events.html:
        * inspector/extensions-resources-expected.txt:
        * inspector/extensions-resources.html:
        * inspector/extensions.html:
        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/extensions-headers-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/inspector/extensions-headers.html [new file with mode: 0644]
LayoutTests/http/tests/inspector/extensions-test.js [moved from LayoutTests/inspector/extensions-test.js with 87% similarity]
LayoutTests/http/tests/inspector/resources/echo-headers.php [new file with mode: 0755]
LayoutTests/http/tests/inspector/resources/extension-main.html [moved from LayoutTests/inspector/resources/extension-main.html with 77% similarity]
LayoutTests/http/tests/inspector/resources/extension-main.js [moved from LayoutTests/inspector/resources/extension-main.js with 100% similarity]
LayoutTests/http/tests/inspector/resources/extension-panel.html [moved from LayoutTests/inspector/resources/extension-panel.html with 100% similarity]
LayoutTests/http/tests/inspector/resources/extension-sidebar.html [moved from LayoutTests/inspector/resources/extension-sidebar.html with 100% similarity]
LayoutTests/inspector/extensions-api-expected.txt
LayoutTests/inspector/extensions-api.html
LayoutTests/inspector/extensions-audits-api.html
LayoutTests/inspector/extensions-audits.html
LayoutTests/inspector/extensions-eval.html
LayoutTests/inspector/extensions-events.html
LayoutTests/inspector/extensions-resources-expected.txt
LayoutTests/inspector/extensions-resources.html
LayoutTests/inspector/extensions.html
LayoutTests/platform/chromium/test_expectations.txt
WebCore/ChangeLog
WebCore/inspector/Inspector.idl
WebCore/inspector/InspectorController.cpp
WebCore/inspector/InspectorController.h
WebCore/inspector/front-end/ExtensionAPI.js
WebCore/inspector/front-end/ExtensionServer.js