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