2014-11-24 Carlos Garcia Campos Unreviewed. Fix GTK+ make distcheck. * gtk/manifest.txt: Remove deleted files. 2014-11-24 Krzysztof Czech [EFL] Utilize Eail library to support accessibility in EFL https://bugs.webkit.org/show_bug.cgi?id=137742 Reviewed by Gyuyoung Kim. Eail, atk-bridge, at-spi2 are not mandatory modules for webkit-efl. They are rather optional. * efl/jhbuild-optional.modules: Added. * efl/jhbuild.modules: 2014-11-24 Carlos Garcia Campos [GTK] WebKitWebView is created with the wrong web context when using webkit_web_view_new_with_related_view() https://bugs.webkit.org/show_bug.cgi?id=139023 Reviewed by Sergio Villar Senin. Rename WebKitWebView/default-context as WebKitWebView/web-context and check we are always using the right context for new web views. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp: (testWebViewWebContext): (beforeAll): (testWebViewDefaultContext): Deleted. 2014-11-23 Carlos Garcia Campos [GTK] Add API to override the default local storage directory https://bugs.webkit.org/show_bug.cgi?id=138828 Reviewed by Gustavo Noronha Silva. Add test to check that the local storage directory is created at the path given on construction. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp: (testWebContextConfiguration): (beforeAll): * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.h: (Test::Test): (Test::~Test): Deleted. 2014-11-21 Zalan Bujtas Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser. https://bugs.webkit.org/show_bug.cgi?id=138981 Reviewed by Simon Fraser. * MiniBrowser/mac/SettingsController.h: * MiniBrowser/mac/SettingsController.m: (-[SettingsController _populateMenu]): (-[SettingsController validateMenuItem:]): (-[SettingsController toggleSimpleLineLayoutDebugBordersEnabled:]): (-[SettingsController simpleLineLayoutDebugBordersEnabled]): * MiniBrowser/mac/WK1BrowserWindowController.m: (-[WK1BrowserWindowController didChangeSettings]): * MiniBrowser/mac/WK2BrowserWindowController.m: (-[WK2BrowserWindowController didChangeSettings]): 2014-11-21 Csaba Osztrogonác Remove http lock code from webkitperl https://bugs.webkit.org/show_bug.cgi?id=138959 Reviewed by Alexey Proskuryakov. * Scripts/webkitperl/httpd.pm: (cleanUp): (extractLockNumber): Deleted. (getLockFiles): Deleted. (getNextAvailableLockNumber): Deleted. (getLockNumberForCurrentRunning): Deleted. (waitForHTTPDLock): Deleted. (scheduleHttpTesting): Deleted. (getWaitTime): Deleted. 2014-11-20 Hunseop Jeong [EFL] The option value of fixed layout is false in MiniBrowser https://bugs.webkit.org/show_bug.cgi?id=138830 Reviewed by Gyuyoung Kim. Changed the option value of fixed layout to EINA_TRUE in MiniBrowser. * MiniBrowser/efl/main.c: 2014-11-20 Adrian Perez de Castro [GTK] Provide convenience API in DOM bindings to post messages to user message handlers https://bugs.webkit.org/show_bug.cgi?id=138871 Reviewed by Carlos Garcia Campos. Add a test case for the convenience API for posting user messages added to the DOM bindings. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp: (testUserContentManagerMessageFromConvenienceDOMBindings): (beforeAll): * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp: (documentLoadedCallback): 2014-11-19 Dana Burkart Work around the fact that different masters may have different names for their codebases. https://bugs.webkit.org/show_bug.cgi?id=138878 Reviewed by Mark Rowe. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js: (parseRevisionProperty): Changed. Take a "fallback key" in addition to the primary key, so we can deal with inconsistencies in opensource / internal codebase naming convention. 2014-11-19 Chris Fleizach AX: Screen braille input doesn't work on forms. https://bugs.webkit.org/show_bug.cgi?id=138804 Unreviewed build fix. * DumpRenderTree/AccessibilityUIElement.cpp: (AccessibilityUIElement::setValue): 2014-11-19 Chris Fleizach AX: Screen braille input doesn't work on forms. https://bugs.webkit.org/show_bug.cgi?id=138804 Reviewed by Mario Sanchez Prada. Add a method to setValue through the AX API in DRT. * DumpRenderTree/AccessibilityUIElement.cpp: (setValueCallback): (AccessibilityUIElement::getJSClass): * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::setValue): * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (AccessibilityUIElement::setValue): 2014-11-18 Csaba Osztrogonác Remove the WinCairo buildbot https://bugs.webkit.org/show_bug.cgi?id=138805 Reviewed by Alex Christensen. * BuildSlaveSupport/build.webkit.org-config/config.json: * BuildSlaveSupport/build.webkit.org-config/master.cfg: (appendCustomBuildFlags): * BuildSlaveSupport/test-result-archive: (archiveTestResults): 2014-11-18 Daniel Bates [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt SPI are not available in public SDK https://bugs.webkit.org/show_bug.cgi?id=138802 Reviewed by David Kilzer. Include header MachVMSPI.h instead of including the private header mach/mach_vm.h. * DumpRenderTree/mac/CheckedMalloc.cpp: 2014-11-18 Carlos Garcia Campos Unreviewed. Fix after /webkit2/WebKitWebView/default-context r176256. Forgot to fix this test before landing. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp: (testWebViewDefaultContext): 2014-11-18 Carlos Garcia Campos [GTK] Add API to create a WebKitWebContext https://bugs.webkit.org/show_bug.cgi?id=138826 Reviewed by Gustavo Noronha Silva. Use a different WebKitWebContext for every test to ensure test cases are independent to each other. Tests using DBus to communicate with the injected bundle extension now use a unique name for the well known DBus name. * TestWebKitAPI/Tests/WebKit2Gtk/TestAuthentication.cpp: (beforeAll): Remove comment about the order of the tests and move the success test before the failed one now that tests don't depend on each others. * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp: (beforeAll): Remove call to set the web extensions directory, since this is now done for all test in the Test constructor. * TestWebKitAPI/Tests/WebKit2Gtk/TestCookieManager.cpp: (beforeAll): Do not create a temporary directory, a temporary data directory is now created for all tests. (afterAll): * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNode.cpp: (testWebKitDOMNodeHierarchyNavigation): Pass the web extension ID to the web process test runner. (testWebKitDOMNodeInsertion): Ditto. (testWebKitDOMNodeTagNames): Ditto. (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNodeFilter.cpp: (runTest): Pass the web extension ID to the web process test runner. (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMXPathNSResolver.cpp: (runTest): Pass the web extension ID to the web process test runner. (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp: (createFileAtDestination): Use Test::dataDirectory() as base dir for temporary files. (beforeAll): Do not create a temporary directory. (afterAll): * TestWebKitAPI/Tests/WebKit2Gtk/TestFrame.cpp: (webkitFrameTestRun): Pass the web extension ID to the web process test runner. (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp: (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestMultiprocess.cpp: (testProcessPerWebView): Use local member instead of global variable. (testMultiprocessWebViewCreateReadyClose): Ditto. (beforeAll): Do not connect to initialize-web-extensions, Test now connects to the signal for all tests and calls a virtual method that test can override. (afterAll): (initializeWebExtensions): Deleted. * TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting.cpp: (testPrintOperationPrint): Use Test::dataDirectory() as base dir for temporary files. (beforeAll): Do not create a temporary directory. (afterAll): * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp: (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp: (beforeAll): Remove comment about the tests order. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp: (testWebExtensionGetTitle): Build the DBus service name using the web extension ID. (testDocumentLoadedSignal): Ditto. (testWebKitWebViewProcessCrashed): Ditto. (testWebExtensionIsolatedWorld): Ditto. (beforeAll): Remove initialization-user-data test, since now all tests are passing user data to the web extension. (testWebExtensionInitializationUserData): Deleted. (initializeWebExtensions): Deleted. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitFaviconDatabase.cpp: (testSetDirectory): Use the web context member inherited from Test. (testClearDatabase): Ditto. (testGetFaviconURI): Ditto. (beforeAll): Do not create a temporary directory. (afterAll): (webkitFaviconDatabaseFinalizedCallback): Deleted. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp: (UserContentManagerTest::UserContentManagerTest): (beforeAll): Remove call to set the web extensions directory. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp: (testWebContextDefault): Check also that a newly create web context is not the default web context. (testWebContextSpellChecker): Use the web context member inherited from Test. (testWebContextLanguages): Ditto. * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp: (methodCallCallback): Remove GetInitializationUserData method. (webkit_web_extension_initialize_with_user_data): Always create the DBus name using the user data provided. (makeBusName): Deleted. * TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.cpp: (webkit_web_extension_initialize_with_user_data): Create the DBus name using the user data provided. (webkit_web_extension_initialize): Deleted. * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.cpp: (Test::dataDirectory): Return the temporary data directory. (removeNonEmptyDirectory): Also remove directories recursively. (main): Remove the disk cache directory initialization, since this is now done in the Test constructor. * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.h: (Test::initializeWebExtensionsCallback): Call the virtual method initializeWebExtensions() (Test::Test): Create a new WebKitWebContext and initialize it. (Test::~Test): Disconnect initialize-web-extensions signal. (Test::initializeWebExtensions): Set the web extensions directory and user data. * TestWebKitAPI/gtk/WebKit2Gtk/WebProcessTestRunner.cpp: (WebProcessTestRunner::~WebProcessTestRunner): Use nullptr. (WebProcessTestRunner::runTest): Build the DBus proxy using a unique name created with the Test web extension ID. (WebProcessTestRunner::proxy): Deleted. * TestWebKitAPI/gtk/WebKit2Gtk/WebProcessTestRunner.h: * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp: (WebViewTest::WebViewTest): Create the web view with the Test web context. * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h: Add optional user content manager parameter to the constructor. 2014-11-18 ChangSeok Oh [GTK] Mesa build fails over llvm-3.5 https://bugs.webkit.org/show_bug.cgi?id=138825 Reviewed by Gustavo Noronha Silva. OwningPtr.h have been removed in llvm-3.5. Instread we should use std::unique_ptr for mesa build. * gtk/jhbuild.modules: * gtk/patches/mesa-gallivm-Fix-build-after-LLVM-commit-211259.patch: Added. 2014-11-17 Daniel Bates Unreviewed, rolling out r176232. Broke the Mac build. Will investigate offline. Reverted changeset: "[iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt" https://bugs.webkit.org/show_bug.cgi?id=138802 http://trac.webkit.org/changeset/176232 2014-11-17 Daniel Bates [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt SPI are not available in public SDK https://bugs.webkit.org/show_bug.cgi?id=138802 Reviewed by David Kilzer. Include header MachVMSPI.h instead of including the private header mach/mach_vm.h. * DumpRenderTree/mac/CheckedMalloc.cpp: 2014-11-17 Jake Nielsen Having 30+ flaky failures breaks EWS https://bugs.webkit.org/show_bug.cgi?id=138743 Reviewed by Alexey Proskuryakov. Adds tests to ensure that the problem has been solved. * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: (test_first_failure_limit): (test_first_failure_limit_with_some_tree_redness): (test_second_failure_limit): (test_tree_failure_limit_with_patch_that_potentially_fixes_some_redness): (test_first_and_second_failure_limit): (test_first_and_clean_failure_limit): (test_first_second_and_clean_failure_limit): (test_very_red_tree_retry): Deleted. Really this was renamed to test_first_second_and_clean_failure_limit. * Scripts/webkitpy/tool/bot/patchanalysistask.py: Makes the appropriate changes to PatchAnalysisTask to make sure that even when the first test run hits the failure limit, it will still try a second run. (PatchAnalysisTask._results_failed_different_tests): (PatchAnalysisTask._test_patch): (PatchAnalysisTask._continue_testing_patch_that_exceeded_failure_limit_on_first_or_second_try): Deleted. 2014-11-17 Ting-Wei Lan [GTK] Add library search paths from LDFLAGS before pkg-config --libs https://bugs.webkit.org/show_bug.cgi?id=136018 Reviewed by Carlos Garcia Campos. It is possible that the order of -L arguments in the output of pkg-config is wrong, which causes the linker to find the wrong version (usually older version) of libraries when running gtkdoc-scangobj. * gtk/gtkdoc.py: (GTKDoc._run_gtkdoc_scangobj): 2014-11-17 Eva Balazsfalvi Bump EFL version to 1.12.0 https://bugs.webkit.org/show_bug.cgi?id=138733 Reviewed by Gyuyoung Kim. * efl/jhbuild.modules: 2014-11-16 Joanmarie Diggs AX: [ATK] Expose the blockquote element using ATK_ROLE_BLOCK_QUOTE https://bugs.webkit.org/show_bug.cgi?id=138771 Reviewed by Chris Fleizach. Add mapping for ATK_ROLE_BLOCK_QUOTE in roleToString() * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: 2014-11-15 Joanmarie Diggs AX: [ATK] Video and audio elements should be exposed using ATK's video and audio roles. https://bugs.webkit.org/show_bug.cgi?id=138767 Reviewed by Chris Fleizach. Add mappings for ATK_ROLE_AUDIO and ATK_ROLE_VIDEO to roleToString(). * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: 2014-11-14 Alexey Proskuryakov Add shortcut macros to Mac TestExpectations https://bugs.webkit.org/show_bug.cgi?id=138729 Reviewed by Simon Fraser. * Scripts/webkitpy/port/mac.py: (MacPort.configuration_specifier_macros): Add version macros for current OS versions. 2014-11-13 Alexey Proskuryakov https://bugs.webkit.org/show_bug.cgi?id=138628 A patch that doesn't apply is stuck in commit queue Rubber-stamped by David Kilzer. This also hopefully fixes other issues: - a patch that has cq+ flag set by a non-committer kills commit queue; - EWS never reports failing tests, and keeps spinning instead. * Scripts/webkitpy/common/net/bugzilla/bugzilla.py: (Bugzilla.set_flag_on_attachment): (Bugzilla.obsolete_attachment): Apply the fix from r174797 to more places. 2014-11-13 Dan Bernstein Policy client not called for navigations through the page cache https://bugs.webkit.org/show_bug.cgi?id=138703 Reviewed by Alexey Proskuryakov. * TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm: (-[DecidePolicyForPageCacheNavigationDelegate webView:didFinishNavigation:]): (-[DecidePolicyForPageCacheNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]): 2014-11-13 Joanmarie Diggs AX: [ATK] Do not return ATK_ROLE_UNKNOWN for null or otherwise invalid accessible objects https://bugs.webkit.org/show_bug.cgi?id=137867 Reviewed by Chris Fleizach. Add ATK_ROLE_INVALID to roleToString. Remove the null AtkRole check in AccessibilityUIElement::role: ATK_ROLE_INVALID = 0, and we need to be able to test for the presence of ATK_ROLE_INVALID. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::role): 2014-11-13 Juergen Ributzka Update the "combineModules" script to handel more LLVM metadata. https://bugs.webkit.org/show_bug.cgi?id=138514 Reviewed by Filip Pizlo. * ReducedFTL/combineModules.rb: 2014-11-13 Myles C. Maxfield Allow constructing a base PassRef with a derived Ref https://bugs.webkit.org/show_bug.cgi?id=138701 Reviewed by Andreas Kling * TestWebKitAPI/Tests/WTF/Ref.cpp: (TestWebKitAPI::passWithPassRef): (TestWebKitAPI::passWithPassRefPtr): (TestWebKitAPI::TEST): 2014-11-05 Ada Chan Implement new plug-in API for muting plug-ins https://bugs.webkit.org/show_bug.cgi?id=138105 Reviewed by Anders Carlsson. Add a new plug-in test for the mute API. * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/Tests/mac/SetMuted.cpp: Added. (SetMuted::SetMuted): (SetMuted::isMuted): (SetMuted::cachedIsMuted): (SetMuted::ScriptableObject::hasProperty): (SetMuted::ScriptableObject::getProperty): (SetMuted::ScriptableObject::pluginTest): (SetMuted::NPP_New): (SetMuted::NPP_GetValue): (SetMuted::NPP_SetValue): 2014-11-12 Philippe Normand Unreviewed, GTK gardening. * Scripts/run-gtk-tests: (TestRunner): Skip the UserMediaBasic test because it depends on constraints validation which is going to be fixed in bug #136449. 2014-11-12 Carlos Garcia Campos [GTK] Expose user script messages to GObject DOM bindings https://bugs.webkit.org/show_bug.cgi?id=138411 Reviewed by Philippe Normand. Add a test case to check that user script messages sent using the DOM bindings API are also received in the UI process. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp: (UserScriptMessageTest::waitUntilMessageReceived): (UserScriptMessageTest::postMessageAndWaitUntilReceived): (testUserContentManagerScriptMessageFromDOMBindings): (beforeAll): * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp: (documentLoadedCallback): 2014-11-12 Carlos Garcia Campos Unreviewed. Fix GTK+ clean build after r175930. Partial rollout of r175930 to not build the new unit test that broke clean builds in GTK+ port. * TestWebKitAPI/PlatformGTK.cmake: 2014-09-01 Philippe Normand [WK2] UserMediaClient support https://bugs.webkit.org/show_bug.cgi?id=123158 Reviewed by Benjamin Poulain. Simple API test for the UserMedia permission request API. The required test infrastructure is also added, inspired by the Geolocation infrastructure. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: New API test for UserMedia Permission request. * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp: Added. (TestWebKitAPI::decidePolicyForUserMediaPermissionRequestCallBack): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit2/getUserMedia.html: Added. * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: new helper method to set the permission request result without user interaction. * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: Ditto. (WTR::InjectedBundle::setUserMediaPermission): * WebKitTestRunner/InjectedBundle/InjectedBundle.h: Ditto. * WebKitTestRunner/InjectedBundle/TestRunner.cpp: Ditto. (WTR::TestRunner::setUserMediaPermission): * WebKitTestRunner/InjectedBundle/TestRunner.h: Ditto. * WebKitTestRunner/TestController.cpp: (WTR::decidePolicyForUserMediaPermissionRequest): Permission request handler. (WTR::TestController::createOtherPage): Enable the new UserMedia permission request handler. (WTR::TestController::createWebViewWithOptions): Ditto. (WTR::TestController::resetPreferencesToConsistentValues): Enable MediaStream support, this is needed for getUserMedia. (WTR::TestController::resetStateToConsistentValues): clear UserMedia permissions list and flags. (WTR::TestController::setUserMediaPermission): Set permission request result and distpatch it. (WTR::TestController::handleUserMediaPermissionRequest): Save request and dispatch it. (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Dispatch cached permission requests. * WebKitTestRunner/TestController.h: * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): 2014-11-11 David Kilzer webkit-patch --suggest-reviewers is broken with newer versions of git Reviewed by Michael Saboff with feedback from Daniel Bates. * Scripts/webkitpy/common/checkout/scm/git.py: (Git._changes_files_for_commit): Strip blank lines instead of assuming there is always a blank line at the beginning of the list. 2014-11-11 Alexey Proskuryakov DRT and WKTR touch disk cache https://bugs.webkit.org/show_bug.cgi?id=138622 Reviewed by Geoffrey Garen. * DumpRenderTree/mac/DumpRenderTree.mm: (prepareConsistentTestingEnvironment): Set a shared cache before calling -_switchNetworkLoaderToNewTestingSession, not after, because this function uses the shared cache. * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformInitializeContext): Create an empty shared cache to prevent a default one from being created on disk. 2014-10-07 Sergio Villar Senin [CSS Grid Layout] Limit the size of explicit/implicit grid https://bugs.webkit.org/show_bug.cgi?id=136217 Reviewed by Andreas Kling. Added a new unit test for the CSS parser. Right now it only checks that we properly clamp the maximum number of tracks on a grid to a maximum of 1 million. * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformEfl.cmake: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebCore/CSSParser.cpp: Added. (TestWebKitAPI::computeNumberOfTracks): Helper function. (TestWebKitAPI::TEST): Added a CSSPropertyParserTest.GridTrackLimits test case. 2014-11-11 Eva Balazsfalvi webkitpy test fix after r175867 https://bugs.webkit.org/show_bug.cgi?id=138607 Reviewed by Philippe Normand. * Scripts/webkitpy/port/linux_get_crash_log_unittest.py: (GDBCrashLogGeneratorTest.test_generate_crash_log): 2014-11-10 Philippe Normand webkitpy: demangle C++ symbols from crash log stderr https://bugs.webkit.org/show_bug.cgi?id=138565 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/port/linux_get_crash_log.py: (GDBCrashLogGenerator.generate_crash_log): Process stderr output with c++filt. 2014-11-10 Philippe Normand [GTK] fix up the GDB backtrace report tool https://bugs.webkit.org/show_bug.cgi?id=138564 Reviewed by Carlos Garcia Campos. * Scripts/webkitpy/port/gtk.py: (GtkPort._get_crash_log): Match the process name reported by the driver with the GTK port WebProcess executable filename. * Scripts/webkitpy/port/linux_get_crash_log.py: (GDBCrashLogGenerator._get_gdb_output): Invoke gdb for the crashed program. (GDBCrashLogGenerator.generate_crash_log): Use %E in the core pattern to workaround the 16 characters size limit of %e. 2014-11-10 Conrad Shultz Unreviewed, moved myself to the list of committers. * Scripts/webkitpy/common/config/contributors.json: 2014-11-10 Eva Balazsfalvi [EFL] Fix the test font path after r175555. Reviewed by Csaba Osztrogonác. * WebKitTestRunner/PlatformEfl.cmake: Dependencies -> DependenciesEFL 2014-11-10 Akos Kiss Fix the exception fuzz helper to generate targets in the correct range https://bugs.webkit.org/show_bug.cgi?id=138544 Reviewed by Filip Pizlo. Currently, the script generates exception fuzz targets in the range of 0..($checkCount-1). However, target 0 is never hit, while target 1 is always outside of the outermost try block of the tests, which therefore prints unexpected output and results in false failures when fired at. Additionally, target $checkCount is never generated. This patch fixes the script to generate targets in the range of 2..$checkCount. * Scripts/jsc-stress-test-helpers/js-exception-fuzz: 2014-11-09 Csaba Osztrogonác make-passwords-json.py should generarate everything needed for testing https://bugs.webkit.org/show_bug.cgi?id=138503 Reviewed by Ryosuke Niwa. * BuildSlaveSupport/build.webkit.org-config/make_passwords_json.py: Renamed from make-passwords-json.py to be able included from mastercfg_unittest.py. Additionally generate auth.json, credentials.cfg and committers.cfg too. (create_mock_slave_passwords_dict): Moved from mastercfg_unittest.py * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: (BuildBotConfigLoader._mock_open): Use make_passwords_json.create_mock_slave_passwords_dict() to avoid duplication. (BuildBotConfigLoader._create_mock_passwords_dict): Deleted. 2014-11-09 Carlos Garcia Campos [GTK] generate-gtkdoc should ignore invalid files https://bugs.webkit.org/show_bug.cgi?id=138542 Reviewed by Darin Adler. * gtk/generate-gtkdoc: (files_to_ignore.file_should_be_ignored): Return True to ignore invalid files. 2014-11-08 Alexey Proskuryakov Delete cookies between tests https://bugs.webkit.org/show_bug.cgi?id=138528 Reviewed by Sam Weinig. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): Do it. * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): Added a FIXME. 2014-11-08 Carlos Garcia Campos [GTK] Run layout tests using the network process https://bugs.webkit.org/show_bug.cgi?id=138428 Reviewed by Martin Robinson. Shared secondary process is the default in the GTK+ port, but we should run the tests using the network process to ensure everything works with the network process. In the future, the shared secondary process model might be a special case of multiple processes with 1 as maximum number of processes, but always using the network process. * WebKitTestRunner/TestController.cpp: (WTR::TestController::initialize): 2014-11-08 Carlos Garcia Campos [GTK] Allow to create a view with a related page in WTR https://bugs.webkit.org/show_bug.cgi?id=138501 Reviewed by Martin Robinson. * TestWebKitAPI/gtk/PlatformWebViewGtk.cpp: (TestWebKitAPI::PlatformWebView::PlatformWebView): Pass nullptr as related page to WKViewCreate. * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp: (WTR::PlatformWebView::PlatformWebView): Pass the given related page to WKViewCreate. 2014-11-08 Carlos Garcia Campos WTR crashes after running a test when NetworkProcess enabled https://bugs.webkit.org/show_bug.cgi?id=138500 Reviewed by Alexey Proskuryakov. WebNotificationProvider destructor is calling WKNotificationManagerSetProvider, but m_notificationManager is null because removeNotificationManager was already called. * WebKitTestRunner/WebNotificationProvider.cpp: (WTR::WebNotificationProvider::~WebNotificationProvider): Check m_notificationManager is not null before calling WKNotificationManagerSetProvider. 2014-11-06 Jake Nielsen Remove duplicate code from PatchAnalysisTask._test_patch and fix bug regarding incorrect call to PatchAnalysisTask.report_failure https://bugs.webkit.org/show_bug.cgi?id=138229 Reviewed by Daniel Bates. * Scripts/webkitpy/common/net/layouttestresults.py: Makes sure test_results returns a list. (LayoutTestResults.test_results): * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: Makes unit tests also check to make sure task.results_from_patch_test_run() and task.results_from_test_run_without_patch return instances of LayoutTestResults. (CommitQueueTaskTest._run_and_expect_patch_analysis_result): * Scripts/webkitpy/tool/bot/patchanalysistask.py: Condenses duplicate code into _should_defer_patch_or_throw, and removes the now-unused _clean_tree_results member. (PatchAnalysisTask.__init__): (PatchAnalysisTask._continue_testing_patch_that_exceeded_failure_limit_on_first_or_second_try): (PatchAnalysisTask._should_defer_patch_or_throw): (PatchAnalysisTask._test_patch): (PatchAnalysisTask.results_from_patch_test_run): (PatchAnalysisTask.results_from_test_run_without_patch): Deleted. * Scripts/webkitpy/tool/commands/earlywarningsystem.py: Removes needless call to results_from_test_run_without_patch (AbstractEarlyWarningSystem._failing_tests_message): * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: Changes order of test failure messages to be in the order that they appear. (AbstractEarlyWarningSystemTest.test_failing_tests_message): * Scripts/webkitpy/tool/commands/queues.py: Removes needless call to results_from_test_run_without_patch. (CommitQueue._failing_tests_message): * Scripts/webkitpy/tool/commands/queues_unittest.py: (MockCommitQueueTask.results_from_test_run_without_patch): Deleted. 2014-11-06 Ryuan Choi Unreviewed. Reorder my e-mail addresses in contributors.json * Scripts/webkitpy/common/config/contributors.json: 2014-11-06 Matthew Hanson Remove code that prepends a leading 'r' to the first argument of _run_git_svn_find_rev https://bugs.webkit.org/show_bug.cgi?id=138475 Reviewed by Ryosuke Niwa. The change in https://trac.webkit.org/175603 introduced broke compatibility with svn_revision_from_git_commit. This patch reverts the part of that change that broke compatibility. In addition, this patch adds a comment to explain that SVN revisions require a leading 'r', moves an existing comment to a more appropriate location and renames the positional argument to better reflect that it can represent either an SVN revision or a Git tree-ish. * Scripts/webkitpy/common/checkout/scm/git.py: (Git._run_git_svn_find_rev): Add comment mentioning that svn_revisions need to begin with 'r'. Move comment (explaining that git svn find-rev exits with code 0 when no match is found) to a more appropriate location. Rename the argument 'revision' to 'revision_or_treeish' to reflect the dual form that argument can take. Remove code that coerced the revision/treeish into a string and prepended an 'r'. 2014-11-06 Carlos Garcia Campos [GTK] Add context menu API to Web Process Extensions https://bugs.webkit.org/show_bug.cgi?id=138311 Reviewed by Gustavo Noronha Silva. Add tests cases for WebKitWebPage::context-menu signal. * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp: (testContextMenuWebExtensionMenu): (testContextMenuWebExtensionNode): (beforeAll): * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp: (serializeContextMenu): (serializeNode): (contextMenuCallback): (pageCreatedCallback): 2014-11-06 Commit Queue Unreviewed, rolling out r175690. https://bugs.webkit.org/show_bug.cgi?id=138460 We are not ready to run layout tests using the network process yet (Requested by KaL on #webkit). Reverted changeset: "[GTK] Run layout tests using the network process" https://bugs.webkit.org/show_bug.cgi?id=138428 http://trac.webkit.org/changeset/175690 2014-11-06 Carlos Garcia Campos [GTK] Run layout tests using the network process https://bugs.webkit.org/show_bug.cgi?id=138428 Reviewed by Martin Robinson. Shared secondary process is the default in the GTK+ port, but we should run the tests using the network process to ensure everything works with the network process. In the future, the shared secondary process model might be a special case of multiple processes with 1 as maximum number of processes, but always using the network process. * WebKitTestRunner/TestController.cpp: (WTR::TestController::initialize): 2014-11-05 Dan Bernstein Remove the unused deletion UI feature https://bugs.webkit.org/show_bug.cgi?id=138442 Rubber-stamped by Alexey Proskuryakov. * DumpRenderTree/mac/EditingDelegate.mm: (-[EditingDelegate webView:shouldShowDeleteInterfaceForElement:]): Deleted implementation of delegate method that’s been removed. 2014-11-05 Alexey Proskuryakov fast/dom/remove-body-during-body-replacement2.html fails on WK2 https://bugs.webkit.org/show_bug.cgi?id=138334 Reviewed by Anders Carlsson. Reset focus to main frame between tests. DumpRenderTree does this via -makeFirstResponder calls, which works because each frame is an NSView in WK1. WK2 makes equivalent -makeFirstResponder calls, which may or may not be needed for other reasons, but it also needs to reset internal focus explicitly. It's not clear if this is the right long-term fix or a workaround for a WebKit bug. WebKit behavior appears wrong, but it matches Firefox. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::resetAfterTest): 2014-11-05 Carlos Garcia Campos [GTK] Add WebKitWebResource::failed-with-tls-errors signal https://bugs.webkit.org/show_bug.cgi?id=137862 Reviewed by Gustavo Noronha Silva. Add a test case to check that WebKitWebResource::failed-with-tls-errors is emitted when a subresource load fails due to TLS errors. * TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp: (TLSSubresourceTest::resourceLoadStartedCallback): (TLSSubresourceTest::TLSSubresourceTest): (TLSSubresourceTest::subresourceFailedCallback): (TLSSubresourceTest::subresourceFailedWithTLSErrorsCallback): (TLSSubresourceTest::subresourceLoadStarted): (TLSSubresourceTest::subresourceFailedWithTLSErrors): (TLSSubresourceTest::waitUntilSubresourceLoadFail): (testSubresourceLoadFailedWithTLSErrors): (httpsServerCallback): (httpServerCallback): (beforeAll): 2014-11-05 Alexey Proskuryakov Build fix for some compiler versions. * TestWebKitAPI/Tests/mac/TypingStyleCrash.mm: (TestWebKitAPI::TEST): Compiler was unhappy because this is a getter, and these shouldn't have side effects. 2014-11-04 Matthew Hanson Add a method for performing cherrypick-merges. https://bugs.webkit.org/show_bug.cgi?id=138375 Reviewed by Ryosuke Niwa. Adds support for cherrypick-merges. * Scripts/webkitpy/common/checkout/scm/git.py: (Git.cherrypick_merge): Added. 2014-11-04 Matthew Hanson Add a way to ascertain the SVN URL associated with a Git branch. https://bugs.webkit.org/show_bug.cgi?id=138374 Reviewed by Ryosuke Niwa. The svn_url method returns the SVN URL associated with the current Git branch. * Scripts/webkitpy/common/checkout/scm/git.py: (Git.svn_url): Added. 2014-11-04 Matthew Hanson Add the ability to search for modifications that are staged for commit. https://bugs.webkit.org/show_bug.cgi?id=138373 Reviewed by Ryosuke Niwa and Daniel Bates. This makes is easy to do identify files that require merge post-processing, in addition to stand-alone utility. * Scripts/webkitpy/common/checkout/scm/git.py: (Git.modifications_staged_for_commit): Added. 2014-11-04 Matthew Hanson Add a branch keyword argument to _run_git_svn_find_rev. https://bugs.webkit.org/show_bug.cgi?id=138372 Reviewed by Ryosuke Niwa. The addition of this keyword argument allows clients to determine the Git hash of commits made on an SVN branch, provided that branch has been fetched locally. * Scripts/webkitpy/common/checkout/scm/git.py: (Git._run_git_svn_find_rev): Add a branch keyword argument that is added to the end of the command, if present. 2014-11-04 Chris Dumez Add ptr() method to Ref class https://bugs.webkit.org/show_bug.cgi?id=138361 Reviewed by Darin Adler. Use the new Ref::ptr() method. * TestWebKitAPI/Tests/WTF/Ref.cpp: (TestWebKitAPI::TEST): 2014-11-04 Tibor Meszaros [jhbuild] Make it possible to build GTK/EFL in same repository https://bugs.webkit.org/show_bug.cgi?id=137448 Reviewed by Martin Robinson. * Scripts/webkitdirs.pm: (getJhbuildPath): * WebKitTestRunner/InjectedBundle/efl/FontManagement.cpp: (getPlatformFontsPath): * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp: (WTR::getFontsPath): * jhbuild/jhbuild-wrapper: (determine_platform): (install_jhbuild): * jhbuild/jhbuildrc_common.py: (init): 2014-11-04 Dániel Bátyai [EFL] Bump LLVM to version 3.5.0 https://bugs.webkit.org/show_bug.cgi?id=138312 Reviewed by Csaba Osztrogonác. * efl/jhbuild.modules: * efl/patches/llvm-elf-add-stackmaps.patch: Added. * efl/patches/llvm-elf-fix-x86_64-fdecfiencoding.patch: Added. 2014-11-03 Simon Fraser Add page overlays that show regions with mouseWheel event handlers, and the non-fast-scrollable region, and code to toggle them in MiniBrowser WK2 https://bugs.webkit.org/show_bug.cgi?id=138257 Reviewed by Tim Horton. Add a "Debug Overlays" submenu item under "WebKit2-only Settings" which allows the user to toggle region page overlays on and off. Two overlays are available, for the non-fast scrollable region, and the region of element with wheel event handlers. * MiniBrowser/mac/SettingsController.h: * MiniBrowser/mac/SettingsController.m: (-[SettingsController _populateMenu]): (-[SettingsController validateMenuItem:]): (-[SettingsController nonFastScrollableRegionOverlayVisible]): (-[SettingsController wheelEventHandlerRegionOverlayVisible]): (-[SettingsController preferenceKeyForRegionOverlayTag:]): (-[SettingsController toggleDebugOverlay:]): (-[SettingsController debugOverlayVisible:]): * MiniBrowser/mac/WK2BrowserWindowController.m: (-[WK2BrowserWindowController didChangeSettings]): 2014-11-03 Alexey Proskuryakov REGRESSION (Subpixel layout): Bubbles don't fit in Bugzilla review page https://bugs.webkit.org/show_bug.cgi?id=138323 Reviewed by Zalan Bujtas. * QueueStatusServer/templates/statusbubble.html: Round the sizes up, not down. 2014-11-03 Eva Balazsfalvi [ninja] Don't remove response files for verbose builds https://bugs.webkit.org/show_bug.cgi?id=137816 Reviewed by Csaba Osztrogonác. * Scripts/webkitdirs.pm: (determineNinjaVersion): (buildCMakeGeneratedProject): 2014-11-02 Akos Kiss [GTK] Fix the build of FTL JIT https://bugs.webkit.org/show_bug.cgi?id=138298 Reviewed by Carlos Garcia Campos. * gtk/jhbuild-optional.modules: Bump up LLVM version to 3.5.0 release and apply patches. * gtk/patches/llvm-elf-add-stackmaps.patch: Added. Adds .llvm_stackmaps section to ELF files. Backported from LLVM trunk. * gtk/patches/llvm-elf-fix-x86_64-fdecfiencoding.patch: Added. Ensures that PC-relative relocations in EH frames are not truncated to 32 bits on x86_64. 2014-10-31 Michael Saboff No way to specify target os or architecture when using the --no-copy option with run-jsc-stress-tests https://bugs.webkit.org/show_bug.cgi?id=138268 Reviewed by Andreas Kling. Added a --arch and --os option to set or override the values that are normally computed based on examining the JavaScriptCore we want to test. * Scripts/run-jsc-stress-tests: 2014-10-31 Dan Bernstein llvmForJSC build emits a linker warning that it can't find usr/local/LLVMForJavaScriptCore/lib under the build directory https://bugs.webkit.org/show_bug.cgi?id=138259 Reviewed by Geoff Garen. * Scripts/copy-webkitlibraries-to-product-directory: Create this directory even if it’s going to be empty to silence the warning. 2014-10-31 Adrian Perez de Castro [GTK] Support script message handlers WebKitUserContentManager https://bugs.webkit.org/show_bug.cgi?id=133730 Reviewed by Carlos Garcia Campos. Support user script message handlers in WebKitUserContentManager. This needs building with ENABLE_USER_MESSAGE_HANDLERS, for which an option is added to the CMake build files. The option is disabled globally by default, and the WebKitGTK port enables it. On the API level, two new methods to register and unregister names are provided in the "window.webkit" namespace, and on message reception the "WebKitUserContentManager::script-message-received" signal is emitted, using the registered names as signal detail. * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp: Add test case for user script message handlers. (scriptMessageReceived): (testUserContentManagerScriptMessageReceived): (beforeAll): 2014-10-30 Matthew Hanson bisect-builds should support WebKit clients other than Safari https://bugs.webkit.org/show_bug.cgi?id=138225 This patch adds support for bisecting WebKit nightly builds with clients other than Safari. The -a / --application optional argument allows the user to specify which application (or application bundle) should be run against the WebKit nightly builds. Reviewed by David Kilzer. * Scripts/bisect-builds: Swap out $safariPath for the more general $applicationPath Leave --safari-path as a commandline option for backwards compatibility (mountAndRunNightly): Use File::Spec->cat correctly (one directory per argument) Use open --wait-apps instead of running the target application directly 2014-10-30 Dana Burkart Perpare for the mysterious future Reviewed by Lucas Forschler. * DumpRenderTree/mac/Configurations/Base.xcconfig: * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig: * LayoutTestRelay/Configurations/Base.xcconfig: * LayoutTestRelay/Configurations/DebugRelease.xcconfig: * MiniBrowser/Configurations/Base.xcconfig: * MiniBrowser/Configurations/DebugRelease.xcconfig: * TestWebKitAPI/Configurations/Base.xcconfig: * TestWebKitAPI/Configurations/DebugRelease.xcconfig: * WebKitLauncher/Configurations/Base.xcconfig: * WebKitTestRunner/Configurations/Base.xcconfig: * WebKitTestRunner/Configurations/DebugRelease.xcconfig: 2014-10-30 Matthew Hanson Update safariVersion to safariVersionString https://bugs.webkit.org/show_bug.cgi?id=138193 The preceding change updated safariVersion to safariVersionString for the "4 Public Beta" check in OS X 10.5.x, but it should have also been done for the "4 Public Beta" check in OS X 10.4.x. Rubber-stamped by David Kilzer. * Scripts/bisect-builds: (makeNightlyList): Compare safariVersionString to a string literal, instead of safariVersion. 2014-10-30 Rohit Kumar [GTK] Minibrowser : Add window fullscreen support for Minibrowser https://bugs.webkit.org/show_bug.cgi?id=137775 Reviewed by Carlos Garcia Campos. * MiniBrowser/gtk/BrowserWindow.c: (toggleFullScreen): Callback to toggle window fullscreen on pressing F11 key. (browser_window_init): 2014-10-29 Jake Nielsen CommitQueue and EWS should reject any patches that result in consistent test failures that aren't present on the tree. https://bugs.webkit.org/show_bug.cgi?id=138184 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/layout_tests/models/test_results.py: Adds a simple hashing function to allow for set operations to handle TestResult objects properly. (TestResult.__hash__): * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: Adds one unit test, and modifies others to agree with the notion that patches that introduce new test failures (but also have flakyness) should be rejected rather than spin. (MockCommitQueue.report_flaky_tests): (CommitQueueTaskTest._run_and_expect_patch_analysis_result): (test_double_flaky_test_failure): (test_two_flaky_tests): (test_very_flaky_patch): (test_very_flaky_patch_with_some_tree_redness): (test_different_test_failures): (test_different_test_failures_with_some_tree_redness): (test_different_test_failures_with_some_tree_redness_and_some_fixes): (test_mildly_flaky_patch): (test_mildly_flaky_patch_with_some_tree_redness): * Scripts/webkitpy/tool/bot/patchanalysistask.py: Makes PatchAnalysisTask reject said patches. (PatchAnalysisTask._test_patch): 2014-10-29 Youenn Fablet WinCairoRequirements.zip cannot be downloaded from dropbox https://bugs.webkit.org/show_bug.cgi?id=138113 Reviewed by Alexey Proskuryakov. * Scripts/update-webkit-dependency: Removing --sslv3 option from curl 2014-10-29 Matthew Hanson bisect-builds should filter out nightlies that predate the introduction of an OS X operating system https://bugs.webkit.org/show_bug.cgi?id=138193 This patch restricts the set of nightles to bisect to only those nightlies that ship with frameworks for the target OS (only support for OS X Yosemite, Mavericks and Mountain Lion was added.) It also does a bit of refactoring, including distinguishing between versions and version strings and saving versions to local variables instead of using eval in each conditional. Reviewed by David Kilzer. * Scripts/bisect-builds: (makeNightlyList): Restrict the set of nightlies to r174650 and above when running Yosemite. Restrict the set of nightlies to r157846 and above when running Mavericks. Restrict the set of nightlies to r122421 and above when running Mountain Lion. 2014-10-29 Csaba Osztrogonác [EFL] build-webkit should try harder to avoid re-running cmake https://bugs.webkit.org/show_bug.cgi?id=137949 Reviewed by Martin Robinson. * Scripts/webkitdirs.pm: (shouldRemoveCMakeCache): Don't remove CMakeCache unconditionally for EFL. (generateBuildSystemFromCMakeProject): Comment fix after r174681. 2014-10-28 Daniel Bates Unify logic in RunTests.run() to run the Python unit tests https://bugs.webkit.org/show_bug.cgi?id=138160 Reviewed by Martin Robinson. Unify the interactive and non-interactive code path for running the Python unit tests in step RunTests so as to remove duplicate code to compute the the path to the script test-webkitpy and log an informative message ("Running Python unit tests") to the console. No new tests since no functionality was changed. * Scripts/webkitpy/port/base.py: (Port.python_unittest_results_directory): * Scripts/webkitpy/tool/steps/runtests.py: (RunTests.run): 2014-10-28 Jake Nielsen Make runtest.py call test-webkitpy with the --json flag when in non-interactive mode. https://bugs.webkit.org/show_bug.cgi?id=137667 Reviewed by Daniel Bates. * Scripts/webkitpy/port/base.py: Adds the python_unittest_results_directory method. (Port.python_unittest_results_directory): * Scripts/webkitpy/tool/steps/runtests.py: Changes RunTests to call test-webkitpy with the --json flag if the --non-interactive flag is set. (RunTests): (RunTests.run): 2014-10-28 Rebecca Hauck import-w3c-tests should use re.escape() wherever it's handling file paths https://bugs.webkit.org/show_bug.cgi?id=137934 This patch adds re.escape() to a few places where we're doing string conversions. This prevents errors when attribute values coincidentally have character sequences that can be interpreted as regular expressions. Reviewed by Bem Jones-Bey. * Scripts/webkitpy/w3c/test_converter.py: (_W3CTestConverter.convert_attributes_if_needed): 2014-10-28 Tibor Meszaros [EFL] Remove an unused include from Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp https://bugs.webkit.org/show_bug.cgi?id=138130 Reviewed by Csaba Osztrogonác. * WebKitTestRunner/efl/PlatformWebViewEfl.cpp: 2014-10-25 Raniere Silva Fix link to Arch Linux Wiki https://bugs.webkit.org/show_bug.cgi?id=138010 Reviewed by Benjamin Poulain. * gtk/install-dependencies: 2014-10-25 Alexey Proskuryakov Test regressions are not detected when image result is missing https://bugs.webkit.org/show_bug.cgi?id=138070 Reviewed by Simon Fraser. * Scripts/webkitpy/layout_tests/models/test_run_results.py: * Scripts/webkitpy/layout_tests/views/buildbot_results.py: Count these as regressions, not as flaky tests. * Scripts/webkitpy/port/test.py: * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: Test it. 2014-10-24 Timothy Horton Add Conrad Shultz to the contributors list. * Scripts/webkitpy/common/config/contributors.json: 2014-10-24 Dan Bernstein build.webkit.org/dashboard immediately retries a request to buildbot when the response is 404 https://bugs.webkit.org/show_bug.cgi?id=138046 Reviewed by Alexey Proskuryakov. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js: (BuildbotQueue.prototype._load): Only consider retrying immediately if the error code was 401. Otherwise, we’ll retry normally in 45 seconds. 2014-10-24 Marcos Chavarría Teijeiro [GTK] Implement is_selected method on WebKitHitTestResult https://bugs.webkit.org/show_bug.cgi?id=137110 Reviewed by Tim Horton. Add tests for new context SELECTION on WebKitHitTestResult. * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp: (testContextMenuDefaultMenu): * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp: (testWebViewMouseTarget): 2014-10-23 Roger Fong [Win] Skip failing JSC tests following r175078 https://bugs.webkit.org/show_bug.cgi?id=130967. * Scripts/run-javascriptcore-tests: 2014-10-22 Jake Nielsen commitqueuetask_unittest.py should be made more concise. https://bugs.webkit.org/show_bug.cgi?id=137985 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: Refactors tests to use MockSimpleTestPlanCommitQueue where possible. (MockCommitQueue.__init__): (MockCommitQueue.report_flaky_tests): (MockCommitQueue): (MockCommitQueue.get_reported_flaky_tests): (MockSimpleTestPlanCommitQueue.__init__): (MockSimpleTestPlanCommitQueue.run_command): (MockSimpleTestPlanCommitQueue.did_run_clean_tests): (CommitQueueTaskTest._run_and_expect_patch_analysis_result): (test_land_failure): (test_failed_archive): (test_double_flaky_test_failure): (test_test_failure): (test_red_test_failure): (test_very_red_tree_retry): (test_red_tree_patch_rejection): (test_one_flaky_test): (test_tree_more_red_than_patch): (MockCommitQueue.test_results): Deleted. (test_simple_flaky_test_failure): Deleted. (_expect_validate): Deleted. (_expect_validate.MockDelegate): Deleted. (_expect_validate.MockDelegate.refetch_patch): Deleted. (_expect_validate.MockDelegate.expected_failures): Deleted. (_mock_patch): Deleted. (test_validate): Deleted. * Scripts/webkitpy/tool/bot/patchanalysistask.py: Fixes a bug that slipped through the cracks prior to this change. (PatchAnalysisTask._test_patch): 2014-10-22 Alexey Proskuryakov Flakiness dashboard should support OS X Yosemite https://bugs.webkit.org/show_bug.cgi?id=137986 Reviewed by Ryosuke Niwa. * TestResultServer/app.yaml: * TestResultServer/static-dashboards/builders.jsonp: * TestResultServer/static-dashboards/flakiness_dashboard.js: 2014-10-22 Jake Nielsen commitqueuetask should include more tests to ensure that the behavior of PatchAnalysisTask._test_patch() is well defined https://bugs.webkit.org/show_bug.cgi?id=137977 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: Adds the MockSimpleTestPlanCommitQueue class, which makes it easier and more readable to define tests that are meant to test the behaviour of PatchAnalysisTask._test_patch(), and adds several unit tests. (FailingTestCommitQueue.test_results): (PatchAnalysisResult): (MockSimpleTestPlanCommitQueue): (MockSimpleTestPlanCommitQueue.__init__): (MockSimpleTestPlanCommitQueue.run_command): (MockSimpleTestPlanCommitQueue._mock_test_result): (MockSimpleTestPlanCommitQueue.test_results): (CommitQueueTaskTest._run_and_expect_patch_analysis_result): (test_flaky_test_failure): (test_failed_archive): (test_two_flaky_tests): (test_one_flaky_test): (test_very_flaky_patch): (test_very_flaky_patch_with_some_tree_redness): (test_different_test_failures): (test_different_test_failures_with_some_tree_redness): (test_mildly_flaky_patch): (test_mildly_flaky_patch_with_some_tree_redness): (test_tree_more_red_than_patch): 2014-10-22 Jake Nielsen PatchAnalysisTask._test_patch() needs refactoring https://bugs.webkit.org/show_bug.cgi?id=137904 Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: Fixes several small bugs, and makes minor changes to accomodate the changes in PatchAnalysisTask. (MockCommitQueue.refetch_patch): (MockCommitQueue.test_results): (test_flaky_test_failure): (test_failed_archive): (test_very_red_tree_retry): (_expect_validate.MockDelegate.refetch_patch): (MockCommitQueue.expected_failures): Deleted. (_expect_validate.MockDelegate.expected_failures): Deleted. * Scripts/webkitpy/tool/bot/expectedfailures.py: Removed. * Scripts/webkitpy/tool/bot/expectedfailures_unittest.py: Removed. * Scripts/webkitpy/tool/bot/patchanalysistask.py: Removes the unexpected_failures member, adds the _clean_tree_results member, adds a helper function for _test_patch, and refactors _test_patch to be more readable. (PatchAnalysisTask.__init__): (PatchAnalysisTask._continue_testing_patch_that_exceeded_failure_limit_on_first_or_second_try): (PatchAnalysisTask._test_patch): (PatchAnalysisTask.results_from_test_run_without_patch): * Scripts/webkitpy/tool/commands/earlywarningsystem.py: Removes AbstractEarlyWarningSystem's dependancy on ExpectedFailures. (AbstractEarlyWarningSystem.begin_work_queue): (AbstractEarlyWarningSystem._failing_tests_message): (AbstractEarlyWarningSystem.command_failed): (AbstractEarlyWarningSystem.expected_failures): Deleted. * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: Makes changes to accomodate the changes made to PatchAnalysisTask. (AbstractEarlyWarningSystemTest.test_failing_tests_message): * Scripts/webkitpy/tool/commands/perfalizer.py: Removes Perfalizer's dependancy on ExpectedFailures. (PerfalizerTask.refetch_patch): (PerfalizerTask.expected_failures): Deleted. * Scripts/webkitpy/tool/commands/queues.py: Removes CommitQueue's dependancy on ExpectedFailures, and adds an initializer to allow for mock injection. (CommitQueue.__init__): (CommitQueue.begin_work_queue): (CommitQueue.process_work_item): (CommitQueue._failing_tests_message): * Scripts/webkitpy/tool/commands/queues_unittest.py: Removes dependancy on ExpectedFailures, and instead uses mock injection. (MockCommitQueueTask): (MockCommitQueueTask.results_from_patch_test_run): (MockCommitQueueTask.results_from_test_run_without_patch): (mock_run_webkit_patch): 2014-10-22 Rohit Kumar [EFL][WK2] Minibrowser : Add support for mouse middle button to open links in new window https://bugs.webkit.org/show_bug.cgi?id=136736 Reviewed by Gyuyoung Kim. * MiniBrowser/efl/main.c: (on_navigation_policy_decision): Check whether it's a link clicked with the middle mouse button and load the request in a new window. (window_create): 2014-10-22 Carlos Garcia Campos [GTK] Move GtkInputMethodFilter from Platform to WebKit2 https://bugs.webkit.org/show_bug.cgi?id=137884 Reviewed by Gustavo Noronha Silva. Move InputMethodFilter test from WebCore tests to WebKit2 tests and adapt it to use the new InputMethodFilter WebKit class. Instead of having virtual methods just for testing, it has a testing mode that logs the events. * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/Tests/WebKit2/gtk/InputMethodFilter.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/gtk/InputMethodFilter.cpp. (TestWebKitAPI::TestInputMethodFilter::TestInputMethodFilter): (TestWebKitAPI::TestInputMethodFilter::~TestInputMethodFilter): (TestWebKitAPI::TestInputMethodFilter::sendKeyEventToFilter): (TestWebKitAPI::TestInputMethodFilter::sendPressAndReleaseKeyEventPairToFilter): (TestWebKitAPI::TEST): (TestWebKitAPI::temporaryGetPreeditStringOverride): (TestWebKitAPI::temporaryResetOverride): (TestWebKitAPI::verifyCanceledComposition): 2014-10-21 Alexey Proskuryakov build.webkit.org/dashboard: Cannot click on green tester bubbles https://bugs.webkit.org/show_bug.cgi?id=137909 Reviewed by Darin Adler. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js: (BuildbotTesterQueueView.prototype.update.appendBuilderQueueStatus): 2014-10-21 Brent Fulgham [Win] Run DumpRenderTree using native controls, not SafariTheme.dll. https://bugs.webkit.org/show_bug.cgi?id=137932 Reviewed by Simon Fraser. This is the first step in moving over to native Windows rendering for our layout tests. Once this change lands, approximately 300 tests will start failing on Windows. I will rebaseline these changes against our test hardware and update this bug with the commits related to that work. * DumpRenderTree/win/DumpRenderTree.cpp: (resetDefaultsToConsistentValues): Call 'setShouldPaintNativeControls(TRUE)' so that we use native Windows drawing style. 2014-10-21 Dániel Bátyai Fix FTL Native Inlining for EFL https://bugs.webkit.org/show_bug.cgi?id=137774 Reviewed by Michael Saboff. Added Clang as an optional module to jhbuild. * efl/jhbuild.modules: 2014-10-20 Michael Catanzaro Change the default TLS errors policy to WEBKIT_TLS_ERRORS_POLICY_FAIL https://bugs.webkit.org/show_bug.cgi?id=137832 Reviewed by Carlos Garcia Campos. Ensure each test sets the TLS errors policy that it really needs. Have each test except testTLSErrorsPolicy stash and restore the original TLS errors policy. Update testTLSErrorsPolicy to account for the new default policy. * TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp: (testSSL): (testInsecureContent): (testTLSErrorsPolicy): (testTLSErrorsRedirect): (testTLSErrorsHTTPAuth): (testLoadFailedWithTLSErrors): (beforeAll): 2014-10-21 Carlos Garcia Campos Unreviewed. Unskip inspector server unit tests. They should pass now. * Scripts/run-gtk-tests: (TestRunner): 2014-10-21 Carlos Garcia Campos [GTK] Test TestWebKitAPI/WebKit2Gtk/TestInspectorServer fails https://bugs.webkit.org/show_bug.cgi?id=132044 Reviewed by Brian Burg. * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp: (openRemoteDebuggingSession): Remove trailing slash when concatenating base inspector URL with the page, because the inspector returns the relative paths with a leading slash. 2014-10-20 Tanay C [EFL][WK2] Minibrowser : Add support for Case sensitive and word start search https://bugs.webkit.org/show_bug.cgi?id=137023 Reviewed by Gyuyoung Kim. * MiniBrowser/efl/main.c: Added functionality to support case sensitive and word start search (search_box_show): Modified. (search_box_hide): Modified. (on_search_field_activated): Modified. (on_search_backward_button_clicked): Modified. (on_search_forward_button_clicked): Modified. (on_search_case_option_changed): Added. (on_search_word_start_option_changed): Added. (window_create): Modified. 2014-10-20 Tanay C [GTK][Minibrowser] Escape key does not hide the search box https://bugs.webkit.org/show_bug.cgi?id=137734 Reviewed by Philippe Normand. * MiniBrowser/gtk/BrowserWindow.c: Added the check to handle search box hide (stopPageLoad): Modified. 2014-10-18 Antti Koivisto REGRESSION (r173356): Safari can't install a profile, gets 'Download Failed error https://bugs.webkit.org/show_bug.cgi?id=137855 Reviewed by Dan Bernstein. Test and warn if the dumped response mime type differs from the platform response mime type. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::didReceiveResponseForResource): (WTR::InjectedBundlePage::platformResponseMimeType): * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm: (WTR::InjectedBundlePage::platformResponseMimeType): 2014-10-17 Joseph Pecoraro Remove run-inspector-perf-tests.py there is no PerformanceTests/inspector anymore https://bugs.webkit.org/show_bug.cgi?id=137835 Reviewed by Andreas Kling. * Scripts/run-inspector-perf-tests.py: Removed. This script is stale, as PerformanceTests/inspector no longer exists. 2014-10-17 Simon Fraser Fix typo: should be ios-simulator-wk2, not ios-simulator_wk2. * Scripts/webkitpy/port/ios.py: (IOSSimulatorPort.default_baseline_search_path): 2014-10-17 Simon Fraser [iOS] Simplify test fallback paths for iOS Simulator testing https://bugs.webkit.org/show_bug.cgi?id=137830 Reviewed by Zalan Bujtas. Make the fallback paths be: ios-simulator -> generic ios-simulator-wk2->ios-simulator -> generic so don't include mac in the fallback path. Also remove the version handling for simplicity. * Scripts/webkitpy/port/ios.py: (IOSSimulatorPort): (IOSSimulatorPort.default_baseline_search_path): 2014-10-17 Dana Burkart Fix typos in the dashboard config file. Unreviewed. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js: (WebKitBuildbot): 2014-10-17 Brent Fulgham [Win] Allow WinLauncher to specify Custom User Agent strings https://bugs.webkit.org/show_bug.cgi?id=137828 Reviewed by Dean Jackson. * WinLauncher/Common.cpp: Add support for custom user agent strings. * WinLauncher/WinLauncher.cpp: Add some convenience methods to get and set the user agent strings. * WinLauncher/WinLauncher.h: * WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc: Add new menu resources and dialog for setting custom User Agent strings. * WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h: 2014-10-16 Simon Fraser [iOS] Turn off font autosizing for iOS WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=137806 Reviewed by Sam Weinig. Confusingly, WKPreferencesSetTextAutosizingEnabled() does nothing on iOS. Instead, we have to add WKPreferencesSetMinimumZoomFontSize() and set it to 0 to disable font autosizing. Add platformResetPreferencesToConsistentValues() and implement it in the iOS test controller to set platform-specific prefs. * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): (WTR::TestController::platformResetPreferencesToConsistentValues): * WebKitTestRunner/TestController.h: * WebKitTestRunner/ios/TestControllerIOS.mm: (WTR::TestController::platformResetPreferencesToConsistentValues): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetPreferencesToConsistentValues): 2014-10-16 Dan Bernstein OSObjectPtr is missing leakRef() https://bugs.webkit.org/show_bug.cgi?id=137798 Reviewed by Sam Weinig. * TestWebKitAPI/Tests/WTF/darwin/OSObjectPtr.cpp: (TestWebKitAPI::TEST(OSObjectPtr, LeakRef)): Added. 2014-10-16 Lucas Forschler Update target platform to remove Leopard, Snow Leopard, Lion. Add Yosemite. Unreviewed. * BuildSlaveSupport/build.webkit.org-config/wkbuild.py: (_should_file_trigger_build): 2014-10-16 David Kilzer commit-queue: fails to replace OO-PS! with reviewer name Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/common/net/bugzilla/bugzilla.py: (Bugzilla.fetch_bug_dictionary): Bugzilla 4.2.x never gives out email addresses to unauthenticated page loads, so we must always authenticate before getting bug data so we get full email addresses. 2014-10-16 David Kilzer commit-queue: fails to close bugs after successfully landing patches Reviewed by Alexey Proskuryakov. * Scripts/webkitpy/common/net/bugzilla/bugzilla.py: (Bugzilla.clear_attachment_flags): Change 'nr=0' to 'nr=1' to tell Mechanize to use the second