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