Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecation Reporting] Stub implementation #4409

Conversation

brentfulgham
Copy link
Contributor

@brentfulgham brentfulgham commented Sep 15, 2022

a01206b

[Deprecation Reporting] Stub implementation
https://bugs.webkit.org/show_bug.cgi?id=245245
<rdar://problem/99988574>

Reviewed by Chris Dumez.

Import the Web Platform Tests for Deprecation Reporting, create a new Experimental Feature to represent
the work, and provide a stub implementation of the report

* LayoutTests/imported/w3c/resources/import-expectations.json:
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/META.yml: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.js: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.worker-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.worker.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/w3c-import.log: Added.
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Headers.cmake:
* Source/WebCore/Modules/reporting/DeprecationReportBody.cpp: Added.
(WebCore::DeprecationReportBody::deprecationReportType):
(WebCore::DeprecationReportBody::DeprecationReportBody):
(WebCore::DeprecationReportBody::create):
(WebCore::DeprecationReportBody::type const):
(WebCore::DeprecationReportBody::id const):
(WebCore::DeprecationReportBody::anticipatedRemoval const):
(WebCore::DeprecationReportBody::message const):
(WebCore::DeprecationReportBody::sourceFile const):
(WebCore::DeprecationReportBody::lineNumber const):
(WebCore::DeprecationReportBody::columnNumber const):
(WebCore::DeprecationReportBody::createReportFormDataForViolation const):
* Source/WebCore/Modules/reporting/DeprecationReportBody.h: Copied from Source/WebCore/Modules/reporting/TestReportBody.h.
(WebCore::DeprecationReportBody::encode const):
(WebCore::DeprecationReportBody::decode):
(isType):
* Source/WebCore/Modules/reporting/DeprecationReportBody.idl: Copied from Source/WebCore/Modules/reporting/ViolationReportType.h.
* Source/WebCore/Modules/reporting/ReportingObserver.cpp:
(WebCore::isVisibleToReportingObservers):
* Source/WebCore/Modules/reporting/TestReportBody.h:
* Source/WebCore/Modules/reporting/ViolationReportType.h:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/JSReportBodyCustom.cpp:
(WebCore::toJSNewlyCreated):
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
* Source/WebCore/loader/PingLoader.cpp:
(WebCore::PingLoader::sendViolationReport):
* Source/WebKit/Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<RefPtr<WebCore::ReportBody>>::encode):
(IPC::ArgumentCoder<RefPtr<WebCore::ReportBody>>::decode):

Canonical link: https://commits.webkit.org/254634@main

0f13c35

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ api-gtk
βœ… πŸ›  πŸ§ͺ jsc βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk1 βœ… πŸ›  jsc-armv7
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ jsc-armv7-tests
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch βœ… πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ›  jsc-mips
βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress βœ… πŸ§ͺ jsc-mips-tests

@brentfulgham brentfulgham self-assigned this Sep 15, 2022
@brentfulgham brentfulgham added WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). WebKit Nightly Build labels Sep 15, 2022
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Sep 16, 2022
@brentfulgham brentfulgham removed the merging-blocked Applied to prevent a change from being merged label Sep 16, 2022
@brentfulgham brentfulgham force-pushed the eng/Deprecation-Reporting-Stub-implementation branch from 8dbf8ee to f1f055e Compare September 16, 2022 17:03
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Sep 16, 2022
@brentfulgham brentfulgham removed the merging-blocked Applied to prevent a change from being merged label Sep 16, 2022
@brentfulgham brentfulgham force-pushed the eng/Deprecation-Reporting-Stub-implementation branch from f1f055e to 08d3884 Compare September 16, 2022 18:53
Source/WebCore/Modules/reporting/DeprecationReportBody.cpp Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.cpp Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.cpp Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.cpp Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.cpp Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.h Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.h Outdated Show resolved Hide resolved
Source/WebCore/Modules/reporting/DeprecationReportBody.h Outdated Show resolved Hide resolved
@brentfulgham brentfulgham force-pushed the eng/Deprecation-Reporting-Stub-implementation branch from 08d3884 to 0f13c35 Compare September 18, 2022 22:12
@brentfulgham brentfulgham added the merge-queue Applied to send a pull request to merge-queue label Sep 19, 2022

const AtomString& DeprecationReportBody::deprecationReportType()
{
static NeverDestroyed<AtomString> reportType { "deprecation"_s };
Copy link
Contributor

@cdumez cdumez Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is exposed to both main thread and workers, we likely want something like:
static NeverDestroyed<const AtomString> reportType(MAKE_STATIC_STRING_IMPL("deprecation"));

https://bugs.webkit.org/show_bug.cgi?id=245245
<rdar://problem/99988574>

Reviewed by Chris Dumez.

Import the Web Platform Tests for Deprecation Reporting, create a new Experimental Feature to represent
the work, and provide a stub implementation of the report

* LayoutTests/imported/w3c/resources/import-expectations.json:
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/META.yml: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.js: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.worker-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/idlharness.any.worker.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/deprecation-reporting/w3c-import.log: Added.
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Headers.cmake:
* Source/WebCore/Modules/reporting/DeprecationReportBody.cpp: Added.
(WebCore::DeprecationReportBody::deprecationReportType):
(WebCore::DeprecationReportBody::DeprecationReportBody):
(WebCore::DeprecationReportBody::create):
(WebCore::DeprecationReportBody::type const):
(WebCore::DeprecationReportBody::id const):
(WebCore::DeprecationReportBody::anticipatedRemoval const):
(WebCore::DeprecationReportBody::message const):
(WebCore::DeprecationReportBody::sourceFile const):
(WebCore::DeprecationReportBody::lineNumber const):
(WebCore::DeprecationReportBody::columnNumber const):
(WebCore::DeprecationReportBody::createReportFormDataForViolation const):
* Source/WebCore/Modules/reporting/DeprecationReportBody.h: Copied from Source/WebCore/Modules/reporting/TestReportBody.h.
(WebCore::DeprecationReportBody::encode const):
(WebCore::DeprecationReportBody::decode):
(isType):
* Source/WebCore/Modules/reporting/DeprecationReportBody.idl: Copied from Source/WebCore/Modules/reporting/ViolationReportType.h.
* Source/WebCore/Modules/reporting/ReportingObserver.cpp:
(WebCore::isVisibleToReportingObservers):
* Source/WebCore/Modules/reporting/TestReportBody.h:
* Source/WebCore/Modules/reporting/ViolationReportType.h:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/JSReportBodyCustom.cpp:
(WebCore::toJSNewlyCreated):
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
* Source/WebCore/loader/PingLoader.cpp:
(WebCore::PingLoader::sendViolationReport):
* Source/WebKit/Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<RefPtr<WebCore::ReportBody>>::encode):
(IPC::ArgumentCoder<RefPtr<WebCore::ReportBody>>::decode):

Canonical link: https://commits.webkit.org/254634@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Deprecation-Reporting-Stub-implementation branch from 0f13c35 to a01206b Compare September 19, 2022 17:47
@webkit-commit-queue
Copy link
Collaborator

Committed 254634@main (a01206b): https://commits.webkit.org/254634@main

Reviewed commits have been landed. Closing PR #4409 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit a01206b into WebKit:main Sep 19, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).
Projects
None yet
5 participants