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