[webkit-changes] [WebKit/WebKit] 9b7b0a: [Reporting API] WebDriver: Add support for generat...
Brent Fulgham
noreply at github.com
Fri Sep 2 18:00:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9b7b0a6ad68383e5623c51681ce914bfdfc85d44
https://github.com/WebKit/WebKit/commit/9b7b0a6ad68383e5623c51681ce914bfdfc85d44
Author: Brent Fulgham <bfulgham at apple.com>
Date: 2022-09-02 (Fri, 02 Sep 2022)
Changed paths:
M Source/WebCore/Modules/reporting/ReportingScope.cpp
M Source/WebCore/Modules/reporting/ReportingScope.h
M Source/WebKit/UIProcess/Automation/Automation.json
M Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
M Source/WebKit/UIProcess/Automation/WebAutomationSession.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
M Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
M Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
M Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
M Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
Log Message:
-----------
[Reporting API] WebDriver: Add support for generateTestReport
https://bugs.webkit.org/show_bug.cgi?id=244719
<rdar://problem/99496290>
Reviewed by Patrick Angle.
Add a new Automation interface to support 'generate_test_report' in WPT when
run by WebDriver. This involves the following changes to comply with
https://w3c.github.io/reporting/#generate-test-report-command:
(1) Update ReportingScope to accept a 'group' argument, which will be used in
a future patch (once WPT starts using it).
(2) Update WKTR to accept an optional 'group' argument to generateTestReport,
passing 'default' if not provided.
(3) Provide a UIProcess method to accept generateTestReport from the Automation
interface.
(4) Add a new IPC message for the WebContent Process to generate a test report
at the request of the UIProcess.
* Source/WebCore/Modules/reporting/ReportingScope.cpp:
(WebCore::ReportingScope::generateTestReport): Add 'group' argument.
* Source/WebCore/Modules/reporting/ReportingScope.h:
* Source/WebKit/UIProcess/Automation/Automation.json: Add new method.
* Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::generateTestReport): Added.
* Source/WebKit/UIProcess/Automation/WebAutomationSession.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::generateTestReport): Added.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
(_WKBundleFrameGenerateTestReport): Accept the 'group' argument.
* Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::generateTestReport): Added.
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::generateTestReport): Update to accept an optional
'group' argument, passing "default" if none is provided.
* Tools/WebKitTestRunner/InjectedBundle/TestRunner.h:
Canonical link: https://commits.webkit.org/254122@main
More information about the webkit-changes
mailing list