feat(libSceNKWebKit): implement WebCore::DeprecatedGlobalSettings scrollbar, SSL and loader flag setters #19581
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19581"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-13T15:16:05Z.
What
Implements eight
WebCore::DeprecatedGlobalSettingsexports in libSceNKWebKit that threw throughNotImplemented_nid_no_patch:setMockScrollbarsEnabled(bool)and themockScrollbarsEnabled()gettersetUsesOverlayScrollbars(bool)setUsesMockScrollAnimator(bool)setShouldRespectPriorityInCSSAttributeSetters(bool)setLowPowerVideoAudioBufferSizeEnabled(bool)setResourceLoadStatisticsEnabled(bool)setAllowsAnySSLCertificate(bool)These are static functions that store process-wide flags. Each flag starts false. The pinned PS5-WebKit
DeprecatedGlobalSettings.cppwrites them to aNeverDestroyedsingleton, for exampleshared().m_mockScrollbarsEnabled = flag;. Its header gives the defaults as{ false }. WebKitc55364d53f97, which the debt file already cites, has the out-of-line forms of the five older exports, such asgMockScrollAnimatorEnabled = flag;. In both revisions the setters have no other side effects. There is no object layout, because these are static functions.The state lives in
src/DeprecatedGlobalSettings.cpp. The header declarations change fromint()to the realvoid(bool)andbool()signatures. Three of the eight are inventory declarations, so their debt rows are removed. The debt file also says that no other export reads these flags yet.tools/progress.py: libraries done 15692 -> 15700 (+8). libSceNKWebKit goes from 2997 to 3005.Tested
Ubuntu (WSL2) with Clang.
nkwebkit_deprecatedglobalsettingschecks the defaults and checks each setter with true and false. It also confirms that each setter changes only its own flag, and that onlysetMockScrollbarsEnabledchanges themockScrollbarsEnabled()result.main):nkwebkit_deprecatedglobalsettings ...Subprocess aborted,_ZN7WebCore24DeprecatedGlobalSettings21mockScrollbarsEnabledEv not implementedctest -R '^nkwebkit_deprecatedglobalsettings$' --repeat until-fail:3: Passed 3/3ctest -R '^public_headers': 100% tests passed, 0 tests failed out of 655cda7b944f1, an ordinary merge ofmainat999d6f8ffd6, conventions passed; doc-only union merge of the count line; count is main's stated 5939 minus this change's 3 removed stubs (5936). Main's code changes are 7,000+ lines from this PR's hunks, so not rebuilt.e10ae3c4824(licence notices only, comment lines):python3 tools/check_conventions.py --base origin/mainpassed; the notice blocks match PS5-WebKit-11.x 80f77e94c6 DeprecatedGlobalSettings.cpp/.h and WebKit c55364d53f97 DeprecatedGlobalSettings.cpp byte for byte. No code changed, so not rebuilt.e7cbea45493: merged main after #19603; count line removed. Ordinary merge ofmainat9b22c40f49a, conventions passed. The debt diff against main is now only this PR's entry and its 3 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt.f6f0dc8a33crewrites eachDerived fromline asDerived from <path>@<40-character revision>, one line per source file (maintainer ruling, #19819 comment). No code changed, so no rebuild;tools/check_conventions.py --base origin/mainpasses andgit diff --checkis clean.5eb183de55d: Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main790e9a371cc:ctest -R nkwebkit116/116 passed,patched_librariespassed once the #19822 fix was in. Re-merged ontob9fb5ab5a32(no NKWebKit changes in between);check_conventionspassed.9ef663ba97: merged mainc3d38470e0cand moved this PR's debt edits intodocs/dev/debt/changes/claude-nkwebkit-deprecated-global-settings.md; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head.debt_fold.py --checkandcheck_conventions.py --base origin/mainpass. Documentation only, no build.9ef663ba97merged into main (report): Server 2025 had only main'sguest_multibyte_locale; Server 2022 had main's 4 plus one single-run flake per run (guest_avplayertiming in run 1,guest_cpu_time_clocksin run 2, which also fails on other PRs in the same batch), neither touched by this change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-13T17:48:07Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e10ae3c482:tools/check_conventions.pypassed;git diff --checkreported whitespace errors.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Generated withfooter from the description; the AI-assisted checkbox can stay.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-13T18:37:16Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e7cbea4549:tools/check_conventions.pypassed;git diff --checkreported whitespace errors.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Generated withfooter from the description; the AI-assisted checkbox can stay.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T01:23:44Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
f6f0dc8a33:tools/check_conventions.pypassed;git diff --checkreported whitespace errors.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T05:00:18Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
ea069688c5:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T20:00:16Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
4e23509e46:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T23:44:19Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
9f95aacc0b:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T21:41:42Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
5eb183de55:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T00:03:30Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
9ef663ba97:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T22:41:34Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
0084644a5f:tools/check_conventions.pypassed.nkwebkit_deprecatedglobalsettings_testsbuilt cleanly.nkwebkit_deprecatedglobalsettings):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/src/DeprecatedGlobalSettings.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me