2022-02-03 Myles C. Maxfield Allow using STIX Two in layout tests https://bugs.webkit.org/show_bug.cgi?id=236048 Reviewed by Darin Adler. Add the fonts to the allow-list. * DumpRenderTree/mac/DumpRenderTree.mm: (allowedFontFamilySet): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::allowedFontFamilySet): 2022-02-02 Pablo Saavedra [WPE] Fix for non-unified builds with ACCESSIBILITY=OFF https://bugs.webkit.org/show_bug.cgi?id=236024 Reviewed by Darin Adler. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/atspi/AccessibilityControllerAtspi.cpp: * WebKitTestRunner/InjectedBundle/atspi/AccessibilityNotificationHandler.cpp: * WebKitTestRunner/InjectedBundle/atspi/AccessibilityNotificationHandler.h: * WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp: 2022-02-02 Carlos Garcia Campos [GTK][a11y] Set platform name to atspi in WTR https://bugs.webkit.org/show_bug.cgi?id=232227 Reviewed by Adrian Perez de Castro. * WebKitTestRunner/InjectedBundle/atspi/AccessibilityControllerAtspi.cpp: (WTR::AccessibilityController::platformName): Use atspi instead of atk. 2022-02-02 Fujii Hironori [MiniBrowser][Win][WK2] Show MessageBox for alert, confirm and prompt https://bugs.webkit.org/show_bug.cgi?id=236047 Reviewed by Don Olmstead. * MiniBrowser/win/WebKitBrowserWindow.cpp: (createWKString): (WebKitBrowserWindow::WebKitBrowserWindow): (WebKitBrowserWindow::runJavaScriptAlert): (WebKitBrowserWindow::runJavaScriptConfirm): (WebKitBrowserWindow::runJavaScriptPrompt): * MiniBrowser/win/WebKitBrowserWindow.h: 2022-02-01 Jonathan Bedard [EWS] Rename CompileWebKitWithoutPatch to CompileWebKitWithoutChange https://bugs.webkit.org/show_bug.cgi?id=235949 Reviewed by Aakash Jain. * CISupport/ews-build/steps.py: (CompileWebKit.evaluateCommand): Rename CompileWebKitWithoutPatch to CompileWebKitWithoutChange. (CompileWebKitWithoutChange): Ditto. (AnalyzeCompileWebKitResults.analyzeResults): Ditto. (ReRunWebKitTests.evaluateCommand): Rename CompileWebKitWithoutPatch to CompileWebKitWithoutChange, only retry if build is for a patch. (RunWebKitTestsRedTree.evaluateCommand): Ditto. (RunWebKitTestsRepeatFailuresRedTree.evaluateCommand): Ditto. (ReRunAPITests.evaluateCommand): Ditto. (CompileWebKitWithoutPatch): Renamed to CompileWebKitWithoutChange. * CISupport/ews-build/steps_unittest.py: 2022-02-02 Timothy Hatcher Web Inspector: didShowExtensionTab needs to pass the frameID of the tab https://bugs.webkit.org/show_bug.cgi?id=236023 rdar://problem/88383984 Reviewed by BJ Burg. * TestWebKitAPI/Tests/WebKitCocoa/WKInspectorExtension.mm: (-[InspectorExtensionDelegateForTestingInspectorExtension inspectorExtension:didShowTabWithIdentifier:withFrameHandle:]): (-[InspectorExtensionDelegateForTestingInspectorExtension inspectorExtension:didShowTabWithIdentifier:]): Deleted. * TestWebKitAPI/Tests/WebKitCocoa/WKInspectorExtensionDelegate.mm: (-[InspectorExtensionDelegateForTesting inspectorExtension:didShowTabWithIdentifier:withFrameHandle:]): (-[InspectorExtensionDelegateForTesting inspectorExtension:didShowTabWithIdentifier:]): Deleted. 2022-02-02 Said Abou-Hallawa [GPU Process] Remove DisplayList::Replayer::Delegate and DisplayList::RecorderImpl::Delegate https://bugs.webkit.org/show_bug.cgi?id=235939 Reviewed by Wenson Hsieh. * TestWebKitAPI/Tests/WebCore/cg/DisplayListTestsCG.cpp: (TestWebKitAPI::TEST): 2022-02-01 Ryan Haddad Bring up additional test queues on Big Sur https://bugs.webkit.org/show_bug.cgi?id=235446 Unreviewed infrastructure fix. * CISupport/build-webkit-org/public_html/dashboard/Scripts/WebKitBuildbot.js: (WebKitBuildbot): Move the performance queue to the Big Sur section of the dashboard. 2022-01-26 Jonathan Bedard [git-webkit] Improve user prompts (Part 5) https://bugs.webkit.org/show_bug.cgi?id=235655 Reviewed by Aakash Jain and Dewei Zhu. * Scripts/git-webkit: Log to 'info' not 'warning.' 2022-01-26 Jonathan Bedard [git-webkit] Improve user prompts (Part 4) https://bugs.webkit.org/show_bug.cgi?id=235655 Reviewed by Aakash Jain and Dewei Zhu. * Scripts/libraries/webkitscmpy/setup.py: Bump version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py: (Branch.main): Make it clear why we're prompting the user for a branch name. * Scripts/libraries/webkitscmpy/webkitscmpy/test/branch_unittest.py: (TestBranch.test_prompt_git): 2022-01-26 Jonathan Bedard [git-webkit] Improve user prompts (Part 3) https://bugs.webkit.org/show_bug.cgi?id=235655 Reviewed by Aakash Jain and Dewei Zhu. * Scripts/libraries/webkitscmpy/setup.py: Bump version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/program/setup.py: (Setup.git): Make it clear to users that configurations are being set only on the local repository. * Scripts/libraries/webkitscmpy/webkitscmpy/test/setup_unittest.py: 2022-01-26 Jonathan Bedard [git-webkit] Improve user prompts (Part 2) https://bugs.webkit.org/show_bug.cgi?id=235655 Reviewed by Aakash Jain and Dewei Zhu. * Scripts/libraries/webkitcorepy/setup.py: Bump version. * Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: Ditto. * Scripts/libraries/webkitcorepy/webkitcorepy/terminal.py: (Terminal.input): Gracefully handle keyboard interrupt * Scripts/libraries/webkitcorepy/webkitcorepy/tests/terminal_unittest.py: (TerminalTests.test_interrupt): 2022-01-26 Jonathan Bedard [git-webkit] Improve user prompts (Part 1) https://bugs.webkit.org/show_bug.cgi?id=235655 Reviewed by Aakash Jain and Dewei Zhu. * Scripts/libraries/webkitbugspy/setup.py: Bump version. * Scripts/libraries/webkitbugspy/webkitbugspy/__init__.py: Ditto. * Scripts/libraries/webkitbugspy/webkitbugspy/github.py: Use token form url. * Scripts/libraries/webkitscmpy/setup.py: Bump version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py: Use token form url. 2022-02-02 Sam Sneddon REGRESSION (r288869): webkitpy.w3c.test_converter_unittest.W3CTestConverterTest.test_convert_prefixed_properties is failing https://bugs.webkit.org/show_bug.cgi?id=235961 Reviewed by Ryan Haddad. * Scripts/webkitpy/w3c/test_converter_unittest.py: (test_convert_prefixed_properties): Correct magic constant for number of tests. (generate_test_content): Simplify, add clear assertion to catch in future. 2022-02-02 Jonathan Bedard [EWS] unit tests have become slower https://bugs.webkit.org/show_bug.cgi?id=235364 Reviewed by Aakash Jain. * CISupport/ews-build/steps_unittest.py: Mock time.sleep when testing PushCommitToWebKitRepo. 2022-02-02 Youenn Fablet Clarify that some UUID routines are dedicated to UUID v4 https://bugs.webkit.org/show_bug.cgi?id=235430 Reviewed by Darin Adler. * TestWebKitAPI/Tests/WTF/UUID.cpp: (parseAndStringifyUUID): (TEST): * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm: (waitUntilNetworkProcessIsResponsive): * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: * WebKitTestRunner/TestController.cpp: (WTR::TestController::saltForOrigin): 2022-02-01 Robert Jenner Update watchOS simulators to run on the newer 44mm display https://bugs.webkit.org/show_bug.cgi?id=235986 Reviewed by Ryan Haddad. * Scripts/webkitpy/port/watch_simulator.py: (WatchSimulatorPort): 2022-02-01 Wenson Hsieh Mitigate hangs underneath -requestAutocorrectionContextWithCompletionHandler: when focusing text fields https://bugs.webkit.org/show_bug.cgi?id=235963 rdar://70152487 Reviewed by Tim Horton. Add a new API test to exercise a scenario that currently isn't covered by existing tests: if the text input client (i.e. UIKit) calls `-requestAutocorrectionContextWithCompletionHandler:`, then invokes an asynchronous API that performs an editing action or changes the selection, and then requests another autocorrection context, the second autocorrection context should reflect the changes that occurred as a result of the async editing action. * TestWebKitAPI/Tests/ios/AutocorrectionTestsIOS.mm: 2022-02-01 Jonathan Bedard [EWS] Fix infinate retry on PR with red ToT https://bugs.webkit.org/show_bug.cgi?id=235971 Reviewed by Aakash Jain. * CISupport/ews-build/steps.py: (AnalyzeCompileWebKitResults.analyzeResults): Update message for PRs, do not retry if base commit has failed to build. (AnalyzeCompileWebKitResults.send_email_for_new_build_failure): Only send emails for patch failures. * CISupport/ews-build/steps_unittest.py: 2022-02-01 Eric Carlson [macOS] Expose screen and window capture state to WKWebView https://bugs.webkit.org/show_bug.cgi?id=235838 Reviewed by Youenn Fablet. * TestWebKitAPI/TestWebKitAPI.xcodeproj/xcshareddata/xcschemes/TestWebKitAPI.xcscheme: * TestWebKitAPI/Tests/WebKitCocoa/GetDisplayMediaWindowAndScreen.mm: (-[DisplayCaptureObserver observeValueForKeyPath:ofObject:change:context:]): (-[DisplayCaptureObserver waitForDisplayCaptureState:]): (-[DisplayCaptureObserver waitForDisplayCaptureSurfaces:]): (TestWebKitAPI::TEST): * TestWebKitAPI/glib/TestExpectations.json: Skip /webkit/WebKitWebView/display-usermedia-permission-request until someone has a chance to figure out why it times out. 2022-02-01 Sam Sneddon Migrate LayoutTestFinder tests from FileSystemMock to pyfakefs https://bugs.webkit.org/show_bug.cgi?id=235370 Reviewed by Jonathan Bedard. * Scripts/webkitpy/__init__.py: Register pyfakefs (last Python 2 supporting version). * Scripts/webkitpy/common/host_mock.py: (MockHost.__init__): Pass **kwargs through to MockSystemHost. * Scripts/webkitpy/layout_tests/controllers/layout_test_finder_legacy_unittest.py: (LayoutTestFinderTests): (LayoutTestFinderTests.setUp): Setup the MockHost with pyfakefs. (LayoutTestFinderTests.test_find_glob_b): Uncomment now we don't need to mitigate FileSystemMock bugs. (LayoutTestFinderTests.test_find_glob_c): Uncomment now we don't need to mitigate FileSystemMock bugs. (LayoutTestFinderTests.test_is_w3c_resource_file): Ensure the directory exists before writing. * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: (RebaselineTest.test_reset_results): Call fs.clear_written_files before test. (RebaselineTest.test_missing_results): Call fs.clear_written_files before test. (RebaselineTest.test_new_baseline): Call fs.clear_written_files before test. * Scripts/webkitpy/port/test.py: (add_unit_tests_to_mock_filesystem): Fix this with the real FileSystem class, conditionally deleting files. Remove mock-only fs.clear_written_files call. 2022-01-28 Jonathan Bedard [EWS] Trigger embedded builders on pull-requests https://bugs.webkit.org/show_bug.cgi?id=235913 Reviewed by Aakash Jain. * CISupport/ews-build/config.json: Pull-requests should trigger embedded builders. 2022-02-01 Tim Nguyen Entirely remove support for -apple-trailing-word https://bugs.webkit.org/show_bug.cgi?id=234672 Reviewed by Simon Fraser. * Scripts/webkitperl/FeatureList.pm: 2022-01-31 Megan Gardner Collapsed ranges return zero rects in DocumentContext https://bugs.webkit.org/show_bug.cgi?id=235844 Reviewed by Tim Horton. * TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm: (TEST): 2022-01-31 Jonathan Bedard [EWS] Revert pull request when retrying https://bugs.webkit.org/show_bug.cgi?id=235825 Reviewed by Aakash Jain. * CISupport/ews-build/steps.py: (UnApplyPatch.doStepIf): Only run if 'patch_id' is defined. (UnApplyPatch.hideStepIf): Hide step if we aren't doing it. (RevertPullRequestChanges): Clean checkout and checkout base hash if 'github.base.sha' is define. (CompileWebKit.evaluateCommand): Add RevertPullRequestChanges step. (RunJavaScriptCoreTests.evaluateCommand): Ditto. (ReRunWebKitTests.evaluateCommand): Ditto. (RunWebKitTestsRedTree.evaluateCommand): Ditto. (RunWebKitTestsRepeatFailuresRedTree.evaluateCommand): Ditto. (ReRunAPITests.evaluateCommand): Ditto. * CISupport/ews-build/steps_unittest.py: 2022-01-31 Myles C. Maxfield [Mac] Fix TestWebKitAPI build https://bugs.webkit.org/show_bug.cgi?id=235906 Reviewed by Tim Horton. /usr/include/cups/cups.h has this: # define UniversalPrint 1 And Source/ThirdParty/gtest/include/gtest/gtest-printers.h has this: void UniversalPrint(const T& value, ::std::ostream* os); * TestWebKitAPI/config.h: 2022-01-31 J Pascoe [WebAuthn] Provide SPI to export/import local credentials https://bugs.webkit.org/show_bug.cgi?id=234112 rdar://84822000 Reviewed by Brent Fulgham. Add tests for SPI to import / export local webauthn credentials. * TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm: (TestWebKitAPI::TEST): New tests for import/export 2022-01-31 Don Olmstead Support additional WPEToolingBackend types https://bugs.webkit.org/show_bug.cgi?id=235745 Reviewed by Adrian Perez de Castro. Split up code specific to the fdo backend to allow for additional WPE backend types to be used. Add some platform defines based on the underlying backend. This is a precursor to landing a PlayStation variant. * wpe/backends/CMakeLists.txt: * wpe/backends/HeadlessViewBackend.cpp: (WPEToolingBackends::HeadlessInstance::singleton): Deleted. (WPEToolingBackends::HeadlessViewBackend::HeadlessViewBackend): Deleted. (WPEToolingBackends::HeadlessViewBackend::~HeadlessViewBackend): Deleted. (WPEToolingBackends::HeadlessViewBackend::backend const): Deleted. (WPEToolingBackends::HeadlessViewBackend::snapshot): Deleted. (WPEToolingBackends::HeadlessViewBackend::updateSnapshot): Deleted. (WPEToolingBackends::HeadlessViewBackend::vsync): Deleted. * wpe/backends/HeadlessViewBackend.h: * wpe/backends/PlatformWPE.cmake: * wpe/backends/ViewBackend.cpp: (WPEToolingBackends::ViewBackend::ViewBackend): * wpe/backends/ViewBackend.h: * wpe/backends/fdo/HeadlessViewBackendFdo.cpp: Copied from Tools/wpe/backends/HeadlessViewBackend.cpp. (WPEToolingBackends::HeadlessInstance::singleton): (WPEToolingBackends::HeadlessViewBackend::HeadlessViewBackend): (WPEToolingBackends::HeadlessViewBackend::~HeadlessViewBackend): (WPEToolingBackends::HeadlessViewBackend::backend const): (WPEToolingBackends::HeadlessViewBackend::snapshot): (WPEToolingBackends::HeadlessViewBackend::updateSnapshot): (WPEToolingBackends::HeadlessViewBackend::vsync): * wpe/backends/fdo/WindowViewBackend.cpp: Renamed from Tools/wpe/backends/WindowViewBackend.cpp. * wpe/backends/fdo/WindowViewBackend.h: Renamed from Tools/wpe/backends/WindowViewBackend.h. 2022-01-31 Philippe Normand [Flatpak SDK] No longer updating due to expired GPG key https://bugs.webkit.org/show_bug.cgi?id=235869 Reviewed by Adrian Perez de Castro. Manually synchronize the SDK GPG key in case our local copy is detected as expired. This patch includes a drive-by fix regarding toolchains updates. Those were always regenerated when updating the SDK, because the zip path was assumed to be a host path, whereas it is actually a path in the sandbox. * flatpak/flatpakutils.py: (run_sanitized): (FlatpakObject.flatpak): (FlatpakObject.flatpak_update): (FlatpakPackage.install): (WebkitFlatpak._reset_repository): (WebkitFlatpak.host_path_to_sandbox_path): (WebkitFlatpak.sandbox_path_to_host_path): (WebkitFlatpak.main): (WebkitFlatpak.check_toolchains_generated): (FlatpakPackage.update): Deleted. 2022-01-31 Carlos Garcia Campos [GTK][a11y] Add support for password fields to ATSPI https://bugs.webkit.org/show_bug.cgi?id=235778 Reviewed by Adrian Perez de Castro. Add test cases for password inputs. * TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp: (testTextIterator): (testTextSelections): (testTextStateChanged): 2022-01-30 Philippe Normand [GStreamer] GstStructure to JSON serialization https://bugs.webkit.org/show_bug.cgi?id=235760 Reviewed by Xabier Rodriguez-Calvar. * TestWebKitAPI/Tests/WebCore/gstreamer/GStreamerTest.cpp: (TestWebKitAPI::TEST_F): 2022-01-29 Ben Nham Add web push message decryption routines https://bugs.webkit.org/show_bug.cgi?id=233903 Reviewed by Brady Eidson. Somehow the unit tests were left out of the original patch that was landed. Adding them back in this patch. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebCore/PushMessageCrypto.cpp: Added. (TestWebKitAPI::mustBase64URLDecode): (TestWebKitAPI::makeAES128GCMClientKeys): (TestWebKitAPI::TEST): (TestWebKitAPI::makeAESGCMClientKeys): 2022-01-28 Fujii Hironori [WinCairo] WebKitTestRunner should support pixel dump for accelerated compositing mode https://bugs.webkit.org/show_bug.cgi?id=215041 Reviewed by Don Olmstead. * WebKitTestRunner/TestOptions.cpp: (WTR::TestOptions::defaults): * WebKitTestRunner/win/PlatformWebViewWin.cpp: (WTR::PlatformWebView::PlatformWebView): 2022-01-28 Aditya Keerthi Add SPI to retrieve the rect of a found text range https://bugs.webkit.org/show_bug.cgi?id=235830 rdar://88193004 Reviewed by Wenson Hsieh. Added a test to verify the API works as expected. The test uses an