2021-07-22 Frédéric Wang nullptr crash in ApplyStyleCommand::applyRelativeFontStyleChange https://bugs.webkit.org/show_bug.cgi?id=223974 Reviewed by Darin Adler. * TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp: Update FIXME. 2021-05-28 Alex Christensen Punycode encode U+0BE6 when not in context of other Tamil characters https://bugs.webkit.org/show_bug.cgi?id=226409 Reviewed by Tim Horton. * TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm: (TestWebKitAPI::TEST): 2021-05-28 Alex Christensen Punycode encode U+0BE6 when not in context of other Tamil characters https://bugs.webkit.org/show_bug.cgi?id=226409 Reviewed by Tim Horton. * TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm: (TestWebKitAPI::TEST): 2021-05-17 Wenson Hsieh [GPU Process] Object identifiers with the deleted value should cause MESSAGE_CHECKs https://bugs.webkit.org/show_bug.cgi?id=225886 rdar://78114708 Reviewed by Chris Dumez. Adjust an existing API test to verify that the deleted object identifier value triggers an inline item decoding failure. * TestWebKitAPI/Tests/WebCore/cg/DisplayListTestsCG.cpp: (TestWebKitAPI::TEST): 2021-04-06 Alex Christensen Add U+0581 and U+0585 to list of Armenian characters that look like Latin characters https://bugs.webkit.org/show_bug.cgi?id=224219 Reviewed by Brent Fulgham. * TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm: (TestWebKitAPI::TEST): 2021-07-29 Michael Catanzaro [WPE][GTK] .asc file extension is appended to filename of text/plain downloads https://bugs.webkit.org/show_bug.cgi?id=228566 Reviewed by Adrian Perez de Castro. * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp: (serverCallback): (testDownloadTextPlainMIMEType): (beforeAll): * TestWebKitAPI/Tests/WebKitGLib/resources/text: Added. 2021-04-16 Brent Fulgham Perform port blocking earlier in the load https://bugs.webkit.org/show_bug.cgi?id=224525 Reviewed by Darin Adler. Update URLScheme test to use a non-prohibited port for the test. Tests of failed fetches are already handled in WPT and other tests, so using a valid port here should continue to be a valid test. * TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm: (-[FrameSchemeHandler webView:startURLSchemeTask:]): Use allowed port or the test instead of 123. 2021-06-07 Carlos Garcia Campos [GTK][WPE] Signal "window-object-cleared" not emitted unless frame js context is get before https://bugs.webkit.org/show_bug.cgi?id=221771 Reviewed by Michael Catanzaro. Update window-object-cleared test to check that the signal is emitted for the WebKitScriptWorld objects created by the extension. * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp: (UserMessageTest::sendMessage): (UserMessageTest::viewUserMessageReceived): (UserMessageTest::waitUntilViewMessagesReceived): (UserMessageTest::waitUntilViewMessageReceived): (testWebExtensionWindowObjectCleared): (beforeAll): * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp: (windowObjectCleared): (isolatedWorldWindowObjectCleared): (webkit_web_extension_initialize_with_user_data): 2021-06-18 Philippe Normand [MSE][GStreamer] Soundcloud serves MP4 audio with empty tfdt boxes https://bugs.webkit.org/show_bug.cgi?id=191419 Reviewed by Michael Catanzaro. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::TEST): Add a test for the soundcloud quirk. 2021-05-05 Carlos Garcia Campos [SOUP] Wrong cookie timestamp in case of long expire time https://bugs.webkit.org/show_bug.cgi?id=225389 Reviewed by Adrian Perez de Castro. Add a test case. * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: (testCookieManagerLongExpires): (beforeAll): 2021-04-20 Marco Felsch [WPE][Qt] Fix build failure after r270690 https://bugs.webkit.org/show_bug.cgi?id=223070 Reviewed by Philippe Normand. * Scripts/webkitpy/style/checker.py: Add exception for WPE QT wrapper library to use system alloc instead of WTF. 2021-04-07 Philippe Normand [GStreamer] Videos start playing muted in epiphany with no unmute icon visible in tab, webkit_web_view_get_is_muted() returns incorrect results https://bugs.webkit.org/show_bug.cgi?id=223195 Reviewed by Michael Catanzaro. Adapt is-playing test, after muting the page, webkit_web_view_is_playing_audio() should still return TRUE. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: (IsPlayingAudioWebViewTest::periodicallyCheckIsPlayingForAWhile): (testWebViewIsPlayingAudio): 2021-03-18 Carlos Garcia Campos [WPE] Bump API version when building with libsoup3 https://bugs.webkit.org/show_bug.cgi?id=223437 Reviewed by Adrian Perez de Castro. Use WPE_API_DOC_VERSION instead of WPE_API_VERSION. * wpe/manifest.txt.in: 2021-03-25 Carlos Garcia Campos [GTK][WPE] JSC crashes if a function expects a parameter but doesn't receive any https://bugs.webkit.org/show_bug.cgi?id=223646 Reviewed by Adrian Perez de Castro. Add test cases. * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp: (valueToString): (testJSCFunction): (testJSCClass): 2021-03-12 Michael Catanzaro REGRESSION(r274270): [WPE][GTK] Broke Epiphany test /embed/ephy-web-view/error-pages-not-stored-in-history https://bugs.webkit.org/show_bug.cgi?id=223140 Reviewed by Alex Christensen. Improve WebKitSecurityOrigin tests a bit. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSecurityOrigin.cpp: (testCustomProtocolOrigin): Drive-by improvement: check webkit_security_origin_to_string(). (testBogusURI): Added, tests for this bug. (beforeAll): 2021-03-12 Carlos Garcia Campos [GTK] Bump API version when building with libsoup3 https://bugs.webkit.org/show_bug.cgi?id=223067 Reviewed by Adrian Perez de Castro. Use WEBKITGTK_API_DOC_VERSION instead of WEBKITGTK_API_VERSION. * gtk/manifest.txt.in: 2021-03-11 Michael Catanzaro REGRESSION(r272469): [WPE][GTK] Epiphany UI process crashes when downloading PDFs, WebKitSecurityOrigin should use SecurityOriginData https://bugs.webkit.org/show_bug.cgi?id=222943 Reviewed by Alex Christensen. Add a test to ensure security origins can be successfully created for custom protocols. Also, update the tests to accomodate the deprecation of webkit_security_origin_is_opaque(). Notably, origins for data:// URIs are no longer special. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSecurityOrigin.cpp: (testSecurityOriginBasicConstructor): (testSecurityOriginURIConstructor): (testSecurityOriginDefaultPort): (testSecurityOriginFileURI): (testSecurityOriginDataURI): (testCustomProtocolOrigin): (beforeAll): (testOpaqueSecurityOrigin): Deleted. 2021-03-10 Michael Catanzaro [WPE][GTK] Introduce NeedsUnbrandedUserAgent quirk and use it for accounts.google.com, docs.google.com, and drive.google.com https://bugs.webkit.org/show_bug.cgi?id=222978 Reviewed by Carlos Garcia Campos. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::assertUserAgentForURLHasEmptyQuirk): (TestWebKitAPI::TEST): (TestWebKitAPI::assertUserAgentForURLHasLinuxPlatformQuirk): Deleted. 2021-03-08 Commit Queue Unreviewed, reverting r273084. https://bugs.webkit.org/show_bug.cgi?id=222905 User agent quirks still needed after all Reverted changeset: "[GTK] Remove all Google user agent quirks except for Google Docs" https://bugs.webkit.org/show_bug.cgi?id=222039 https://trac.webkit.org/changeset/273084 2021-03-05 Chris Dumez Regression(r268097): WKWebView.URL is nil in the processDidTerminate delegate https://bugs.webkit.org/show_bug.cgi?id=222809 Reviewed by Michael Catanzaro. Add API test coverage. * TestWebKitAPI/Tests/WebKitCocoa/WebContentProcessDidTerminate.mm: (TEST): 2021-03-03 Kate Cheney Report the correct document uri in the case of a ContentSecurityPolicyClient https://bugs.webkit.org/show_bug.cgi?id=222489 Reviewed by Brent Fulgham. Rename OverrideContentSecurityPolicy.mm to ContentSecurityPolicy.mm so we can use it for more general purpose CSP testing. Add a test for document-uri reporting for file:, data: and about: protocols. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKitCocoa/ContentSecurityPolicy.mm: Renamed from Tools/TestWebKitAPI/Tests/WebKitCocoa/OverrideContentSecurityPolicy.mm. (TEST): * TestWebKitAPI/Tests/WebKitCocoa/csp-document-uri-report.html: Added. 2021-03-02 Carlos Garcia Campos REGRESSION(r263094): [GTK][WPE] API test /webkit/WebKitWebContext/languages is failing https://bugs.webkit.org/show_bug.cgi?id=188111 Reviewed by Michael Catanzaro. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: (testWebContextLanguages): Invalid locale is ignored now instead of throwing a exception. * TestWebKitAPI/glib/TestExpectations.json: Remove test expectation now that it passes again. 2021-02-26 Philippe Normand Unreviewed, WPE build fix after SDK r273544 deployment * TestWebKitAPI/PlatformWPE.cmake: GLib include path was missing in the TestJavaScriptCore build. 2021-02-25 Commit Queue Unreviewed, reverting r273122 and r273123. https://bugs.webkit.org/show_bug.cgi?id=222449 Didn't fix the extreme test variance, and caused some internal performance bots to hang during testing Reverted changesets: "MotionMark scores are super sensitive to a single long frame" https://bugs.webkit.org/show_bug.cgi?id=220847 https://trac.webkit.org/changeset/273122 "MotionMark scores are super sensitive to a single long frame" https://bugs.webkit.org/show_bug.cgi?id=220847 https://trac.webkit.org/changeset/273123 2021-02-25 Commit Queue Unreviewed, reverting r273503. https://bugs.webkit.org/show_bug.cgi?id=222442 Caused a blob loading failure Reverted changeset: "Serialize NSURLRequest (rather than CFURLRequest) in IPC" https://bugs.webkit.org/show_bug.cgi?id=222145 https://trac.webkit.org/changeset/273503 2021-02-25 Alex Christensen Make internal ContentFiltering tests not time out after r272293 https://bugs.webkit.org/show_bug.cgi?id=222437 Reviewed by Andy Estes. * TestWebKitAPI/Tests/WebKitCocoa/ContentFiltering.mm: (-[ServerRedirectNavigationDelegate webView:didStartProvisionalNavigation:]): (-[ServerRedirectNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]): (TEST): (downloadTest): (loadAlternateTest): 2021-02-25 Brent Fulgham Serialize NSURLRequest (rather than CFURLRequest) in IPC https://bugs.webkit.org/show_bug.cgi?id=222145 Reviewed by Darin Adler and Alex Christensen. Add a new test to ensure we can successfully load URLs with accented characters, and to test the updated IPC serialization for NSURLRequest. * TestWebKitAPI/Tests/WebKit/A/303/247/303/243o.html: Added. * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewLoadAPIs.mm: (TEST): 2021-02-25 Jonathan Bedard [build.webkit.org] Stop passing --master-name to run-webkit-tests https://bugs.webkit.org/show_bug.cgi?id=222427 Reviewed by Aakash Jain. * CISupport/build-webkit-org/steps.py: (RunWebKitTests): * CISupport/build-webkit-org/steps_unittest.py: (TestRunWebKitTests.test_success): (TestRunWebKitTests.test_warnings): (TestRunWebKitTests.test_failure): (TestRunWebKitTests.test_unexpected_error): (TestRunWebKitTests.test_exception): 2021-02-25 Jonathan Bedard [ews-build.webkit.org] Compute identifiers locally https://bugs.webkit.org/show_bug.cgi?id=222370 Reviewed by Aakash Jain. * CISupport/ews-build/factories.py: (Factory.__init__): Add FetchBranches. (StyleFactory.__init__): Ditto. (WatchListFactory.__init__): Ditto. * CISupport/ews-build/factories_unittest.py: Add FetchBranches. * CISupport/ews-build/loadConfig.py: (loadBuilderConfig): Remove GitHub credentials. * CISupport/ews-build/steps.py: (FetchBranches): Added. (ShowIdentifier.start): Construct identifier locally. * CISupport/ews-build/steps_unittest.py: 2021-02-25 Commit Queue Unreviewed, reverting r273488. https://bugs.webkit.org/show_bug.cgi?id=222426 Landed before necessary buildbot change. Reverted changeset: "[run-webkit-tests] Delete old results server code" https://bugs.webkit.org/show_bug.cgi?id=222393 https://trac.webkit.org/changeset/273488 2021-02-25 Jonathan Bedard [run-webkit-tests] Delete old results server code https://bugs.webkit.org/show_bug.cgi?id=222393 Rubber-stamped by Alexey Proskuryakov. * Scripts/webkitpy/layout_tests/controllers/manager.py: (Manager._end_test_run): Remove upload code. (Manager._save_json_files): Renamed from _upload_json_files. (Manager._upload_json_files): Renamed to _save_json_files. (Manager.upload_results): Deleted. * Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py: (JSONLayoutResultsGenerator.__init__): Remove buildbot arguments. * Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py: (JSONResultsGenerator): (JSONResultsGenerator.__init__): Remove buildbot arguments. (JSONResultsGenerator.get_json): Remove concept of builder. (JSONResultsGenerator.upload_json_files): Deleted. (JSONResultsGenerator._get_svn_revision): Deleted. (JSONResultsGenerator._get_archived_json_results): Deleted. (JSONResultsGenerator._insert_generic_metadata): Deleted. (JSONResultsGenerator._convert_json_to_current_version): Deleted. (JSONResultsGenerator._convert_tests_to_trie): Deleted. (JSONResultsGenerator._remove_items_over_max_number_of_builds): Deleted. (JSONResultsGenerator._normalize_results_json): Deleted. (JSONResultsGenerator._is_results_all_of_type): Deleted. * Scripts/webkitpy/layout_tests/layout_package/json_results_generator_unittest.py: (JSONGeneratorTest.setUp): (JSONGeneratorTest._test_json_generation): (JSONGeneratorTest._verify_json_results): * Scripts/webkitpy/layout_tests/run_webkit_tests.py: (parse_args): Remove arguments used to upload to old results database. 2021-02-25 Chris Gambrell [contributors.json] Adding Chris Gambrell as a contributor https://bugs.webkit.org/show_bug.cgi?id=222415 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/common/config/contributors.json: 2021-02-24 Ryosuke Niwa Build fix after r273465. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: 2021-02-24 Kate Cheney App-bound request parameter should be passed to main resource requests not the main frame https://bugs.webkit.org/show_bug.cgi?id=222241 Reviewed by Chris Dumez. Adds more robust testing to report when appBound/nonAppBound requests load in the network process. This tests not only that the main frame’s document loader is properly set, but also that all loads initiated from app-bound requests are also app-bound to avoid regressions like this in the future. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: Utilize some CSP test resources that have the exact setup needed to test this fix. * TestWebKitAPI/cocoa/TestWKWebView.h: * TestWebKitAPI/cocoa/TestWKWebView.mm: (-[WKWebView appBoundNavigationData:]): (-[WKWebView clearAppBoundNavigationReports:]): 2021-02-24 Jonathan Bedard [webkitscmpy] Add flag for caller to opt out of identifier computation https://bugs.webkit.org/show_bug.cgi?id=222337 Reviewed by Dewei Zhu. * Scripts/libraries/webkitscmpy/setup.py: Bump version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py: (Git.commit): Allow caller to opt-out of retrieving the identifier. (Git.find): Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/local/svn.py: (Svn.commit): Allow caller to opt-out of retrieving the identifier. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py: (BitBucket.commit): Allow caller to opt-out of retrieving the identifier. (BitBucket.find): Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py: (GitHub.commit): Allow caller to opt-out of retrieving the identifier. (GitHub.find): Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py: (Svn.commit): Allow caller to opt-out of retrieving the identifier. * Scripts/libraries/webkitscmpy/webkitscmpy/scm_base.py: (ScmBase.commit): Allow caller to opt-out of retrieving the identifier. (ScmBase.find): Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py: (TestGit.test_no_identifier): (TestGitHub.test_no_identifier): (TestBitBucket.test_no_identifier): * Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py: (TestLocalSvn.test_no_identifier): (TestRemoteSvn.test_no_identifier): 2021-02-24 Russell Epstein Revert r272735. rdar://problem/74674837 2021-02-24 Aakash Jain Add unit-tests for various step in build.webkit.org (follow-up fix) https://bugs.webkit.org/show_bug.cgi?id=222075 Unreviewed follow-up fix for unit-tests. * CISupport/build-webkit-org/steps_unittest.py: (TestRunWebKitPyTests.test_failure): (TestRunWebKitPyTests.test_errors): (TestRunWebKitPyTests.test_lot_of_failures): (TestRunLLDBWebKitTests.test_failure): (TestRunLLDBWebKitTests.test_errors): (TestRunLLDBWebKitTests.test_lot_of_failures): 2021-02-24 Keith Miller Cloop JSC test driver command shouldn't pass build flags https://bugs.webkit.org/show_bug.cgi?id=222325 Reviewed by Darin Adler. * CISupport/build-webkit-org/steps.py: (RunLLINTCLoopTests): 2021-02-24 Aakash Jain Disable Buildbot old-style step deprecation warning https://bugs.webkit.org/show_bug.cgi?id=222363 Reviewed by Jonathan Bedard. * CISupport/build-webkit-org/master_buildbot2.cfg: * CISupport/ews-build/master.cfg: * CISupport/runUnittests.py: 2021-02-24 Aakash Jain [ews] Add python 3 support - part 3 https://bugs.webkit.org/show_bug.cgi?id=222355 Reviewed by Jonathan Bedard. * CISupport/ews-build/steps.py: (ValidateCommiterAndReviewer.load_contributors_from_disk): Ensure that the file is closed. * CISupport/ews-build/steps_unittest.py: 2021-02-24 Aakash Jain [ews] Make unit-test compatible with latest buildbot https://bugs.webkit.org/show_bug.cgi?id=222359 Reviewed by Jonathan Bedard. * CISupport/ews-build/steps_unittest.py: (BuildStepMixinAdditions): (BuildStepMixinAdditions.setUpBuildStep): Invoke setUpTestReactor. 2021-02-24 Don Olmstead Only import Python flatpak module on Linux https://bugs.webkit.org/show_bug.cgi?id=222327 Reviewed by Philippe Normand. Importing flatpak is only relavent for GTK/WPE ports. Also Windows can fail when importing it due to platform differences. * Scripts/run-bindings-tests: * Scripts/run-builtins-generator-tests: * Scripts/run-minibrowser: * Scripts/run-perf-tests: * Scripts/run-webkit-httpd: * Scripts/run-webkit-tests: * Scripts/test-webkitpy: 2021-02-24 Aakash Jain Add unit-tests for various step in build.webkit.org https://bugs.webkit.org/show_bug.cgi?id=222075 Reviewed by Jonathan Bedard. * CISupport/build-webkit-org/steps_unittest.py: (TestRunWebKitPerlTests): (TestRunWebKitPerlTests.test_success): (TestRunWebKitPerlTests.test_failure): (TestRunWebKitPyTests): (TestRunWebKitPyTests.test_success): (TestRunWebKitPyTests.test_unexpected_failure): (TestRunWebKitPyTests.test_failure): (TestRunWebKitPyTests.test_errors): (TestRunWebKitPyTests.test_lot_of_failures): (TestRunLLDBWebKitTests): (TestRunLLDBWebKitTests.test_success): (TestRunLLDBWebKitTests.test_unexpected_failure): (TestRunLLDBWebKitTests.test_failure): (TestRunLLDBWebKitTests.test_errors): (TestRunLLDBWebKitTests.test_lot_of_failures): (TestRunWebKitTests): (TestRunWebKitTests.configureStep): (TestRunWebKitTests.test_success): (TestRunWebKitTests.test_warnings): (TestRunWebKitTests.test_failure): (TestRunWebKitTests.test_unexpected_error): (TestRunWebKitTests.test_exception): 2021-02-24 Carlos Garcia Campos [SOUP3] Use soup_auth_get_authority() to set the ProtectionSpace host and port https://bugs.webkit.org/show_bug.cgi?id=222309 Reviewed by Adrian Perez de Castro. It fixes two tests when using libsoup3. * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp: (testWebViewAuthenticationProxy): (testWebViewAuthenticationProxyHTTPS): 2021-02-24 Philippe Normand [Flatpak SDK] PATH for rustc no longer set correctly https://bugs.webkit.org/show_bug.cgi?id=222311 Reviewed by Žan Doberšek. Pass PATH as flatpak --env option, setting is through bwrap no longer works. * flatpak/flatpakutils.py: (WebkitFlatpak.run_in_sandbox): * flatpak/webkit-bwrap: 2021-02-23 Jonathan Bedard [check-webkit-style] Fix Contributor sorting in Python 3 https://bugs.webkit.org/show_bug.cgi?id=222329 Reviewed by Dewei Zhu. * Scripts/webkitpy/common/config/committers.py: (Contributor.__cmp__): Return an integer to indicate ordering. (Contributor.__eq__): Add rich comparison operators for sorting. (Contributor.__ne__): Ditto. (Contributor.__lt__): Ditto. (Contributor.__le__): Ditto. (Contributor.__gt__): Ditto. (Contributor.__ge__): Ditto. * Scripts/webkitpy/common/config/contributors.json: 2021-02-23 Jonathan Bedard [webkitscmpy] Add remote BitBucket https://bugs.webkit.org/show_bug.cgi?id=222213 Rubber-stamped by Aakash Jain. * Scripts/libraries/webkitscmpy/setup.py: Increment version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/__init__.py: Export mock BitBucket. * Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/bitbucket.py: Added. (BitBucket): Mock limited set of BitBucket REST APIs. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/__init__.py: Export BitBucket class. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py: Added. (BitBucket): Repository object interacting with BitBucket via REST API. (BitBucket.is_webserver): Check if the provided URL is a bitbucket URL. (BitBucket.__init__): (BitBucket.is_git): (BitBucket.request): Combine paginated requests into a single API call. (BitBucket._distance): Preform binary search (BitBucket._branches_for): Return branches for reference. (BitBucket.default_branch): Return the default branch. (BitBucket.branches): Return all branches for repository. (BitBucket.tags): Return all tags for repository. (BitBucket.commit): Convert hash, identifier or git ref to Commit object. (BitBucket.find): Use git to match branches and tags to a hash instead of trying to do it ourselves. * Scripts/libraries/webkitscmpy/webkitscmpy/remote/scm.py: (Scm.from_url): Add BitBucket. * Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py: (TestGitHub.test_detection): Add bitbucket url. (TestBitBucket): Added. * Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py: (TestRemoteSvn.test_detection): Add bitbucket url. 2021-02-23 Don Olmstead Pass full environment when auto installing a Python module on Windows https://bugs.webkit.org/show_bug.cgi?id=221109 Reviewed by Jonathan Bedard. On Python 3 when the AutoInstall routine attempted to setup markupsafe-2.0.0 it would fail when compiling native code. When compiling outside of Visual Studio there is a batch file that sets up the environment. This adds a large number of environment variables which could potentially change over time so to be safe the complete environment is passed to the setup.py installation routine for Windows only. * Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py: (Package.install): 2021-02-23 Commit Queue Unreviewed, reverting r273307. https://bugs.webkit.org/show_bug.cgi?id=222320 Need to update CI code for CLoop bot before landing this Reverted changeset: "Detect unrecognized options in run-javascriptcore-tests" https://bugs.webkit.org/show_bug.cgi?id=221186 https://trac.webkit.org/changeset/273307 2021-02-23 Jonathan Bedard show-identifier fails with error: ascii codec can't decode byte 0xc3 in position https://bugs.webkit.org/show_bug.cgi?id=222313 Reviewed by Aakash Jain. * Scripts/libraries/webkitscmpy/setup.py: Bump version. * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Scripts/libraries/webkitscmpy/webkitscmpy/contributor.py: (Contributor.__repr__): Always return unicode for Python 2. * Scripts/libraries/webkitscmpy/webkitscmpy/test/contributor_unittest.py: (TestContributor.test_unicode): 2021-02-23 Rob Buis aspect-ratio shows in computed style when disabled https://bugs.webkit.org/show_bug.cgi?id=222286 Reviewed by Simon Fraser. Add support for disabling aspect-ratio in wk1. * DumpRenderTree/TestOptions.cpp: (WTR::TestOptions::defaults): 2021-02-23 Chris Dumez Use adoptNS() as soon as we [[ObjcClass alloc] init] to avoid leaks in Tools/ https://bugs.webkit.org/show_bug.cgi?id=222288 Reviewed by Darin Adler. * DumpRenderTree/ios/PixelDumpSupportIOS.mm: * DumpRenderTree/ios/UIScriptControllerIOS.mm: (WTR::UIScriptControllerIOS::zoomScale const): (WTR::UIScriptControllerIOS::scrollToOffset): (WTR::UIScriptControllerIOS::immediateScrollToOffset): (WTR::UIScriptControllerIOS::minimumZoomScale const): (WTR::UIScriptControllerIOS::maximumZoomScale const): * DumpRenderTree/mac/DumpRenderTree.mm: (fontAllowList): (adjustWebDocumentForFlexibleViewport): (createWebViewAndOffscreenWindow): (allocateGlobalControllers): (releaseGlobalControllers): (resetWebViewToConsistentState): (runTest): * DumpRenderTree/mac/DumpRenderTreeMac.h: * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (+[DumpRenderTreePasteboard _pasteboardWithName:]): (+[DumpRenderTreePasteboard releaseLocalPasteboards]): * DumpRenderTree/mac/EventSendingController.mm: (drt_WebHTMLView_beginDraggingSessionWithItemsEventSource): (+[EventSendingController initialize]): (-[EventSendingController beginDragWithFiles:]): (-[EventSendingController beginDragWithFilePromises:]): (-[EventSendingController mouseUp:withModifiers:]): (-[EventSendingController mouseMoveToX:Y:]): * DumpRenderTree/mac/FrameLoadDelegate.mm: (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]): * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setCustomPolicyDelegate): (TestRunner::waitForPolicyDelegate): (TestRunner::apiTestNewWindowDataLoadBaseURL): * DumpRenderTree/mac/UIDelegate.mm: (-[UIDelegate webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:]): (-[UIDelegate dealloc]): * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (ensureGlobalLayoutTestSpellChecker): * TestWebKitAPI/Tests/WebKit/GetUserMedia.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit/GetUserMediaNavigation.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit/GetUserMediaReprompt.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit/mac/CustomBundleParameter.mm: (TestWebKitAPI::didReceiveMessageFromInjectedBundle): * TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm: (WebKit2_CommandBackForwardTestWKView::SetUp): * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: * TestWebKitAPI/Tests/WebKitCocoa/NowPlayingControlsTests.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/PasteMixedContent.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/ReparentWebViewTimeout.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/SystemPreview.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/TestSOAuthorization.mm: (-[TestSOAuthorizationDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]): * TestWebKitAPI/Tests/WebKitCocoa/UserInitiatedActionInNavigationAction.mm: (UserInitiatedActionTest::URLWithFragment): * TestWebKitAPI/Tests/WebKitCocoa/UserMediaDisabled.mm: (TEST_F): * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKInspectorDelegate.mm: (-[UIDelegate _webView:configurationForLocalInspector:]): * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCandidateTests.mm: (+[CandidateTestWebView setUpWithFrame:testPage:]): (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewDoesNotLogDuringInitialization.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEvaluateJavaScript.mm: * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (runWebsiteDataStoreCustomPaths): * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm: (-[WebsitePoliciesWebsiteDataStoreDelegate webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitLegacy/mac/ClosingWebView.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitObjC/CustomProtocolsInvalidScheme.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitObjC/PreventImageLoadWithAutoResizing.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitObjC/UserContentTest.mm: (TEST_F): * TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm: (+[InputAssistantItemTestingWebView leadingItemsForWebView:]): (+[InputAssistantItemTestingWebView trailingItemsForWebView:]): * TestWebKitAPI/Tests/ios/WKScrollViewDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/CandidateTests.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/MemoryCachePruneWithinResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/ios/mainIOS.mm: (main): * TestWebKitAPI/mac/TestFontOptions.mm: (+[TestFontOptions sharedInstance]): * TestWebKitAPI/mac/mainMac.mm: (main): * WebKitTestRunner/InjectedBundle/ios/AccessibilityControllerIOS.mm: (WTR::AccessibilityController::addNotificationListener): * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::globalWebViewConfiguration): (WTR::globalWebsiteDataStoreDelegateClient): (WTR::initializeWebViewConfiguration): (WTR::TestController::platformContext): (WTR::TestController::platformPreferences): (WTR::TestController::platformInitializeDataStore): (WTR::TestController::platformCreateWebView): (WTR::TestController::platformCreateOtherPage): (WTR::TestController::platformAdjustContext): (WTR::TestController::cocoaResetStateToConsistentValues): (WTR::TestController::removeAllSessionCredentials): (WTR::TestController::getAllStorageAccessEntries): (WTR::TestController::loadedSubresourceDomains): (WTR::TestController::clearLoadedSubresourceDomains): (WTR::TestController::injectUserScript): (WTR::TestController::setAllowStorageQuotaIncrease): (WTR::TestController::setAllowsAnySSLCertificate): * WebKitTestRunner/ios/GeneratedTouchesDebugWindow.mm: (+[GeneratedTouchesDebugWindow sharedGeneratedTouchesDebugWindow]): * WebKitTestRunner/ios/HIDEventGenerator.mm: (+[HIDEventGenerator sharedHIDEventGenerator]): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::configureContentExtensionForTest): * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (+[WebKitTestRunnerPasteboard _pasteboardWithName:]): (+[WebKitTestRunnerPasteboard releaseLocalPasteboards]): 2021-02-23 Angelos Oikonomopoulos Detect unrecognized options in run-javascriptcore-tests https://bugs.webkit.org/show_bug.cgi?id=221186 Reviewed by Keith Miller. run-javascriptcore-tests saves unrecognized arguments to pass through to build-jsc even when --no-build is used. However, when we're not building, nothing will ever use or look at the extra arguments. This means that those arguments are silently eaten up and, consequently, typos in option names can go undetected. Change the script to fail when --no-build has been passed and there are unrecognized options. * Scripts/run-javascriptcore-tests: 2021-02-23 Frederic Wang [GTK] Use std::bitset to specify WebKitTestServer's options https://bugs.webkit.org/show_bug.cgi?id=222273 Reviewed by Carlos Garcia Campos. * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp: (beforeAll): * TestWebKitAPI/glib/WebKitGLib/WebKitTestServer.cpp: (WebKitTestServer::WebKitTestServer): * TestWebKitAPI/glib/WebKitGLib/WebKitTestServer.h: 2021-02-22 Alex Christensen Re-enable RangeResponseGenerator. https://bugs.webkit.org/show_bug.cgi?id=221072 r273263 was a false alarm. Reverting that revision. * TestWebKitAPI/Tests/WebKitCocoa/MediaLoading.mm: (TestWebKitAPI::TEST): 2021-02-22 Chris Dumez [Cocoa] Add WKWebView session restoration API https://bugs.webkit.org/show_bug.cgi?id=220958 Reviewed by Geoffrey Garen. Add API test coverage. * TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm: (TEST): 2021-02-22 Chris Dumez Use adoptNS() as soon as we [[ObjcClass alloc] init] to avoid leaks https://bugs.webkit.org/show_bug.cgi?id=222237 Reviewed by Darin Adler. * TestRunnerShared/mac/NSPasteboardAdditions.mm: (+[NSPasteboard _modernPasteboardType:]): * TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm: * TestWebKitAPI/Tests/WebKitLegacy/mac/DeallocWebViewInEventListener.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/CancelLoadFromResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/CloseNewWindowInNavigationPolicyDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/MemoryCacheDisableWithinResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/MemoryCachePruneWithinResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/StopLoadingFromDidReceiveResponse.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/WindowlessWebViewWithMedia.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/ios/mainIOS.mm: (main): * TestWebKitAPI/mac/mainMac.mm: (main): 2021-02-22 Sam Sneddon Run Python tests for Source/WebKit/Scripts changes in EWS https://bugs.webkit.org/show_bug.cgi?id=222276 Reviewed by Jonathan Bedard. * CISupport/ews-build/steps.py: 2021-02-22 Jonathan Bedard [git-webkit] Failure to retrieve commit in EWS https://bugs.webkit.org/show_bug.cgi?id=222050 Reviewed by Aakash Jain. * CISupport/ews-build/loadConfig.py: (loadBuilderConfig): Load GitHub credentials. * CISupport/ews-build/steps.py: (ShowIdentifier.start): Pass GitHub credentials to worker. * CISupport/ews-build/steps_unittest.py: 2021-02-22 Alex Christensen Disable RangeResponseGenerator. https://bugs.webkit.org/show_bug.cgi?id=221072 It might be causing issues. Disabling to speculatively fix the radar. * TestWebKitAPI/Tests/WebKitCocoa/MediaLoading.mm: (TestWebKitAPI::TEST): 2021-02-22 Philippe Normand [Flatpak SDK] gdb unusable in sandbox https://bugs.webkit.org/show_bug.cgi?id=222247 Reviewed by Žan Doberšek. This patch adds support for unix signals disabling in developer builds, for the Flatpak SDK runtime. Currently SIGINT, SIGHUP and SIGTERM will be ignored by the flatpak and bwrap processes when they're running gdb in the sandbox runtime. This allows for nicer interactive debugging sessions where Ctrl-C is actually handled by gdb. * PlatformGTK.cmake: * PlatformWPE.cmake: * flatpak/CMakeLists.txt: Added. * flatpak/flatpakutils.py: (nullcontext): (disable_signals): (WebkitFlatpak.execute_command): (WebkitFlatpak.run_in_sandbox): * flatpak/sigaction-disabler.c: Added. (real_sigaction): (sigaction): * flatpak/webkit-bwrap: 2021-02-22 Philippe Normand [Flatpak SDK] Add Monado for XR runtime support https://bugs.webkit.org/show_bug.cgi?id=220738 Reviewed by Žan Doberšek. * flatpak/flatpakutils.py: (WebkitFlatpak.run_in_sandbox): Allow runtime XR environment setup in the sandbox through the XR_RUNTIME_JSON variable. 2021-02-22 Philippe Normand [Flatpak SDK] X11 SSH forwarding fails https://bugs.webkit.org/show_bug.cgi?id=222246 Reviewed by Žan Doberšek. * flatpak/flatpakutils.py: (WebkitFlatpak.run_in_sandbox): Forward the DISPLAY env var to the sandbox. * flatpak/webkit-bwrap: Set the DISPLAY env var if it was set in the parent process. 2021-02-22 Carlos Garcia Campos [SOUP] Add support for libsoup3 https://bugs.webkit.org/show_bug.cgi?id=222093 Reviewed by Adrian Perez de Castro. * MiniBrowser/gtk/BrowserTab.c: (tlsErrorsDialogResponse): * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp: (Tunnel::Tunnel): (Tunnel::connect): (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestBackForwardList.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: (testCookieManagerAddCookie): (testCookieManagerGetCookies): (testCookieManagerDeleteCookie): (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp: (addContentDispositionHTTPHeaderToResponse): (writeNextChunk): (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp: (testLoadingError): (testWebViewIsLoading): (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp: (addCacheHTTPHeadersToResponse): (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp: (WebSocketTest::serverWebSocketCallback): (httpsServerCallback): (httpServerCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: (serverCallback): (ProxyTest::webSocketProxyServerCallback): (webSocketServerCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp: (serverCallback): * TestWebKitAPI/Tests/WebKitGtk/TestContextMenu.cpp: (writeNextChunk): (serverCallback): * TestWebKitAPI/glib/WebKitGLib/WebKitTestServer.cpp: (WebKitTestServer::run): (WebKitTestServer::addWebSocketHandler): 2021-02-22 Philippe Normand [Flatpak SDK] Cog build fails when gst-build is enabled https://bugs.webkit.org/show_bug.cgi?id=222102 Reviewed by Žan Doberšek. Merge gst-build env vars in the sandbox environment, without overriding previously set PATH values such as PKG_CONFIG_PATH. * flatpak/flatpakutils.py: (WebkitFlatpak.setup_gstbuild): (WebkitFlatpak.run_in_sandbox): 2021-02-22 Philippe Normand [Flatpak SDK] Bootstrap the run-httpd script in the SDK runtime https://bugs.webkit.org/show_bug.cgi?id=221464 Reviewed by Žan Doberšek. * Scripts/run-webkit-httpd: On Linux platforms, run the script within the SDK runtime, if it is available on the host system. 2021-02-21 Andres Gonzalez Add [WebAccessibilityObjectWrapper textMarkerRangeForNSRange] to allow clients to efficiently get a TextMarkerRange from an NSRange. https://bugs.webkit.org/show_bug.cgi?id=222154 Reviewed by Chris Fleizach and Darin Adler. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: (WTR::AccessibilityUIElement::textMarkerRangeForRange): * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::textMarkerRangeForRange): 2021-02-20 Chris Fleizach AX: Image should report the embedded accessibility description if available https://bugs.webkit.org/show_bug.cgi?id=221875 Reviewed by Jer Noble. * DumpRenderTree/AccessibilityUIElement.cpp: (getEmbeddedImageDescription): (AccessibilityUIElement::getJSClass): * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::embeddedImageDescription const): * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (AccessibilityUIElement::embeddedImageDescription const): * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::embeddedImageDescription const): * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::embeddedImageDescription const): 2021-02-20 Peng Liu Video elements do not work as sources for TexImage2D calls in GPU Process https://bugs.webkit.org/show_bug.cgi?id=218184 Reviewed by Jer Noble. * Scripts/generate-gpup-webgl: 2021-02-20 Jiewen Tan PCM: Store and report source unlinkable tokens https://bugs.webkit.org/show_bug.cgi?id=222208 Reviewed by John Wilander. * TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp: (TestWebKitAPI::TEST): * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setFraudPreventionValuesForTesting): * WebKitTestRunner/InjectedBundle/TestRunner.h: * WebKitTestRunner/TestController.cpp: (WTR::TestController::setFraudPreventionValuesForTesting): * WebKitTestRunner/TestController.h: * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle): Rebases some test cases. 2021-02-20 Kimmo Kinnunen WebGL GPU process IPC should use shared memory for asynchronous messages https://bugs.webkit.org/show_bug.cgi?id=219641 Reviewed by Geoff Garen. Mark RemoteGraphicsContextGL message receiver as "Stream", a new variant of receiver. * Scripts/generate-gpup-webgl: 2021-02-20 Wenson Hsieh Unreviewed, reverting r273115. Breaks autocorrect without the accompanying change in rdar://problem/74211293 Reverted changeset: "Unconditionally return information in _autofillContext SPI when a field is focused" https://bugs.webkit.org/show_bug.cgi?id=221828 https://commits.webkit.org/r273115 2021-02-20 Aakash Jain Revert r272384 [Python-3] Change shebang in git-webkit https://bugs.webkit.org/show_bug.cgi?id=221412 Unreviewed infrastructure fix. Revert to Python 2 for git-webkit command because of auto-install issues. * CISupport/ews-build/steps.py: * CISupport/ews-build/steps_unittest.py: 2021-02-19 Chris Dumez Review remaining usage of autorelease to make sure it is necessary https://bugs.webkit.org/show_bug.cgi?id=222177 Reviewed by Geoffrey Garen. * TestRunnerShared/mac/NSPasteboardAdditions.mm: (+[NSPasteboard _modernPasteboardType:]): * TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm: (TestWebKitAPI::triggerGC): * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm: (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp): * TestWebKitAPI/Tests/WebKit/GetUserMediaNavigation.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit/mac/ContextMenuImgWithVideo.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (-[ContentRuleListNotificationDelegate webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitCocoa/DeviceManagementRestrictions.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: (TestWebKitAPI::webViewWithDownloadMonitorSpeedMultiplier): * TestWebKitAPI/Tests/WebKitCocoa/DragAndDropTests.mm: (runDragStartDataTestCase): * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: (-[InAppBrowserSchemeHandler webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBStructuredCloneBackwardCompatibility.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBTempFileSize.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/JITEnabled.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LocalStorageDatabaseTracker.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm: * TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/ReparentWebViewTimeout.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm: (TEST): (-[ResourceLoadStatisticsSchemeHandler webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm: * TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm: (TEST): (-[UITestDelegate webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm: (webViewForScriptMessageHandlerMultipleHandlerRemovalTest): (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm: (-[SyncErrorScheme webView:startURLSchemeTask:]): * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEvaluateJavaScript.mm: * TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/FontManagerTests.mm: (TestWebKitAPI::TEST): 2021-02-19 Wenson Hsieh [iOS] Specify a _UIDataOwner when reading or writing from the system pasteboard https://bugs.webkit.org/show_bug.cgi?id=222072 Reviewed by Devin Rousso. Add a couple of new API tests to verify that `+[UIPasteboard _performAsDataOwner:block:]` is invoked with the expected data owner type when copying and pasting. * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm: (+[TestUIPasteboard _performAsDataOwner:block:]): (TestWebKitAPI::TEST): * TestWebKitAPI/cocoa/TestWKWebView.h: * TestWebKitAPI/cocoa/TestWKWebView.mm: (-[WKWebView contentsAsString]): Additionally add a helper method to grab a `WKWebView`'s contents as an `NSString`, just for convenience. 2021-02-19 Alex Christensen NSError returned by WebKit API should actually conform to NSSecureCoding https://bugs.webkit.org/show_bug.cgi?id=222204 Reviewed by Chris Dumez. * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/cocoa/TestNavigationDelegate.h: * TestWebKitAPI/cocoa/TestNavigationDelegate.mm: (-[TestNavigationDelegate waitForDidFailProvisionalNavigation]): 2021-02-16 Jiewen Tan PCM: Generate secret token and corresponding unlinkable token https://bugs.webkit.org/show_bug.cgi?id=222019 Reviewed by John Wilander. * TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp: (TestWebKitAPI::TEST): Add tests. 2021-02-19 Aditya Keerthi [iOS][FCR] Enable the new appearance by default https://bugs.webkit.org/show_bug.cgi?id=222015 Reviewed by Wenson Hsieh. Rebaselined tests to account for changes to and