REGRESSION: API test failure: WKWebView.LocalStorageClear
[WebKit-https.git] / Tools / ChangeLog
1 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
2
3         REGRESSION: API test failure: WKWebView.LocalStorageClear
4         https://bugs.webkit.org/show_bug.cgi?id=166032
5         <rdar://problem/29758423>
6
7         Reviewed by Simon Fraser.
8
9         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
10         to ensure that the view is destroyed before the callback fires.
11
12         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
13         (TEST):
14
15 2016-12-21  Saam Barati  <sbarati@apple.com>
16
17         WebAssembly: Import spec tests
18         https://bugs.webkit.org/show_bug.cgi?id=166395
19
20         Rubber stamped by Keith Miller.
21
22         * Scripts/run-jsc-stress-tests:
23
24 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
25
26         REGRESSION: API test failure: _WKDownload.OriginatingWebView
27         https://bugs.webkit.org/show_bug.cgi?id=166033
28         <rdar://problem/29758428>
29
30         Reviewed by Simon Fraser.
31
32         Add an @autoreleasepool around the code that allocates the WKWebView, 
33         so that it can be destroyed by removing the last reference in _downloadDidStart.
34
35         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
36         (TEST):
37
38 2016-12-21  Daniel Bates  <dabates@apple.com>
39
40         WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
41         https://bugs.webkit.org/show_bug.cgi?id=166356
42
43         Add comment in TestRunner::setCanOpenWindows() to elaborate further on its purpose
44         as a means to allow a test to explicit allow an embedding client to open a new windows
45         such that the default behavior is for the embedding client to forbid such an action.
46         The test plugins/get-url-with-blank-target.html assumes this default behavior though
47         it is currently skipped on WebKit2 because questions were raised in the patch for
48         <https://bugs.webkit.org/show_bug.cgi?id=43389> about its correctness and usefulness.
49         We will need to implement TestRunner::setCanOpenWindows() should we decide to unskip
50         this test.
51
52         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
53         (WTR::TestRunner::setCanOpenWindows):
54
55 2016-12-20  Simon Fraser  <simon.fraser@apple.com>
56
57         REGRESSION: API test failure: WKWebView.EvaluateJavaScriptBlockCrash
58         https://bugs.webkit.org/show_bug.cgi?id=166031
59
60         Reviewed by Tim Horton.
61         
62         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
63         to ensure that the view is destroyed before the callback fires.
64
65         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm:
66
67 2016-12-20  Megan Gardner  <megan_gardner@apple.com>
68
69         Throw Exception when test doesn't clean up HID Events properly
70         https://bugs.webkit.org/show_bug.cgi?id=166271
71
72         Reviewed by Simon Fraser.
73
74         Add in a check when UIScriptController is deleted to make sure that the HID event
75         callback dictionary is empty. If it is not, and a HID event is hit, this will cause
76         the program to crash without any good information. Crashes are race-y, and will still
77         happen with malformed test, but the information will be much more helpful. 
78
79         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
80         (WTR::UIScriptController::checkForClean):
81         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
82         (UIScriptContext::~UIScriptContext):
83         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
84         (WTR::UIScriptController::checkForClean):
85         * TestRunnerShared/UIScriptContext/UIScriptController.h:
86         * WebKitTestRunner/ios/HIDEventGenerator.h:
87         * WebKitTestRunner/ios/HIDEventGenerator.mm:
88         (-[HIDEventGenerator checkHIDCallbacksClear]):
89         * WebKitTestRunner/ios/TestControllerIOS.mm:
90         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
91         (WTR::UIScriptController::checkForClean):
92
93 2016-12-20  Andy Estes  <aestes@apple.com>
94
95         [Cocoa] REGRESSION (r209558): Calling decisionHandler multiple times in webView:decidePolicyForNavigationAction:decisionHandler: leads to a crash
96         https://bugs.webkit.org/show_bug.cgi?id=165992
97
98         Reviewed by Brady Eidson.
99
100         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
101         * TestWebKitAPI/Tests/WebKit2Cocoa/DuplicateCompletionHandlerCalls.mm: Added.
102         (expectException):
103         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
104         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
105         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
106         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:]):
107         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:]):
108         (-[DuplicateCompletionHandlerCallsDelegate _webView:decideDatabaseQuotaForSecurityOrigin:currentQuota:currentOriginUsage:currentDatabaseUsage:expectedUsage:decisionHandler:]):
109         (-[DuplicateCompletionHandlerCallsDelegate _webView:willSubmitFormValues:userObject:submissionHandler:]):
110         (TEST):
111         * TestWebKitAPI/Tests/WebKit2Cocoa/duplicate-completion-handler-calls.html: Added.
112
113 2016-12-20  Dean Jackson  <dino@apple.com>
114
115         Remove INDIE_UI
116         https://bugs.webkit.org/show_bug.cgi?id=165881
117         <rdar://problem/29672532>
118
119         Reviewed by Simon Fraser.
120
121         The Indie UI work has been discontinued.
122
123         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
124
125 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
126
127         [ES6] Enable ES6 Modules
128         https://bugs.webkit.org/show_bug.cgi?id=165849
129
130         Reviewed by Geoffrey Garen.
131
132         * DumpRenderTree/mac/DumpRenderTree.mm:
133         (resetWebPreferencesToConsistentValues):
134         * DumpRenderTree/win/DumpRenderTree.cpp:
135         (resetWebPreferencesToConsistentValues):
136         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
137         (WTR::InjectedBundle::beginTesting):
138         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
139         (WTR::TestRunner::setES6ModulesEnabled): Deleted.
140         * WebKitTestRunner/InjectedBundle/TestRunner.h:
141
142 2016-12-19  Ryan Haddad  <ryanhaddad@apple.com>
143
144         Repurpose bots and clean up dashboard.
145         https://bugs.webkit.org/show_bug.cgi?id=166045
146
147         Reviewed by Lucas Forschler.
148
149         * BuildSlaveSupport/build.webkit.org-config/config.json:
150         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
151         (BubbleQueueServer):
152         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
153         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
154         (WebKitBuildbot):
155         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
156         (table.queue-grid tr.platform.mac-os-x-yosemite img.logo): Deleted.
157
158 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
159
160         [CMake] TestWebKitAPIBase links to itself
161         https://bugs.webkit.org/show_bug.cgi?id=165985
162
163         Reviewed by Alex Christensen.
164
165         Fix CMake warning about a target linking to itself, which makes no sense.
166
167         * TestWebKitAPI/CMakeLists.txt:
168
169 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
170
171         [GTK] GtkDoc build should be quieter
172         https://bugs.webkit.org/show_bug.cgi?id=165994
173
174         Reviewed by Carlos Garcia Campos.
175
176         Make it not print by default.
177
178         * gtk/generate-gtkdoc:
179         (get_generator_for_config):
180         (generate_doc):
181         * gtk/gtkdoc.py:
182         (GTKDoc._run_command):
183         (GTKDoc._copy_doc_files_to_output_dir):
184
185 2016-12-18  Simon Fraser  <simon.fraser@apple.com>
186
187         Expose a way for MiniBrowser to simulate header and footer banners
188         https://bugs.webkit.org/show_bug.cgi?id=166005
189
190         Reviewed by Wenson Hsieh.
191         
192         Add a MiniBrowser menu item and setting to toggle adding space for header and footer
193         banners. This only works in WebKit2.
194         
195         We need to reset these on each navigation, since newly created FrameViews
196         don't re-fetch the header and footer height stored on Page.
197         
198         Also fix the signature of webView:didFinishNavigation: to follow API changes,
199         as well as fixing webViewWebContentProcessDidTerminate:
200
201         * MiniBrowser/mac/SettingsController.h:
202         * MiniBrowser/mac/SettingsController.m:
203         (-[SettingsController _populateMenu]):
204         (-[SettingsController validateMenuItem:]):
205         (-[SettingsController toggleReserveSpaceForBanners:]):
206         (-[SettingsController isSpaceReservedForBanners]):
207         * MiniBrowser/mac/WK2BrowserWindowController.m:
208         (-[WK2BrowserWindowController didChangeSettings]):
209         (-[WK2BrowserWindowController webView:didFinishNavigation:]):
210         (-[WK2BrowserWindowController webViewWebContentProcessDidTerminate:]):
211         (-[WK2BrowserWindowController webView:didFinishLoadingNavigation:]): Deleted.
212         (-[WK2BrowserWindowController _webViewWebProcessDidCrash:]): Deleted.
213
214 2016-12-17  Simon Fraser  <simon.fraser@apple.com>
215
216         Fix iOS test results after r209967.
217         
218         Subtracting out the status bar height was erroneously happening for all tests,
219         not just for flexible viewport tests.
220         
221         Fix by plumbing WebViewSizingMode through resizeTo() and setWindowFrame().
222
223         * WebKitTestRunner/PlatformWebView.h:
224         * WebKitTestRunner/TestController.cpp:
225         (WTR::TestController::resetStateToConsistentValues):
226         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
227         (WTR::PlatformWebView::resizeTo):
228         (WTR::PlatformWebView::setWindowFrame):
229         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
230         (WTR::PlatformWebView::resizeTo):
231         (WTR::PlatformWebView::setWindowFrame):
232         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
233         (WTR::PlatformWebView::resizeTo):
234         (WTR::PlatformWebView::setWindowFrame):
235         * WebKitTestRunner/ios/TestControllerIOS.mm:
236         (WTR::TestController::platformConfigureViewForTest):
237         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
238         (WTR::PlatformWebView::resizeTo):
239         (WTR::PlatformWebView::setWindowFrame):
240
241 2016-12-17  Joonghun Park  <jh718.park@samsung.com>
242
243         [EFL] bump EFL version to 1.18.4
244         https://bugs.webkit.org/show_bug.cgi?id=166004
245
246         Reviewed by Gyuyoung Kim.
247
248         * efl/jhbuild.modules: Use efl-1.18.4 instead of 1.18.1.
249
250 2016-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
251
252         Visual viewports: bottom fixed elements disappear behind the keyboard
253         https://bugs.webkit.org/show_bug.cgi?id=165983
254         <rdar://problem/29409852>
255
256         Reviewed by Simon Fraser.
257
258         Add support for UIScriptController.inputViewBounds, which UI-side scripts may use to fetch the bounding rect of
259         the keyboard when it is up.
260
261         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
262         (WTR::UIScriptController::inputViewBounds):
263         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
264         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
265         (WTR::UIScriptController::inputViewBounds):
266         * TestRunnerShared/UIScriptContext/UIScriptController.h:
267         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
268         (WTR::viewRectForWindowRect):
269
270         Previously, we accounted for the status bar height by translating the entire web view down by the height of the
271         status bar. However, we did not shrink the height of the web view itself, which means that for tests which
272         involve scrolling past the end of the document, the bottom strip of the web view is out of bounds of the window.
273
274         (WTR::PlatformWebView::PlatformWebView):
275         (WTR::PlatformWebView::setWindowFrame):
276         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
277         (WTR::UIScriptController::inputViewBounds):
278
279 2016-12-16  Ryosuke Niwa  <rniwa@webkit.org>
280
281         Deleting a character converted from pinyin after an image causes a Safari crash
282         https://bugs.webkit.org/show_bug.cgi?id=165839
283         <rdar://problem/27951933>
284
285         Reviewed by Wenson Hsieh.
286
287         Add a WebKit API test to call attributedSubstringForProposedRange on a WKWebView
288         while the proposed range contains an image. This should not cause a WebProcess to crash
289         or send an invalid message to the UIProcess.
290
291         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
292         * TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html: Added.
293         * TestWebKitAPI/Tests/WebKit2/mac/AttributedSubstringForProposedRangeWithImage.mm: Added.
294         (TestWebKitAPI::didFinishLoadForFrame):
295         (TestWebKitAPI::processDidCrash):
296         (TestWebKitAPI::invalidMessageFunction):
297         (TestWebKitAPI::WebKit2.AttributedSubstringForProposedRangeWithImage):
298
299 2016-12-16  Wenson Hsieh  <wenson_hsieh@apple.com>
300
301         Visual viewports: carets and selection UI are incorrectly positioned when editing fixed elements
302         https://bugs.webkit.org/show_bug.cgi?id=165767
303         <rdar://problem/29602382>
304
305         Reviewed by Simon Fraser.
306
307         Introduces two new UIScriptController methods: doAfterWebPageIsInStableState and textSelectionCaretRect. See
308         WebKit2 ChangeLog for more details.
309
310         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
311         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
312         (WTR::UIScriptController::textSelectionCaretRect):
313         * DumpRenderTree/mac/UIScriptControllerMac.mm:
314         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
315         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
316         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
317         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
318         (WTR::UIScriptController::textSelectionCaretRect):
319         * TestRunnerShared/UIScriptContext/UIScriptController.h:
320         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
321         (-[TestRunnerWKWebView _setStableStateOverride:]):
322
323         Force the WKWebView to update its visible content rects when changing the stable state override.
324
325         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
326         (WTR::toNSDictionary):
327         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
328         (WTR::UIScriptController::selectionRangeViewRects):
329         (WTR::UIScriptController::textSelectionCaretRect):
330         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
331         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
332
333 2016-12-15  Brent Fulgham  <bfulgham@apple.com>
334
335         Arguments called in wrong order
336         https://bugs.webkit.org/show_bug.cgi?id=165923
337
338         Reviewed by Simon Fraser.
339
340         The 'audioDeviceUIDs' array is being passed to the argument that expects video devices,
341         and the 'videoDeviceUIDs' array is being passed to the audo device argument. Fix this.
342
343         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp:
344         (TestWebKitAPI::decidePolicyForUserMediaPermissionRequestCallBack): The
345         order of arguments to WKUserMediaPermissionRequestAllow are flipped.
346
347 2016-12-16  Hunseop Jeong  <hs85.jeong@samsung.com>
348
349         [EFL] Disable non-srcdir builds for failing libraries
350         https://bugs.webkit.org/show_bug.cgi?id=165896
351
352         Reviewed by Gyuyoung Kim.
353
354         * efl/jhbuild.modules: Set non srcdir builds to no
355
356 2016-12-15  Daniel Bates  <dabates@apple.com>
357
358         check-style should not complain about code in icu directories
359         https://bugs.webkit.org/show_bug.cgi?id=53929
360
361         Reviewed by Darin Adler.
362
363         Skip style checking of imported ICU headers to avoid a deluge of style issues
364         as they do not conform to the WebKit Code Style guideline. We want to preserve
365         the formatting of these headers so as to make it straightforward to merge
366         changes to them, if necessary.
367
368         * Scripts/webkitpy/style/checker.py:
369
370 2016-12-15  Alexey Proskuryakov  <ap@apple.com>
371
372         Move JSC testers from Yosemite to Sierra
373         https://bugs.webkit.org/show_bug.cgi?id=165925
374
375         Reviewed by Lucas Forschler.
376
377         * BuildSlaveSupport/build.webkit.org-config/config.json:
378         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
379         (WebKitBuildbot):
380
381 2016-12-15  Megan Gardner  <megan_gardner@apple.com>
382
383         Add coordinate space to event streams and streamline tests
384         https://bugs.webkit.org/show_bug.cgi?id=165119
385
386         Reviewed by Simon Fraser.
387
388         Update event streams to allow for both content and global coordinate space.
389         Update example script to more accurately show all the available options.
390
391         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
392         * WebKitTestRunner/ios/HIDEventGenerator.h:
393         * WebKitTestRunner/ios/HIDEventGenerator.mm:
394         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
395         (WTR::convertCoordinates):
396         (WTR::UIScriptController::sendEventStream):
397
398 2016-12-15  Claudio Saavedra  <csaavedra@igalia.com>
399
400         [GTK] Ensure gst* docs are not built with update-webkitgtk-libs
401         https://bugs.webkit.org/show_bug.cgi?id=165855
402
403         Reviewed by Philippe Normand.
404
405         GStreamer's autogen.sh enables gtk-doc always so we end up building
406         docs even if we disable them. Use the configure script instead, since
407         we build from packages and these include it already.
408
409         * gtk/jhbuild.modules: Use shipped configure instead of autogen.sh for
410         upstream gstreamer packages.
411
412 2016-12-15  Alex Christensen  <achristensen@webkit.org>
413
414         REGRESSION (r208902) Null pointer dereference in wkIsPublicSuffix
415         https://bugs.webkit.org/show_bug.cgi?id=165885
416         <rdar://problem/29476917>
417
418         Reviewed by Darin Adler.
419
420         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
421         (TestWebKitAPI::utf16String): Deleted.
422         * TestWebKitAPI/Tests/mac/PublicSuffix.mm:
423         (TestWebKitAPI::TEST_F):
424         * TestWebKitAPI/WTFStringUtilities.h:
425         (utf16String):
426         Moved from URLParser to share with other tests.
427
428 2016-12-14  Ryosuke Niwa  <rniwa@webkit.org>
429
430         iOS: An element with tabindex is not focusable unless there is no mouse event handler
431         https://bugs.webkit.org/show_bug.cgi?id=165843
432
433         Reviewed by Antti Koivisto.
434
435         Add testRunner.isWebKit2 which is always true in WebKitTestRunner.
436         Without this, it's really hard to reliably differentiate DumpRenderTree and WebKitTestRunner,
437         and DumpRenderTree's runUIScript would hit an assertion :(
438
439         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
440         * WebKitTestRunner/InjectedBundle/TestRunner.h:
441         (WTR::TestRunner::isWebKit2):
442
443 2016-12-14  Brady Eidson  <beidson@apple.com>
444
445         IndexedDB 2.0: Massively speedup IDBIndex.get().
446         https://bugs.webkit.org/show_bug.cgi?id=165802
447
448         Reviewed by Alex Christensen.
449
450         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
451         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.html: Added.
452         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm: Added.
453         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.blob: Added.
454         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.sqlite3: Added.
455
456 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
457
458         [GTK][EFL] Update the JHBuild version.
459         https://bugs.webkit.org/show_bug.cgi?id=165838
460
461         Reviewed by Michael Catanzaro.
462
463         * jhbuild/jhbuild-wrapper: This new version fixes a bug with the
464         usage of the JHBUILD_MIRROR feature with git repositories.
465
466 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
467
468         [GTK] Yasm is needed for building the JHBuild after r208940
469         https://bugs.webkit.org/show_bug.cgi?id=165837
470
471         Reviewed by Alejandro G. Castro.
472
473         * gtk/install-dependencies: Yasm is needed for building libvpx.
474
475 2016-12-14  Youenn Fablet  <youenn@apple.com>
476
477         Test infrastructure should allow to filter out text output before doing a comparison with the baseline
478         https://bugs.webkit.org/show_bug.cgi?id=161310
479
480         Reviewed by Ryosuke Niwa.
481
482         Adding --dump-jsconsolelog-in-stderr test option for DRT and WTR.
483         When set, WTR and DRT output JS console log in the stderr and not the test output.
484         This allows removing potentially flaky information while still being able to read it for investigation.
485
486         Updated webkitpy infrastructure to use this test option in case of DumpJSConsoleLogInStdErr modifier.
487
488         Changes are covered by updating a fetch test to output console log and set its option to --dump-jsconsolelog-in-stderr in TestExpectations.
489         This test should have this option when fetch API will start logging resource loader errors.
490
491         * DumpRenderTree/DumpRenderTree.h:
492         (TestCommand::TestCommand): Deleted.
493         * DumpRenderTree/DumpRenderTreeCommon.cpp:
494         (parseInputLine):
495         * DumpRenderTree/TestRunner.h:
496         (TestRunner::setDumpJSConsoleLogInStdErr):
497         (TestRunner::dumpJSConsoleLogInStdErr):
498         * DumpRenderTree/mac/DumpRenderTree.mm:
499         (runTest):
500         * DumpRenderTree/mac/UIDelegate.mm:
501         (-[UIDelegate webView:addMessageToConsole:withSource:]):
502         * DumpRenderTree/win/DumpRenderTree.cpp:
503         (runTest):
504         * DumpRenderTree/win/UIDelegate.cpp:
505         (UIDelegate::webViewAddMessageToConsole):
506         * Scripts/webkitpy/layout_tests/models/test_expectations.py:
507         (TestExpectationParser._tokenize_line):
508         * Scripts/webkitpy/port/driver.py:
509         (Driver._command_from_driver_input):
510         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
511         (WTR::InjectedBundle::didReceiveMessageToPage):
512         (WTR::InjectedBundle::dumpToStdErr):
513         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
514         (WTR::InjectedBundle::dumpJSConsoleLogInStdErr):
515         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
516         (WTR::InjectedBundlePage::willAddMessageToConsole):
517         * WebKitTestRunner/TestController.cpp:
518         (WTR::parseInputLine):
519         (WTR::TestController::runTest):
520         (WTR::TestCommand::TestCommand): Deleted.
521         * WebKitTestRunner/TestInvocation.cpp:
522         (WTR::TestInvocation::invoke):
523         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
524         * WebKitTestRunner/TestInvocation.h:
525         (WTR::TestInvocation::setDumpJSConsoleLogInStdErr):
526
527
528 2016-12-14  Enrique Ocaña González  <eocanha@igalia.com>
529
530         REGRESSION(r207879-207891): [GStreamer] Introduced many layout test failures and crashes, bots exiting early
531         https://bugs.webkit.org/show_bug.cgi?id=164022
532
533         Reviewed by Xabier Rodriguez-Calvar.
534
535         * Scripts/webkitperl/FeatureList.pm:
536           Re-enable MEDIA_SOURCE for the GTK+ port.
537
538 2016-12-13  Alex Christensen  <achristensen@webkit.org>
539
540         Fix CMake build.
541
542         * DumpRenderTree/PlatformMac.cmake:
543         Define NS_RETURNS_RETAINED as nothing for now.
544
545 2016-12-13  Jer Noble  <jer.noble@apple.com>
546
547         Fullscreen in WebKit2 does not restore topContentInset upon exiting; leaves top of page not visible
548         https://bugs.webkit.org/show_bug.cgi?id=165697
549
550         Reviewed by Tim Horton.
551
552         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
553         (TestWebKitAPI::TEST):
554
555 2016-12-13  Andy Estes  <aestes@apple.com>
556
557         [Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
558         https://bugs.webkit.org/show_bug.cgi?id=165785
559         <rdar://problem/26929398>
560
561         Reviewed by Darin Adler.
562
563         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
564         (-[BundleEditingDelegateRemoteObject shouldInsertText:replacingRange:givenAction:]): Added
565         expectations for the text, range, and action.
566         (TEST): Set the "EditingDelegateShouldInsertText" bundle parameter to NO so that the plug-in
567         will return NO in -_webProcessPlugInBrowserContextController:willInsertText:. Added a
568         plain-text string to the pasteboard, executed a paste action, and verified that the selected
569         text in the web view did not change.
570         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm:
571         (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]): Set
572         _editingDelegateShouldInsertText according to the "EditingDelegateShouldInsertText" bundle
573         parameter.
574         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:shouldInsertText:replacingRange:givenAction:]):
575         Added. Called -shouldInsertText:replacingRange:givenAction: on the remote object proxy
576         and returned the value of _editingDelegateShouldInsertText.
577         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Declared
578         -shouldInsertText:replacingRange:givenAction:.
579
580 2016-12-13  Chris Dumez  <cdumez@apple.com>
581
582         Unreviewed, rolling out r209544.
583
584         Looks like r209489 did not cause the performance regression
585         after all
586
587         Reverted changeset:
588
589         "Unreviewed, rolling out r209489."
590         https://bugs.webkit.org/show_bug.cgi?id=165550
591         http://trac.webkit.org/changeset/209544
592
593 2016-12-12  Sam Weinig  <sam@webkit.org>
594
595         [WebIDL] Remove use of Dictionary in ApplePaySession
596         https://bugs.webkit.org/show_bug.cgi?id=165787
597
598         Reviewed by Anders Carlsson.
599
600         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
601         (WTR::initializeWebViewConfiguration):
602         (WTR::TestController::platformCreateWebView):
603         Enable ApplePay for the tests (where supported).
604
605 2016-12-13  Eric Carlson  <eric.carlson@apple.com>
606
607         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
608         https://bugs.webkit.org/show_bug.cgi?id=165251
609
610         Reviewed by Youenn Fablet.
611
612         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp:
613         (TestWebKitAPI::TEST): Enable MediaStream, create web view from the page group upon which
614         the preferences have been set.
615
616 2016-12-08  Antti Koivisto  <antti@apple.com>
617
618         Enable network cache speculative revalidation in MiniBrowser
619         https://bugs.webkit.org/show_bug.cgi?id=165616
620
621         Reviewed by Darin Adler.
622
623         Match Safari. Also add a menu item to disable it.
624
625         * MiniBrowser/mac/AppDelegate.m:
626         (defaultConfiguration):
627         * MiniBrowser/mac/SettingsController.h:
628         * MiniBrowser/mac/SettingsController.m:
629         (-[SettingsController _populateMenu]):
630         (-[SettingsController validateMenuItem:]):
631         (-[SettingsController networkCacheSpeculativeRevalidationDisabled]):
632         (-[SettingsController toggleNetworkCacheSpeculativeRevalidationDisabled:]):
633
634 2016-12-12  Alexey Proskuryakov  <ap@apple.com>
635
636         ChangeLogs become readonly after resolving a conflict
637         https://bugs.webkit.org/show_bug.cgi?id=165440
638         rdar://problem/29491002
639
640         Reviewed by Darin Adler.
641
642         * Scripts/resolve-ChangeLogs: (resolveChangeLog): Set correct permissions when
643         moving the file.
644
645 2016-12-12  Filip Pizlo  <fpizlo@apple.com>
646
647         Re-enable collectContinuously since it doesn't crash anymore
648
649         Rubber stamped by Michael Saboff.
650
651         * Scripts/run-jsc-stress-tests:
652
653 2016-12-11  Konstantin Tokarev  <annulen@yandex.ru>
654
655         Unreviewed attempt to fix EFL and Mac/cmake builds after r209665.
656         https://bugs.webkit.org/show_bug.cgi?id=165686
657
658         * DumpRenderTree/CMakeLists.txt: WebKit2 should precede other target
659         so that right config.h comes first in include path.
660
661 2016-12-11  Dave Hyatt  <hyatt@apple.com>
662
663         [CSS Parser] Make sure content extensions initialize AtomicString
664         https://bugs.webkit.org/show_bug.cgi?id=165737
665
666         Reviewed by Darin Adler.
667
668         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
669         (TestWebKitAPI::makeBackend):
670
671 2016-12-08  Dave Hyatt  <hyatt@apple.com>
672
673         [CSS Parser] Remove the old CSS Parser
674         https://bugs.webkit.org/show_bug.cgi?id=165645
675
676         Reviewed by Daniel Bates.
677
678         * TestWebKitAPI/Tests/WebCore/CSSParser.cpp:
679         (TestWebKitAPI::TEST):
680
681 2016-12-10  Konstantin Tokarev  <annulen@yandex.ru>
682
683         [cmake] Include WTF, JSC, and WebCore headers automatically to targers using them
684         https://bugs.webkit.org/show_bug.cgi?id=165686
685
686         Reviewed by Michael Catanzaro.
687
688         This change reduces duplication of include path lists between modules,
689         and reduces future need for fixes like r209605 (broken build because of
690         WebCore header suddenly becoming used in WebKit2).
691
692         * DumpRenderTree/CMakeLists.txt:
693         * DumpRenderTree/PlatformMac.cmake:
694         * ImageDiff/CMakeLists.txt:
695         * MiniBrowser/gtk/CMakeLists.txt:
696         * MiniBrowser/mac/CMakeLists.txt:
697         * MiniBrowser/win/CMakeLists.txt:
698         * TestWebKitAPI/CMakeLists.txt:
699         * TestWebKitAPI/PlatformEfl.cmake:
700         * TestWebKitAPI/PlatformJSCOnly.cmake:
701         * TestWebKitAPI/PlatformMac.cmake:
702         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
703         * WebKitTestRunner/CMakeLists.txt:
704         * WebKitTestRunner/PlatformGTK.cmake:
705         * WebKitTestRunner/PlatformMac.cmake:
706
707 2016-12-09  Csaba Osztrogonác  <ossy@webkit.org>
708
709         Unreviewed buildfix after r209630.
710
711         * Scripts/build-jsc: Remove building the non-existing testWASM.
712
713 2016-12-09  Eric Carlson  <eric.carlson@apple.com>
714
715         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
716         https://bugs.webkit.org/show_bug.cgi?id=165251
717
718         Reviewed by Dean Jackson.
719
720         Based on a patch by Dr Alex Gouaillard <agouaillard@gmail.com>
721
722         * DumpRenderTree/mac/DumpRenderTree.mm:
723         (resetWebPreferencesToConsistentValues): Enable MediaStream and PeerConnection.
724
725         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
726         (WTR::InjectedBundle::beginTesting): Ditto.
727
728         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
729         (WTR::TestRunner::setMediaStreamEnabled): New.
730         (WTR::TestRunner::setPeerConnectionEnabled): New.
731         * WebKitTestRunner/InjectedBundle/TestRunner.h:
732
733 2016-12-09  Brady Eidson  <beidson@apple.com> 
734  
735         Re-landing:
736         Add _WKIconLoadingDelegate SPI. 
737         https://bugs.webkit.org/show_bug.cgi?id=164894 
738  
739         Reviewed by Alex Christensen. 
740         
741         Add MiniBrowser support for this new SPI, configurable with a setting. 
742  
743         * MiniBrowser/mac/SettingsController.h: 
744         * MiniBrowser/mac/SettingsController.m: 
745         (-[SettingsController _populateMenu]): 
746         (-[SettingsController validateMenuItem:]): 
747         (-[SettingsController loadsAllSiteIcons]): 
748         (-[SettingsController toggleLoadsAllSiteIcons:]): 
749         * MiniBrowser/mac/WK2BrowserWindowController.m: 
750         (-[WK2BrowserWindowController awakeFromNib]): 
751         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): 
752
753 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
754
755         Fix the 32-bit build.
756
757         Unreviewed build fix.
758
759         * MiniBrowser/mac/SettingsController.h:
760
761 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
762
763         Fedora also needs a PHP7 config file alternative
764         https://bugs.webkit.org/show_bug.cgi?id=165606
765
766         Reviewed by Michael Catanzaro.
767
768         * Scripts/webkitpy/port/base.py:
769         (Port._is_fedora_php_version_7): check for the php7 library.
770         (Port._fedora_php_version): get the appropriate filename for Fedora.
771         (Port._apache_config_file_name_for_platform):
772
773 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
774
775         Complete the revert of r208865.
776         https://bugs.webkit.org/show_bug.cgi?id=164894
777
778         Unreviewed build fix.
779
780         * MiniBrowser/mac/SettingsController.h:
781         * MiniBrowser/mac/SettingsController.m:
782         (-[SettingsController _populateMenu]):
783         (-[SettingsController validateMenuItem:]):
784         (-[SettingsController loadsAllSiteIcons]): Deleted.
785         (-[SettingsController toggleLoadsAllSiteIcons:]): Deleted.
786         * MiniBrowser/mac/WK2BrowserWindowController.m:
787         (-[WK2BrowserWindowController awakeFromNib]):
788         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): Deleted.
789
790 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
791
792         [GTK] Force GDK backend to x11 when running with XvfbDriver
793         https://bugs.webkit.org/show_bug.cgi?id=165612
794
795         Reviewed by Michael Catanzaro.
796
797         When the developer is running a Wayland session, GDK may get confused
798         and try to use its Wayland backend (which is higher priority) instead.
799         This ensures it will use the appropriate backend when running under
800         Xvfb.
801
802         * Scripts/webkitpy/port/gtk.py:
803         (GtkPort.setup_environ_for_server): when running with XvfbDriver,
804         force GDK_BACKEND to x11.
805
806 2016-12-08  Keith Miller  <keith_miller@apple.com>
807
808         Add 64-bit signed LEB decode method
809         https://bugs.webkit.org/show_bug.cgi?id=165630
810
811         Reviewed by Ryosuke Niwa.
812
813         Add tests for LEB int64 and uint64 decode since I guess
814         I forgot to add tests before.
815
816         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp:
817         (TestWebKitAPI::testUInt32LEBDecode):
818         (TestWebKitAPI::TEST):
819         (TestWebKitAPI::testUInt64LEBDecode):
820         (TestWebKitAPI::testInt32LEBDecode):
821         (TestWebKitAPI::testInt64LEBDecode):
822         (TestWebKitAPI::testUnsignedLEBDecode): Deleted.
823
824 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
825
826         Make it easy to enable --force-collectContinuously
827         https://bugs.webkit.org/show_bug.cgi?id=165638
828
829         Reviewed by Keith Miller.
830
831         * Scripts/run-javascriptcore-tests:
832         (runJSCStressTests):
833
834 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
835
836         Disable the collectContinuously mode until I investigate failures.
837
838         Rubber stamped by Keith Miller.
839         
840         I'm seeing collectContinuously crashes on some platforms. Disabling that testing mode
841         while I investigate.
842
843         * Scripts/run-jsc-stress-tests:
844
845 2016-12-08  Alex Christensen  <achristensen@webkit.org>
846
847         REGRESSION (URL parser): Relative URLs aren’t resolved correctly when the base URL is an applewebdata: URL
848         https://bugs.webkit.org/show_bug.cgi?id=165621
849
850         Reviewed by Dan Bernstein.
851
852         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
853         (TestWebKitAPI::TEST_F):
854
855 2016-12-06  Filip Pizlo  <fpizlo@apple.com>
856
857         Concurrent GC should be stable enough to land enabled
858         https://bugs.webkit.org/show_bug.cgi?id=164990
859
860         Reviewed by Geoffrey Garen.
861         
862         Add a new mode that runs GC continuously. Also made eager modes run GC continuously.
863         
864         It's clear that this works just fine in release, but I'm still trying to figure out if it's
865         safe for debug. It might be too slow for debug.
866
867         * Scripts/run-jsc-stress-tests:
868
869 2016-12-08  Alex Christensen  <achristensen@webkit.org>
870
871         Add SPI for sending WebsiteSettings to WebProcess during navigation
872         https://bugs.webkit.org/show_bug.cgi?id=165517
873         <rdar://29341068>
874
875         Reviewed by Anders Carlsson.
876
877         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
878         * TestWebKitAPI/Tests/WebKit2/contentBlockerCheck.html: Added.
879         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm: Added.
880         (-[WebsitePoliciesDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
881         (-[WebsitePoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
882         (-[WebsitePoliciesDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
883         (TEST):
884
885 2016-12-08  Chris Dumez  <cdumez@apple.com>
886
887         Unreviewed, rolling out r209489.
888
889         Likely caused large regressions on JetStream, Sunspider and
890         Speedometer
891
892         Reverted changeset:
893
894         "Add system trace points for JavaScript VM entry/exit"
895         https://bugs.webkit.org/show_bug.cgi?id=165550
896         http://trac.webkit.org/changeset/209489
897
898 2016-12-08  Keith Miller  <keith_miller@apple.com>
899
900         Move LEB tests to API tests
901         https://bugs.webkit.org/show_bug.cgi?id=165586
902
903         Reviewed by Saam Barati.
904
905         Move the tests from testWasm.cpp and make them functions
906         rather than macros.
907
908         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
909         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp: Added.
910         (TestWebKitAPI::testUnsignedLEBDecode):
911         (TestWebKitAPI::TEST):
912         (TestWebKitAPI::testInt32LEBDecode):
913
914 2016-12-08  Chris Dumez  <cdumez@apple.com>
915
916         Support running the layout tests offline
917         https://bugs.webkit.org/show_bug.cgi?id=165534
918
919         Reviewed by Ryosuke Niwa.
920
921         * Scripts/webkitpy/common/system/autoinstall.py:
922         (AutoInstaller._download_to_stream):
923         getcode() returns None for file URLs so handle this.
924
925         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
926         (WebPlatformTestServer._install_modules):
927         Deal with local path in the json file and resolve them into file URLs
928         before using AutoInstall.
929
930 2016-12-08  Alex Christensen  <achristensen@webkit.org>
931
932         Fix CMake build.
933
934         * DumpRenderTree/PlatformMac.cmake:
935         Remove CheckedMalloc.cpp after r209516.
936
937 2016-12-07  Mark Lam  <mark.lam@apple.com>
938
939         DumpRenderTree should stop using CheckedMalloc.
940         https://bugs.webkit.org/show_bug.cgi?id=165563
941         <rdar://problem/28945820>
942
943         Reviewed by Geoffrey Garen.
944
945         1. WebKitTestRunner does not have equivalent behavior to that which is implemented
946            in CheckedMalloc.
947         2. bmalloc does not honor the settings of CheckedMalloc.
948
949         The only time CheckedMalloc comes into play is when DRT uses gmalloc or system
950         malloc.  As a result, DRT exhibits different behavior from the normal way we run
951         our tests.  We should obsolete CheckedMalloc and make DRT behave consistently
952         with WKTR.
953
954         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
955         * DumpRenderTree/mac/CheckedMalloc.cpp: Removed.
956         * DumpRenderTree/mac/CheckedMalloc.h: Removed.
957         * DumpRenderTree/mac/DumpRenderTree.mm:
958         (prepareConsistentTestingEnvironment):
959
960 2016-12-07  Dean Jackson  <dino@apple.com>
961
962         Remove runtime toggle for pointer-lock
963         https://bugs.webkit.org/show_bug.cgi?id=165577
964         <rdar://problems/29566996>
965
966         Reviewed by Jon Lee.
967
968         Remove any runtime calls to check if pointer-lock is enabled. It's
969         either compiled in or out.
970
971         * DumpRenderTree/mac/DumpRenderTree.mm:
972         (resetWebPreferencesToConsistentValues):
973         * WebKitTestRunner/TestController.cpp:
974         (WTR::TestController::resetPreferencesToConsistentValues):
975
976 2016-12-07  Eric Carlson  <eric.carlson@apple.com>
977
978         [MediaStream][Mac] Revoke sandbox extensions when capture ends
979         https://bugs.webkit.org/show_bug.cgi?id=165476
980
981         Reviewed by Brady Eidson.
982         
983         Add a test which loads a page that calls navigator.mediaDevices.enumerateDevices, kills the
984         page, and loads the same page again to ensure that the WK2 UserMediaPermissionRequestManagerProxy
985         is reset and recreated when a web page exits and is reloaded.
986
987         * TestWebKitAPI/PlatformGTK.cmake:
988         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
989         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp: Added.
990         (TestWebKitAPI::checkUserMediaPermissionCallback):
991         (TestWebKitAPI::TEST):
992         * TestWebKitAPI/Tests/WebKit2/enumerateMediaDevices.html: Added.
993
994 2016-12-07  Jeremy Jones  <jeremyj@apple.com>
995
996         One esc to exit fullscreen and pointer lock
997         https://bugs.webkit.org/show_bug.cgi?id=165416
998         rdar://problem/29430711
999
1000         Reviewed by Jer Noble.
1001
1002         Implement WKPageUIClientV8 for pointer lock support.
1003         Add "escape" key support in EventSenderProxy.
1004
1005         * WebKitTestRunner/TestController.cpp:
1006         (WTR::requestPointerLock):
1007         (WTR::TestController::createOtherPage):
1008         (WTR::TestController::createWebViewWithOptions):
1009         * WebKitTestRunner/mac/EventSenderProxy.mm:
1010         (WTR::EventSenderProxy::keyDown):
1011
1012 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1013
1014         Add system trace points for JavaScript VM entry/exit
1015         https://bugs.webkit.org/show_bug.cgi?id=165550
1016
1017         Reviewed by Tim Horton.
1018
1019         Add trace points for entry/exit into/out of the JS VM.
1020
1021         * Tracing/SystemTracePoints.plist:
1022
1023 2016-12-07  ChangSeok Oh  <changseok@webkit.org>
1024
1025         [GTK] Cannot build GTK+ with CUPS 2.* versions
1026         https://bugs.webkit.org/show_bug.cgi?id=163591
1027
1028         Reviewed by Michael Catanzaro.
1029
1030         GTK+ build has failed on the system which CUPS 2.x is installed in. GTK+ 3.16.4
1031         does not assume to use the recent CUPS thus it fails to detect the CUPS in configuration.
1032         GTK+ upstream fixed this issue but it is not easy to apply the original patch to our
1033         old gtk+ since it requires not only bumping up glib accordingly and its consequence
1034         causes many printing test failures. So, I propose to fix the configuration issue by
1035         applying the change to the configure file directly. By doing this, we don't need to
1036         upgrade glib and worry about any test failures as a consequence of the upgraded glib.
1037
1038         * gtk/jhbuild.modules:
1039         * gtk/patches/gtk+-configure-fix-detecting-CUPS-2.x.patch: Added.
1040
1041 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1042
1043         Fix use of enum in a WK2 C SPI header.
1044         rdar://problem/28725583
1045
1046         Followup to correctly prefix the enum values.
1047
1048         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1049         (WTR::InjectedBundlePage::prepare):
1050
1051 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1052
1053         Fix use of enum in a WK2 C SPI header.
1054         rdar://problem/28725583
1055
1056         Reviewed by Dan Bernstein.
1057
1058         Use correct enum style for a C SPI header and fix the callers.
1059
1060         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1061         (WTR::InjectedBundlePage::prepare):
1062
1063 2016-12-07  Wenson Hsieh  <wenson_hsieh@apple.com>
1064
1065         Add a new project for recording and playing back editing commands in editable web content
1066         https://bugs.webkit.org/show_bug.cgi?id=165114
1067         <rdar://problem/29408135>
1068
1069         Reviewed by Beth Dakin.
1070
1071         Adds a new Xcode project containing work towards rewinding and playing back editing commands. This work is
1072         wrapped in an Xcode project to take advantage of the XCTest framework. To manually test recording, open the
1073         capture test harness, edit the contenteditable body, and then hit cmd-S. This downloads a .json file which may
1074         then be dragged into the playback test harness.
1075
1076         Also adds 3 new unit tests in EditingHistoryTests/RewindAndPlaybackTests.m. These tests carry out the following
1077         steps:
1078
1079         1. Load the capture harness and perform test-specific editing on the web view.
1080         2. Let originalState be a dump of the DOM at this point in time.
1081         3. Extract the JSON-serialized editing history data and load the playback harness with this data.
1082         4. Rewind all editing to the beginning.
1083         5. Playback all editing to the end.
1084         6. Dump the state of the DOM. This should be identical to originalState.
1085
1086         * EditingHistory/EditingHistory.xcodeproj/project.pbxproj: Added.
1087         * EditingHistory/EditingHistory/Info.plist: Added.
1088         * EditingHistory/EditingHistory/Resources/CaptureHarness.html: Added.
1089         * EditingHistory/EditingHistory/Resources/DOMTestingUtil.js: Added.
1090         * EditingHistory/EditingHistory/Resources/PlaybackHarness.html: Added.
1091         * EditingHistory/EditingHistory/TestRunner.h: Added.
1092         * EditingHistory/EditingHistory/TestRunner.m: Added.
1093         (injectedMessageEventHandlerScript):
1094         (-[TestRunner init]):
1095         (-[TestRunner deleteBackwards:]):
1096         (-[TestRunner typeString:]):
1097         (-[TestRunner bodyElementSubtree]):
1098         (-[TestRunner bodyTextContent]):
1099         (-[TestRunner editingHistoryJSON]):
1100         (-[TestRunner loadPlaybackTestHarnessWithJSON:]):
1101         (-[TestRunner numberOfUpdates]):
1102         (-[TestRunner jumpToUpdateIndex:]):
1103         (-[TestRunner expectEvents:afterPerforming:]):
1104         (-[TestRunner loadCaptureTestHarness]):
1105         (-[TestRunner setTextObfuscationEnabled:]):
1106         (-[TestRunner isDoneWaitingForPendingEvents]):
1107         (-[TestRunner userContentController:didReceiveScriptMessage:]):
1108
1109         The TestRunner provides utilities that a unit test should use to drive the test forward (e.g. loading harnesses)
1110         or inspect the state of the loaded page (e.g. extracting JSON editing history data from the capture harness).
1111
1112         * EditingHistory/EditingHistory/TestUtil.h: Added.
1113         * EditingHistory/EditingHistory/TestUtil.m: Added.
1114         (waitUntilWithTimeout):
1115         (waitUntil):
1116
1117         Provides utilities for running tests. For now, this is just spinning the runloop on a given condition.
1118
1119         * EditingHistory/EditingHistory/WKWebViewAdditions.h: Added.
1120         * EditingHistory/EditingHistory/WKWebViewAdditions.m: Added.
1121         (-[WKWebView loadPageFromBundleNamed:]):
1122         (-[WKWebView typeCharacter:]):
1123         (-[WKWebView keyPressWithCharacters:keyCode:]):
1124         (-[WKWebView stringByEvaluatingJavaScriptFromString:]):
1125
1126         Provides utilities for simulating interaction in a web view.
1127
1128         * EditingHistory/EditingHistory/main.m: Added.
1129         (main):
1130         * EditingHistory/EditingHistoryTests/Info.plist: Added.
1131         * EditingHistory/EditingHistoryTests/RewindAndPlaybackTests.m: Added.
1132         (-[RewindAndPlaybackTests setUp]):
1133         (-[RewindAndPlaybackTests tearDown]):
1134         (-[RewindAndPlaybackTests testTypingSingleLineOfText]):
1135         (-[RewindAndPlaybackTests testTypingMultipleLinesOfText]):
1136         (-[RewindAndPlaybackTests testTypingAndDeletingText]):
1137         (-[RewindAndPlaybackTests rewindAndPlaybackEditingInPlaybackTestHarness]):
1138         (-[RewindAndPlaybackTests originalBodySubtree:isEqualToFinalSubtree:]):
1139
1140 2016-12-07  Philippe Normand  <pnormand@igalia.com>
1141
1142         [GTK][jhbuild] missing dependency on libvpx in gst-plugins-good
1143         https://bugs.webkit.org/show_bug.cgi?id=165525
1144
1145         Reviewed by Carlos Garcia Campos.
1146
1147         * gtk/jhbuild.modules: gst-plugins-good should depend on the
1148         libvpx package built within jhbuild.
1149
1150 2016-12-07  Philippe Normand  <pnormand@igalia.com>
1151
1152         [GTK][jhbuild] gst-plugins-bad fails to build with OpenSSL 1.1.0
1153         https://bugs.webkit.org/show_bug.cgi?id=165520
1154
1155         Reviewed by Carlos Garcia Campos.
1156
1157         * gtk/jhbuild.modules: Added missing dependency on openh264 in
1158         gst-plugins-bad, along with 2 upstream patches fixing the build
1159         against OpenSSL 1.1.0.
1160         * gtk/patches/gst-plugins-bad-0001-dtls-port-to-OpenSSL-1.1.0.patch: Added.
1161         * gtk/patches/gst-plugins-bad-0002-dtlscertificate-Fix-error-checking-in-RSA_generate_k.patch: Added.
1162
1163 2016-12-06  Alexey Proskuryakov  <ap@apple.com>
1164
1165         Correct SDKROOT values in xcconfig files
1166         https://bugs.webkit.org/show_bug.cgi?id=165487
1167         rdar://problem/29539209
1168
1169         Reviewed by Dan Bernstein.
1170
1171         Fix suggested by Dan Bernstein.
1172
1173         * ContentExtensionTester/Configurations/DebugRelease.xcconfig:
1174         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1175         * MiniBrowser/Configurations/DebugRelease.xcconfig:
1176         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
1177         * WebEditingTester/Configurations/DebugRelease.xcconfig:
1178         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1179
1180 2016-12-06  Daniel Bates  <dabates@apple.com>
1181
1182         WebKitTestRunner: Plugins are disabled in new windows
1183         https://bugs.webkit.org/show_bug.cgi?id=165410
1184
1185         Reviewed by Alex Christensen.
1186
1187         Currently WebKitTestRunner only enables plugins in the main window. So, a test that opens
1188         a new window and loads a plugin will fail. We should enable plugins in all windows by
1189         default. Moreover toggling testRunner.setPluginsEnabled() should effect all windows.
1190
1191         Making these changes is a step towards running plugins/open-and-close-window-with-plugin.html
1192         in WebKitTestRunner (we still need to fix <https://bugs.webkit.org/show_bug.cgi?id=46714>) and
1193         will make the behavior of WebKitTestRunner more closely match the behavior DumpRenderTree.
1194
1195         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1196         (WTR::InjectedBundle::beginTesting): Call TestRunner::setPluginsEnabled() instead of
1197         WKBundleSetPluginsEnabled().
1198         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1199         (WTR::TestRunner::setPluginsEnabled): Take a similar approach as TestRunner::setXSSAuditorEnabled()
1200         and make use of WKBundleOverrideBoolPreferenceForTestRunner().
1201
1202 2016-12-05  Dean Jackson  <dino@apple.com>
1203
1204         pointer lock needs to be feature detectable
1205         https://bugs.webkit.org/show_bug.cgi?id=165426
1206         <rdar://problem/29486715>
1207
1208         Reviewed by Antoine Quint.
1209
1210         Expose the comment line to turn on/off pointer lock.
1211
1212         * DumpRenderTree/TestOptions.h:
1213         * DumpRenderTree/TestOptions.mm:
1214         (TestOptions::TestOptions):
1215         * DumpRenderTree/mac/DumpRenderTree.mm:
1216         (resetWebPreferencesToConsistentValues):
1217         * WebKitTestRunner/TestController.cpp:
1218         (WTR::TestController::resetPreferencesToConsistentValues):
1219         (WTR::updateTestOptionsFromTestHeader):
1220         * WebKitTestRunner/TestOptions.h:
1221         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1222         (WTR::PlatformWebView::viewSupportsOptions):
1223         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1224         (WTR::PlatformWebView::viewSupportsOptions):
1225
1226 2016-12-05  Jonathan Bedard  <jbedard@apple.com>
1227
1228         Make it possible to use an existing simulator instance for one-off testing
1229         https://bugs.webkit.org/show_bug.cgi?id=164568
1230         <rdar://problem/29189133>
1231
1232         Reviewed by Daniel Bates.
1233
1234         With this patch, if a simulator is currently running on the machine and
1235         '--dedicated-simulators' is not passed into the application, only one simulator
1236         instance will be used, and this instance will be the existing instance.
1237         If no simulator is running or '--dedicated-simulators' is passed to the script,
1238         previous behavior will be used.
1239
1240         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1241         (parse_args):
1242         * Scripts/webkitpy/port/ios.py:
1243         (IOSSimulatorPort.__init__): Logic for enabling usage of currently running simulator.
1244         (IOSSimulatorPort._create_simulators): Only create simulators when needed, don't reset already running simulators.
1245         (IOSSimulatorPort.setup_test_run): Don't open already running simulators.
1246         (IOSSimulatorPort._quit_ios_simulator): Only quit simulators if we manage them.
1247         (IOSSimulatorPort.clean_up_test_run): Only clean up simulators if we manage them. 
1248         (IOSSimulatorPort._using_dedicated_simulators): True if simulators need to be managed, false if using an existing instance.
1249         (IOSSimulatorPort.device_id_for_worker_number): Access currently running simulator if not managing devices.
1250         * Scripts/webkitpy/xcode/simulator.py:
1251         (Simulator.refresh): Check if xcode_simctl_list returned None instead of a generator.
1252         (Simulator.current_device): Get currently running device.
1253
1254 2016-12-05  Dan Bernstein  <mitz@apple.com>
1255
1256         Disable a crashing test on iOS.
1257
1258         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
1259
1260 2016-12-04  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1261
1262         Fix a build break on EFL since r209303.
1263
1264         Unreviewed build fix.
1265
1266         * Scripts/webkitperl/FeatureList.pm: Disable SS Device Adaptation temporarily.
1267
1268 2016-12-03  Yusuke Suzuki  <utatane.tea@gmail.com>
1269
1270         Refactor SymbolImpl layout
1271         https://bugs.webkit.org/show_bug.cgi?id=165247
1272
1273         Reviewed by Darin Adler.
1274
1275         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
1276         (TestWebKitAPI::TEST):
1277
1278 2016-12-03  Dan Bernstein  <mitz@apple.com>
1279
1280         Fixed the build after r209307.
1281
1282         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
1283         (TEST):
1284
1285 2016-12-03  Dan Bernstein  <mitz@apple.com>
1286
1287         [Cocoa] Expose InjectedBundlePageEditorClient via the Objective-C bundle SPI
1288         https://bugs.webkit.org/show_bug.cgi?id=165276
1289         <rdar://problem/29467040>
1290
1291         Reviewed by Darin Adler.
1292
1293         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1294         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm: Added.
1295         (-[BundleEditingDelegateRemoteObject willWriteToPasteboard:]):
1296         (-[BundleEditingDelegateRemoteObject didWriteToPasteboard]):
1297         (TEST):
1298         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm: Added.
1299         (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1300         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:willWriteRangeToPasteboard:]):
1301         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:pasteboardDataForRange:]):
1302         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextControllerDidWriteToPasteboard:]):
1303         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Added.
1304
1305 2016-12-02  Andy Estes  <aestes@apple.com>
1306
1307         [Cocoa] Adopt the PRODUCT_BUNDLE_IDENTIFIER build setting
1308         https://bugs.webkit.org/show_bug.cgi?id=164492
1309
1310         Reviewed by Dan Bernstein.
1311
1312         * DumpRenderTree/TestNetscapePlugIn/mac/Info.plist: Changed CFBundleIdentifier's value from
1313         com.apple.testnetscapeplugin to ${PRODUCT_BUNDLE_IDENTIFIER}.
1314         * DumpRenderTree/ios/Info.plist: Changed CFBundleIdentifier's value from
1315         org.webkit.DumpRenderTree to ${PRODUCT_BUNDLE_IDENTIFIER}.
1316         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig: Set
1317         PRODUCT_BUNDLE_IDENTIFIER to org.webkit.DumpRenderTree.
1318         * DumpRenderTree/mac/Configurations/TestNetscapePlugIn.xcconfig: Set
1319         PRODUCT_BUNDLE_IDENTIFIER to com.apple.testnetscapeplugin.
1320         * MiniBrowser/Configurations/MiniBrowser.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1321         org.webkit.$(PRODUCT_NAME:rfc1034identifier).
1322         * MiniBrowser/Configurations/MiniBrowserBundle.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1323         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1324         * MiniBrowser/mac/Bundle/Info.plist: Changed CFBundleIdentifier's value from
1325         com.apple.${PRODUCT_NAME:rfc1034identifier} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1326         * MiniBrowser/mac/Info.plist: Changed CFBundleIdentifier's value from
1327         org.webkit.${PRODUCT_NAME} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1328         * TestWebKitAPI/Configurations/InjectedBundle.xcconfig: Set INFOPLIST_FILE to
1329         InjectedBundle-Info.plist and set PRODUCT_BUNDLE_IDENTIFIER to
1330         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1331         * TestWebKitAPI/Configurations/WebProcessPlugIn.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1332         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1333         * TestWebKitAPI/InjectedBundle-Info.plist: Changed CFBundleIdentifier's value from
1334         com.yourcompany.${PRODUCT_NAME:rfc1034identifier} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1335         * TestWebKitAPI/cocoa/WebProcessPlugIn/Info.plist: Added a CFBundleIdentifier key with the
1336         value ${PRODUCT_BUNDLE_IDENTIFIER}.
1337         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Set INFOPLIST_FILE to
1338         InjectedBundle-Info.plist and set PRODUCT_BUNDLE_IDENTIFIER to
1339         com.apple.WebKitTestRunner.InjectedBundle.
1340         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: Set
1341         PRODUCT_BUNDLE_IDENTIFIER to org.webkit.$(PRODUCT_NAME:rfc1034identifier).
1342         * WebKitTestRunner/InjectedBundle-Info.plist: Changed CFBundleIdentifier's value from
1343         com.apple.WebKitTestRunner.InjectedBundle to ${PRODUCT_BUNDLE_IDENTIFIER}.
1344         * WebKitTestRunner/WebKitTestRunnerApp/WebKitTestRunnerApp-Info.plist: Changed
1345         CFBundleIdentifier's value from org.webkit.${PRODUCT_NAME:rfc1034identifier} to
1346         ${PRODUCT_BUNDLE_IDENTIFIER}.
1347
1348 2016-12-02  Brady Eidson  <beidson@apple.com>
1349
1350         Make IndexedDB.WebProcessKillIDBCleanup even more reliable.
1351         https://bugs.webkit.org/show_bug.cgi?id=165330
1352
1353         Reviewed by Alex Christensen.
1354
1355         The test currently nulls out a RetainPtr<WKWebView> to try to destroy the view and kill the process.
1356
1357         Problem is that doesn't reliably destroy the view.
1358         We should explicitly kill the process instead.
1359
1360         Also, by relocating when we kill the process, we can better test behavior of the IndexedDB mechanism.
1361         e.g. We explicitly confirm that a second WebProcess can simultaneously attach to the same unique database as the first.
1362
1363         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
1364         (TEST):
1365
1366 2016-12-02  Commit Queue  <commit-queue@webkit.org>
1367
1368         Unreviewed, rolling out r209136.
1369         https://bugs.webkit.org/show_bug.cgi?id=165337
1370
1371         broke 36 webkitpy tests (Requested by mcatanzaro on #webkit).
1372
1373         Reverted changeset:
1374
1375         "Make it possible to use an existing simulator instance for
1376         one-off testing"
1377         https://bugs.webkit.org/show_bug.cgi?id=164568
1378         http://trac.webkit.org/changeset/209136
1379
1380 2016-12-02  Chris Dumez  <cdumez@apple.com>
1381
1382         [Mac][WK1] Implement new HTML interactive form validation user interface
1383         https://bugs.webkit.org/show_bug.cgi?id=164483
1384
1385         Reviewed by Simon Fraser.
1386
1387         Add support for UIScriptController's contentsOfUserInterfaceItem("validationBubble")
1388         on Mac DRT as this is needed by the HTML form validation layout tests.
1389
1390         * DumpRenderTree/mac/UIScriptControllerMac.mm:
1391         (WTR::UIScriptController::contentsOfUserInterfaceItem):
1392
1393 2016-12-02  Brady Eidson  <beidson@apple.com>
1394
1395         IndexedDB.IndexedDBMultiProcess and IndexedDB.WebProcessKillIDBCleanup sometimes timeout.
1396         https://bugs.webkit.org/show_bug.cgi?id=160780 and https://bugs.webkit.org/show_bug.cgi?id=161001
1397
1398         Reviewed by Alexey Proskuryakov.
1399
1400         These tests had "run-loop races."
1401         
1402         The test spins the runloop waiting for one message.
1403         Two messages might come in from the WebProcess in short succession, and both be delivered to the
1404         UIProcess in the same spin of the runloop.
1405
1406         Therefore by the time the test stops spinning the runloop, notified that a message was received,
1407         the first message has been overwritten by the second.
1408
1409         These tests are fixed by queueing the incoming messages instead of just storing one.
1410
1411         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
1412         (-[IndexedDBMPMessageHandler userContentController:didReceiveScriptMessage:]):
1413         (getNextMessage):
1414         (TEST):
1415
1416         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
1417         (-[IndexedDBWebProcessKillMessageHandler userContentController:didReceiveScriptMessage:]):
1418         (getNextMessage):
1419         (TEST):
1420
1421 2016-12-01  Jiewen Tan  <jiewen_tan@apple.com>
1422
1423         Add a runtime flag for SubtleCrypto
1424         https://bugs.webkit.org/show_bug.cgi?id=164982
1425
1426         Reviewed by Brent Fulgham.
1427
1428         * DumpRenderTree/mac/DumpRenderTree.mm:
1429         (resetWebPreferencesToConsistentValues):
1430         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1431         (WTR::InjectedBundle::beginTesting):
1432         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1433         (WTR::TestRunner::setSubtleCryptoEnabled):
1434         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1435
1436 2016-12-01  Alexey Proskuryakov  <ap@apple.com>
1437
1438         Remove webkitpy dependency on Eliza
1439         https://bugs.webkit.org/show_bug.cgi?id=164979
1440
1441         Reviewed by Daniel Bates.
1442
1443         This module is not on pypi, so installing it is a challenge. The jokes feel pretty old too!
1444
1445         * Scripts/webkitpy/thirdparty/__init__.py:
1446         * Scripts/webkitpy/thirdparty/__init___unittest.py: Changed mock import hook to
1447         test buildbot instead of eliza.
1448         * Scripts/webkitpy/tool/bot/ircbot.py:
1449         * Scripts/webkitpy/tool/bot/ircbot_unittest.py:
1450
1451 2016-12-01  Beth Dakin  <bdakin@apple.com>
1452
1453         Force clicking tests fail on some machines
1454         https://bugs.webkit.org/show_bug.cgi?id=165263
1455
1456         Reviewed by Tim Horton.
1457
1458         Initialize com.apple.trackpad.forceClick to 1 so that we don’t have to depend on 
1459         the user account having this feature enabled. 
1460         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
1461         (WTR::InjectedBundle::platformInitialize):
1462         * WebKitTestRunner/mac/main.mm:
1463         (setDefaultsToConsistentValuesForTesting):
1464
1465 2016-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
1466
1467         Introduce StringImpl::StaticStringImpl with constexpr constructor
1468         https://bugs.webkit.org/show_bug.cgi?id=165093
1469
1470         Reviewed by Darin Adler.
1471
1472         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
1473         (TestWebKitAPI::TEST):
1474
1475 2016-11-30  Antoine Quint  <graouts@apple.com>
1476
1477         [Modern Media Controls] Add an HTML comment flag to turn the feature on
1478         https://bugs.webkit.org/show_bug.cgi?id=165226
1479
1480         Reviewed by Dean Jackson.
1481
1482         Add a new flag to turn Modern Media Controls on in the test runners.
1483
1484         * DumpRenderTree/TestOptions.h:
1485         * DumpRenderTree/TestOptions.mm:
1486         (TestOptions::TestOptions):
1487         * DumpRenderTree/mac/DumpRenderTree.mm:
1488         (resetWebPreferencesToConsistentValues):
1489         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1490         (WTR::InjectedBundle::beginTesting):
1491         * WebKitTestRunner/TestController.cpp:
1492         (WTR::TestController::resetPreferencesToConsistentValues):
1493         (WTR::updateTestOptionsFromTestHeader):
1494         * WebKitTestRunner/TestOptions.h:
1495         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1496         (WTR::PlatformWebView::viewSupportsOptions):
1497         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1498         (WTR::PlatformWebView::viewSupportsOptions):
1499
1500 2016-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
1501
1502         Add separate settings and preferences to enable/disable async decoding for large images and animated images
1503         https://bugs.webkit.org/show_bug.cgi?id=165177
1504
1505         Reviewed by Simon Fraser.
1506         
1507         Pref and a menu item to toggle async image decoding settings for WebKits 1 and 2.
1508
1509         * MiniBrowser/mac/SettingsController.h:
1510         * MiniBrowser/mac/SettingsController.m:
1511         (-[SettingsController _populateMenu]):
1512         (-[SettingsController validateMenuItem:]):
1513         (-[SettingsController toggleLargeImageAsyncDecodingEnabled:]):
1514         (-[SettingsController largeImageAsyncDecodingEnabled]):
1515         (-[SettingsController toggleAnimatedImageAsyncDecodingEnabled:]):
1516         (-[SettingsController animatedImageAsyncDecodingEnabled]):
1517         (-[SettingsController toggleAsyncImageDecodingEnabled:]): Deleted.
1518         (-[SettingsController asyncImageDecodingEnabled]): Deleted.
1519         * MiniBrowser/mac/WK1BrowserWindowController.m:
1520         (-[WK1BrowserWindowController didChangeSettings]):
1521         * MiniBrowser/mac/WK2BrowserWindowController.m:
1522         (-[WK2BrowserWindowController didChangeSettings]):
1523
1524 2016-11-30  Jonathan Bedard  <jbedard@apple.com>
1525
1526         Make it possible to use an existing simulator instance for one-off testing
1527         https://bugs.webkit.org/show_bug.cgi?id=164568
1528         <rdar://problem/29189133>
1529
1530         Reviewed by Daniel Bates.
1531
1532         With this patch, if a simulator is currently running on the machine and
1533         '--dedicated-simulators' is not passed into the application, only one simulator
1534         instance will be used, and this instance will be the existing instance.
1535         If no simulator is running or '--dedicated-simulators' is passed to the script,
1536         previous behavior will be used.
1537
1538         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1539         (parse_args):
1540         * Scripts/webkitpy/port/ios.py:
1541         (IOSSimulatorPort.__init__): Logic for enabling usage of currently running simulator.
1542         (IOSSimulatorPort._create_simulators): Only create simulators when needed, don't reset already running simulators.
1543         (IOSSimulatorPort.setup_test_run): Don't open already running simulators.
1544         (IOSSimulatorPort._quit_ios_simulator): Only quit simulators if we manage them.
1545         (IOSSimulatorPort.clean_up_test_run): Only clean up simulators if we manage them. 
1546         (IOSSimulatorPort._using_dedicated_simulators): True if simulators need to be managed, false if using an existing instance.
1547         (IOSSimulatorPort.device_id_for_worker_number): Access currently running simulator if not managing devices.
1548         * Scripts/webkitpy/xcode/simulator.py:
1549         (Simulator.current_device): Get currently running device.
1550
1551 2016-11-29  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1552
1553         [Linux] run-benchmark should be able to execute the benchmarks with more browsers.
1554         https://bugs.webkit.org/show_bug.cgi?id=164792
1555
1556         Reviewed by Michael Catanzaro.
1557
1558         This removes the GTKBrowserDriver (and the platform 'gtk') from the run-benchmark script,
1559         and adds a new LinuxBrowserDriver with a platform 'linux'.
1560
1561         It add also drivers for Chrome (Chromium), Firefox, Epiphany and MiniBrowser-GTK (previously MiniBrowser).
1562
1563         The detection of the platform is now done automatically, so it is not longer needed to pass a "--platform" parameter.
1564
1565         The tracking of the browser process is now more robust, we track the pid of the browser process and we only try to
1566         kill the ones that were executed by this script, instead of doing a 'killall $browser' (like before).
1567         We also check for browser process childs and we kill them if they are still alive after the main browser process has been killed.
1568         This depends on psutil, so this will only be done if psutil is installed.
1569
1570         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1571         (RunBenchmarkTests.start): The platform is now autodetected and the MiniBrowser driver is renamed to MiniBrowser-GTK.
1572         * Scripts/webkitpy/benchmark_runner/benchmark_runner.py:
1573         (BenchmarkRunner._run_benchmark): Fix a bug that caused close_browsers to be called twice. Its already called inside BenchmarkRunner._run_one_test.
1574         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_browser_driver.py: Added.
1575         (LinuxBrowserDriver): Implement base class that has all the needed functionality for driving the browsers.
1576         (LinuxBrowserDriver.__init__):
1577         (LinuxBrowserDriver.prepare_env):
1578         (LinuxBrowserDriver.restore_env):
1579         (LinuxBrowserDriver.close_browsers): Made the dependency on psutil optional (because it was listed as such on the README file <Tools/Scripts/webkitpy/benchmark_runner/README.md>)
1580         (LinuxBrowserDriver.launch_url):
1581         (LinuxBrowserDriver._get_first_executable_path_from_list):
1582         (LinuxBrowserDriver._screen_size):
1583         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_chrome_driver.py: Copied from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1584         (LinuxChromeDriver):
1585         (LinuxChromeDriver.launch_url):
1586         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_epiphany_driver.py: Renamed from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_browser_driver.py.
1587         (EpiphanyBrowserDriver):
1588         (EpiphanyBrowserDriver.launch_url):
1589         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_firefox_driver.py: Copied from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1590         (LinuxFirefoxDriver):
1591         (LinuxFirefoxDriver.launch_url):
1592         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_minibrowsergtk_driver.py: Renamed from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1593         (GTKMiniBrowserDriver):
1594         (GTKMiniBrowserDriver.launch_url):
1595         * Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
1596         (SimpleHTTPServerDriver):
1597         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
1598         (getplatform):
1599         (getdefaultbrowser):
1600         (parse_args):
1601         * Scripts/webkitpy/benchmark_runner/utils.py:
1602         (load_subclasses): The loading of subclasses was still (even after r196979) sensitive to the order in which the modules are loaded.
1603         We have to ensure that the files containing subclasses of the base_class_file are loaded after the base_class_file,
1604         we can do that by matching against the base_class_file pattern when the list is created.
1605
1606 2016-11-29  Andy Estes  <aestes@apple.com>
1607
1608         [Cocoa] Enable two clang warnings recommended by Xcode
1609         https://bugs.webkit.org/show_bug.cgi?id=164498
1610
1611         Reviewed by Mark Lam.
1612
1613         * DumpRenderTree/mac/Configurations/Base.xcconfig: Enabled CLANG_WARN_INFINITE_RECURSION and CLANG_WARN_SUSPICIOUS_MOVE.
1614         * MiniBrowser/Configurations/Base.xcconfig: Ditto.
1615         * TestWebKitAPI/Configurations/Base.xcconfig: Ditto.
1616         * WebKitTestRunner/Configurations/Base.xcconfig: Ditto.
1617
1618 2016-11-29  Eric Carlson  <eric.carlson@apple.com>
1619
1620         [MediaStream] Don't request user permission for a device if it has already been granted in the current browsing context
1621         https://bugs.webkit.org/show_bug.cgi?id=164760
1622         <rdar://problem/29261266>
1623
1624         Reviewed by Youenn Fablet.
1625         
1626         Allow scripts to determine the number of times the user has been prompted for capture device access.
1627
1628         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1629         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1630         (WTR::InjectedBundle::setUserMediaPersistentPermissionForOrigin):
1631         (WTR::InjectedBundle::userMediaPermissionRequestCountForOrigin):
1632         (WTR::InjectedBundle::resetUserMediaPermissionRequestCountForOrigin):
1633         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): Deleted.
1634         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1635         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1636         (WTR::TestRunner::setUserMediaPersistentPermissionForOrigin):
1637         (WTR::TestRunner::userMediaPermissionRequestCountForOrigin):
1638         (WTR::TestRunner::resetUserMediaPermissionRequestCountForOrigin):
1639         (WTR::TestRunner::setUserMediaPermissionForOrigin): Deleted.
1640         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1641         * WebKitTestRunner/TestController.cpp:
1642         (WTR::TestController::resetStateToConsistentValues):
1643         (WTR::OriginSettings::incrementRequestCount):
1644         (WTR::OriginSettings::resetRequestCount):
1645         (WTR::OriginSettings::requestCount):
1646         (WTR::TestController::saltForOrigin):
1647         (WTR::TestController::setUserMediaPersistentPermissionForOrigin):
1648         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
1649         (WTR::TestController::settingsForOrigin):
1650         (WTR::TestController::userMediaPermissionRequestCountForOrigin):
1651         (WTR::TestController::resetUserMediaPermissionRequestCountForOrigin):
1652         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
1653         (WTR::TestController::setUserMediaPermissionForOrigin): Deleted.
1654         * WebKitTestRunner/TestController.h:
1655         * WebKitTestRunner/TestInvocation.cpp:
1656         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1657         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1658
1659 2016-11-29  Simon Fraser  <simon.fraser@apple.com>
1660
1661         intersection-observer-entry-interface.html test fails on the bots
1662         https://bugs.webkit.org/show_bug.cgi?id=165133
1663
1664         Reviewed by Darin Adler.
1665         
1666         Tests that enabled Intersection Observer via <!-- webkit-test-runner [ enableIntersectionObserver=true ] -->
1667         would fail sometimes, because TestController::ensureViewSupportsOptionsForTest() failed to check
1668         to see if this option required creating a new web view, so would just use the old view without
1669         even resetting preferences.
1670         
1671         In general, TestController doesn't distinguish properly between options that require the creation
1672         of a new view (like mock scrollbars), and those that can be simply reset as resetPreferencesToConsistentValues()
1673         does.
1674         
1675         Do the easy fix of having viewSupportsOptions() check options.enableIntersectionObserver. We should probably
1676         just call resetPreferencesToConsistentValues() even when re-use the same view.
1677         
1678         * WebKitTestRunner/TestController.cpp:
1679         (WTR::TestController::resetPreferencesToConsistentValues):
1680         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1681         (WTR::PlatformWebView::viewSupportsOptions):
1682         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1683         (WTR::PlatformWebView::viewSupportsOptions):
1684
1685 2016-11-28  Ryan Haddad  <ryanhaddad@apple.com>
1686
1687         Unreviewed, rolling out r209008.
1688
1689         This change appears to have caused two fast/mediastrem
1690         LayoutTests to fail.
1691
1692         Reverted changeset:
1693
1694         "[MediaStream] Don't request user permission for a device if
1695         it has already been granted in the current browsing context"
1696         https://bugs.webkit.org/show_bug.cgi?id=164760
1697         http://trac.webkit.org/changeset/209008
1698
1699 2016-11-28  Daniel Bates  <dabates@apple.com>
1700
1701         Teach webkitpy how to read CSSProperties.json r209001
1702         https://bugs.webkit.org/show_bug.cgi?id=165108
1703
1704         Reviewed by Simon Fraser.
1705
1706         Fix webkitpy logic so that it can read CSS property names from CSSProperties.json following r209001.
1707
1708         Following r209001 CSSPropertyNames.in no longer exists as it was replaced with CSSProperties.json.
1709         We need to modify the webkitpy machinery that processed CSSPropertyNames.in to process CSSProperties.json.
1710
1711         * Scripts/webkitpy/w3c/test_converter.py:
1712         (_W3CTestConverter.__init__): Make self._css_property_file and self._css_property_value_file local
1713         variables as it is unnecessary for them to be instance variables. Call read_webkit_prefixed_css_property_list()
1714         to read the property names from file CSSProperties.json. Call legacy_read_webkit_prefixed_css_property_list() to
1715         read CSS keyword values from CSSValueKeywords.in.
1716         (_W3CTestConverter.read_webkit_prefixed_css_property_list): Added.
1717         (_W3CTestConverter):
1718         (_W3CTestConverter.legacy_read_webkit_prefixed_css_property_list): Renamed from read_webkit_prefixed_css_property_list.
1719         * Scripts/webkitpy/w3c/test_importer_unittest.py:
1720         (TestImporterTest.test_harnesslinks_conversion): Substitute CSSProperties.json for CSSPropertyNames.in.
1721
1722 2016-11-28  Eric Carlson  <eric.carlson@apple.com>
1723
1724         [MediaStream] Don't request user permission for a device if it has already been granted in the current browsing context
1725         https://bugs.webkit.org/show_bug.cgi?id=164760
1726         <rdar://problem/29261266>
1727
1728         Reviewed by Youenn Fablet.
1729         
1730         Allow scripts to determine the number of times the user has been prompted for capture device access.
1731
1732         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1733         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1734         (WTR::InjectedBundle::setUserMediaPersistentPermissionForOrigin):
1735         (WTR::InjectedBundle::userMediaPermissionRequestCountForOrigin):
1736         (WTR::InjectedBundle::resetUserMediaPermissionRequestCountForOrigin):
1737         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): Deleted.
1738         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1739         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1740         (WTR::TestRunner::setUserMediaPersistentPermissionForOrigin):
1741         (WTR::TestRunner::userMediaPermissionRequestCountForOrigin):
1742         (WTR::TestRunner::resetUserMediaPermissionRequestCountForOrigin):
1743         (WTR::TestRunner::setUserMediaPermissionForOrigin): Deleted.
1744         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1745         * WebKitTestRunner/TestController.cpp:
1746         (WTR::TestController::resetStateToConsistentValues):
1747         (WTR::OriginSettings::incrementRequestCount):
1748         (WTR::OriginSettings::resetRequestCount):
1749         (WTR::OriginSettings::requestCount):
1750         (WTR::TestController::saltForOrigin):
1751         (WTR::TestController::setUserMediaPersistentPermissionForOrigin):
1752         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
1753         (WTR::TestController::settingsForOrigin):
1754         (WTR::TestController::userMediaPermissionRequestCountForOrigin):
1755         (WTR::TestController::resetUserMediaPermissionRequestCountForOrigin):
1756         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
1757         (WTR::TestController::setUserMediaPermissionForOrigin): Deleted.
1758         * WebKitTestRunner/TestController.h:
1759         * WebKitTestRunner/TestInvocation.cpp:
1760         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1761         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1762
1763 2016-11-18  Jer Noble  <jer.noble@apple.com>
1764
1765         Add some performance tests for various aspects of media loading and playback.
1766         https://bugs.webkit.org/show_bug.cgi?id=164977
1767
1768         Reviewed by Darin Adler.
1769
1770         Allow callers to pass in extra alias/directory pairs to run-webkit-httpd.
1771
1772         * Scripts/run-webkit-httpd:
1773         (parse_args):
1774         (main):
1775
1776 2016-11-27  Simon Fraser  <simon.fraser@apple.com>
1777
1778         Another fix for CMake.
1779
1780         * DumpRenderTree/TestOptions.h:
1781         * DumpRenderTree/TestOptions.mm:
1782
1783 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1784
1785         Better fix for the Mac CMake build.
1786
1787         * DumpRenderTree/PlatformMac.cmake:
1788
1789 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1790
1791         Attempt to fix Mac CMake build.
1792
1793         * DumpRenderTree/PlatformMac.cmake:
1794
1795 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1796
1797         [WTF] Import std::optional reference implementation as WTF::Optional
1798         https://bugs.webkit.org/show_bug.cgi?id=164199
1799
1800         Reviewed by Saam Barati and Sam Weinig.
1801
1802         Use WTF::Optional::value_or.
1803
1804         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1805         (WTR::UIScriptController::stableStateOverride):
1806         (WTR::UIScriptController::setStableStateOverride):
1807         * TestRunnerShared/Bindings/JSWrappable.h:
1808         (WTR::JSValueMakeBooleanOrNull):
1809         (WTR::JSValueToNullableBoolean):
1810         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1811         (WTR::UIScriptController::stableStateOverride):
1812         (WTR::UIScriptController::setStableStateOverride):
1813         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1814         * TestWebKitAPI/Tests/WTF/Optional.cpp:
1815         (TestWebKitAPI::TEST):
1816         * TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp:
1817         (TestWebKitAPI::testParseHTMLInteger):
1818         (TestWebKitAPI::testParseHTMLNonNegativeInteger):
1819         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1820         (TestWebKitAPI::checkURL):
1821         (TestWebKitAPI::checkRelativeURL):
1822         (TestWebKitAPI::checkURLDifferences):
1823         (TestWebKitAPI::checkRelativeURLDifferences):
1824         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1825         (WTR::UIScriptController::stableStateOverride):
1826         (WTR::UIScriptController::setStableStateOverride):
1827
1828 2016-11-26  Sam Weinig  <sam@webkit.org>
1829
1830         Convert IntersectionObserver over to using RuntimeEnabledFeatures so it can be properly excluded from script
1831         https://bugs.webkit.org/show_bug.cgi?id=164965
1832
1833         Reviewed by Simon Fraser.
1834
1835         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1836         Add new files.
1837
1838         * DumpRenderTree/TestOptions.h: Added.
1839         * DumpRenderTree/TestOptions.mm: Added.
1840         (parseBooleanTestHeaderValue):
1841         (TestOptions::TestOptions):
1842         Port TestOption parsing from WKTR to DRT.
1843
1844         * DumpRenderTree/mac/DumpRenderTree.mm:
1845         (resetWebPreferencesToConsistentValues):
1846         (resetWebViewToConsistentStateBeforeTesting):
1847         (runTest):
1848         * WebKitTestRunner/TestController.cpp:
1849         Pass TestOptions down to resetWebPreferencesToConsistentValues to allow setting
1850         preferences conditionally.
1851
1852         (WTR::TestController::resetPreferencesToConsistentValues):
1853         (WTR::updateTestOptionsFromTestHeader):
1854         * WebKitTestRunner/TestOptions.h:
1855         Add a new test option header, enableIntersectionObserver, to enable IntersectionObserver.
1856
1857 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1858
1859         Migrate some layout timer-related code from std::chrono to Seconds and MonotonicTime
1860         https://bugs.webkit.org/show_bug.cgi?id=164992
1861
1862         Reviewed by Darin Adler.
1863         
1864         Use Seconds::zero().
1865
1866         * TestWebKitAPI/Tests/WTF/Condition.cpp:
1867
1868 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1869
1870         Add literals for various time units
1871         https://bugs.webkit.org/show_bug.cgi?id=165074
1872
1873         Reviewed by Filip Pizlo.
1874         
1875         Add tests for new time literals. Add new tests for units.
1876
1877         * TestWebKitAPI/Tests/WTF/Time.cpp:
1878         (TestWebKitAPI::TEST):
1879
1880 2016-11-25  Csaba Osztrogonác  <ossy@webkit.org>
1881
1882         Fix compile warnings after r208415
1883         https://bugs.webkit.org/show_bug.cgi?id=165061
1884
1885         Reviewed by Andy Estes.
1886
1887         * TestWebKitAPI/Tests/WTF/Time.cpp:
1888         (TestWebKitAPI::TEST):
1889
1890 2016-11-24  Michael Catanzaro  <mcatanzaro@igalia.com>
1891
1892         [GTK] Notifications API does not expose or respect the "tag" attribute
1893         https://bugs.webkit.org/show_bug.cgi?id=164771
1894
1895         Reviewed by Gustavo Noronha Silva.
1896
1897         Verify that showing a notification with the same tag as another notification closes the
1898         previous notification before the new notification is shown.
1899
1900         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
1901         (testWebViewNotification):
1902
1903 2016-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1904
1905         Unreviewed. Fix GTK+ test /webkit2/WebKitWebContext/get-plugins after r208429.
1906
1907         Test plugin library was renamed as libTestNetscapePlugIn.so in r208429.
1908
1909         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
1910         (testWebContextGetPlugins): Update the library name.
1911
1912 2016-11-22  Darin Adler  <darin@apple.com>
1913
1914         Make normal case fast in the input element limitString function
1915         https://bugs.webkit.org/show_bug.cgi?id=165023
1916
1917         Reviewed by Dan Bernstein.
1918
1919         * TestWebKitAPI/CMakeLists.txt: Added TextBreakIterator.cpp.
1920         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
1921         * TestWebKitAPI/Tests/WTF/TextBreakIterator.cpp: Added.
1922         Contains some tests for the numGraphemeClusters and
1923         numCharactersInGraphemeClusters functions that I used to make sure
1924         that the new fast paths I added work correctly.
1925
1926 2016-11-22  Tomas Popela  <tpopela@redhat.com>
1927
1928         Unreviewed, add myself as a WebKit committer.
1929
1930         * Scripts/webkitpy/common/config/contributors.json:
1931
1932 2016-11-21  Mark Lam  <mark.lam@apple.com>
1933
1934         Hasher::addCharacters() should be able to handle zero length strings.
1935         https://bugs.webkit.org/show_bug.cgi?id=165024
1936
1937         Reviewed by Yusuke Suzuki.
1938
1939         * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
1940         (TestWebKitAPI::TEST):
1941
1942 2016-11-21  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1943
1944         [CMake] build fails after update to cmake 3.7
1945         https://bugs.webkit.org/show_bug.cgi?id=165008
1946
1947         Reviewed by Dan Bernstein.
1948
1949         When we remove the CMake cache, we should remove both the
1950         CMakeCache.txt file and the CMakeFiles directory.
1951         See: https://gitlab.kitware.com/cmake/cmake/issues/14820
1952
1953         * Scripts/webkitdirs.pm:
1954         (cmakeFilesPath):
1955         (removeCMakeCache):
1956
1957 2016-11-16  Philippe Normand  <pnormand@igalia.com>
1958
1959         [GTK][WebRTC] Switch to downstream OpenWebRTC and more recent GStreamer
1960         https://bugs.webkit.org/show_bug.cgi?id=164817
1961
1962         Reviewed by Alejandro G. Castro.
1963
1964         This is temporary, hopefully. The OpenWebRTC patches will/should
1965         be soon reviewed and upstream but meanwhile it makes sense to use
1966         the Igalia downstream fork so that the WebRTC testing is easier.
1967
1968         Recent GStreamer patches are also needed for RTP bundling support
1969         and RTP retransmission fixes.
1970
1971         * gtk/jhbuild.modules:
1972         * gtk/openwebrtc.modules: Removed.
1973         * gtk/patches/gst-plugins-good-0001-rtpbin-pipeline-gets-an-EOS-when-any-rtpsources-byes.patch: Added.
1974         * gtk/patches/gst-plugins-good-0002-rtpbin-avoid-generating-errors-when-rtcp-messages-ar.patch: Added.
1975         * gtk/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Added.
1976
1977 2016-11-20  Zan Dobersek  <zdobersek@igalia.com>
1978
1979         [EncryptedMedia] Make EME API runtime-enabled
1980         https://bugs.webkit.org/show_bug.cgi?id=164927
1981
1982         Reviewed by Jer Noble.
1983
1984         Enable the EME API via the WKTR InjectedBundle whenever testing
1985         commences. This does not have any effect unless the EME feature
1986         is enabled at compile-time, but it's still added to match other
1987         features and for future use.
1988
1989         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1990         (WTR::InjectedBundle::beginTesting):
1991         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1992         (WTR::TestRunner::setEncryptedMediaAPIEnabled):
1993         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1994
1995 2016-11-19  Simon Fraser  <simon.fraser@apple.com>
1996
1997         Fix the Mac and iOS bulds.
1998
1999         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2000         (-[TestRunnerWKWebView _stableStateOverride]):
2001         (-[TestRunnerWKWebView _setStableStateOverride:]):
2002
2003 2016-11-18  Simon Fraser  <simon.fraser@apple.com>
2004
2005         Make it possible to test non-stable-state scrolling on iOS
2006         https://bugs.webkit.org/show_bug.cgi?id=164905
2007
2008         Reviewed by Dan Bernstein.
2009
2010         Make it possible for an iOS layout test to force every visible rect update
2011         from the UI process to the web process to be in a non-stable state. This emulates
2012         what happens during panning and zooming interactions, and allows us to test the
2013         scrolling and layer trees in these transient states.
2014         
2015         This is done by adding a testing property on WKWebView, _stableStateOverride, whose
2016         getters and setters are overridden in TestRunnerWKWebView. When non-nil, we _updateVisibleContentRectAfterScrollInView
2017         consults the NSNumber's boolValue and uses it to override the stable state.
2018         
2019         To facilitate this kind of testing, also add immediateScrollToOffset() and
2020         immediateZoomToScale() to UIScriptController. Finally, add doAfterPresentationUpdate()
2021         which provides a callback that fires after one trip to the web process and back.
2022         
2023         Add code generation support for optional boolean attributes in IDL.
2024
2025         Align CodeGeneratorDumpRenderTree.pm and CodeGeneratorTestRunner.pm.
2026
2027         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
2028         (_generateImplementationFile):
2029         (_platformTypeConstructor):
2030         (_returnExpression):
2031         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2032         (WTR::UIScriptController::doAfterPresentationUpdate):
2033         (WTR::contentOffsetBoundedInValidRange):
2034         (WTR::UIScriptController::scrollToOffset):
2035         (WTR::UIScriptController::immediateScrollToOffset):
2036         (WTR::UIScriptController::immediateZoomToScale):
2037         (WTR::UIScriptController::stableStateOverride):
2038         (WTR::UIScriptController::setStableStateOverride):
2039         * DumpRenderTree/mac/UIScriptControllerMac.mm:
2040         (WTR::UIScriptController::doAfterPresentationUpdate):
2041         * TestRunnerShared/Bindings/JSWrappable.h:
2042         (WTR::JSValueMakeBooleanOrNull):
2043         (WTR::JSValueToNullableBoolean):
2044         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2045         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2046         (WTR::UIScriptController::immediateScrollToOffset):
2047         (WTR::UIScriptController::immediateZoomToScale):
2048         (WTR::UIScriptController::stableStateOverride):
2049         (WTR::UIScriptController::setStableStateOverride):
2050         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2051         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
2052         (_classRefGetter):
2053         (_platformTypeConstructor):
2054         (_returnExpression):
2055         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2056         (-[TestRunnerWKWebView dealloc]):
2057         (-[TestRunnerWKWebView _stableStateOverride]):
2058         (-[TestRunnerWKWebView _setStableStateOverride:]):
2059         * WebKitTestRunner/ios/TestControllerIOS.mm:
2060         (WTR::TestController::platformResetStateToConsistentValues):
2061         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2062         (WTR::UIScriptController::doAsyncTask):
2063         (WTR::UIScriptController::doAfterPresentationUpdate):
2064         (WTR::UIScriptController::zoomToScale):
2065         (WTR::UIScriptController::immediateScrollToOffset):
2066         (WTR::UIScriptController::immediateZoomToScale):
2067         (WTR::UIScriptController::stableStateOverride):
2068         (WTR::UIScriptController::setStableStateOverride):
2069         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
2070         (WTR::UIScriptController::doAfterPresentationUpdate):
2071
2072 2016-11-19  Joanmarie Diggs  <jdiggs@igalia.com>
2073
2074         AX: [ATK] Expose aria-busy via ATK_STATE_BUSY
2075         https://bugs.webkit.org/show_bug.cgi?id=164909
2076
2077         Reviewed by Chris Fleizach.
2078
2079         Implement boolAttributeValue() for ATK so we can test AXElementBusy.
2080
2081         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2082         (WTR::AccessibilityUIElement::boolAttributeValue):
2083
2084 2016-11-18  Simon Fraser  <simon.fraser@apple.com>
2085
2086         [iOS WK2] Eliminate a source of flakiness in layout tests by forcing WebPage into "responsive" mode for all tests, with an internals override
2087         https://bugs.webkit.org/show_bug.cgi?id=164980
2088
2089         Reviewed by Chris Dumez.
2090
2091         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2092         (WTR::InjectedBundlePage::prepare):
2093
2094 2016-11-18  Dean Jackson  <dino@apple.com>
2095
2096         AX: "(inverted-colors)" media query only matches on page reload; should match on change
2097         https://bugs.webkit.org/show_bug.cgi?id=163564
2098         <rdar://problem/28807350>
2099
2100         Reviewed by Simon Fraser.
2101
2102         Add a UIScriptController method that tricks WebKit into thinking
2103         it has received a notification that accessibility settings have
2104         changed. Combined with our forced overrides, this allows us to
2105         test if a page would react to the notifications.
2106
2107         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2108         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2109         * DumpRenderTree/mac/UIScriptControllerMac.mm:
2110         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2111         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2112         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2113         (WTR::simulateAccessibilitySettingsChangeNotification):
2114         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2115         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2116         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2117         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
2118         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2119
2120 2016-11-18  Alex Christensen  <achristensen@webkit.org>
2121
2122         Fix API test after r208902
2123         https://bugs.webkit.org/show_bug.cgi?id=144194
2124
2125         * TestWebKitAPI/Tests/Cocoa/URLExtras.mm:
2126         (TestWebKitAPI::TEST):
2127         The fullwidth solidus, U+FF0F, changed encoding from IDN2003 to IDN2008, probably to prevent domains from using it
2128         to spoof other domains.  https://webkit.org/blog/ and https://webkit.org\uFF0Fblog/ would otherwise look 
2129         too similar when rendered.
2130
2131 2016-11-17  Alex Christensen  <achristensen@webkit.org>
2132
2133         Support IDN2008 with UTS #46 instead of IDN2003
2134         https://bugs.webkit.org/show_bug.cgi?id=144194
2135
2136         Reviewed by Darin Adler.
2137
2138         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2139         (TestWebKitAPI::TEST_F):
2140         Add some tests from http://unicode.org/faq/idn.html verifying that we follow UTS46's deviations from IDN2008.
2141         Add some tests based on https://tools.ietf.org/html/rfc5893 verifying that we check for bidirectional text.
2142         Add a test based on https://tools.ietf.org/html/rfc5892 verifying that we do not do ContextO check.
2143         Add a test for U+321D and U+321E which have particularly interesting punycode encodings.  We match Firefox here now.
2144         Also add a test from http://www.unicode.org/reports/tr46/#IDNAComparison verifying we are not using IDN2003.
2145         We should consider importing all of http://www.unicode.org/Public/idna/9.0.0/IdnaTest.txt as URL domain tests.
2146
2147 2016-11-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2148
2149         Downloads started by context menu actions should also have a web view associated
2150         https://bugs.webkit.org/show_bug.cgi?id=164364
2151
2152         Reviewed by Michael Catanzaro.
2153
2154         Add a GTK+ unit tests to check that downloads started by the context menu have a web view associated.
2155
2156         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
2157         (downloadLocalFileSuccessfully):
2158         (testDownloadOverwriteDestinationDisallowed):
2159         (testDownloadLocalFileError):
2160         (testDownloadRemoteFile):
2161         (testDownloadRemoteFileError):
2162         (testDownloadMIMEType):
2163         (contextMenuCallback):
2164         (testContextMenuDownloadActions):
2165         (beforeAll):
2166
2167 2016-11-17  Ryosuke Niwa  <rniwa@webkit.org>
2168
2169         Add an experimental API to find elements across shadow boundaries
2170         https://bugs.webkit.org/show_bug.cgi?id=164851
2171         <rdar://problem/28220092>
2172
2173         Reviewed by Sam Weinig.
2174
2175         Added test cases for window.collectMatchingElementsInFlatTree to WebKit2.InjectedBundleMakeAllShadowRootOpen.
2176
2177         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2178         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRoot*s*Open_Bundle.cpp: Renamed
2179         from InjectedBundleMakeAllShadowRootOpen_Bundle.cpp.
2180         (TestWebKitAPI::InjectedBundleMakeAllShadowRootOpenTest::initialize): Added test cases for
2181         window.collectMatchingElementsInFlatTree by calling alert() many times.
2182         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp:
2183         (TestWebKitAPI::runJavaScriptAlert): Added expectations for multiple test cases. Each test case
2184         finishes with a call to alert, and moves testNumber forward.
2185         (TestWebKitAPI::TEST): Use the newly added closed-shadow-tree-test.html
2186         * TestWebKitAPI/Tests/WebKit2/closed-shadow-tree-test.html: Added. Creates a shadow tree with slots
2187         and tests that window.collectMatchingElementsInFlatTree is not present when
2188         an event named "testnormalworld" is dispatched by the injected bundle.
2189
2190 2016-11-17  Brady Eidson  <beidson@apple.com>
2191
2192         Add _WKIconLoadingDelegate SPI.
2193         https://bugs.webkit.org/show_bug.cgi?id=164894
2194
2195         Reviewed by Alex Christensen.
2196
2197         Add MiniBrowser support for this new SPI, configurable with a setting.
2198
2199         * MiniBrowser/mac/SettingsController.h:
2200         * MiniBrowser/mac/SettingsController.m:
2201         (-[SettingsController _populateMenu]):
2202         (-[SettingsController validateMenuItem:]):
2203         (-[SettingsController loadsAllSiteIcons]):
2204         (-[SettingsController toggleLoadsAllSiteIcons:]):
2205         * MiniBrowser/mac/WK2BrowserWindowController.m:
2206         (-[WK2BrowserWindowController awakeFromNib]):
2207         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]):
2208
2209 2016-11-17  Caitlin Potter  <caitp@igalia.com>
2210
2211         [JSC] remove leftover references to ES2017_ASYNCFUNCTION_SYNTAX flag
2212         https://bugs.webkit.org/show_bug.cgi?id=164879
2213
2214         Reviewed by Alex Christensen.
2215
2216         The flag was referenced in FeatureList.pm and in one of the
2217         FeatureDefines.xcconfig files, despite being removed.
2218
2219         * Scripts/webkitperl/FeatureList.pm:
2220         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2221
2222 2016-11-17  Per Arne Vollan  <pvollan@apple.com>
2223
2224         [Win] run-api-tests is failing.
2225         https://bugs.webkit.org/show_bug.cgi?id=164818
2226
2227         Reviewed by Alexey Proskuryakov.
2228
2229         Make sure Visual Studio interprets string literal as utf8.
2230  
2231         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2232         (TestWebKitAPI::TEST_F):
2233
2234 2016-11-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2235
2236         [JSC] WTF::TemporaryChange with WTF::SetForScope
2237         https://bugs.webkit.org/show_bug.cgi?id=164761
2238
2239         Reviewed by Saam Barati.
2240
2241         * TestWebKitAPI/CMakeLists.txt:
2242         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2243         * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp.
2244         (TestWebKitAPI::TEST):
2245         * WebKitTestRunner/TestController.cpp:
2246         (WTR::TestController::resetStateToConsistentValues):
2247
2248 2016-11-16  Alexey Proskuryakov  <ap@apple.com>
2249
2250         REGRESSION (r208455): LayoutTests swipe/pushState-cached-back-swipe.html and swipe/main-frame-pinning-requirement.html are failing
2251         https://bugs.webkit.org/show_bug.cgi?id=164572
2252
2253         Reviewed by Tim Horton.
2254
2255         * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues):
2256         Use the correct constant.
2257
2258 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2259
2260         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
2261         https://bugs.webkit.org/show_bug.cgi?id=164827
2262
2263         Reviewed by Ryosuke Niwa.
2264
2265         Enabled ES6 Modules in test runners.
2266
2267         * DumpRenderTree/mac/DumpRenderTree.mm:
2268         (resetWebPreferencesToConsistentValues):
2269         * DumpRenderTree/win/DumpRenderTree.cpp:
2270         (resetWebPreferencesToConsistentValues):
2271         * Scripts/webkitperl/FeatureList.pm:
2272         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2273         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2274         (WTR::InjectedBundle::beginTesting):
2275         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2276         (WTR::TestRunner::setES6ModulesEnabled):
2277         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2278
2279 2016-11-16  Simon Fraser  <simon.fraser@apple.com>
2280
2281         Hard to write reliable UIScriptController scrollingTreeAsText tests
2282         https://bugs.webkit.org/show_bug.cgi?id=164764
2283
2284         Reviewed by Wenson Hsieh.
2285
2286         Fix one cause of flakiness by resetting the WKWebView's UIScrollView scale
2287         and scroll position between tests.
2288
2289         * WebKitTestRunner/ios/TestControllerIOS.mm:
2290         (WTR::TestController::platformResetStateToConsistentValues):
2291
2292 2016-11-16  Simon Fraser  <simon.fraser@apple.com>
2293
2294         UIScriptController: script with no async tasks fails if an earlier script registered a callback
2295         https://bugs.webkit.org/show_bug.cgi?id=164762
2296
2297         Reviewed by Wenson Hsieh.
2298         
2299         Make TestRunner::callUIScriptCallback() async in DumpRenderTree to match WebKitTestRunner behavior.
2300         This fixes ui-side-script-with-callback.html in WK1, which failed because the second runUIScript()
2301         would occur inside the completion callback from the first. This no longer happens.
2302
2303         * DumpRenderTree/TestRunner.cpp:
2304         (TestRunner::callUIScriptCallback):
2305         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2306         (UIScriptContext::tryToCompleteUIScriptForCurrentParentCallback):
2307
2308 2016-11-16  Ryan Haddad  <ryanhaddad@apple.com>
2309
2310         Unreviewed, rolling out r208770.
2311
2312         The test added with this change is timing out on mac-wk1.
2313
2314         Reverted changeset:
2315
2316         "UIScriptController: script with no async tasks fails if an
2317         earlier script registered a callback"
2318         https://bugs.webkit.org/show_bug.cgi?id=164762
2319         http://trac.webkit.org/changeset/208770
2320
2321 2016-11-16  Per Arne Vollan  <pvollan@apple.com>
2322
2323         [Win] WebCore test is failing.
2324         https://bugs.webkit.org/show_bug.cgi?id=164772
2325
2326         Reviewed by Brent Fulgham.
2327
2328         The value of CGRectInfinite is not the same on Windows as on Mac.
2329
2330         * TestWebKitAPI/Tests/WebCore/FloatRect.cpp:
2331         (TestWebKitAPI::TEST):
2332
2333 2016-11-15  Alexey Proskuryakov  <ap@apple.com>
2334
2335         Update Youenn's e-mail addresses.
2336
2337         * Scripts/webkitpy/common/config/contributors.json:
2338
2339 2016-11-15  Simon Fraser  <simon.fraser@apple.com>
2340
2341         UIScriptController: script with no async tasks fails if an earlier script registered a callback
2342         https://bugs.webkit.org/show_bug.cgi?id=164762
2343
2344         Reviewed by Wenson Hsieh.
2345         
2346         UIScriptContext::runUIScript() considers a script to be "immediate" if that script doesn't
2347         queue any async tasks. However, if an earlier UI script registered a callback, UIScriptContext::runUIScript()
2348         would consider that an outstanding task.
2349         
2350         Fix by unregistering any callbacks associated with the current UI script when uiScriptComplete() is called.
2351
2352         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2353         (UIScriptContext::tryToCompleteUIScriptForCurrentParentCallback):
2354
2355 2016-11-15  Simon Fraser  <simon.fraser@apple.com>
2356
2357         UIScriptController: setting a callback to undefined should unregister it
2358         https://bugs.webkit.org/show_bug.cgi?id=164796
2359
2360         Reviewed by Dean Jackson.
2361         
2362         "Immediate" UI scripts (those that don't schedule any async tasks) should return
2363         immediately, without the need to call uiScriptComplete(). However, this is broken if
2364         an earlier UI script registered a callback (since no-one clears that callback after the
2365         first script completes).
2366
2367         Make possible the workaround of setting the callback to undefined, which previously did
2368         not clear the callback registration.
2369
2370         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2371         (UIScriptContext::registerCallback):
2372         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
2373         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2374         (WTR::UIScriptController::platformClearAllCallbacks):
2375
2376 2016-11-14  Mark Lam  <mark.lam@apple.com>
2377
2378         Enhance run-jsc-stress-test script to allow optional test specific options to be added for all test run configurations.
2379         https://bugs.webkit.org/show_bug.cgi?id=164695
2380
2381         Reviewed by Keith Miller.
2382
2383         This gives us more flexibility when specific tests needs to enable special JSC
2384         options in order to exercise specific code paths to be tested.  It also saves us
2385         from having to create duplicate test run configurations e.g. runMiscFTLNoCJITTest.
2386         We can now just use runFTLNoCJIT in its place.
2387
2388         Also replaced the ifJSCArgIsntProvidedAreWeReleaseBuild variable with $buildType
2389         so that we have the ability to skip certain tests for release or debug builds.
2390         This will be needed in the upcoming patch for https://webkit.org/b/155145.
2391
2392         * Scripts/run-jsc-stress-tests:
2393
2394 2016-11-14  Joanmarie Diggs  <jdiggs@igalia.com>
2395
2396         AX: [ATK] Expose STATE_SINGLE_LINE and STATE_MULTI_LINE for ARIA searchbox role
2397         https://bugs.webkit.org/show_bug.cgi?id=164712
2398
2399         Reviewed by Chris Fleizach.
2400
2401         Add AccessibilityUIElement::isSingleLine, AccessibilityUIElement::isMultiLine
2402         to DRT and WKTR. Implement it for ATK.
2403
2404         * DumpRenderTree/AccessibilityUIElement.h:
2405         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2406         (AccessibilityUIElement::isSingleLine):
2407         (AccessibilityUIElement::isMultiLine):
2408         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2409         (AccessibilityUIElement::isSingleLine):
2410         (AccessibilityUIElement::isMultiLine):
2411         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2412         (AccessibilityUIElement::isSingleLine):
2413         (AccessibilityUIElement::isMultiLine):
2414         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2415         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2416         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2417         (WTR::AccessibilityUIElement::isSingleLine):
2418         (WTR::AccessibilityUIElement::isMultiLine):
2419         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
2420         (WTR::AccessibilityUIElement::isSingleLine):
2421         (WTR::AccessibilityUIElement::isMultiLine):
2422         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2423         (WTR::AccessibilityUIElement::isSingleLine):
2424         (WTR::AccessibilityUIElement::isMultiLine):
2425
2426 2016-11-14  Youenn Fablet  <youenn@apple.com>
2427
2428         Support WPT templated tests
2429         https://bugs.webkit.org/show_bug.cgi?id=164707
2430
2431         Reviewed by Sam Weinig.
2432
2433         * Scripts/webkitpy/w3c/test_importer.py:
2434         (TestImporter.write_html_files_for_templated_js_tests): Generating empty HTML files for templated JS tests.
2435         (TestImporter.import_tests):
2436
2437 2016-11-13  JF Bastien  <jfbastien@apple.com>
2438
2439         Implement WTF::Expected
2440         https://bugs.webkit.org/show_bug.cgi?id=164526
2441
2442         Reviewed by Yusuke Suzuki.
2443
2444         std::expected isn't in C++17, and may be in C++20. It's a nice
2445         complement to std::any / std::optional because it's a type-tagged
2446         union which has a single expected result but could also contain an
2447         error.
2448
2449         This would be useful in the WebAssembly parser, for example.
2450
2451         Using this implementation will allow us to provide feedback to the
2452         standards committee and guide std::expected's design before it
2453         gets standardized. I've already sent a bunch of feedback to the
2454         author based on my experience implementing this.
2455
2456         This could supplement WTF::Either and WTF::ExceptionOr.
2457
2458         * TestWebKitAPI/CMakeLists.txt:
2459         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2460         * TestWebKitAPI/Tests/WTF/Expected.cpp: Added.
2461         (WTF::operator<<):
2462         (TestWebKitAPI::TEST):
2463         (TestWebKitAPI::foo::foo):
2464         (TestWebKitAPI::foo::~foo):
2465         (TestWebKitAPI::foo::operator==):
2466         (TestWebKitAPI::operator<<):
2467
2468 2016-11-12  Simon Fraser  <simon.fraser@apple.com>
2469
2470         Add a way to get the UI-side scrolling tree as text via UIScriptController
2471         https://bugs.webkit.org/show_bug.cgi?id=164697
2472
2473         Reviewed by Zalan Bujtas.
2474
2475         Add UIScriptController::scrollingTreeAsText(), which gets the state of the scrolling
2476         tree in the UI process, including the current positions of CALayers. This will be used
2477         to test UI-side scrolling and visual viewports.
2478
2479         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2480         (WTR::UIScriptController::scrollingTreeAsText):
2481         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2482         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2483         (WTR::UIScriptController::scrollingTreeAsText):
2484         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2485         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2486         (WTR::UIScriptController::scrollingTreeAsText):
2487
2488 2016-11-12  Wenson Hsieh  <wenson_hsieh@apple.com>
2489
2490         The main content heuristic should be robust when handling large media elements
2491         https://bugs.webkit.org/show_bug.cgi?id=164676
2492         <rdar://problem/29211503>
2493
2494         Reviewed by Eric Carlson.
2495
2496         Added a new test verifying that enormous video elements are handled gracefully when put through the main
2497         content heuristic.
2498
2499         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2500         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2501         (TestWebKitAPI::TEST):
2502         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous-video-with-sound.html: Added.
2503
2504 2016-11-12  Dan Bernstein  <mitz@apple.com>
2505
2506         run-safari does not work for open source contributors
2507         https://bugs.webkit.org/show_bug.cgi?id=164667
2508         <rdar://problem/29229894>
2509
2510         Reviewed by Joseph Pecoraro.
2511
2512         * Scripts/run-api-tests:
2513         (archCommandLineArgumentsForRestrictedEnvironmentVariables): Moved from here…
2514         * Scripts/webkitdirs.pm:
2515         (archCommandLineArgumentsForRestrictedEnvironmentVariables): …to here
2516         (runMacWebKitApp): Have arch(1) carry the DYLD_* variables we set in our environmet over
2517           to the environment of the app being run.
2518
2519 2016-11-11  Joseph Pecoraro  <pecoraro@apple.com>
2520
2521         Removed unused INCLUDE_OPTIONS_FOR_DEBUGGING
2522         https://bugs.webkit.org/show_bug.cgi?id=164664
2523
2524         Reviewed by Dan Bernstein.
2525
2526         * Scripts/debug-minibrowser:
2527         * Scripts/debug-safari:
2528         * Scripts/debug-test-runner:
2529         * Scripts/webkitdirs.pm:
2530         (printHelpAndExitForRunAndDebugWebKitAppIfNeeded):
2531         There are no debug specific options anymore.
2532
2533 2016-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
2534
2535         [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
2536         https://bugs.webkit.org/show_bug.cgi?id=164538
2537         <rdar://problem/8418711>
2538
2539         Reviewed by Ryosuke Niwa.
2540
2541         Adds support for being able to test autocorrect and autocapitalize attributes in contenteditable areas. To do
2542         this, we add removeAllDynamicDictionaries to UIScriptController in order to ensure that autocorrect suggestions
2543         are reset to their defaults prior to running contenteditable-autocorrect-off.html.
2544
2545         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2546         (WTR::UIScriptController::removeAllDynamicDictionaries):
2547         * Scripts/webkitpy/port/ios.py:
2548         (IOSSimulatorPort._createSimulatorApp):
2549         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2550         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2551         (WTR::UIScriptController::removeAllDynamicDictionaries):
2552         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2553         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2554         (-[TestRunnerWKWebView _keyboardDidShow:]):
2555         (-[TestRunnerWKWebView _keyboardDidHide:]):
2556
2557         Work around an issue where consecutive UIKeyboardDidShowNotification would cause keyboard appearance callbacks
2558         to be fired multiple times. This was causing a single key press to cause two characters to be typed. While this
2559         does not affect the correctness of existing tests, the new autocorrection test requires this workaround.
2560
2561         * WebKitTestRunner/ios/UIKitSPI.h:
2562         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2563         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
2564         (WTR::UIScriptController::removeAllDynamicDictionaries):
2565
2566 2016-11-11  Alex Christensen  <achristensen@webkit.org>
2567
2568         Build all Mac API tests
2569         https://bugs.webkit.org/show_bug.cgi?id=164633
2570
2571         Reviewed by Gyuyoung Kim.
2572
2573         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2574         * TestWebKitAPI/Tests/mac/NavigatorLanguage.mm:
2575
2576 2016-11-11  Alex Christensen  <achristensen@webkit.org>
2577
2578         Allow mutable lambdas in HashMap::ensure
2579         https://bugs.webkit.org/show_bug.cgi?id=164642
2580
2581         Reviewed by Sam Weinig.
2582
2583         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
2584         (TestWebKitAPI::TEST):
2585
2586 2016-11-10  Wenson Hsieh  <wenson_hsieh@apple.com>
2587
2588         Composition state should be cleared when changing focus to a non-editable element
2589         https://bugs.webkit.org/show_bug.cgi?id=164595
2590         <rdar://problem/26412551>
2591
2592         Reviewed by Enrica Casucci.
2593
2594         Adds support for window.textInputController in DumpRenderTree on iOS. So far, only the methods needed for the
2595         new layout test (editing/focus-change-with-marked-text.html) are supported. These are insertText, setMarkedText,
2596         and markedRange.
2597
2598         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2599         * DumpRenderTree/TextInputController.h: Renamed from Tools/DumpRenderTree/mac/TextInputController.h.
2600
2601         Remove the PLATFORM(MAC) guard for defining the TextInputController. Also, move the TextInputController header
2602         out of the /mac platform directory.
2603
2604         * DumpRenderTree/ios/TextInputControllerIOS.m: Added.
2605         (+[TextInputController isSelectorExcludedFromWebScript:]):
2606         (+[TextInputController webScriptNameForSelector:]):
2607         (-[TextInputController initWithWebView:]):
2608         (-[TextInputController markedRange]):
2609         (-[TextInputController insertText:]):
2610         (-[TextInputController setMarkedText:selectedFrom:length:]):
2611
2612         Introduces TextInputControllerIOS.m, which contains an iOS implementation of TextInputController. Only a subset
2613         of the methods available on the Mac version will be available on iOS for now (see above).
2614
2615         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2616
2617         Remove the PLATFORM(MAC) guard for initializing the TextInputController and binding it to the window object.
2618
2619         (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]):
2620         * DumpRenderTree/mac/TextInputControllerMac.m: Renamed from Tools/DumpRenderTree/mac/TextInputController.m.
2621         (-[WebHTMLView interpretKeyEvents:]):
2622         (-[WebNSRange initWithNSRange:]):
2623         (-[WebNSRange location]):
2624         (-[WebNSRange length]):
2625         (+[WebNSRange isSelectorExcludedFromWebScript:]):
2626         (+[NSMutableAttributedString isSelectorExcludedFromWebScript:]):
2627         (+[NSMutableAttributedString webScriptNameForSelector:]):
2628         (-[NSMutableAttributedString getLength]):
2629         (-[NSMutableAttributedString ranges]):
2630         (-[NSMutableAttributedString attributeNamesAtIndex:]):
2631         (-[NSMutableAttributedString valueOfAttribute:atIndex:]):
2632         (-[NSMutableAttributedString addAttribute:value:]):
2633         (-[NSMutableAttributedString addAttribute:value:from:length:]):
2634         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:]):
2635         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:from:length:]):
2636         (-[NSMutableAttributedString addFontAttribute:fontName:size:]):
2637         (-[NSMutableAttributedString addFontAttribute:fontName:size:from:length:]):
2638         (+[TextInputController isSelectorExcludedFromWebScript:]):
2639         (+[TextInputController webScriptNameForSelector:]):
2640         (-[TextInputController initWithWebView:]):
2641         (-[TextInputController dealloc]):
2642         (-[TextInputController textInput]):
2643         (-[TextInputController insertText:]):
2644         (-[TextInputController doCommand:]):
2645         (-[TextInputController setMarkedText:selectedFrom:length:]):
2646         (-[TextInputController unmarkText]):
2647         (-[TextInputController hasMarkedText]):
2648         (-[TextInputController conversationIdentifier]):
2649         (-[TextInputController substringFrom:length:]):
2650         (-[TextInputController attributedSubstringFrom:length:]):
2651         (-[TextInputController legacyAttributedString:]):
2652         (-[TextInputController markedRange]):
2653         (-[TextInputController selectedRange]):
2654         (-[TextInputController firstRectForCharactersFrom:length:]):
2655         (-[TextInputController characterIndexForPointX:Y:]):
2656         (-[TextInputController validAttributesForMarkedText]):
2657         (-[TextInputController attributedStringWithString:]):
2658         (-[TextInputController stringWithUndoGroupingInsertion:]):
2659         (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]):
2660         (-[TextInputController setInputMethodHandler:]):
2661         (-[TextInputController interpretKeyEvents:withSender:]):
2662
2663         Fixes miscellaneous style issues.
2664
2665 2016-11-11  Philippe Normand  <pnormand@igalia.com>
2666
2667         [GTK][JHbuild] bump libnice version in openwebrtc.modules
2668         https://bugs.webkit.org/show_bug.cgi?id=164586
2669
2670         Reviewed by Michael Catanzaro.
2671
2672         Update to a recent libnice git snapshot and remove patches already
2673         upstream or not applying anymore. The patches not upstream yet
2674         will be reported in Phabricator.
2675
2676         * gtk/openwebrtc.modules:
2677         * gtk/patches/libnice-0001-agent-Remove-unnecessary-NULL-check.patch: Removed.
2678         * gtk/patches/libnice-0002-Do-not-update-a-remote-candidate-s-type.patch: Removed.
2679         * gtk/patches/libnice-0002-TURN-handle-437-Allocation-Mismatch-responses.patch: Removed.
2680         * gtk/patches/libnice-0003-Do-not-compare-scope-for-IPv6-address-when-scope-is-.patch: Removed.
2681         * gtk/patches/libnice-0004-Removing-no-op-assignment.patch: Removed.
2682
2683 2016-11-10  Alex Christensen  <achristensen@webkit.org>
2684
2685         Fix assertion after r208534.
2686         https://bugs.webkit.org/show_bug.cgi?id=160497
2687
2688         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2689         * TestWebKitAPI/Tests/mac/MemoryPressureHandler.mm: Added.
2690         (TestWebKitAPI::TEST):
2691         Add a regression test.
2692
2693 2016-11-10  Chris Dumez  <cdumez@apple.com>
2694
2695         REGRESSION (r208522): LayoutTest fast/loader/reload-zero-byte-plugin.html is a flaky failure
2696         https://bugs.webkit.org/show_bug.cgi?id=164570
2697
2698         Reviewed by Simon Fraser.
2699
2700         Properly reset TestController::m_shouldDownloadUndisplayableMIMETypes between tests to
2701         avoid flakiness.
2702
2703         * WebKitTestRunner/TestController.cpp:
2704         (WTR::TestController::resetStateToConsistentValues):
2705
2706 2016-11-10  Miguel Gomez  <magomez@igalia.com>
2707
2708         Unreviewed. Added myself to the list of committers.
2709
2710         * Scripts/webkitpy/common/config/contributors.json:
2711
2712 2016-10-27  Sergio Villar Senin  <svillar@igalia.com>
2713
2714         [GTK] New API to notify about dynamically added forms
2715         https://bugs.webkit.org/show_bug.cgi?id=164050
2716
2717         Reviewed by Carlos Garcia Campos.
2718
2719         Added a new test case to verify that dinamically added forms correctly trigger the
2720         "form-controls-associated" signal from WebPage.
2721
2722         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp:
2723         (didAssociateFormControlsCallback):
2724         (testWebExtensionFormControlsAssociated):
2725         (beforeAll):
2726         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2727         (DelayedSignal::DelayedSignal):
2728         (emitFormControlsAssociated):
2729         (formControlsAssociatedCallback):
2730         (pageCreatedCallback):
2731
2732 2016-11-09  Ryosuke Niwa  <rniwa@webkit.org>
2733
2734         WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
2735         https://bugs.webkit.org/show_bug.cgi?id=164501
2736         <rdar://problem/29152282>
2737
2738         Reviewed by Sam Weinig.
2739
2740         * DumpRenderTree/mac/TextInputController.m:
2741         (-[TextInputController legacyAttributedString:]):
2742
2743 2016-11-09  Chris Dumez  <cdumez@apple.com>
2744
2745         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
2746         https://bugs.webkit.org/show_bug.cgi?id=164458
2747         <rdar://problem/28905514>
2748
2749         Reviewed by Darin Adler.
2750
2751         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
2752         tests can request that such resources are downloaded instead of being ignored.
2753
2754         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2755         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2756         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
2757         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2758         * WebKitTestRunner/TestController.cpp:
2759         (WTR::TestController::decidePolicyForNavigationResponse):
2760         * WebKitTestRunner/TestController.h:
2761         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
2762         * WebKitTestRunner/TestInvocation.cpp:
2763         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2764
2765 2016-11-09  Carlos Garcia Campos  <cgarcia@igalia.com>
2766
2767         NetworkSession: Network process crash when converting main resource to download
2768         https://bugs.webkit.org/show_bug.cgi?id=164220
2769
2770         Reviewed by Alex Christensen.
2771
2772         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
2773         converted to a download and another one to test the cancellation as the test was doing before. When doing the
2774         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
2775         download.
2776
2777         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
2778         (testPolicyResponseDownload):
2779         (testPolicyResponseDownloadCancel):
2780         (beforeAll):
2781
2782 2016-11-09  KwangHyuk Kim  <hyuki.kim@samsung.com>
2783
2784         [EFL] fix error message caused by eina log
2785         https://bugs.webkit.org/show_bug.cgi?id=164546
2786
2787         Reviewed by Gyuyoung Kim.
2788
2789         Fix error message caused by eina log when MiniBrowser is working with help option.
2790
2791         * MiniBrowser/efl/main.c:
2792         (quit):
2793
2794 2016-11-09  Brent Fulgham  <bfulgham@apple.com>
2795
2796         Unreviewed build fix after r208509.
2797
2798         * DumpRenderTree/win/TestRunnerWin.cpp:
2799         (TestRunner::setNeedsStorageAccessFromFileURLsQuirk): Add missing TestRunner implementation."
2800
2801 2016-11-09  Alex Christensen  <achristensen@webkit.org>
2802
2803         Unreviewed, rolling out r208438.
2804
2805         crashes
2806
2807         Reverted changeset:
2808
2809         "[WK2][NETWORK_SESSION] Add support for downloading file
2810         backed blobs"
2811         https://bugs.webkit.org/show_bug.cgi?id=164458
2812         http://trac.webkit.org/changeset/208438
2813
2814 2016-11-04  Brent Fulgham  <bfulgham@apple.com>
2815
2816         Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
2817         https://bugs.webkit.org/show_bug.cgi?id=155185
2818         <rdar://problem/11101440>
2819
2820         Reviewed by Brady Eidson.
2821
2822         * DumpRenderTree/TestRunner.cpp:
2823         (setNeedsLocalStorageQuirkCallback): Added.
2824         (TestRunner::staticFunctions):
2825         * DumpRenderTree/TestRunner.h:
2826         * DumpRenderTree/mac/DumpRenderTree.mm:
2827         (resetWebPreferencesToConsistentValues): Update for new quirk setting.
2828         * DumpRenderTree/mac/TestRunnerMac.mm:
2829         (TestRunner::setNeedsLocalStorageQuirk):
2830         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2831         * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp:
2832         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
2833         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.mm:
2834         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkEnabled.html: Added.
2835         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkTest.mm: Added.
2836         (-[LocalStorageQuirkMessageHandler userContentController:didReceiveScriptMessage:]):
2837         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2838         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2839         (WTR::InjectedBundle::beginTesting): Update for new quirk setting.
2840         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2841         (WTR::TestRunner::setNeedsLocalStorageQuirk): Added.
2842         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2843
2844 2016-11-09  Alex Christensen  <achristensen@webkit.org>
2845
2846         URLParser should not consider path of URLs with no host to start at the first slash after the colon
2847         https://bugs.webkit.org/show_bug.cgi?id=164555
2848
2849         Reviewed by Tim Horton.
2850
2851         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2852         (TestWebKitAPI::TEST_F):
2853
2854 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
2855
2856         test-webkitpy failing test_create_patch_is_full_patch unit test
2857         https://bugs.webkit.org/show_bug.cgi?id=164385
2858
2859         Reviewed by Darin Adler.
2860
2861         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py: Fixed expected output to match output.
2862
2863 2016-11-09  Chris Dumez  <cdumez@apple.com>
2864
2865         [Mac] Stop using deprecated AppKit enumeration values
2866         https://bugs.webkit.org/show_bug.cgi?id=164494
2867
2868         Reviewed by Darin Adler.
2869
2870         Stop using deprecated AppKit enumeration values.
2871
2872         * DumpRenderTree/mac/EventSendingController.mm:
2873         (eventTypeForMouseButtonAndAction):
2874         (modifierFlags):
2875         (-[EventSendingController mouseMoveToX:Y:]):
2876         (-[EventSendingController contextClick]):
2877         (-[EventSendingController keyDown:withModifiers:withLocation:]):
2878         * DumpRenderTree/mac/TextInputController.m:
2879         (-[TextInputController interpretKeyEvents:withSender:]):
2880         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm:
2881         (simulateCommandArrow):
2882         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
2883         (TestWebKitAPI::TEST):
2884         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.mm:
2885         (TestWebKitAPI::TEST):
2886         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
2887         (TestWebKitAPI::TEST):
2888         * TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm:
2889         (TEST):
2890         * TestWebKitAPI/Tests/WebKit2Cocoa/UserInitiatedActionInNavigationAction.mm:
2891         (UserInitiatedActionTest::SetUp):
2892         (UserInitiatedActionTest::click):
2893         * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
2894         (TestWebKitAPI::AcceptsFirstMouse::runTest):
2895         * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm:
2896         (TestWebKitAPI::contextMenuCopyLink):
2897         (TestWebKitAPI::TEST):
2898         * TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm:
2899         (TestWebKitAPI::TEST):
2900         * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:
2901         (TestWebKitAPI::FullscreenZoomInitialFrame::runTest):
2902         * TestWebKitAPI/Tests/mac/MenuTypesForMouseEvents.mm:
2903         (TestWebKitAPI::TEST):
2904         * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
2905         (TestWebKitAPI::Util::isKeyDown):
2906         * TestWebKitAPI/mac/PlatformWebViewMac.mm:
2907         (TestWebKitAPI::PlatformWebView::initialize):
2908         (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress):
2909         (TestWebKitAPI::PlatformWebView::simulateRightClick):
2910         (TestWebKitAPI::PlatformWebView::simulateMouseMove):
2911         (TestWebKitAPI::eventTypeForButton):
2912         (TestWebKitAPI::modifierFlagsForWKModifiers):
2913         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
2914         (__simulated_forceClickAssociatedEventsMask):
2915         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
2916         (-[TestWKWebView _setUpTestWindow:]):
2917         (-[TestWKWebView typeCharacter:]):
2918         * WebKitTestRunner/mac/EventSenderProxy.mm:
2919         (WTR::eventTypeForMouseButtonAndAction):
2920         (WTR::buildModifierFlags):
2921         (WTR::EventSenderProxy::sendMouseDownToStartPressureEvents):
2922         (WTR::EventSenderProxy::mouseForceClick):
2923         (WTR::EventSenderProxy::startAndCancelMouseForceClick):
2924         (WTR::EventSenderProxy::mouseMoveTo):
2925         (WTR::EventSenderProxy::keyDown):
2926         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
2927         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2928         (WTR::PlatformWebView::PlatformWebView):
2929         * WebKitTestRunner/mac/TestControllerMac.mm:
2930         (WTR::TestController::platformResetStateToConsistentValues):
2931
2932 2016-11-09  Beth Dakin  <bdakin@apple.com>
2933
2934         Support TouchBar in WebKit
2935         https://bugs.webkit.org/show_bug.cgi?id=164437
2936         -and corresponding-
2937         rdar://problem/28876524
2938
2939         Reviewed by Darin Adler.
2940
2941         This makes MiniBrowser support TouchBar customization. 
2942
2943         * MiniBrowser/mac/AppDelegate.m:
2944         (-[BrowserAppDelegate awakeFromNib]):
2945
2946 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2947
2948         [EFL] Use libgcrypt instead of GnuTLS for CryptoDigest
2949         https://bugs.webkit.org/show_bug.cgi?id=164461
2950
2951         Reviewed by Michael Catanzaro.
2952
2953         As GTK port in r208297, EFL port starts to use libgcrypt instead of GnuTLS as well.
2954
2955         * efl/install-dependencies: Add libgcript package dependecy.
2956
2957 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2958
2959         [EFL] Remove unused function in MiniBrowser
2960         https://bugs.webkit.org/show_bug.cgi?id=164398
2961
2962         Reviewed by Darin Adler.
2963
2964         * MiniBrowser/efl/main.c:
2965         (window_find_with_elm_window): Deleted because it is not used anywhere.
2966
2967 2016-11-09  Chris Dumez  <cdumez@apple.com>
2968
2969         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
2970         https://bugs.webkit.org/show_bug.cgi?id=164458
2971         <rdar://problem/28905514>
2972
2973         Reviewed by Darin Adler.
2974
2975         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
2976         tests can request that such resources are downloaded instead of being ignored.
2977
2978         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2979         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2980         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
2981         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2982         * WebKitTestRunner/TestController.cpp:
2983         (WTR::TestController::decidePolicyForNavigationResponse):
2984         * WebKitTestRunner/TestController.h:
2985         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
2986         * WebKitTestRunner/TestInvocation.cpp:
2987         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2988
2989 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
2990
2991         Make rpaths more robust for iOS Simulators
2992         https://bugs.webkit.org/show_bug.cgi?id=164521
2993
2994         Reviewed by Simon Fraser.
2995
2996         * Scripts/webkitpy/port/ios.py:
2997         (IOSSimulatorPort._createSimulatorApp): Added more robust path.
2998
2999 2016-11-09  Csaba Osztrogonác  <ossy@webkit.org>
3000
3001         Fix Tools build on case sensitive file systems
3002         https://bugs.webkit.org/show_bug.cgi?id=164474
3003
3004         Unreviewed buildfix.
3005
3006         * DumpRenderTree/CMakeLists.txt:
3007         * DumpRenderTree/PlatformMac.cmake:
3008         * DumpRenderTree/PlatformWin.cmake:
3009         * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
3010         * MiniBrowser/mac/CMakeLists.txt:
3011
3012 2016-11-04  Filip Pizlo  <fpizlo@apple.com>
3013
3014         WTF::ParkingLot should stop using std::chrono because std::chrono::duration casts are prone to overflows
3015         https://bugs.webkit.org/show_bug.cgi?id=152045
3016
3017         Reviewed by Andy Estes.
3018
3019         * TestWebKitAPI/CMakeLists.txt:
3020         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3021         * TestWebKitAPI/Tests/WTF/Condition.cpp:
3022         (TestWebKitAPI::TEST):
3023         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
3024         (TestWebKitAPI::ToUpperConverter::stopProducing):
3025         (TestWebKitAPI::ToUpperConverter::stopConsuming):
3026         * TestWebKitAPI/Tests/WTF/Time.cpp: Added.
3027         (WTF::operator<<):
3028         (TestWebKitAPI::TEST):
3029
3030 2016-11-04  Alex Christensen  <achristensen@webkit.org>
3031
3032         Unreviewed, rolling out r208293.
3033
3034         asserts in API tests.
3035
3036         Reverted changeset:
3037
3038         "NetworkSession: Network process crash when converting main
3039         resource to download"
3040         https://bugs.webkit.org/show_bug.cgi?id=164220
3041         http://trac.webkit.org/changeset/208293
3042
3043 2016-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
3044
3045         Add a setting and preferences to enable/disable async image decoding
3046         https://bugs.webkit.org/show_bug.cgi?id=164417
3047
3048         Reviewed by Simon Fraser.
3049
3050         Pref and a menu item to toggle asyncImageDecodingEnabled for WebKits 1 and 2.
3051
3052         * MiniBrowser/mac/SettingsController.h:
3053         * MiniBrowser/mac/SettingsController.m:
3054         (-[SettingsController _populateMenu]):
3055         (-[SettingsController validateMenuItem:]):
3056         (-[SettingsController toggleAsyncImageDecodingEnabled:]):
3057         (-[SettingsController asyncImageDecodingEnabled]):
3058         * MiniBrowser/mac/WK1BrowserWindowController.m:
3059         (-[WK1BrowserWindowController didChangeSettings]):
3060         * MiniBrowser/mac/WK2BrowserWindowController.m:
3061         (-[WK2BrowserWindowController didChangeSettings]):
3062
3063 2016-11-04  Brady Eidson  <beidson@apple.com>
3064
3065         REGRESSION (r208349) StringHasher::hashMemory behavior changed, causing API tests to fail
3066         https://bugs.webkit.org/show_bug.cgi?id=164390
3067
3068         Reviewed by Geoffrey Garen.
3069
3070         Operating under the assumption that the behavior change is okay/desirable, this updates the test.
3071
3072         * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
3073         (TestWebKitAPI::TEST):
3074
3075 2016-11-04  Joanmarie Diggs  <jdiggs@igalia.com>
3076
3077         AX: [ATK] Attempting to clear selection on ARIA listboxes results in crash
3078         https://bugs.webkit.org/show_bug.cgi?id=164331
3079
3080         Reviewed by Chris Fleizach.
3081
3082         Add AccessibilityUIElement::clearSelectedChildren() to DRT and WKTR.
3083         Implement it for ATK.
3084
3085         * DumpRenderTree/AccessibilityUIElement.h:
3086         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3087         (AccessibilityUIElement::clearSelectedChildren):
3088         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3089         (AccessibilityUIElement::clearSelectedChildren):
3090         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
3091         (AccessibilityUIElement::clearSelectedChildren):
3092         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3093         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
3094         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3095         (WTR::AccessibilityUIElement::clearSelectedChildren):
3096         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3097         (WTR::AccessibilityUIElement::clearSelectedChildren):
3098         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
3099         (WTR::AccessibilityUIElement::clearSelectedChildren):
3100
3101 2016-11-04  Per Arne Vollan  <pvollan@apple.com>
3102
3103         [Win] Page visibility tests are timing out.
3104         https://bugs.webkit.org/show_bug.cgi?id=164363
3105
3106         Reviewed by Brent Fulgham.
3107
3108         Implement methods to set page visibility.
3109
3110         * DumpRenderTree/win/TestRunnerWin.cpp:
3111         (TestRunner::resetPageVisibility):
3112         (TestRunner::setPageVisibility):
3113
3114 2016-11-03  Simon Fraser  <simon.fraser@apple.com>
3115
3116         Give all the geometry classes a single-argument scale() function for consistency
3117         https://bugs.webkit.org/show_bug.cgi?id=164400
3118
3119         Reviewed by Zalan Bujtas.
3120         
3121         Test single-argument scale().
3122
3123         * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp:
3124         (TestWebKitAPI::TEST):
3125
3126 2016-11-03  Chris Dumez  <cdumez@apple.com>
3127
3128         [WK2][Cocoa] Implement user interface for HTML form validation
3129         https://bugs.webkit.org/show_bug.cgi?id=164143
3130         <rdar://problem/28944652>
3131
3132         Reviewed by Simon Fraser.
3133
3134         Add support for UIScriptController::contentsOfUserInterfaceItem("validationBubble")
3135         on both Mac and iOS to retrieve the currently displayed validation message.
3136
3137         * DumpRenderTree/mac/UIScriptControllerMac.mm:
3138         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3139         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3140         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3141         (WTR::UIScriptController::selectFormAccessoryPickerRow):
3142         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
3143         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3144
3145 2016-11-03  Konstantin Tokarev  <annulen@yandex.ru>
3146
3147         Fixes to build JSCOnly on macOS
3148         https://bugs.webkit.org/show_bug.cgi?id=164379
3149
3150         Reviewed by Michael Catanzaro.
3151
3152         * TestWebKitAPI/PlatformJSCOnly.cmake: Moved BUILDING_JSCONLY__
3153         definition to OptionsJSCOnly.cmake
3154
3155 2016-11-03  Dan Bernstein  <mitz@apple.com>
3156
3157         WKWebView’s _observedRenderingProgressEvents not restored after web process crash
3158         https://bugs.webkit.org/show_bug.cgi?id=164368
3159         <rdar://problem/29091954>
3160
3161         Reviewed by Anders Carlsson.
3162
3163         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3164         * TestWebKitAPI/Tests/WebKit2Cocoa/ObservedRenderingProgressEventsAfterCrash.mm: Added.
3165         (TEST):
3166
3167 2016-11-03  Alex Christensen  <achristensen@webkit.org>
3168
3169         Purge PassRefPtr from Tools
3170         https://bugs.webkit.org/show_bug.cgi?id=164358
3171
3172         Reviewed by Michael Catanzaro.
3173
3174         * ImageDiff/efl/ImageDiff.cpp:
3175         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp:
3176         * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
3177         (WTR::AccessibilityController::create):
3178         (WTR::AccessibilityController::rootElement):
3179         (WTR::AccessibilityController::focusedElement):
3180         (WTR::AccessibilityController::elementAtPoint):
3181         (WTR::AccessibilityController::addNotificationListener): Deleted.
3182         (WTR::AccessibilityController::removeNotificationListener): Deleted.
3183         (WTR::AccessibilityController::accessibleElementById): Deleted.
3184         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3185         (WTR::AccessibilityController::resetToConsistentState): Deleted.
3186         (WTR::AccessibilityController::platformName): Deleted.
3187         * WebKitTestRunner/InjectedBundle/AccessibilityController.h:
3188         (WTR::AccessibilityController::logAccessibilityEvents):
3189         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.cpp:
3190         (WTR::AccessibilityTextMarker::create):
3191         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.h:
3192         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.cpp:
3193         (WTR::AccessibilityTextMarkerRange::create):
3194         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h:
3195         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
3196         (WTR::AccessibilityUIElement::create):
3197         (WTR::AccessibilityUIElement::linkedElement):
3198         (WTR::AccessibilityUIElement::headerElementAtIndex):
3199         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
3200         (WTR::AccessibilityUIElement::characterAtOffset):
3201         (WTR::AccessibilityUIElement::wordAtOffset):
3202         (WTR::AccessibilityUIElement::lineAtOffset):
3203         (WTR::AccessibilityUIElement::sentenceAtOffset):
3204         (WTR::AccessibilityUIElement::selectedTextMarkerRange):
3205         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
3206         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
3207         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
3208         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
3209         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
3210         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
3211         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
3212         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
3213         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
3214         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
3215         (WTR::AccessibilityUIElement::AccessibilityUIElement): Deleted.
3216         (WTR::AccessibilityUIElement::~AccessibilityUIElement): Deleted.
3217         (WTR::AccessibilityUIElement::isEqual): Deleted.
3218         (WTR::AccessibilityUIElement::elementAtPoint): Deleted.
3219         (WTR::AccessibilityUIElement::childAtIndex): Deleted.
3220         (WTR::AccessibilityUIElement::indexOfChild): Deleted.
3221         (WTR::AccessibilityUIElement::childrenCount): Deleted.
3222         (WTR::AccessibilityUIElement::titleUIElement): Deleted.
3223         (WTR::AccessibilityUIElement::parentElement): Deleted.
3224         (WTR::AccessibilityUIElement::takeFocus): Deleted.
3225         (WTR::AccessibilityUIElement::takeSelection): Deleted.
3226         (WTR::AccessibilityUIElement::addSelection): Deleted.
3227         (WTR::AccessibilityUIElement::removeSelection): Deleted.
3228         (WTR::AccessibilityUIElement::allAttributes): Deleted.
3229         (WTR::AccessibilityUIElement::attributesOfLinkedUIElements): Deleted.
3230         (WTR::AccessibilityUIElement::linkedUIElementAtIndex): Deleted.
3231         (WTR::AccessibilityUIElement::attributesOfDocumentLinks): Deleted.
3232         (WTR::AccessibilityUIElement::attributesOfChildren): Deleted.
3233         (WTR::AccessibilityUIElement::parameterizedAttributeNames): Deleted.
3234         (WTR::AccessibilityUIElement::increment): Deleted.
3235         (WTR::AccessibilityUIElement::decrement): Deleted.
3236         (WTR::AccessibilityUIElement::showMenu): Deleted.
3237         (WTR::AccessibilityUIElement::press): Deleted.
3238         (WTR::AccessibilityUIElement::stringAttributeValue): Deleted.
3239         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue): Deleted.
3240         (WTR::AccessibilityUIElement::uiElementAttributeValue): Deleted.
3241         (WTR::AccessibilityUIElement::numberAttributeValue): Deleted.
3242         (WTR::AccessibilityUIElement::boolAttributeValue): Deleted.
3243         (WTR::AccessibilityUIElement::isAttributeSupported): Deleted.
3244         (WTR::AccessibilityUIElement::isAttributeSettable): Deleted.
3245         (WTR::AccessibilityUIElement::isPressActionSupported): Deleted.
3246         (WTR::AccessibilityUIElement::isIncrementActionSupported): Deleted.
3247         (WTR::AccessibilityUIElement::isDecrementActionSupported): Deleted.
3248         (WTR::AccessibilityUIElement::role): Deleted.
3249         (WTR::AccessibilityUIElement::subrole): Deleted.
3250         (WTR::AccessibilityUIElement::roleDescription): Deleted.
3251         (WTR::AccessibilityUIElement::computedRoleString): Deleted.
3252         (WTR::AccessibilityUIElement::title): Deleted.
3253         (WTR::AccessibilityUIElement::description): Deleted.
3254         (WTR::AccessibilityUIElement::language): Deleted.
3255         (WTR::AccessibilityUIElement::stringValue): Deleted.
3256         (WTR::AccessibilityUIElement::accessibilityValue): Deleted.
3257         (WTR::AccessibilityUIElement::helpText): Deleted.
3258         (WTR::AccessibilityUIElement::orientation): Deleted.
3259         (WTR::AccessibilityUIElement::x): Deleted.
3260         (WTR::AccessibilityUIElement::y): Deleted.
3261         (WTR::AccessibilityUIElement::width): Deleted.
3262         (WTR::AccessibilityUIElement::height): Deleted.
3263         (WTR::AccessibilityUIElement::intValue): Deleted.
3264         (WTR::AccessibilityUIElement::minValue): Deleted.
3265         (WTR::AccessibilityUIElement::maxValue): Deleted.
3266         (WTR::AccessibilityUIElement::valueDescription): Deleted.
3267         (WTR::AccessibilityUIElement::insertionPointLineNumber): Deleted.
3268         (WTR::AccessibilityUIElement::selectedTextRange): Deleted.
3269         (WTR::AccessibilityUIElement::isEnabled): Deleted.
3270         (WTR::AccessibilityUIElement::isRequired): Deleted.
3271         (WTR::AccessibilityUIElement::isFocused): Deleted.
3272         (WTR::AccessibilityUIElement::isFocusable): Deleted.
3273         (WTR::AccessibilityUIElement::isSelected): Deleted.
3274         (WTR::AccessibilityUIElement::isSelectedOptionActive): Deleted.
3275         (WTR::AccessibilityUIElement::isSelectable): Deleted.
3276         (WTR::AccessibilityUIElement::isMultiSelectable): Deleted.
3277         (WTR::AccessibilityUIElement::setSelectedChild): Deleted.
3278         (WTR::AccessibilityUIElement::setSelectedChildAtIndex): Deleted.
3279         (WTR::AccessibilityUIElement::removeSelectionAtIndex): Deleted.
3280         (WTR::AccessibilityUIElement::selectedChildrenCount): Deleted.
3281         (WTR::AccessibilityUIElement::selectedChildAtIndex): Deleted.
3282         (WTR::AccessibilityUIElement::isExpanded): Deleted.
3283         (WTR::AccessibilityUIElement::isChecked): Deleted.
3284         (WTR::AccessibilityUIElement::isIndeterminate): Deleted.
3285         (WTR::AccessibilityUIElement::isVisible): Deleted.
3286         (WTR::AccessibilityUIElement::isOffScreen): Deleted.
3287         (WTR::AccessibilityUIElement::isCollapsed): Deleted.
3288         (WTR::AccessibilityUIElement::isIgnored): Deleted.
3289         (WTR::AccessibilityUIElement::hasPopup): Deleted.
3290         (WTR::AccessibilityUIElement::hierarchicalLevel): Deleted.
3291         (WTR::AccessibilityUIElement::clickPointX): Deleted.
3292         (WTR::AccessibilityUIElement::clickPointY): Deleted.
3293         (WTR::AccessibilityUIElement::documentEncoding): Deleted.
3294         (WTR::AccessibilityUIElement::documentURI): Deleted.
3295         (WTR::AccessibilityUIElement::url): Deleted.
3296         (WTR::AccessibilityUIElement::speak): Deleted.
3297         (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Deleted.
3298         (WTR::AccessibilityUIElement::attributesOfRowHeaders): Deleted.
3299         (WTR::AccessibilityUIElement::attributesOfColumns): Deleted.
3300         (WTR::AccessibilityUIElement::attributesOfRows): Deleted.
3301         (WTR::AccessibilityUIElement::attributesOfVisibleCells): Deleted.
3302         (WTR::AccessibilityUIElement::attributesOfHeader): Deleted.
3303         (WTR::AccessibilityUIElement::indexInTable): Deleted.
3304         (WTR::AccessibilityUIElement::rowIndexRange): Deleted.
3305         (WTR::AccessibilityUIElement::columnIndexRange): Deleted.
3306         (WTR::AccessibilityUIElement::rowCount): Deleted.
3307         (WTR::AccessibilityUIElement::columnCount): Deleted.
3308         (WTR::AccessibilityUIElement::rowHeaders): Deleted.
3309         (WTR::AccessibilityUIElement::columnHeaders): Deleted.
3310         (WTR::AccessibilityUIElement::selectedRowAtIndex): Deleted.
3311         (WTR::AccessibilityUIElement::disclosedByRow): Deleted.
3312         (WTR::AccessibilityUIElement::disclosedRowAtIndex): Deleted.
3313         (WTR::AccessibilityUIElement::rowAtIndex): Deleted.
3314         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): Deleted.
3315         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex): Deleted.
3316         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex): Deleted.
3317         (WTR::AccessibilityUIElement::ariaIsGrabbed): Deleted.
3318         (WTR::AccessibilityUIElement::ariaDropEffects): Deleted.
3319         (WTR::AccessibilityUIElement::classList): Deleted.
3320         (WTR::AccessibilityUIElement::lineForIndex): Deleted.
3321         (WTR::AccessibilityUIElement::rangeForLine): Deleted.
3322         (WTR::AccessibilityUIElement::rangeForPosition): Deleted.
3323         (WTR::AccessibilityUIElement::boundsForRange): Deleted.
3324         (WTR::AccessibilityUIElement::setSelectedTextRange): Deleted.
3325         (WTR::AccessibilityUIElement::setSelectedVisibleTextRange): Deleted.
3326         (WTR::AccessibilityUIElement::stringForRange): Deleted.
3327         (WTR::AccessibilityUIElement::attributedStringForRange): Deleted.
3328         (WTR::AccessibilityUIElement::attributedStringRangeIsMisspelled): Deleted.
3329         (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate): Deleted.
3330         (WTR::AccessibilityUIElement::uiElementForSearchPredicate): Deleted.
3331         (WTR::AccessibilityUIElement::selectTextWithCriteria): Deleted.
3332         (WTR::AccessibilityUIElement::cellForColumnAndRow): Deleted.
3333         (WTR::AccessibilityUIElement::horizontalScrollbar): Deleted.
3334         (WTR::AccessibilityUIElement::verticalScrollbar): Deleted.
3335         (WTR::AccessibilityUIElement::addNotificationListener): Deleted.
3336         (WTR::AccessibilityUIElement::removeNotificationListener): Deleted.
3337         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Deleted.
3338         (WTR::AccessibilityUIElement::textMarkerRangeForElement): Deleted.
3339         (WTR::AccessibilityUIElement::textMarkerRangeLength): Deleted.
3340         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Deleted.
3341         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange): Deleted.
3342         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange): Deleted.
3343         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker): Deleted.
3344         (WTR::AccessibilityUIElement::endTextMarkerForBounds): Deleted.
3345         (WTR::AccessibilityUIElement::startTextMarkerForBounds): Deleted.
3346         (WTR::AccessibilityUIElement::textMarkerForPoint): Deleted.
3347         (WTR::AccessibilityUIElement::previousTextMarker): Deleted.
3348         (WTR::AccessibilityUIElement::nextTextMarker): Deleted.
3349         (WTR::AccessibilityUIElement::startTextMarker): Deleted.
3350         (WTR::AccessibilityUIElement::endTextMarker): Deleted.
3351         (WTR::AccessibilityUIElement::stringForTextMarkerRange): Deleted.
3352         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute): Deleted.
3353         (WTR::AccessibilityUIElement::indexForTextMarker): Deleted.
3354         (WTR::AccessibilityUIElement::isTextMarkerValid): Deleted.
3355         (WTR::AccessibilityUIElement::textMarkerForIndex): Deleted.
3356         (WTR::AccessibilityUIElement::scrollToMakeVisible): Deleted.
3357         (WTR::AccessibilityUIElement::scrollToGlobalPoint): Deleted.
3358         (WTR::AccessibilityUIElement::scrollToMakeVisibleWithSubFocus): Deleted.
3359         (WTR::AccessibilityUIElement::supportedActions): Deleted.
3360         (WTR::AccessibilityUIElement::mathPostscriptsDescription): Deleted.
3361         (WTR::AccessibilityUIElement::mathPrescriptsDescription): Deleted.
3362         (WTR::AccessibilityUIElement::pathDescription): Deleted.
3363         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3364         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3365         (WTR::EventSendingController::create):
3366         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
3367         * WebKitTestRunner/InjectedBundle/GCController.cpp:
3368         (WTR::GCController::create):
3369         * WebKitTestRunner/InjectedBundle/GCController.h:
3370         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3371         (WTR::InjectedBundle::beginTesting):
3372         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
3373         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3374         (WTR::TestRunner::create):
3375         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3376         * WebKitTestRunner/InjectedBundle/TextInputController.cpp:
3377         (WTR::TextInputController::create):
3378         * WebKitTestRunner/InjectedBundle/TextInputController.h:
3379         * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
3380         (WTR::AccessibilityController::accessibleElementById):
3381         (WTR::AccessibilityController::rootElement):
3382         (WTR::AccessibilityController::focusedElement):
3383         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3384         * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.h:
3385         (WTR::AccessibilityNotificationHandler::create):
3386         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3387         (WTR::AccessibilityUIElement::elementAtPoint):
3388         (WTR::AccessibilityUIElement::childAtIndex):
3389         (WTR::accessibilityElementAtIndex):
3390         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
3391         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
3392         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
3393         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
3394         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
3395         (WTR::AccessibilityUIElement::rowAtIndex):
3396         (WTR::AccessibilityUIElement::selectedChildAtIndex):
3397         (WTR::AccessibilityUIElement::selectedRowAtIndex):
3398         (WTR::AccessibilityUIElement::titleUIElement):
3399         (WTR::AccessibilityUIElement::parentElement):
3400         (WTR::AccessibilityUIElement::disclosedByRow):
3401         (WTR::AccessibilityUIElement::uiElementAttributeValue):
3402         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
3403         (WTR::AccessibilityUIElement::cellForColumnAndRow):
3404         (WTR::AccessibilityUIElement::horizontalScrollbar):
3405         (WTR::AccessibilityUIElement::verticalScrollbar):
3406         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
3407         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
3408         (WTR::AccessibilityUIElement::previousTextMarker):
3409         (WTR::AccessibilityUIElement::nextTextMarker):
3410         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
3411         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
3412         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
3413         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
3414         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
3415         (WTR::AccessibilityUIElement::textMarkerForPoint):
3416         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
3417         (WTR::AccessibilityUIElement::textMarkerForIndex):
3418         (WTR::AccessibilityUIElement::startTextMarker):
3419         (WTR::AccessibilityUIElement::endTextMarker):
3420         * WebKitTestRunner/InjectedBundle/ios/AccessibilityControllerIOS.mm:
3421         (WTR::AccessibilityController::accessibleElementById):
3422         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3423         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3424         (WTR::AccessibilityUIElement::headerElementAtIndex):
3425         (WTR::AccessibilityUIElement::linkedElement):
3426         (WTR::AccessibilityUIElement::elementAtPoint):
3427         (WTR::AccessibilityUIElement::childAtIndex):
3428         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
3429         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
3430         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
3431         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
3432         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
3433         (WTR::AccessibilityUIElement::rowAtIndex):
3434         (WTR::AccessibilityUIElement::selectedChildAtIndex):
3435         (WTR::AccessibilityUIElement::selectedRowAtIndex):
3436         (WTR::AccessibilityUIElement::titleUIElement):
3437         (WTR::AccessibilityUIElement::parentElement):
3438         (WTR::AccessibilityUIElement::disclosedByRow):
3439         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue):
3440         (WTR::AccessibilityUIElement::uiElementAttributeValue):
3441         (WTR::AccessibilityUIElement::rangeForLine):
3442         (WTR::AccessibilityUIElement::rangeForPosition):
3443         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
3444         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
3445         (WTR::AccessibilityUIElement::cellForColumnAndRow):
3446         (WTR::AccessibilityUIElement::horizontalScrollbar):
3447         (WTR::AccessibilityUIElement::verticalScrollbar):
3448         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
3449         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
3450         (WTR::AccessibilityUIElement::previousTextMarker):
3451         (WTR::AccessibilityUIElement::nextTextMarker):
3452         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
3453         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
3454         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
3455         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
3456         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
3457         (WTR::AccessibilityUIElement::textMarkerForPoint):
3458         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
3459         (WTR::AccessibilityUIElement::textMarkerForIndex):
3460         (WTR::AccessibilityUIElement::startTextMarker):
3461         (WTR::AccessibilityUIElement::endTextMarker):
3462         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
3463         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
3464         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
3465         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
3466         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
3467         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
3468         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
3469         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
3470         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
3471         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
3472         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
3473         (WTR::AccessibilityUIElement::mathPrescriptsDescription):
3474         (WTR::AccessibilityUIElement::supportedActions):
3475         * WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm:
3476         (WTR::AccessibilityController::accessibleElementById):
3477         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3478         * WebKitTestRunner/InjectedBundle/mac/AccessibilityNotificationHandler.mm:
3479         (makeValueRefForValue):
3480         (-[AccessibilityNotificationHandler _notificationReceived:]):
3481         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
3482         (WTR::AccessibilityUIElement::elementAtPoint):
3483         (WTR::AccessibilityUIElement::childAtIndex):
3484         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
3485         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
3486         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
3487         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
3488         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
3489         (WTR::AccessibilityUIElement::rowAtIndex):
3490         (WTR::AccessibilityUIElement::selectedChildAtIndex):
3491         (WTR::AccessibilityUIElement::selectedRowAtIndex):
3492         (WTR::AccessibilityUIElement::titleUIElement):
3493         (WTR::AccessibilityUIElement::parentElement):
3494         (WTR::AccessibilityUIElement::disclosedByRow):
3495         (WTR::AccessibilityUIElement::uiElementAttributeValue):
3496         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
3497         (WTR::AccessibilityUIElement::cellForColumnAndRow):
3498         (WTR::AccessibilityUIElement::horizontalScrollbar):
3499         (WTR::AccessibilityUIElement::verticalScrollbar):
3500         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
3501         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
3502         (WTR::AccessibilityUIElement::previousTextMarker):
3503         (WTR::AccessibilityUIElement::nextTextMarker):
3504         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
3505         (WTR::AccessibilityUIElement::selectedTextMarkerRange):
3506         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
3507         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
3508         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
3509         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
3510         (WTR::AccessibilityUIElement::textMarkerForPoint):
3511         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
3512         (WTR::AccessibilityUIElement::textMarkerForIndex):
3513         (WTR::AccessibilityUIElement::startTextMarker):
3514         (WTR::AccessibilityUIElement::endTextMarker):
3515         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
3516         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
3517         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
3518         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
3519         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
3520         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
3521         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
3522         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
3523         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
3524         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
3525         * WebKitTestRunner/efl/EventSenderProxyEfl.cpp:
3526         (WTR::keyPadName):
3527         (WTR::keyName):
3528
3529 2016-11-02  Alex Christensen  <achristensen@webkit.org>
3530
3531         Remove Battery Status API from the tree
3532         https://bugs.webkit.org/show_bug.cgi?id=164213
3533
3534         Reviewed by Sam Weinig.
3535
3536         * Scripts/webkitperl/FeatureList.pm:
3537         * Scripts/webkitpy/common/config/watchlist:
3538
3539 2016-11-02  Olivier Blin  <olivier.blin@softathome.com>
3540
3541         [GTK] Use libgcrypt instead of GnuTLS for CryptoDigest and SubtleCrypto HMAC implementation
3542         https://bugs.webkit.org/show_bug.cgi?id=163125
3543
3544         Reviewed by Michael Catanzaro.
3545
3546         * gtk/install-dependencies: List libgcrypt for WebKitGTK+ build, and gnutls for jhbuild only.
3547         gnutls is useful for glib-networking in jhbuild.
3548
3549 2016-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
3550
3551         NetworkSession: Network process crash when converting main resource to download
3552         https://bugs.webkit.org/show_bug.cgi?id=164220
3553
3554         Reviewed by Alex Christensen.
3555
3556         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
3557         converted to a download and another one to test the cancellation as the test was doing before. When doing the
3558         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
3559         download.
3560
3561         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
3562         (testPolicyResponseDownload):
3563         (testPolicyResponseDownloadCancel):
3564         (beforeAll):
3565
3566 2016-11-01  Alex Christensen  <achristensen@webkit.org>
3567
3568         Remove PassRefPtr from DumpRenderTree
3569         https://bugs.webkit.org/show_bug.cgi?id=164307
3570
3571         Reviewed by Sam Weinig.
3572
3573         * DumpRenderTree/PixelDumpSupport.h:
3574         * DumpRenderTree/TestRunner.cpp:
3575         (TestRunner::create):
3576         * DumpRenderTree/TestRunner.h:
3577         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
3578         (createBitmapContext):
3579         * DumpRenderTree/cg/PixelDumpSupportCG.h:
3580         (BitmapContext::createByAdoptingBitmapAndContext):
3581         * DumpRenderTree/ios/PixelDumpSupportIOS.mm:
3582         (createBitmapContextFromWebView):