2020-04-16 Carlos Alberto Lopez Perez [GTK] MiniBrowser opens new windows too small causing failures on some WPT tests https://bugs.webkit.org/show_bug.cgi?id=210206 Reviewed by Carlos Garcia Campos. Add two API test to check that window.open() by default gets a size request equal to the old window if there is no default window size, or to the default window if there is a default window size. A new function helper setCreateNewWebViewsInWindowsWithDefaultSize() its added to create new webviews in new windows automatically, which its needed to test the case of having a default window size. * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp: (testWebViewWindowProperties): (testWebViewOpenWindowDefaultSize): (testWebViewOpenWindowNoDefaultSize): (beforeAll): 2020-04-10 Alicia Boya García [WTF] DataMutex: Add runUnlocked() https://bugs.webkit.org/show_bug.cgi?id=209811 Reviewed by Xabier Rodriguez-Calvar. Tests for runUnlocked() and DataMutex checks are introduced. * TestWebKitAPI/Tests/WTF/DataMutex.cpp: (TestWebKitAPI::TEST): 2020-03-25 Ting-Wei Lan [GTK] Add user agent quirk for auth.mayohr.com https://bugs.webkit.org/show_bug.cgi?id=209378 Reviewed by Michael Catanzaro. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::assertUserAgentForURLHasNoSafariVersionQuirk): (TestWebKitAPI::TEST): 2020-04-01 Carlos Garcia Campos [GTK] MiniBrowser: valgrind claims 'Invalid write of size 8' on close https://bugs.webkit.org/show_bug.cgi?id=209471 Reviewed by Adrian Perez de Castro. This is because we need to remove the weak pointer added in child windows to their parent. * MiniBrowser/gtk/BrowserWindow.c: (browserWindowDispose): Remove the parentWindow weak ref. (browser_window_class_init): Add dispose. 2020-03-21 Michael Catanzaro [GTK] Use ${PYTHON_EXECUTABLE} to run generate-gtkdoc https://bugs.webkit.org/show_bug.cgi?id=208970 Reviewed by Konstantin Tokarev. We are allowed to use /usr/bin/env in this script because it's not installed (so not packaged). Therefore we can make the shebang compatible with FreeBSD in this particularl case. * gtkdoc/generate-gtkdoc: 2020-03-12 Michael Catanzaro [GTK] Use #!/usr/bin/python3 shebang to run generate-gtkdoc https://bugs.webkit.org/show_bug.cgi?id=208970 Reviewed by Daniel Bates. Fedora and Ubuntu are both patching generate-gtkdoc to use #!/usr/bin/python3 rather than #!/usr/bin/env python. #!/usr/bin/env and /usr/bin/python are both banned in Fedora packages. I guess Ubuntu probably has similar rules. Note this is the only script that attempts to use /usr/bin/python in tarball builds. Everything else that does so is probably only used by webkit-build. https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_multiple_python_runtimes * gtkdoc/generate-gtkdoc: 2020-03-09 Carlos Garcia Campos [GTK][WPE] Surrounding text for input methods should not be limited to the current paragraph https://bugs.webkit.org/show_bug.cgi?id=208706 Reviewed by Žan Doberšek. Add test case to check surrounding text in multiline context. * TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp: (testWebKitInputMethodContextSurrounding): 2020-03-06 Lauro Moura [WPE][WebDriver] MiniBrowser should react to close session commands https://bugs.webkit.org/show_bug.cgi?id=207529 Reviewed by Carlos Garcia Campos. Do not call g_object_unref on the first created view if it has already been disposed in the "close" signal handler. Based on original patch by Yury Semikhatsky. * MiniBrowser/wpe/main.cpp: (main): 2020-03-06 Michael Catanzaro [WPE][GTK] Use Firefox user agent quirk more aggressively on Google Docs https://bugs.webkit.org/show_bug.cgi?id=208647 Reviewed by Carlos Garcia Campos. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::TEST): 2020-02-21 Michael Catanzaro [WPE][GTK] googleapis.com is a public suffix, defeating isGoogle() check in UserAgentQuirks.cpp https://bugs.webkit.org/show_bug.cgi?id=207984 Reviewed by Daniel Bates. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::TEST): 2020-02-20 Michael Catanzaro [GTK] Improve user agent quirk for Google Docs and Google Drive https://bugs.webkit.org/show_bug.cgi?id=206506 Reviewed by Carlos Garcia Campos. * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: (TestWebKitAPI::assertUserAgentForURLHasFirefoxBrowserQuirk): (TestWebKitAPI::TEST): 2020-02-20 Chris Dumez REGRESSION (r255677): Reloading tab with beforeunload prompt closes tab when asking to stay on page https://bugs.webkit.org/show_bug.cgi?id=208015 Reviewed by Geoffrey Garen. Add API test coverage. * TestWebKitAPI/Tests/WebKitCocoa/ModalAlerts.mm: (TEST): 2020-02-18 Zan Dobersek [WPE] Support 2D axis, smooth-motion events https://bugs.webkit.org/show_bug.cgi?id=207881 Reviewed by Carlos Garcia Campos. * wpe/jhbuild.modules: Bump to a newer libwpe commit. 2020-02-17 Alberto Garcia [WPE] Change the QML plugin install path https://bugs.webkit.org/show_bug.cgi?id=207761 Reviewed by Philippe Normand. * Scripts/run-qt-wpe-minibrowser: * glib/api_test_runner.py: (TestRunner._run_test_qt): 2020-02-14 Alex Christensen Allow UIDNAInfo.errors from uidna_nameToUnicode that would not cause URL parsing failures https://bugs.webkit.org/show_bug.cgi?id=207360 Reviewed by Ryosuke Niwa. * TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm: (TestWebKitAPI::TEST): 2020-02-13 Said Abou-Hallawa Unreviewed, rolling out r255158, 255405 and r255486 Caused test flakiness and PLT regression. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * DumpRenderTree/win/DumpRenderTree.cpp: (enableExperimentalFeatures): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): 2020-02-12 Youenn Fablet WebSWServerConnection::registerServiceWorkerClient is not sending IPC message to UIProcess when it should https://bugs.webkit.org/show_bug.cgi?id=207537 Reviewed by Chris Dumez. * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm: 2020-02-11 Rob Buis Bug 207424: Crash in WebCore::ParsedContentType::parseContentType when parsing invalid MIME type Reviewed by Rob Buis. * TestWebKitAPI/Tests/WebCore/ParsedContentType.cpp: (TestWebKitAPI::TEST): Add more tests. 2020-02-08 Yusuke Suzuki [WTF] Try using 75% load factor for HashTable https://bugs.webkit.org/show_bug.cgi?id=207183 Reviewed by Mark Lam. * TestWebKitAPI/Tests/WTF/HashSet.cpp: (TestWebKitAPI::testInitialCapacity): 2020-02-07 Patrick Griffis [GTK][WPE] Add same-site cookie support https://bugs.webkit.org/show_bug.cgi?id=204137 Reviewed by Carlos Garcia Campos. Update libsoup to 2.69.90 in JHBuild. * gtk/jhbuild.modules: * wpe/jhbuild.modules: 2020-02-07 Yusuke Suzuki Unreviewed, revert 75% load-factor because of JetStream2/string-unpack-code-SP regression https://bugs.webkit.org/show_bug.cgi?id=207183 * TestWebKitAPI/Tests/WTF/HashSet.cpp: (TestWebKitAPI::testInitialCapacity): 2020-02-09 Lauro Moura [GTK][WPE] Expose allowTopNavigationToDataURL https://bugs.webkit.org/show_bug.cgi?id=207384 Reviewed by Adrian Perez de Castro. Updates with new "allow-top-navigation-to-data-urls" property. * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp: (testWebViewAllowModalDialogs): This test requires this property to be set. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp: (testWebKitSettings): Added tests for getter/setter. 2020-02-06 Brent Fulgham Prevent navigating top level frames to Data URLs https://bugs.webkit.org/show_bug.cgi?id=206962 Reviewed by Youenn Fablet. Revise test running code to allow data URL navigations by default, since they are so frequently used in testing. However, provide a flag to turn this off in tests so we can confirm proper function. * DumpRenderTree/TestOptions.cpp: (TestOptions::TestOptions): * DumpRenderTree/TestOptions.h: * DumpRenderTree/mac/DumpRenderTree.mm: (setWebPreferencesForTestOptions): * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: (DownloadAttributeDoesNotStartDownloads): Revise configuration to allow script navigation of the main frame to a Data URL. (StartDownloadWithDownloadAttribute): Ditto. * TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm: (WebViewWillPerformClientRedirect): Ditto. (WebViewDidCancelClientRedirect): Ditto. * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm: (NavigateToDataURLThenBack): Ditto. (ContentExtensionBlocksMainLoadThenReloadWithoutExtensions): Ditto. * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): (WTR::updateTestOptionsFromTestHeader): * WebKitTestRunner/TestOptions.h: (WTR::TestOptions::hasSameInitializationOptions const): * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::initializeWebViewConfiguration): (WTR::TestController::platformCreateWebView): 2020-02-05 Don Olmstead [PlayStation] Miscellaneous build fixes February 2020 edition https://bugs.webkit.org/show_bug.cgi?id=207312 Unreviewed build fix. * TestWebKitAPI/PlatformWebView.h: Remove #elif guard and just use #else 2020-02-05 Yusuke Suzuki [WTF] Try using 75% load factor for HashTable https://bugs.webkit.org/show_bug.cgi?id=207183 Reviewed by Mark Lam. Fix load-factor assumption in existing tests. * TestWebKitAPI/Tests/WTF/HashSet.cpp: (TestWebKitAPI::testInitialCapacity): 2020-02-05 Alex Christensen Make WKWebView._negotiatedLegacyTLS accurate when loading main resouorce from network or cache https://bugs.webkit.org/show_bug.cgi?id=207207 Reviewed by Chris Dumez. HTTPServer now supports HTTPS. Tell your friends! * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm: (testCertificate): (testIdentity): (credentialWithIdentity): * TestWebKitAPI/Tests/WebKitCocoa/TLSDeprecation.mm: (TestWebKitAPI::webViewWithNavigationDelegate): (TestWebKitAPI::TEST): * TestWebKitAPI/cocoa/HTTPServer.h: * TestWebKitAPI/cocoa/HTTPServer.mm: (TestWebKitAPI::HTTPServer::HTTPServer): (TestWebKitAPI::HTTPServer::request const): 2020-02-05 Xabier Rodriguez Calvar [GTK] Fix dependencies build https://bugs.webkit.org/show_bug.cgi?id=207273 Reviewed by Carlos Garcia Campos. * gtk/jhbuild.modules: Bumped wpebackend-fdo version to 1.4.1 and added mesa as one of its deps. Added the xserver patch as well. * gtk/patches/xserver-gl-version.patch: Added. 2020-02-01 Darin Adler Replace RGBA32 typedef with a class to improve type safety https://bugs.webkit.org/show_bug.cgi?id=206862 Reviewed by Sam Weinig. * TestWebKitAPI/Tests/WebKitCocoa/PDFSnapshot.mm: (TestWebKitAPI::TEST): Use the Color constructor instead of Color::createUnchecked. 2020-02-03 Jiewen Tan Pass a hint from the extension to decidePolicyForSOAuthorizationLoadWithCurrentPolicy https://bugs.webkit.org/show_bug.cgi?id=207079 Reviewed by Brent Fulgham. * TestWebKitAPI/Tests/WebKitCocoa/TestSOAuthorization.mm: (-[TestSOAuthorizationDelegate _webView:decidePolicyForSOAuthorizationLoadWithCurrentPolicy:forExtension:completionHandler:]): (overrideGetAuthorizationHintsWithURL): (TestWebKitAPI::TEST): 2020-02-03 Jonathan Bedard results.webkit.org: Support jsc stress tests https://bugs.webkit.org/show_bug.cgi?id=204096 Rubber-stamped by Aakash Jain. * Scripts/run-javascriptcore-tests: (runJSCStressTests): Add pass and failures to reported results. 2020-02-03 Alexey Shvayka Make Bugzilla._find_select_element_for_flag more robust https://bugs.webkit.org/show_bug.cgi?id=207148 Reviewed by Jonathan Bedard. This patch resolves two FIXMEs: 1. _find_select_element_for_flag() is now used in _fill_attachment_form() method. 2. _find_select_element_for_flag() now does not rely on order of and