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