2018-01-09 Jason Marcell Revert r226432. rdar://problem/10353542 2018-01-09 Jason Marcell Revert r226441. rdar://problem/10353542 2018-01-09 Jason Marcell Revert r226450. rdar://problem/10353542 2018-01-08 Youenn Fablet navigator.onLine does not work inside service workers https://bugs.webkit.org/show_bug.cgi?id=181079 Reviewed by Darin Adler. * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::initialize): Setting service worker creation callback to inject ServiceWorkerInternals object. 2018-01-07 Saam Barati Add total exits and total compilations sorting mode to the "full" command in display-profiler-output https://bugs.webkit.org/show_bug.cgi?id=181372 Reviewed by Filip Pizlo. Adding these sorting modes makes it easier to analyze functions that recompile a lot and exit a lot. * Scripts/display-profiler-output: 2018-01-06 Julien Brianceau Unreviewed, remove my Cisco email from contributors.json * Scripts/webkitpy/common/config/contributors.json: 2018-01-05 JF Bastien WebAssembly: poison JS object's secrets https://bugs.webkit.org/show_bug.cgi?id=181339 Reviewed by Mark Lam. Update tests for swap(Poisoned, T*) * TestWebKitAPI/Tests/WTF/ConstExprPoisoned.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WTF/Poisoned.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WTF/PoisonedRef.cpp: (TestWebKitAPI::TEST): 2018-01-05 Wenson Hsieh REGRESSION(r226396) DataInteractionTests: ContentEditableToContentEditable and ContentEditableToTextarea are failing https://bugs.webkit.org/show_bug.cgi?id=181359 Reviewed by Tim Horton. Ensure that these tests still pass using older SDKs. * TestWebKitAPI/Tests/ios/DataInteractionTests.mm: (TestWebKitAPI::TEST): 2018-01-05 Alex Christensen Rebase API test after r226469 https://bugs.webkit.org/show_bug.cgi?id=181308 * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]): A URL with < or > in it is now recognized as invalid by WebKit. This is intentional, and matches our behavior before enabling the new URLParser. 2018-01-05 Alex Christensen Restrict navigation-time WKWebsiteDataStore swapping to main frame navigations https://bugs.webkit.org/show_bug.cgi?id=181217 Reviewed by Tim Horton. * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm: (-[WebsitePoliciesWebsiteDataStoreDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]): (TEST): 2018-01-05 Alex Christensen Add WKBundleFrameCreateFrameHandle https://bugs.webkit.org/show_bug.cgi?id=181232 Reviewed by Tim Horton. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKitCocoa/FrameHandleSerialization.mm: Added. (mouseDidMoveOverElement): (-[FrameHandleSerialization webProcessPlugIn:didCreateBrowserContextController:]): * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm: (-[MouseMoveOverElementDelegate _webView:mouseDidMoveOverElement:withFlags:userInfo:]): (TEST): 2018-01-05 Chris Fleizach iOS: Build fix after r226432. Unreviewed. Stop duplicating speakAs symbols for iOS. * DumpRenderTree/AccessibilityUIElement.cpp: (AccessibilityUIElement::speakAs): 2018-01-05 Javier Fernandez Unreviewed, added myself as WebKit reviewer * Scripts/webkitpy/common/config/contributors.json: 2018-01-05 Claudio Saavedra WPE: Build fix after r226432. Unreviewed. Rename ::speak() to ::speakAs(). * WebKitTestRunner/InjectedBundle/wpe/AccessibilityUIElementWPE.cpp: (WTR::AccessibilityUIElement::speakAs): (WTR::AccessibilityUIElement::speak): Deleted. 2018-01-04 Chris Fleizach AX: Implement updated CSS3 Speech for 'speak' and 'speak-as' properties https://bugs.webkit.org/show_bug.cgi?id=180361 Reviewed by Zalan Bujtas. * DumpRenderTree/AccessibilityUIElement.cpp: (speakAsCallback): (AccessibilityUIElement::speakAs): (AccessibilityUIElement::getJSClass): (speakCallback): Deleted. (AccessibilityUIElement::speak): Deleted. * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::speakAs): * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (AccessibilityUIElement::speakAs): (AccessibilityUIElement::speak): Deleted. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::speakAs): (WTR::AccessibilityUIElement::speak): Deleted. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::speakAs): (WTR::AccessibilityUIElement::speak): Deleted. 2018-01-04 Jonathan Bedard REGRESSION (r226395): test-webkitperl test expectations incorrect https://bugs.webkit.org/show_bug.cgi?id=181307 Rubber-stamped by Aakash Jain. r226395 added two lines towards the beginning of Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl, the line numbers in the test expectations need to update. * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests-expected.txt: 2018-01-04 Tim Horton WKWebView loses minimum layout size overrides that happen while the process is terminated https://bugs.webkit.org/show_bug.cgi?id=181306 Reviewed by Dan Bernstein. * TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm: (TEST): Add a test that calling _overrideLayoutParametersWithMinimumLayoutSize while the process is terminated results in the page getting the correct minimum layout size. 2018-01-04 Eric Carlson [MediaStream] Add Mock screen capture source https://bugs.webkit.org/show_bug.cgi?id=181291 Reviewed by Dean Jackson. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add new test. * TestWebKitAPI/Tests/WebKitCocoa/GetDisplayMedia.mm: * TestWebKitAPI/Tests/WebKit/getDisplayMedia.html: 2018-01-04 Lucas Forschler Change proxy server setting on master config to reach s3 servers Reviewed by Ling Ho. * BuildSlaveSupport/build.webkit.org-config/steps.py: 2018-01-03 Wenson Hsieh [Attachment Support] Create attachment elements when dropping files on iOS https://bugs.webkit.org/show_bug.cgi?id=181192 Reviewed by Tim Horton. Adds 3 new API tests to exercise different use cases of dropping content as attachment elements when the runtime switch is enabled. See below for more details. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (-[NSItemProvider registerData:type:]): (platformCopyPNG): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/ios/DataInteractionTests.mm: Fix some currently failing iOS drag and drop tests. In this case, there's no reason RTFD should appear in the source item provider when dragging rich text *without* attachments, so this should have been a check for just kUTTypeRTF instead. (TestWebKitAPI::TEST): Tests a few cases of inserting attachment elements via drop: 1. We should distinguish between drops containing rich/plain text files from just dropping rich/plain text. Instead of inserting the contents as inline web content, this should generate attachment elements. 2. Test the fallback mechanism for inserting attachment elements. If the preferred presentation style is not explicitly set, but there's nothing WebKit would otherwise do with the dropped content, then we should fall back to inserting the content as an attachment. 3. Test that if multiple attachments and inline item providers are present, WebKit will respect the order in which they were inserted by the source (as opposed to, for instance, putting all of the attachments in front or at the end). * TestWebKitAPI/cocoa/TestWKWebView.h: * TestWebKitAPI/cocoa/TestWKWebView.mm: (-[TestWKWebView objectByEvaluatingJavaScript:]): Add a helper method to return an object that represents the result of evaluating some given script, and rewrite -stringByEvaluatingJavaScript to just turn around and call this. (-[TestWKWebView stringByEvaluatingJavaScript:]): 2018-01-03 Ting-Wei Lan Replace hard-coded paths in shebangs with #!/usr/bin/env https://bugs.webkit.org/show_bug.cgi?id=181040 Reviewed by Alex Christensen. * BuildSlaveSupport/build-launcher-app: * BuildSlaveSupport/build-launcher-dmg: * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py: * BuildSlaveSupport/built-product-archive: * BuildSlaveSupport/clean-build: * BuildSlaveSupport/delete-stale-build-files: * BuildSlaveSupport/download-built-product: * BuildSlaveSupport/gtk/buildbot/log/run: * BuildSlaveSupport/gtk/buildbot/run: * BuildSlaveSupport/gtk/pulseaudio/run: * BuildSlaveSupport/kill-old-processes: * BuildSlaveSupport/test-result-archive: * BuildSlaveSupport/win/kill-old-processes: * Scripts/SpacingHeuristics.pm: * Scripts/add-include: * Scripts/build-api-tests: * Scripts/build-dumprendertree: * Scripts/build-imagediff: * Scripts/build-jsc: * Scripts/build-webkit: * Scripts/build-webkittestrunner: * Scripts/check-Xcode-source-file-types: * Scripts/check-dom-results: * Scripts/check-for-exit-time-destructors: * Scripts/check-for-global-initializers: * Scripts/check-for-inappropriate-objc-class-names: * Scripts/check-for-weak-vtables-and-externals: * Scripts/clean-header-guards: * Scripts/compare-timing-files: * Scripts/configure-xcode-for-ios-development: * Scripts/copy-webkitlibraries-to-product-directory: * Scripts/create-exports: * Scripts/debug-minibrowser: * Scripts/debug-safari: * Scripts/debug-test-runner: * Scripts/do-file-rename: * Scripts/do-webcore-rename: * Scripts/dump-webkit-tests-run: * Scripts/ensure-valid-python: * Scripts/execAppWithEnv: * Scripts/extract-localizable-js-strings: * Scripts/filter-build-webkit: * Scripts/find-extra-includes: * Scripts/fix-blink-patch: * Scripts/generate-coverage-data: * Scripts/git-add-reviewer: * Scripts/jsc-stress-test-helpers/js-exception-fuzz: * Scripts/jsc-stress-test-helpers/js-executable-allocation-fuzz: * Scripts/jsc-stress-test-helpers/js-osr-exit-fuzz: * Scripts/make-new-script-test: * Scripts/make-script-test-wrappers: * Scripts/package-root: * Scripts/parse-malloc-history: * Scripts/report-include-statistics: * Scripts/resolve-ChangeLogs: * Scripts/run-api-tests: * Scripts/run-bindings-tests: * Scripts/run-content-extension-tester: * Scripts/run-iexploder-tests: * Scripts/run-javascriptcore-tests: * Scripts/run-jsc: * Scripts/run-leaks: * Scripts/run-mangleme-tests: * Scripts/run-minibrowser: * Scripts/run-pageloadtest: * Scripts/run-regexp-tests: * Scripts/run-safari: * Scripts/run-sunspider: * Scripts/run-test-runner: * Scripts/run-webkit-app: * Scripts/run-webkit-httpd: * Scripts/run-webkit-websocketserver: * Scripts/set-webkit-configuration: * Scripts/show-pretty-diff: * Scripts/sort-Xcode-project-file: * Scripts/split-file-by-class: * Scripts/sunspider-compare-results: * Scripts/svn-apply: * Scripts/svn-unapply: * Scripts/test-webkit-scripts: * Scripts/test-webkitperl: * Scripts/update-iexploder-cssproperties: * Scripts/update-javascriptcore-test-results: * Scripts/update-webkit: * Scripts/update-webkit-auxiliary-libs: * Scripts/update-webkit-dependency: * Scripts/update-webkit-libs-jhbuild: * Scripts/update-webkit-localizable-strings: * Scripts/update-webkit-support-libs: * Scripts/update-webkitgtk-libs: * Scripts/update-webkitwpe-libs: * Scripts/webkit-build-directory: * Scripts/webkitperl/LoadAsModule.pm: * Scripts/webkitperl/VCSUtils_unittest/decodeGitBinaryPatch.pl: * Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl: * Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl: * Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl: * Scripts/webkitperl/VCSUtils_unittest/generatePatchCommand.pl: * Scripts/webkitperl/VCSUtils_unittest/mergeChangeLogs.pl: * Scripts/webkitperl/VCSUtils_unittest/parseChunkRange.pl: * Scripts/webkitperl/VCSUtils_unittest/parseDiff.pl: * Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl: * Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl: * Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl: * Scripts/webkitperl/VCSUtils_unittest/parseGitDiffHeader.pl: * Scripts/webkitperl/VCSUtils_unittest/parsePatch.pl: * Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffFooter.pl: * Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffHeader.pl: * Scripts/webkitperl/VCSUtils_unittest/parseSvnProperty.pl: * Scripts/webkitperl/VCSUtils_unittest/parseSvnPropertyValue.pl: * Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl: * Scripts/webkitperl/VCSUtils_unittest/prepareParsedPatch.pl: * Scripts/webkitperl/VCSUtils_unittest/removeEOL.pl: * Scripts/webkitperl/VCSUtils_unittest/runCommand.pl: * Scripts/webkitperl/VCSUtils_unittest/runPatchCommand.pl: * Scripts/webkitperl/VCSUtils_unittest/setChangeLogDateAndReviewer.pl: * Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl: * Scripts/webkitperl/auto-version_unittest/versionStampTests.pl: * Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl: * Scripts/webkitperl/prepare-ChangeLog_unittest/extractLineRangeBeforeAndAfterChange.pl: * Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl: * Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl: * Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl: * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl: * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl: * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl: * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl: * Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl: * Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRef.pl: * Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRefGettingValue.pl: * Scripts/webkitperl/webkitdirs_unittest/extractNonMacOSHostConfiguration.pl: * Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl: * Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py: * ccache/ccache-clang: * ccache/ccache-clang++: * ccache/ccache-wrapper: * gtk/install-dependencies: * iExploder/iexploder-1.3.2/htdocs/iexploder.cgi: * iExploder/iexploder-1.3.2/htdocs/webserver.rb: * iExploder/iexploder-1.3.2/tools/lasthit.rb: * iExploder/iexploder-1.3.2/tools/osx_last_crash.rb: * iExploder/iexploder-1.3.2/tools/showtest.rb: * iExploder/iexploder-1.7.2/src/browser_harness.rb: * iExploder/iexploder-1.7.2/src/iexploder.cgi: * iExploder/iexploder-1.7.2/src/webserver.rb: * iExploder/iexploder-1.7.2/tools/lasthit.rb: * iExploder/iexploder-1.7.2/tools/osx_last_crash.rb: * wpe/install-dependencies: 2018-01-03 Simon Fraser filter-build-webkit filters out useful compiler error lines https://bugs.webkit.org/show_bug.cgi?id=179864 Reviewed by Tim Horton. Don't filter out lines that contain information about build errors by always showing lines after a line that contains "note:" or "error:". * Scripts/filter-build-webkit: (shouldShowSubsequentLine): (shouldIgnoreLine): 2018-01-03 Michael Catanzaro REGRESSION(r226366): [GTK] Broke TestBackForwardList and TestWebKitWebView https://bugs.webkit.org/show_bug.cgi?id=173915 Unreviewed follow-up. Fix /webkit2/WebKitWebView/session-state-with-form-data and /webkit2/WebKitWebView/submit-form. The form ID may be NULL, but we can't put NULL into a GVariant unless we use maybe types, and maybe types are incompatible with D-Bus. So use an empty string in this case. * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp: (emitFormSubmissionEvent): 2018-01-03 Michael Catanzaro [GTK] Add web process API to detect when form is submitted via JavaScript https://bugs.webkit.org/show_bug.cgi?id=173915 Reviewed by Carlos Garcia Campos. Test it. * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp: (FormSubmissionTest::FormSubmissionTest): (FormSubmissionTest::~FormSubmissionTest): (FormSubmissionTest::testFormSubmissionResult): (FormSubmissionTest::willSendDOMEventCallback): (FormSubmissionTest::willCompleteCallback): (FormSubmissionTest::runJavaScriptAndWaitUntilFormSubmitted): (testWebExtensionFormSubmissionSteps): (beforeAll): * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp: (DelayedSignal::DelayedSignal): (emitFormSubmissionEvent): (handleFormSubmissionCallback): (willSubmitFormCallback): (pageCreatedCallback): 2018-01-03 Michael Catanzaro Unreviewed, skip broken API test /webkit2/WebKitWebsiteData/databases https://bugs.webkit.org/show_bug.cgi?id=181251 * Scripts/run-gtk-tests: (GtkTestRunner): 2018-01-03 Michael Catanzaro Unreviewed, skip broken API test /webkit2/WebKitWebsiteData/ephemeral https://bugs.webkit.org/show_bug.cgi?id=181136 * Scripts/run-gtk-tests: (GtkTestRunner): 2018-01-02 Brent Fulgham [macOS, iOS] Adopt new secure coding APIs in WebKit https://bugs.webkit.org/show_bug.cgi?id=181085 Reviewed by Tim Horton. Update API tests to use secure coding wherever possible. Currently, NSView/UIView-based classes are not capable of supporting NSSecureCoding, so pass through the current coding routines. * TestWebKitAPI/Tests/WebKitCocoa/ApplicationManifest.mm: Updated for NSSecureCoding. * TestWebKitAPI/Tests/WebKitCocoa/Coding.mm: (encodeAndDecode): Check if class supports the NSSecureCoding protocol and use non-secure coding routines if necessary. (TEST): Updated for NSSecureCoding. * TestWebKitAPI/Tests/mac/EarlyKVOCrash.mm: (TestWebKitAPI::TEST): Updated for NSSecureCoding. 2017-12-28 Yusuke Suzuki Remove std::chrono completely https://bugs.webkit.org/show_bug.cgi?id=181186 Reviewed by Alex Christensen. * WebKitTestRunner/gtk/TestControllerGtk.cpp: (WTR::TestController::platformRunUntil): 2018-01-02 Michael Catanzaro REGRESSION(r223253): Broke ResourceLoadStatistics layout tests for non-Cocoa ports https://bugs.webkit.org/show_bug.cgi?id=181231 Reviewed by Alex Christensen. Implement TestController APIs needed by ResourceLoadStatistics tests. * WebKitTestRunner/TestController.cpp: (WTR::TestController::isStatisticsRegisteredAsSubFrameUnder): (WTR::TestController::isStatisticsRegisteredAsRedirectingTo): 2018-01-02 Tim Horton Disable WKAttachmentTests if UIPasteboard.itemProviders is not available https://bugs.webkit.org/show_bug.cgi?id=181219 Reviewed by Wenson Hsieh. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: 2018-01-02 Jiewen Tan Add a WebAuthentication runtime feature flag https://bugs.webkit.org/show_bug.cgi?id=181220 Reviewed by Brent Fulgham. Renames the CredentialManagement runtime feature flag into WebAuthentication. * DumpRenderTree/TestOptions.h: * DumpRenderTree/TestOptions.mm: (TestOptions::TestOptions): * DumpRenderTree/mac/DumpRenderTree.mm: (enableExperimentalFeatures): (setWebPreferencesForTestOptions): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): (WTR::updateTestOptionsFromTestHeader): * WebKitTestRunner/TestOptions.h: (WTR::TestOptions::hasSameInitializationOptions const): 2018-01-02 Wenson Hsieh [Attachment Support] Don't Blob-convert images and attachments with https:, http: or data: urls https://bugs.webkit.org/show_bug.cgi?id=181143 Reviewed by Tim Horton. Add a new API test to ensure that a copied image with a data URL does not get pasted as an attachment when attachment elements are enabled. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): 2018-01-02 Jiewen Tan Update Credential Management API for WebAuthentication https://bugs.webkit.org/show_bug.cgi?id=181082 Reviewed by Brent Fulgham. Enable Credential Management API for testing. * DumpRenderTree/TestOptions.h: * WebKitTestRunner/TestOptions.h: 2018-01-02 Michael Catanzaro [GTK] Test /webkit2/WebKitWebExtension/form-controls-associated-signal is flaky https://bugs.webkit.org/show_bug.cgi?id=168194 Reviewed by Carlos Garcia Campos. Fix an assertion and unskip the test. The order that form controls are associated is not guaranteed. * Scripts/run-gtk-tests: (GtkTestRunner): * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp: (didAssociateFormControlsCallback): 2018-01-02 Alex Christensen Use new WebsiteDataStore passed in through decidePolicyForNavigation SPI https://bugs.webkit.org/show_bug.cgi?id=180897 Reviewed by Brent Fulgham. Test two forms of storage to be sure we are using a different WebsiteDataStore: cookies and sessionStorage. * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm: (-[WebsitePoliciesWebsiteDataStoreDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]): (-[WebsitePoliciesWebsiteDataStoreDelegate webView:startURLSchemeTask:]): (-[WebsitePoliciesWebsiteDataStoreDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]): (websiteDataStoreTestWebView): (TEST): == Rolled over to ChangeLog-2018-01-01 ==