[MSE] Removing samples when presentation order does not match decode order can cause...
[WebKit.git] / Tools / ChangeLog
1 2017-07-14  Jer Noble  <jer.noble@apple.com>
2
3         [MSE] Removing samples when presentation order does not match decode order can cause bad behavior.
4         https://bugs.webkit.org/show_bug.cgi?id=174514
5
6         Reviewed by Sam Weinig.
7
8         * TestWebKitAPI/Tests/WebCore/SampleMap.cpp:
9         (TestWebKitAPI::TEST_F):
10
11 2017-07-14  Yusuke Suzuki  <utatane.tea@gmail.com>
12
13         [WTF] Newly added AtomicStringImpl should use BufferInternal static string if StringImpl is static
14         https://bugs.webkit.org/show_bug.cgi?id=174501
15
16         Reviewed by Darin Adler.
17
18         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
19         (TestWebKitAPI::TEST):
20
21 2017-07-14  Jonathan Bedard  <jbedard@apple.com>
22
23         Bring mac expectations in-line with other platforms
24         https://bugs.webkit.org/show_bug.cgi?id=174472
25         <rdar://problem/33297388>
26
27         Reviewed by David Kilzer.
28
29         The override order for Mac test expectations does not conform to the pattern used by iOS,
30         GTK, Windows and WPE. Before this change, El Capitan's baseline search path looks like this:
31
32             platform/mac-wk2
33             platform/wk2
34             platform/mac-elcapitan
35             platform/mac-sierra
36             generic
37
38         After this change, El Capitan's baseline search path looks like this:
39
40             platform/mac-sierra-wk2
41             platform/mac-sierra
42             platform/mac-wk2
43             platform/wk2
44             generic
45
46         * Scripts/webkitpy/port/mac.py:
47         (MacPort.__init__): If a specific version is specified in the port name, use that
48         as the os version.
49         (MacPort.default_baseline_search_path): Expectation search paths should work the
50         same way they do on other ports. Port + version overrides port, port overrides generic
51         and wk1/wk2 should override expectations for the two combined.
52         * Scripts/webkitpy/port/mac_unittest.py:
53         (MacTest.test_tests_for_other_platforms): Deleted.
54         (MacTest._assert_search_path): Deleted.
55         (MacTest.test_baseline_search_path): Deleted.
56         * Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
57         (TestRebaselineTest.test_baseline_directory): Adjust expectations for new over-ride order.
58         (test_rebaseline_test_and_print_scm_changes): Ditto.
59         (test_rebaseline_and_copy_test): Ditto.
60         (test_rebaseline_and_copy_test_no_existing_result): Ditto.
61         (test_rebaseline_and_copy_test_with_lion_result): Ditto.
62         (test_rebaseline_and_copy_no_overwrite_test): Ditto.
63
64 2017-07-13  Michael Catanzaro  <mcatanzaro@igalia.com>
65
66         Fix style checker unit test
67
68         Unreviewed WebKit2 => WebKit fixup.
69
70         * Scripts/webkitpy/style/checker_unittest.py:
71         (CheckerDispatcherSkipTest.test_should_skip_with_warning):
72
73 2017-07-13  Matthew Hanson  <matthew_hanson@apple.com>
74
75         Use the old WebKit/WebKit2 targets for CMake builds. (v2)
76
77         Unreviewed build fix.
78
79         r219492 missed one hunk from its partial revert of r219489.
80         This patch reverts that hunk.
81
82         * TestWebKitAPI/CMakeLists.txt:
83
84 2017-07-13  Matthew Hanson  <matthew_hanson@apple.com>
85
86         Use the old WebKit/WebKit2 targets for CMake builds.
87
88         Unreviewed build fix.
89
90         We can update the target names to match the Framework names in a future patch.
91         This is a partial revert of r219489.
92
93         * TestWebKitAPI/CMakeLists.txt:
94         WebKitLegacy => WebKit
95         WebKit => WebKit2
96
97 2017-07-13  Matthew Hanson  <matthew_hanson@apple.com>
98
99         Fix TestWebKit API.
100         https://bugs.webkit.org/show_bug.cgi?id=174164
101         rdar://problem/33137595
102
103         Reviewed by Dan Bernstein.
104
105         * TestWebKitAPI/CMakeLists.txt:
106         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
107         * TestWebKitAPI/PlatformGTK.cmake:
108
109 2017-07-13  Matthew Hanson  <matthew_hanson@apple.com>
110
111         Update tools and configurations after renaming Source/WebKit2 to Source/WebKit.
112         https://bugs.webkit.org/show_bug.cgi?id=174164
113         rdar://problem/33137595
114
115         Reviewed by Dan Bernstein.
116
117         * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
118         (ShouldBuildTest):
119         * DumpRenderTree/mac/Configurations/Base.xcconfig:
120         * Scripts/build-webkit:
121         * Scripts/do-file-rename:
122         * Scripts/do-webcore-rename:
123         * Scripts/update-webkit-localizable-strings:
124         * Scripts/webkitpy/common/config/watchlist:
125         * Scripts/webkitpy/style/checker.py:
126         * Scripts/webkitpy/style/checkers/featuredefines.py:
127         * gtk/make-dist.py:
128         (ensure_version_if_possible):
129         * gtk/manifest.txt.in:
130
131 2017-07-05  Matthew Hanson  <matthew_hanson@apple.com>
132
133         Update tools and configurations after renaming Source/WebKit to Source/WebKitLegacy.
134         https://bugs.webkit.org/show_bug.cgi?id=174162
135         rdar://problem/33137594
136
137         Reviewed by Dan Bernstein.
138
139         Mass rename of Source/WebKit to Source/WebKitLegacy in OpenSource tooling.
140
141         * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
142         * DumpRenderTree/mac/InternalHeaders/WebKit/WebTypesInternal.h:
143         * EWSTools/configure-clang-linux.sh:
144         * Scripts/build-webkit:
145         * Scripts/do-file-rename:
146         * Scripts/do-webcore-rename:
147         * Scripts/update-webkit-localizable-strings:
148         * Scripts/webkitpy/common/checkout/checkout_unittest.py:
149         * Scripts/webkitpy/style/checkers/changelog_unittest.py:
150         * Scripts/webkitpy/style/checkers/featuredefines.py:
151         * gtk/manifest.txt.in:
152
153 2017-07-13  Jonathan Bedard  <jbedard@apple.com>
154
155         Add script to rebase patches during the WebKit2->WebKit/WebKit->WebKitLegacy transition
156         https://bugs.webkit.org/show_bug.cgi?id=174438
157         <rdar://problem/33277112>
158
159         Reviewed by Aakash Jain.
160
161         Given a patch, this will convert the changes from the path to the new directory structure.
162
163         * Scripts/rebase-patch-after-webkit-move: Added.
164         (append_source): Append 'Source' to the provided path.
165         (is_editable_line): Return true if a line the script expects to modify.
166         (needs_rebase): Return if a line needs to be rebased based on it's content.
167         (rebase_line): Rebase the provided line.
168         (rebase): Rebase a patch given the lines of that patch and a file to output the rebased patch to.
169         (parse_arguments): Parse the command line arguments and return the patches to be rebased, if they
170         were provided.
171
172 2017-07-12  Nan Wang  <n_wang@apple.com>
173
174         AX: [iOS] Implement a way to retrieve a text marker range with desired text that is closest to a position
175         https://bugs.webkit.org/show_bug.cgi?id=174393
176         <rdar://problem/33248006>
177
178         Reviewed by Chris Fleizach.
179
180         * DumpRenderTree/AccessibilityUIElement.cpp:
181         (textMarkerRangeMatchesTextNearMarkersCallback):
182         (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
183         (AccessibilityUIElement::getJSClass):
184         * DumpRenderTree/AccessibilityUIElement.h:
185         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
186         (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
187         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
188         (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
189         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
190         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
191         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
192         (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
193
194 2017-07-12  Matt Lewis  <jlewis3@apple.com>
195
196         Unreviewed, rolling out r219409.
197
198         The revision caused the Windows builds to fail.
199
200         Reverted changeset:
201
202         "AX: [iOS] Implement a way to retrieve a text marker range
203         with desired text that is closest to a position"
204         https://bugs.webkit.org/show_bug.cgi?id=174393
205         http://trac.webkit.org/changeset/219409
206
207 2017-07-12  Nan Wang  <n_wang@apple.com>
208
209         AX: [iOS] Implement a way to retrieve a text marker range with desired text that is closest to a position
210         https://bugs.webkit.org/show_bug.cgi?id=174393
211         <rdar://problem/33248006>
212
213         Reviewed by Chris Fleizach.
214
215         * DumpRenderTree/AccessibilityUIElement.cpp:
216         (textMarkerRangeMatchesTextNearMarkersCallback):
217         (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
218         (AccessibilityUIElement::getJSClass):
219         * DumpRenderTree/AccessibilityUIElement.h:
220         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
221         (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
222         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
223         (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
224         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
225         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
226         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
227         (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers):
228
229 2017-07-12  Emilio Cobos Álvarez  <ecobos@igalia.com>
230
231         Make prepare-ChangeLog -g <commit> generate a more standard ChangeLog entry.
232         https://bugs.webkit.org/show_bug.cgi?id=174197
233
234         Reviewed by Darin Adler.
235
236         This bit me the first time I tried to submit a patch to WebKit, and still I have
237         to manually edit the ChangeLog every time I use the script.
238
239         This generates a more convenient and standard ChangeLog entry.
240
241         * Scripts/prepare-ChangeLog:
242         (generateNewChangeLogs):
243
244 2017-07-12  Matt Lewis  <jlewis3@apple.com>
245
246         Unreviewed, rolling out r219401.
247
248         This revision rolled out the previous patch, but after talking
249         with reviewer, a rebaseline is what was needed.Rolling back in
250         before rebaseline.
251
252         Reverted changeset:
253
254         "Unreviewed, rolling out r219379."
255         https://bugs.webkit.org/show_bug.cgi?id=174400
256         http://trac.webkit.org/changeset/219401
257
258 2017-07-12  Matt Lewis  <jlewis3@apple.com>
259
260         Unreviewed, rolling out r219379.
261
262         This revision caused a consistent failure in the test
263         fast/dom/Window/property-access-on-cached-window-after-frame-
264         removed.html.
265
266         Reverted changeset:
267
268         "Remove NAVIGATOR_HWCONCURRENCY"
269         https://bugs.webkit.org/show_bug.cgi?id=174400
270         http://trac.webkit.org/changeset/219379
271
272 2017-07-12  Zan Dobersek  <zdobersek@igalia.com>
273
274         [WPE] Use libepoxy
275         https://bugs.webkit.org/show_bug.cgi?id=172104
276
277         Reviewed by Michael Catanzaro.
278
279         * WebKitTestRunner/wpe/HeadlessViewBackend.h:
280         Include the <epoxy/egl.h> header, dropping the EGL and GLES2 inclusions.
281
282 2017-07-12  Zan Dobersek  <zdobersek@igalia.com>
283
284         [GTK][WPE] Align Jhbuild patches for GStreamer packages
285         https://bugs.webkit.org/show_bug.cgi?id=174363
286
287         Reviewed by Michael Catanzaro.
288
289         Align the patches we apply over Jhbuild-managed GStreamer dependency packages
290         between the GTK+ and WPE port. There's no reason for the two ports to apply
291         different patches over same versions of GStreamer releases.
292
293         This aligns the two ports on this specific issue. Next we'll look into
294         creating a single GStreamer-specific Jhbuild moduleset that will allow us
295         to keep these patches in a single place, avoiding duplicate files.
296
297         * gtk/jhbuild.modules:
298         * gtk/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Added.
299         * gtk/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0004-qtdemux-add-context-for-a-preferred-protection.patch.
300         * gtk/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Added.
301         * wpe/patches/gstreamer-typefind-Only-push-a-CAPS-event-downstream-if-the-.patch: Removed.
302
303 2017-07-11  Dean Jackson  <dino@apple.com>
304
305         Remove NAVIGATOR_HWCONCURRENCY
306         https://bugs.webkit.org/show_bug.cgi?id=174400
307
308         Reviewed by Sam Weinig.
309
310         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
311
312 2017-07-11  Ansh Shukla  <ansh_shukla@apple.com>
313
314         WKWindowFeatures needs to expose scrollbar, fullscreen, and dialog configuration properties
315         https://bugs.webkit.org/show_bug.cgi?id=174239
316
317         Reviewed by Brady Eidson.
318
319         Create windows with specific features set and make sure those are properly reflected in the
320         WKWindowFeatures object.
321
322         * TestWebKitAPI/Tests/WebKit2Cocoa/OpenAndCloseWindow.mm:
323         (resetToConsistentState):
324         (-[CheckWindowFeaturesUIDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
325         (TEST):
326
327 2017-07-11  Jonathan Bedard  <jbedard@apple.com>
328
329         Do not duplicate files when deleting directories with svn 1.9
330         https://bugs.webkit.org/show_bug.cgi?id=174339
331         <rdar://problem/33226781>
332
333         Reviewed by David Kilzer.
334
335         * Scripts/svn-create-patch:
336         (diffOptionsForFile): No longer pass -N option, since this does not work in SVN 1.9.4.
337         (generateFileList): Determine which files are deleted because they are part of a
338         directory being deleted.
339
340 2017-07-11  Dean Jackson  <dino@apple.com>
341
342         Rolling out r219372.
343
344         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
345
346 2017-07-11  Dean Jackson  <dino@apple.com>
347
348         Remove NAVIGATOR_HWCONCURRENCY
349         https://bugs.webkit.org/show_bug.cgi?id=174400
350
351         Reviewed by Sam Weinig.
352
353         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
354
355 2017-07-11  Lucas Forschler  <lforschler@apple.com>
356
357         Teach build workers to fetch archives from S3.
358         https://bugs.webkit.org/show_bug.cgi?id=174384
359
360         Reviewed by Aakash Jain.
361
362         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
363         (DownloadBuiltProduct):
364
365 2017-07-11  Lucas Forschler  <lforschler@apple.com>
366
367         Configure buildbot to transfer all archives to S3.
368         Previously this was Mac only, but it's time to expand!
369         https://bugs.webkit.org/show_bug.cgi?id=174378
370         
371         Reviewed by Aakash Jain.
372
373         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
374         (BuildFactory.__init__):
375
376 2017-07-11  Zan Dobersek  <zdobersek@igalia.com>
377
378         [WPE] Bump GStreamer packages in jhbuild.modules to 1.10.5
379         https://bugs.webkit.org/show_bug.cgi?id=174350
380
381         Reviewed by Xabier Rodriguez-Calvar.
382
383         Bump the various GStreamer dependencies listed in WPE's Jhbuild modules file
384         to the 1.10.5 version. One gstreamer patch is added. The two gst-plugins-bad
385         patches are removed. The patches for gst-plugins-good are updated, removing
386         the stale ones and adding the additional changes to qtdemux, souphttpsrc and
387         rtpbin elements that will help with the EMEv3 development.
388
389         * wpe/jhbuild.modules:
390         * wpe/patches/gst-plugins-bad-0001-dtls-port-to-OpenSSL-1.1.0.patch: Removed.
391         * wpe/patches/gst-plugins-bad-0002-dtlscertificate-Fix-error-checking-in-RSA_generate_k.patch: Removed.
392         * wpe/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Added.
393         * wpe/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Added.
394         * wpe/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Added.
395         * wpe/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Added.
396         * wpe/patches/gst-plugins-good-Revert-qtdemux-expose-streams-with-first-moof-for-fr.patch: Removed.
397         * wpe/patches/gst-plugins-good-use-the-tfdt-decode-time.patch: Removed.
398         * wpe/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Added.
399
400 2017-07-10  John Wilander  <wilander@apple.com>
401
402         Resource Load Statistics: Prune statistics in orders of importance
403         https://bugs.webkit.org/show_bug.cgi?id=174215
404         <rdar://problem/33164403>
405
406         Reviewed by Chris Dumez.
407
408         Nest infrastructure. Adds these functions:
409         1. testRunner.setStatisticsLastSeen()
410         2. setStatisticsMaxStatisticsEntries()
411         3. setStatisticsPruneEntriesDownTo()
412
413         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
414         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
415         (WTR::TestRunner::setStatisticsLastSeen):
416         (WTR::TestRunner::setStatisticsMaxStatisticsEntries):
417         (WTR::TestRunner::setStatisticsPruneEntriesDownTo):
418         * WebKitTestRunner/InjectedBundle/TestRunner.h:
419         * WebKitTestRunner/TestController.cpp:
420         (WTR::TestController::setStatisticsLastSeen):
421         (WTR::TestController::setMaxStatisticsEntries):
422         (WTR::TestController::setPruneEntriesDownTo):
423         * WebKitTestRunner/TestController.h:
424         * WebKitTestRunner/TestInvocation.cpp:
425         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
426         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
427         (WTR::TestController::setStatisticsLastSeen):
428         (WTR::TestController::setStatisticsMaxStatisticsEntries):
429         (WTR::TestController::setStatisticsPruneEntriesDownTo):
430
431 2017-07-03  Brian Burg  <bburg@apple.com>
432
433         Web Replay: remove some unused code
434         https://bugs.webkit.org/show_bug.cgi?id=173903
435
436         Rubber-stamped by Joseph Pecoraro.
437
438         * Scripts/run-input-generator-tests: Removed.
439         * Scripts/webkitpy/replay/__init__.py: Removed.
440         * Scripts/webkitpy/replay/main.py: Removed.
441
442 2017-07-10  Zan Dobersek  <zdobersek@igalia.com>
443
444         [WPE] Fix layout test baseline and TestExpectations hierarchy
445         https://bugs.webkit.org/show_bug.cgi?id=174092
446
447         Reviewed by Michael Catanzaro.
448
449         Like for the GTK+ port, override the default_baseline_search_path() and
450         _port_specific_expectations_files() methods in the webkitpy.port.WPEPort class.
451         Both methods operate on a short list of search paths that defaults to 'wpe' and
452         'wk2', along with any other user-specified platform directory.
453
454         The test_expectations_file_position() method is overridden for testing purposes,
455         and relevant unit tests are added.
456
457         * Scripts/webkitpy/port/wpe.py:
458         (WPEPort._search_paths):
459         (WPEPort):
460         (WPEPort.default_baseline_search_path):
461         (WPEPort._port_specific_expectations_files):
462         (WPEPort.test_expectations_file_position):
463         * Scripts/webkitpy/port/wpe_unittest.py:
464         (WPEPortTest.test_default_baseline_search_path):
465         (WPEPortTest):
466         (WPEPortTest.test_port_specific_expectations_files):
467
468 2017-07-10  Chris Dumez  <cdumez@apple.com>
469
470         Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up
471         https://bugs.webkit.org/show_bug.cgi?id=174301
472
473         Reviewed by Brent Fulgham.
474
475         Rename some of the testRunner API for clarity and to better match what it calls
476         internally.
477
478         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
479         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
480         (WTR::TestRunner::statisticsUpdateCookiePartitioning):
481         (WTR::TestRunner::statisticsSetShouldPartitionCookiesForHost):
482         * WebKitTestRunner/InjectedBundle/TestRunner.h:
483         * WebKitTestRunner/TestController.cpp:
484         (WTR::TestController::statisticsUpdateCookiePartitioning):
485         (WTR::TestController::statisticsSetShouldPartitionCookiesForHost):
486         * WebKitTestRunner/TestController.h:
487         * WebKitTestRunner/TestInvocation.cpp:
488         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
489         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
490         (WTR::TestController::statisticsUpdateCookiePartitioning):
491         (WTR::TestController::statisticsSetShouldPartitionCookiesForHost):
492
493 2017-07-10  Charlie Turner  <cturner@igalia.com>
494
495         [GStreamer] Live twitch.tv videos do not play
496         https://bugs.webkit.org/show_bug.cgi?id=174222
497
498         Reviewed by Michael Catanzaro.
499
500         Upgrade GStreamer to 1.10.5. It contains a change to typefind that
501         fixes videos not playing on twitch.tv.
502
503         * gtk/jhbuild.modules:
504
505 2017-07-09  Zan Dobersek  <zdobersek@igalia.com>
506
507         Add WebGL2 configuration option to build-webkit
508         https://bugs.webkit.org/show_bug.cgi?id=174251
509
510         Reviewed by Michael Catanzaro.
511
512         * Scripts/webkitperl/FeatureList.pm: Add the 'webgl2' option, making it possible
513         to enable the ENABLE_WEBGL2 flag through the build-webkit script. The feature
514         is marked as enabled for the Apple Cocoa ports.
515
516 2017-07-08  Chris Dumez  <cdumez@apple.com>
517
518         Simplify WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore
519         https://bugs.webkit.org/show_bug.cgi?id=174290
520
521         Reviewed by Brent Fulgham.
522
523         Rename testRunner API to match the new internal API names.
524
525         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
526         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
527         (WTR::TestRunner::statisticsProcessStatisticsAndDataRecords):
528         (WTR::TestRunner::statisticsSubmitTelemetry):
529         * WebKitTestRunner/InjectedBundle/TestRunner.h:
530         * WebKitTestRunner/TestController.cpp:
531         (WTR::TestController::statisticsProcessStatisticsAndDataRecords):
532         (WTR::TestController::statisticsSubmitTelemetry):
533         * WebKitTestRunner/TestController.h:
534         * WebKitTestRunner/TestInvocation.cpp:
535         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
536         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
537         (WTR::TestController::statisticsProcessStatisticsAndDataRecords):
538         (WTR::TestController::statisticsSubmitTelemetry):
539
540 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
541
542         Drop NOSNIFF compile flag
543         https://bugs.webkit.org/show_bug.cgi?id=174289
544
545         Reviewed by Michael Catanzaro.
546
547         * Scripts/webkitperl/FeatureList.pm:
548         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
549
550 2017-07-07  Wenson Hsieh  <wenson_hsieh@apple.com>
551
552         [iOS DnD] For cross-app drags, 'drop' event handlers are never invoked if dataTransfer.dropEffect is not set while dragging
553         https://bugs.webkit.org/show_bug.cgi?id=174219
554         <rdar://problem/32083177>
555
556         Reviewed by Ryosuke Niwa.
557
558         Add plumbing and support to mock the value of -allowsMoveOperation on the simulated UIDragDropSession objects.
559         Setting the DataInteractionSimulator's shouldAllowMoveOperation property to NO simulates a drag operation coming
560         in from another app out-of-process, for which move operations won't cause a drop to be performed in the first
561         place.
562
563         Also tweaks 2 existing unit tests regarding file uploads via JavaScript to simulate items coming in from a
564         different application, and adds a new test to check that if a drop area specifically requests a MOVE operation,
565         no action is taken when dropping.
566
567         * TestWebKitAPI/Tests/WebKit2Cocoa/file-uploading.html:
568         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
569         (TestWebKitAPI::TEST):
570         * TestWebKitAPI/ios/DataInteractionSimulator.h:
571         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
572         (-[MockDragDropSession initWithItems:location:window:allowMove:]):
573         (-[MockDragDropSession allowsMoveOperation]):
574         (-[MockDataOperationSession initWithProviders:location:window:allowMove:]):
575         (-[MockDataInteractionSession initWithWindow:allowMove:]):
576         (-[DataInteractionSimulator initWithWebView:]):
577         (-[DataInteractionSimulator runFrom:to:]):
578         (-[DataInteractionSimulator _advanceProgress]):
579         (-[MockDragDropSession initWithItems:location:window:]): Deleted.
580         (-[MockDataOperationSession initWithProviders:location:window:]): Deleted.
581         (-[MockDataInteractionSession initWithWindow:]): Deleted.
582
583 2017-07-07  Commit Queue  <commit-queue@webkit.org>
584
585         Unreviewed, rolling out r219238, r219239, and r219241.
586         https://bugs.webkit.org/show_bug.cgi?id=174265
587
588         "fast/workers/dedicated-worker-lifecycle.html is flaky"
589         (Requested by yusukesuzuki on #webkit).
590
591         Reverted changesets:
592
593         "[WTF] Implement WTF::ThreadGroup"
594         https://bugs.webkit.org/show_bug.cgi?id=174081
595         http://trac.webkit.org/changeset/219238
596
597         "Unreviewed, build fix after r219238"
598         https://bugs.webkit.org/show_bug.cgi?id=174081
599         http://trac.webkit.org/changeset/219239
600
601         "Unreviewed, CLoop build fix after r219238"
602         https://bugs.webkit.org/show_bug.cgi?id=174081
603         http://trac.webkit.org/changeset/219241
604
605 2017-07-07  Yusuke Suzuki  <utatane.tea@gmail.com>
606
607         [GTK][WPE] Enable X-Content-Type-Options: nosniff
608         https://bugs.webkit.org/show_bug.cgi?id=174250
609
610         Reviewed by Carlos Alberto Lopez Perez.
611
612         * Scripts/webkitperl/FeatureList.pm:
613
614 2017-07-07  Charlie Turner  <cturner@igalia.com>
615         [GStreamer] vid.me videos do not play
616         https://bugs.webkit.org/show_bug.cgi?id=172240
617
618         Reviewed by Xabier Rodriguez-Calvar.
619
620         Build httpsoupsrc again for use in adaptive streaming pipelines, and
621         have the existing libsoup build against GNOME to avoid header drift
622         against GStreamer's linked Soup library.
623
624         * gtk/jhbuild.modules:
625
626 2017-07-06  Lucas Forschler  <lforschler@apple.com>
627
628         Write a support script to enable buildbot to upload to S3
629         https://bugs.webkit.org/show_bug.cgi?id=174196
630         
631         Reviewed by Stephanie Lewis.
632
633         * BuildSlaveSupport/build.webkit.org-config/transfer-archive-to-s3: Added.
634         (uploadToS3):
635         (archiveExists):
636
637 2017-07-06  Lucas Forschler  <lforschler@apple.com>
638
639         Enabling uploading archives to S3.
640         https://bugs.webkit.org/show_bug.cgi?id=174198
641         
642         Reviewed by Stephanie Lewis.
643
644         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
645         (ArchiveMinifiedBuiltProduct): Create a minified archive from a full archive
646         (UploadMinifiedBuiltProduct): Upload minified archive to build master
647         (TransferToS3): Transfer full and minified archives to S3
648
649 2017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
650
651         [WTF] Implement WTF::ThreadGroup
652         https://bugs.webkit.org/show_bug.cgi?id=174081
653
654         Reviewed by Mark Lam.
655
656         Add WTF::ThreadGroup tests.
657
658         * TestWebKitAPI/CMakeLists.txt:
659         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
660         * TestWebKitAPI/Tests/WTF/ThreadGroup.cpp: Added.
661         (TestWebKitAPI::TEST):
662
663 2017-07-06  Yusuke Suzuki  <utatane.tea@gmail.com>
664
665         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
666         https://bugs.webkit.org/show_bug.cgi?id=174150
667
668         Reviewed by Mark Lam.
669
670         * TestWebKitAPI/Tests/WTF/StringBuilder.cpp:
671         (TestWebKitAPI::TEST):
672         * TestWebKitAPI/TestsController.cpp:
673         (TestWebKitAPI::TestsController::TestsController):
674
675 2017-07-06  Lucas Forschler  <lforschler@apple.com>
676
677         Enabling uploading archives to S3.
678         https://bugs.webkit.org/show_bug.cgi?id=174198
679         
680         Reviewed by Lucas Forschler.
681
682         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
683         (ArchiveMinifiedBuiltProduct): Create a minified archive from a full archive
684         (UploadMinifiedBuiltProduct): Upload minified archive to build master
685         (TransferToS3): Transfer full and minified archives to S3
686
687 2017-07-06  Carlos Alberto Lopez Perez  <clopez@igalia.com>
688
689         [GTK][WPE] kill-old-process should kill more webkit related process
690         https://bugs.webkit.org/show_bug.cgi?id=174220
691
692         Reviewed by Michael Catanzaro.
693
694         Generate list of possible webkit-related process names and add
695         them to the list of process to kill.
696         Also update the possible system related process for GTK+/WPE.
697
698         * BuildSlaveSupport/kill-old-processes:
699         (listAllWebKitPrograms):
700         (main):
701
702 2017-07-06  Chris Dumez  <cdumez@apple.com>
703
704         FileMonitor should not be ref counted
705         https://bugs.webkit.org/show_bug.cgi?id=174166
706
707         Reviewed by Brent Fulgham.
708
709         Update the API tests to reflect the API change.
710
711         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
712         (TestWebKitAPI::TEST_F):
713
714 2017-07-06  Commit Queue  <commit-queue@webkit.org>
715
716         Unreviewed, rolling out r219194.
717         https://bugs.webkit.org/show_bug.cgi?id=174207
718
719         it broke some layout tests (Requested by clopez on #webkit).
720
721         Reverted changeset:
722
723         "[GStreamer] vid.me videos do not play"
724         https://bugs.webkit.org/show_bug.cgi?id=172240
725         http://trac.webkit.org/changeset/219194
726
727 2017-07-06  Matt Lewis  <jlewis3@apple.com>
728
729         Unreviewed, rolling out r219178.
730
731         This caused a consistent failure with the API test
732         StringBuilderTest.ToAtomicStringOnEmpty on all Debug testers.
733
734         Reverted changeset:
735
736         "[WTF] Clean up StringStatics.cpp by using
737         LazyNeverDestroyed<> for Atoms"
738         https://bugs.webkit.org/show_bug.cgi?id=174150
739         http://trac.webkit.org/changeset/219178
740
741 2017-07-06  Alicia Boya García  <aboya@igalia.com>
742
743         Add CWD to Perl library path (no longer the default since 5.26.0)
744         https://bugs.webkit.org/show_bug.cgi?id=174200
745
746         Reviewed by Michael Catanzaro.
747
748         * Scripts/webkitpy/tool/commands/setupgitclone.py:
749         (SetupGitClone._get_username_and_email):
750
751 2017-07-06  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
752
753         Unreviewed, update my email address.
754
755         * Scripts/webkitpy/common/config/contributors.json:
756
757 2017-07-06  Charlie Turner  <cturner@igalia.com>
758         [GStreamer] vid.me videos do not play
759         https://bugs.webkit.org/show_bug.cgi?id=172240
760
761         Reviewed by Xabier Rodriguez-Calvar.
762
763         Build httpsoupsrc again for use in adaptive streaming pipelines, and
764         have the existing libsoup build against GNOME to avoid header drift
765         against GStreamer's linked Soup library.
766
767         * gtk/jhbuild.modules:
768
769 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
770
771         [WTF] Move SoftLinking.h into WTF
772         https://bugs.webkit.org/show_bug.cgi?id=174000
773
774         Reviewed by Alex Christensen.
775
776         * DumpRenderTree/mac/TestRunnerMac.mm:
777         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
778         (test_primary_header):
779         (ErrorCollector.__init__): Deleted.
780         (ErrorCollector.__call__): Deleted.
781         (ErrorCollector.results): Deleted.
782         (ErrorCollector.result_list): Deleted.
783         (ErrorCollector.verify_all_categories_are_seen): Deleted.
784         (MockIo.open): Deleted.
785         (CppFunctionsTest.test_convert_to_lower_with_underscores): Deleted.
786         (CppFunctionsTest.test_create_acronym): Deleted.
787         (CppFunctionsTest.test_is_c_or_objective_c): Deleted.
788         (CppFunctionsTest.test_parameter): Deleted.
789         (CppFunctionsTest.test_single_line_view): Deleted.
790         (CppFunctionsTest.test_create_skeleton_parameters): Deleted.
791         (CppFunctionsTest.test_find_parameter_name_index): Deleted.
792         (CppFunctionsTest.test_parameter_list): Deleted.
793         (CppFunctionsTest.test_check_parameter_against_text): Deleted.
794         (CppStyleTestBase.process_file_data): Deleted.
795         (CppStyleTestBase.perform_lint): Deleted.
796         (CppStyleTestBase.perform_single_line_lint): Deleted.
797         (CppStyleTestBase.perform_multi_line_lint): Deleted.
798         (CppStyleTestBase.perform_language_rules_check): Deleted.
799         (CppStyleTestBase.perform_function_lengths_check): Deleted.
800         (CppStyleTestBase.perform_pass_ptr_check): Deleted.
801         (CppStyleTestBase.perform_leaky_pattern_check): Deleted.
802         (CppStyleTestBase.perform_include_what_you_use): Deleted.
803         (CppStyleTestBase.perform_header_guard_check): Deleted.
804         (CppStyleTestBase.assert_lint): Deleted.
805         (CppStyleTestBase.assert_lint_one_of_many_errors_re): Deleted.
806         (CppStyleTestBase.assert_multi_line_lint): Deleted.
807         (CppStyleTestBase.assert_multi_line_lint_re): Deleted.
808         (CppStyleTestBase.assert_language_rules_check): Deleted.
809         (CppStyleTestBase.assert_include_what_you_use): Deleted.
810         (CppStyleTestBase.assert_header_guard): Deleted.
811         (CppStyleTestBase.assert_blank_lines_check): Deleted.
812         (CppStyleTestBase.assert_positions_equal): Deleted.
813         (FunctionDetectionTest.test_basic_function_detection): Deleted.
814         (FunctionDetectionTest.test_function_declaration_detection): Deleted.
815         (FunctionDetectionTest.test_pure_function_detection): Deleted.
816         (FunctionDetectionTest.test_override_and_final_function_detection): Deleted.
817         (FunctionDetectionTest.test_ignore_macros): Deleted.
818         (FunctionDetectionTest.test_non_functions): Deleted.
819         (FunctionDetectionTest.test_non_functions.Stuff): Deleted.
820         (FunctionDetectionTest.test_parameter_list): Deleted.
821         (Cpp11StyleTest.test_rvaule_reference_in_parameter_pack): Deleted.
822         (CppStyleTest.test_asm_lines_ignored): Deleted.
823         (CppStyleTest.test_get_line_width): Deleted.
824         (CppStyleTest.test_find_next_multi_line_comment_start): Deleted.
825         (CppStyleTest.test_find_next_multi_line_comment_end): Deleted.
826         (CppStyleTest.test_remove_multi_line_comments_from_range): Deleted.
827         (CppStyleTest.test_position): Deleted.
828         (CppStyleTest.test_rfind_in_lines): Deleted.
829         (CppStyleTest.test_close_expression): Deleted.
830         (CppStyleTest.test_spaces_at_end_of_line): Deleted.
831         (CppStyleTest.test_cstyle_cast): Deleted.
832         (CppStyleTest.test_runtime_casting): Deleted.
833         (CppStyleTest.test_runtime_selfinit): Deleted.
834         (CppStyleTest.test_runtime_rtti): Deleted.
835         (CppStyleTest.test_static_cast_readability): Deleted.
836         (CppStyleTest.test_check_for_unnamed_params): Deleted.
837         (CppStyleTest.void): Deleted.
838         (CppStyleTest.test_deprecated_cast): Deleted.
839         (CppStyleTest.test_mock_method): Deleted.
840         (CppStyleTest.test_sizeof_type): Deleted.
841         (CppStyleTest.cases): Deleted.
842         (CppStyleTest.for): Deleted.
843         (CppStyleTest.test_typedef_for_pointer_to_function): Deleted.
844         (CppStyleTest.test_typedef_for_pointer_to_function.void): Deleted.
845         (CppStyleTest.test_include_what_you_use_no_implementation_files): Deleted.
846         (CppStyleTest.test_include_what_you_use): Deleted.
847         (CppStyleTest.test_files_belong_to_same_module): Deleted.
848         (CppStyleTest.test_cleanse_line): Deleted.
849         (CppStyleTest.test_multi_line_comments): Deleted.
850         (CppStyleTest.test_multi_line_comments.Foo): Deleted.
851         (CppStyleTest.test_multiline_strings): Deleted.
852         (CppStyleTest.test_platformh_comments): Deleted.
853         (CppStyleTest.test_explicit_single_argument_constructors): Deleted.
854         (CppStyleTest.test_explicit_single_argument_constructors.Foo): Deleted.
855         (CppStyleTest.test_explicit_single_argument_constructors.Qualifier): Deleted.
856         (CppStyleTest.test_explicit_single_argument_constructors.definition): Deleted.
857         (CppStyleTest.test_slash_star_comment_on_single_line): Deleted.
858         (CppStyleTest.test_suspicious_usage_of_if): Deleted.
859         (CppStyleTest.test_suspicious_usage_of_memset): Deleted.
860         (CppStyleTest.test_check_posix_threading): Deleted.
861         (CppStyleTest.test_insecure_string_operations): Deleted.
862         (CppStyleTest.test_format_strings): Deleted.
863         (CppStyleTest.test_insecure_temp_file): Deleted.
864         (CppStyleTest.test_variable_length_array_detection): Deleted.
865         (CppStyleTest.test_braces): Deleted.
866         (CppStyleTest.test_check_check): Deleted.
867         (CppStyleTest.test_brace_at_begin_of_line): Deleted.
868         (CppStyleTest.test_mismatching_spaces_in_parens): Deleted.
869         (CppStyleTest.test_spacing_for_fncall): Deleted.
870         (CppStyleTest.test_spacing_for_fncall.foo): Deleted.
871         (CppStyleTest.test_spacing_before_braces): Deleted.
872         (CppStyleTest.test_spacing_between_braces): Deleted.
873         (CppStyleTest.test_spacing_before_brackets): Deleted.
874         (CppStyleTest.test_cpp_lambda_functions): Deleted.
875         (CppStyleTest.test_objective_c_block): Deleted.
876         (CppStyleTest.test_objective_c_block_as_argument): Deleted.
877         (CppStyleTest.test_spacing_around_else): Deleted.
878         (CppStyleTest.test_spacing_for_binary_ops): Deleted.
879         (CppStyleTest.test_spacing_for_binary_ops.hash_map): Deleted.
880         (CppStyleTest.test_operator_methods): Deleted.
881         (CppStyleTest.test_spacing_in_objective_c_properties): Deleted.
882         (CppStyleTest.test_spacing_before_last_semicolon): Deleted.
883         (CppStyleTest.test_static_or_global_stlstrings): Deleted.
884         (CppStyleTest.test_no_spaces_in_function_calls): Deleted.
885         (CppStyleTest.test_one_spaces_between_code_and_comments): Deleted.
886         (CppStyleTest.test_one_spaces_after_punctuation_in_comments): Deleted.
887         (CppStyleTest.test_space_after_comment_marker): Deleted.
888         (CppStyleTest.test_newline_at_eof): Deleted.
889         (CppStyleTest.test_newline_at_eof.do_test): Deleted.
890         (CppStyleTest.test_extra_newlines_at_eof): Deleted.
891         (CppStyleTest.test_extra_newlines_at_eof.do_test): Deleted.
892         (CppStyleTest.test_invalid_utf8): Deleted.
893         (CppStyleTest.test_invalid_utf8.do_test): Deleted.
894         (CppStyleTest.test_is_blank_line): Deleted.
895         (CppStyleTest.test_blank_lines_check): Deleted.
896         (CppStyleTest.test_allow_blank_line_before_closing_namespace): Deleted.
897         (CppStyleTest.test_allow_blank_line_before_if_else_chain): Deleted.
898         (CppStyleTest.test_else_on_same_line_as_closing_braces): Deleted.
899         (CppStyleTest.test_else_clause_not_on_same_line_as_else): Deleted.
900         (CppStyleTest.test_comma): Deleted.
901         (CppStyleTest.test_declaration): Deleted.
902         (CppStyleTest.test_pointer_reference_marker_location): Deleted.
903         (CppStyleTest.test_indent): Deleted.
904         (CppStyleTest.test_indent.Foo): Deleted.
905         (CppStyleTest.test_not_alabel): Deleted.
906         (CppStyleTest.test_tab): Deleted.
907         (CppStyleTest.test_unnamed_namespaces_in_headers): Deleted.
908         (CppStyleTest.test_build_class): Deleted.
909         (CppStyleTest.test_build_class.definitions): Deleted.
910         (CppStyleTest.test_build_class.Foo): Deleted.
911         (CppStyleTest.test_build_class.DERIVE_FROM_GOO): Deleted.
912         (CppStyleTest.test_build_end_comment): Deleted.
913         (CppStyleTest.test_build_forward_decl): Deleted.
914         (CppStyleTest.test_build_forward_decl.Foo): Deleted.
915         (CppStyleTest.test_build_header_guard): Deleted.
916         (CppStyleTest.test_build_header_guard.Foo_h): Deleted.
917         (CppStyleTest.test_build_header_guard.Foo_h.for): Deleted.
918         (CppStyleTest.test_build_printf_format): Deleted.
919         (CppStyleTest.test_runtime_printf_format): Deleted.
920         (CppStyleTest.assert_lintLogCodeOnError): Deleted.
921         (CppStyleTest.test_build_storage_class): Deleted.
922         (CppStyleTest.test_build_storage_class.unsignedLongLong): Deleted.
923         (CppStyleTest.test_build_storage_class.declaration): Deleted.
924         (CppStyleTest.test_build_storage_class.after): Deleted.
925         (CppStyleTest.test_build_storage_class.is): Deleted.
926         (CppStyleTest.test_legal_copyright): Deleted.
927         (CppStyleTest.test_invalid_increment): Deleted.
928         (CppStyleTest.test_enum_bitfields): Deleted.
929         (CppStyleTest.test_plain_integral_bitfields): Deleted.
930         (CleansedLinesTest.test_init_empty): Deleted.
931         (CleansedLinesTest.test_collapse_strings): Deleted.
932         (OrderOfIncludesTest.tearDown): Deleted.
933         (OrderOfIncludesTest.test_check_next_include_order__no_config): Deleted.
934         (OrderOfIncludesTest.test_check_next_include_order__no_self): Deleted.
935         (OrderOfIncludesTest.test_check_next_include_order__likely_then_config): Deleted.
936         (OrderOfIncludesTest.test_check_next_include_order__other_then_config): Deleted.
937         (OrderOfIncludesTest.test_check_next_include_order__config_then_other_then_likely): Deleted.
938         (OrderOfIncludesTest.test_check_alphabetical_include_order): Deleted.
939         (OrderOfIncludesTest.test_check_alphabetical_include_order_errors_reported_for_both_lines): Deleted.
940         (OrderOfIncludesTest.test_check_line_break_after_own_header): Deleted.
941         (OrderOfIncludesTest.test_check_line_break_before_own_header): Deleted.
942         (OrderOfIncludesTest.test_check_preprocessor_in_include_section): Deleted.
943         (OrderOfIncludesTest.test_check_preprocessor_in_include_section.BAZ): Deleted.
944         (OrderOfIncludesTest.test_check_preprocessor_in_include_section.FOOBAR): Deleted.
945         (OrderOfIncludesTest.test_primary_header): Deleted.
946         (OrderOfIncludesTest.test_public_primary_header): Deleted.
947         (OrderOfIncludesTest.test_check_wtf_includes): Deleted.
948         (OrderOfIncludesTest.test_classify_include): Deleted.
949         (OrderOfIncludesTest.test_try_drop_common_suffixes): Deleted.
950         (CheckForFunctionLengthsTest.tearDown): Deleted.
951         (CheckForFunctionLengthsTest.set_min_confidence): Deleted.
952         (CheckForFunctionLengthsTest.assert_function_lengths_check): Deleted.
953         (CheckForFunctionLengthsTest.trigger_lines): Deleted.
954         (CheckForFunctionLengthsTest.trigger_test_lines): Deleted.
955         (CheckForFunctionLengthsTest.assert_function_length_check_definition): Deleted.
956         (CheckForFunctionLengthsTest.assert_function_length_check_definition_ok): Deleted.
957         (CheckForFunctionLengthsTest.assert_function_length_check_at_error_level): Deleted.
958         (CheckForFunctionLengthsTest.assert_function_length_check_below_error_level): Deleted.
959         (CheckForFunctionLengthsTest.assert_function_length_check_above_error_level): Deleted.
960         (CheckForFunctionLengthsTest.function_body): Deleted.
961         (CheckForFunctionLengthsTest.function_body_with_blank_lines): Deleted.
962         (CheckForFunctionLengthsTest.function_body_with_no_lints): Deleted.
963         (CheckForFunctionLengthsTest.test_function_length_check_declaration): Deleted.
964         (CheckForFunctionLengthsTest.test_function_length_check_declaration_with_block_following): Deleted.
965         (CheckForFunctionLengthsTest.test_function_length_check_class_definition): Deleted.
966         (CheckForFunctionLengthsTest.test_function_length_check_class_definition.Test): Deleted.
967         (CheckForFunctionLengthsTest.test_function_length_check_trivial): Deleted.
968         (CheckForFunctionLengthsTest.test_function_length_check_empty): Deleted.
969         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity0): Deleted.
970         (CheckForFunctionLengthsTest.test_function_length_check_definition_at_severity0): Deleted.
971         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity0): Deleted.
972         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity1v0): Deleted.
973         (CheckForFunctionLengthsTest.test_function_length_check_definition_at_severity1v0): Deleted.
974         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity1): Deleted.
975         (CheckForFunctionLengthsTest.test_function_length_check_definition_at_severity1): Deleted.
976         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity1): Deleted.
977         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_plus_indented): Deleted.
978         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_plus_blanks): Deleted.
979         (CheckForFunctionLengthsTest.test_function_length_check_complex_definition_severity1): Deleted.
980         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_for_test): Deleted.
981         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_for_split_line_test): Deleted.
982         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_for_bad_test_doesnt_break): Deleted.
983         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_with_embedded_no_lints): Deleted.
984         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity1_with_no_lint): Deleted.
985         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity2): Deleted.
986         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity2): Deleted.
987         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity2): Deleted.
988         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity3): Deleted.
989         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity3): Deleted.
990         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity3): Deleted.
991         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity4): Deleted.
992         (CheckForFunctionLengthsTest.test_function_length_check_definition_severity4): Deleted.
993         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity4): Deleted.
994         (CheckForFunctionLengthsTest.test_function_length_check_definition_below_severity5): Deleted.
995         (CheckForFunctionLengthsTest.test_function_length_check_definition_at_severity5): Deleted.
996         (CheckForFunctionLengthsTest.test_function_length_check_definition_above_severity5): Deleted.
997         (CheckForFunctionLengthsTest.test_function_length_check_definition_huge_lines): Deleted.
998         (CheckForFunctionLengthsTest.test_function_length_not_determinable): Deleted.
999         (NoNonVirtualDestructorsTest.test_no_error): Deleted.
1000         (NoNonVirtualDestructorsTest.test_no_error.Foo): Deleted.
1001         (NoNonVirtualDestructorsTest.test_no_error.MyClass): Deleted.
1002         (NoNonVirtualDestructorsTest.test_no_error.Qualified): Deleted.
1003         (NoNonVirtualDestructorsTest.test_no_destructor_when_virtual_needed): Deleted.
1004         (NoNonVirtualDestructorsTest.test_no_destructor_when_virtual_needed.Foo): Deleted.
1005         (NoNonVirtualDestructorsTest.test_enum_casing): Deleted.
1006         (NoNonVirtualDestructorsTest.test_enum_casing.Foo): Deleted.
1007         (NoNonVirtualDestructorsTest.test_enum_casing.Enum123): Deleted.
1008         (NoNonVirtualDestructorsTest.test_enum_trailing_semicolon): Deleted.
1009         (NoNonVirtualDestructorsTest.test_enum_trailing_semicolon.CPP11EnumClass): Deleted.
1010         (NoNonVirtualDestructorsTest.test_enum_trailing_semicolon.MyEnum): Deleted.
1011         (NoNonVirtualDestructorsTest.test_destructor_non_virtual_when_virtual_needed): Deleted.
1012         (NoNonVirtualDestructorsTest.test_destructor_non_virtual_when_virtual_needed.Foo): Deleted.
1013         (NoNonVirtualDestructorsTest.test_no_warn_when_derived): Deleted.
1014         (NoNonVirtualDestructorsTest.test_no_warn_when_derived.Foo): Deleted.
1015         (NoNonVirtualDestructorsTest.test_internal_braces): Deleted.
1016         (NoNonVirtualDestructorsTest.test_internal_braces.Foo): Deleted.
1017         (NoNonVirtualDestructorsTest.test_inner_class_needs_virtual_destructor): Deleted.
1018         (NoNonVirtualDestructorsTest.test_inner_class_needs_virtual_destructor.Foo): Deleted.
1019         (NoNonVirtualDestructorsTest.test_inner_class_needs_virtual_destructor.Foo.Goo): Deleted.
1020         (NoNonVirtualDestructorsTest.test_inner_class_needs_virtual_destructor.Goo): Deleted.
1021         (NoNonVirtualDestructorsTest.test_outer_class_needs_virtual_destructor): Deleted.
1022         (NoNonVirtualDestructorsTest.test_outer_class_needs_virtual_destructor.Foo): Deleted.
1023         (NoNonVirtualDestructorsTest.test_outer_class_needs_virtual_destructor.Foo.Goo): Deleted.
1024         (NoNonVirtualDestructorsTest.test_qualified_class_needs_virtual_destructor): Deleted.
1025         (NoNonVirtualDestructorsTest.test_qualified_class_needs_virtual_destructor.Qualified): Deleted.
1026         (NoNonVirtualDestructorsTest.test_multi_line_declaration_no_error): Deleted.
1027         (NoNonVirtualDestructorsTest.test_multi_line_declaration_no_error.Foo): Deleted.
1028         (NoNonVirtualDestructorsTest.test_multi_line_declaration_with_error): Deleted.
1029         (NoNonVirtualDestructorsTest.test_multi_line_declaration_with_error.Foo): Deleted.
1030         (LeakyPatternTest.assert_leaky_pattern_check): Deleted.
1031         (LeakyPatternTest.test_get_dc): Deleted.
1032         (LeakyPatternTest.test_get_dc.HWndDC): Deleted.
1033         (LeakyPatternTest.test_own_get_dc): Deleted.
1034         (LeakyPatternTest.test_create_dc): Deleted.
1035         (LeakyPatternTest.test_create_compatible_dc): Deleted.
1036         (WebKitStyleTest.test_indentation): Deleted.
1037         (WebKitStyleTest.test_indentation.Foo): Deleted.
1038         (WebKitStyleTest.test_indentation.Document): Deleted.
1039         (WebKitStyleTest.test_spacing): Deleted.
1040         (WebKitStyleTest.test_line_breaking): Deleted.
1041         (WebKitStyleTest.test_braces): Deleted.
1042         (WebKitStyleTest.test_braces.MyClass): Deleted.
1043         (WebKitStyleTest.test_braces.NS_ENUM): Deleted.
1044         (WebKitStyleTest.test_braces.CPP11EnumClass): Deleted.
1045         (WebKitStyleTest.test_braces.SOMETHING): Deleted.
1046         (WebKitStyleTest.test_null_false_zero): Deleted.
1047         (WebKitStyleTest.test_directive_indentation): Deleted.
1048         (WebKitStyleTest.test_using_std): Deleted.
1049         (WebKitStyleTest.test_using_namespace): Deleted.
1050         (WebKitStyleTest.test_max_macro): Deleted.
1051         (WebKitStyleTest.test_min_macro): Deleted.
1052         (WebKitStyleTest.test_wtf_move): Deleted.
1053         (WebKitStyleTest.test_ctype_fucntion): Deleted.
1054         (WebKitStyleTest.test_names): Deleted.
1055         (WebKitStyleTest.test_names.HTMLDocument): Deleted.
1056         (WebKitStyleTest.test_names.WebWindowFadeAnimation): Deleted.
1057         (WebKitStyleTest.test_names.declarations): Deleted.
1058         (WebKitStyleTest.test_names.struct): Deleted.
1059         (WebKitStyleTest.test_names.VectorType): Deleted.
1060         (WebKitStyleTest.test_parameter_names): Deleted.
1061         (WebKitStyleTest.test_comments): Deleted.
1062         (WebKitStyleTest.test_webkit_export_check): Deleted.
1063         (WebKitStyleTest.test_member_initialization_list): Deleted.
1064         (WebKitStyleTest.test_member_initialization_list.MyClass): Deleted.
1065         (WebKitStyleTest.test_other): Deleted.
1066         (CppCheckerTest.mock_handle_style_error): Deleted.
1067         (CppCheckerTest._checker): Deleted.
1068         (CppCheckerTest.test_init): Deleted.
1069         (CppCheckerTest.test_eq): Deleted.
1070         (CppCheckerTest.test_eq.mock_handle_style_error2): Deleted.
1071         (CppCheckerTest.test_ne): Deleted.
1072         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm:
1073         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
1074         * TestWebKitAPI/cocoa/TestWKWebView.mm:
1075         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
1076         * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
1077         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1078
1079 2017-07-05  Saam Barati  <sbarati@apple.com>
1080
1081         NewArray in FTLLowerDFGToB3 does not handle speculating on doubles when having a bad time
1082         https://bugs.webkit.org/show_bug.cgi?id=174188
1083         <rdar://problem/30581423>
1084
1085         Reviewed by Mark Lam.
1086
1087         * Scripts/run-jsc-stress-tests:
1088
1089 2017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1090
1091         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
1092         https://bugs.webkit.org/show_bug.cgi?id=174150
1093
1094         Reviewed by Mark Lam.
1095
1096         * TestWebKitAPI/Tests/WTF/StringBuilder.cpp:
1097         (TestWebKitAPI::TEST):
1098
1099 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
1100
1101         Remove copy of ICU headers from WebKit
1102         https://bugs.webkit.org/show_bug.cgi?id=116407
1103
1104         Reviewed by Alex Christensen.
1105
1106         * DumpRenderTree/mac/Configurations/Base.xcconfig:
1107         * TestWebKitAPI/Configurations/Base.xcconfig:
1108         * WebKitTestRunner/Configurations/Base.xcconfig:
1109
1110 2017-07-05  Chris Dumez  <cdumez@apple.com>
1111
1112         Regression(r218821): Bad cast to WebKit::DiagnosticLoggingClient in WKWebView's _setDiagnosticLoggingDelegate
1113         https://bugs.webkit.org/show_bug.cgi?id=174163
1114         <rdar://problem/33067518>
1115
1116         Reviewed by Alex Christensen.
1117
1118         Add API test coverage.
1119
1120         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1121         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDiagnosticLogging.mm: Added.
1122         (TEST):
1123
1124 2017-07-05  Wenson Hsieh  <wenson_hsieh@apple.com>
1125
1126         When dragging a selection, clearing the selection in dragstart should not crash the web process
1127         https://bugs.webkit.org/show_bug.cgi?id=174142
1128         <rdar://problem/33067501>
1129
1130         Reviewed by Tim Horton.
1131
1132         Adds a unit test checking that the web process does not crash when the selection is cleared while a selection
1133         drag is starting up.
1134
1135         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1136         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-clear-selection.html: Added.
1137         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1138         (TestWebKitAPI::TEST):
1139
1140 2017-07-05  Daniel Bates  <dabates@apple.com>
1141
1142         Do not pass API::FrameInfo for source frame or clear out page of target frame on
1143         API navigation
1144         https://bugs.webkit.org/show_bug.cgi?id=174170
1145         <rdar://problem/33140328>
1146
1147         Reviewed by Brady Eidson.
1148
1149         Update tests as needed for the behavior change.
1150
1151         * TestWebKitAPI/Tests/WebKit2Cocoa/DecidePolicyForNavigationAction.mm:
1152         (TEST):
1153
1154 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
1155
1156         Add WebKitPrivateFrameworkStubs for iOS 11
1157         https://bugs.webkit.org/show_bug.cgi?id=173988
1158
1159         Reviewed by David Kilzer.
1160
1161         * DumpRenderTree/mac/Configurations/Base.xcconfig: iphoneos and iphonesimulator
1162         should use the same directory for private framework stubs.
1163         * WebKitTestRunner/Configurations/Base.xcconfig: Ditto.
1164
1165 2017-07-05  Eric Carlson  <eric.carlson@apple.com>
1166
1167         [MediaStream] Protect request and web view during gUM client callback
1168         https://bugs.webkit.org/show_bug.cgi?id=174096
1169         <rdar://problem/32833102>
1170
1171         Reviewed by Youenn Fablet.
1172
1173         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1174         * TestWebKitAPI/Tests/WebKit2/GetUserMediaNavigation.mm: New test.
1175
1176 2017-07-05  Wenson Hsieh  <wenson_hsieh@apple.com>
1177
1178         Unreviewed, guard iOS 11-dependent UIPasteboardTests to be iOS 11+ only
1179
1180         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
1181
1182 2017-07-05  Matt Lewis  <jlewis3@apple.com>
1183
1184         Unreviewed, rolling out r219128.
1185
1186         Spoke with engineer who originally submitted, Patch for APi
1187         test to follow.
1188
1189         Reverted changeset:
1190
1191         "Unreviewed, rolling out r219070."
1192         https://bugs.webkit.org/show_bug.cgi?id=174082
1193         http://trac.webkit.org/changeset/219128
1194
1195 2017-07-05  Matt Lewis  <jlewis3@apple.com>
1196
1197         Unreviewed, rolling out r219070.
1198
1199         This revision caused consistent failures of the API test
1200         UIPasteboardTests.DoNotPastePlainTextAsURL on iOS.
1201
1202         Reverted changeset:
1203
1204         "Pasting single words copied to UIPasteboard inserts URLs in
1205         editable areas"
1206         https://bugs.webkit.org/show_bug.cgi?id=174082
1207         http://trac.webkit.org/changeset/219070
1208
1209 2017-07-04  Michael Catanzaro  <mcatanzaro@igalia.com>
1210
1211         Remove unused EFL logo from bot watcher dashboard
1212         https://bugs.webkit.org/show_bug.cgi?id=174136
1213
1214         Reviewed by Alexey Proskuryakov.
1215
1216         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/EFL.png: Removed.
1217         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/EFL@2x.png: Removed.
1218
1219 2017-07-04  Michael Catanzaro  <mcatanzaro@igalia.com>
1220
1221         [GTK] Add more GTK bots to dashboard
1222         https://bugs.webkit.org/show_bug.cgi?id=174129
1223
1224         Reviewed by Carlos Alberto Lopez Perez.
1225
1226         We have a bunch of GTK bots that I never look at because they're not on the dashboard. Add
1227         them.
1228
1229         This also changes the sort order to put WPE above GTK so that it's not buried under all the
1230         less-essential GTK bots.
1231
1232         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
1233         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
1234         (WebKitBuildbot):
1235
1236 2017-07-04  Michael Catanzaro  <mcatanzaro@igalia.com>
1237
1238         [WPE] Add WPE to bot watcher dashboard
1239         https://bugs.webkit.org/show_bug.cgi?id=174119
1240
1241         Reviewed by Alexey Proskuryakov.
1242
1243         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/CREDIT: Added.
1244         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WPE.png: Added.
1245         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WPE@2x.png: Added.
1246         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
1247         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
1248         (WebKitBuildbot):
1249         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
1250         (table.queue-grid tr.platform.linux-wpe img.logo):
1251
1252 2017-07-03  Lucas Forschler  <lforschler@apple.com>
1253
1254         https://bugs.webkit.org/show_bug.cgi?id=174105
1255         
1256         Reviewed by Stephanie Lewis.
1257
1258         * BuildSlaveSupport/built-product-archive:
1259         (main): Add a -minify parser option
1260         (createZip): Pass along the optional Minify argument if requested
1261         (minifySource): This will trim down archives, logic limited to Mac platform.
1262
1263 2017-07-03  Matt Rajca  <mrajca@apple.com>
1264
1265         Add/remove appropriate media element behavior restrictions when updateWebsitePolicies is called
1266         https://bugs.webkit.org/show_bug.cgi?id=174103
1267
1268         Reviewed by Alex Christensen.
1269
1270         Added an API test.
1271
1272         * TestWebKitAPI/Tests/WebKit2/autoplay-check.html: Expose a pause method.
1273         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1274         (TEST): Added test.
1275         * TestWebKitAPI/cocoa/TestWKWebView.h:
1276         * TestWebKitAPI/cocoa/TestWKWebView.mm:
1277         (-[TestWKWebView stringByEvaluatingJavaScript:]): Don't simulate a user gesture when invoking the script.
1278
1279 2017-07-03  Matt Lewis  <jlewis3@apple.com>
1280
1281         Unreviewed, rolling out r219103.
1282
1283         Caused multiple build failures.
1284
1285         Reverted changeset:
1286
1287         "Remove copy of ICU headers from WebKit"
1288         https://bugs.webkit.org/show_bug.cgi?id=116407
1289         http://trac.webkit.org/changeset/219103
1290
1291 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
1292
1293         Remove copy of ICU headers from WebKit
1294         https://bugs.webkit.org/show_bug.cgi?id=116407
1295
1296         Reviewed by Alex Christensen.
1297
1298         Use WTF's copy of ICU headers.
1299
1300         * DumpRenderTree/mac/Configurations/Base.xcconfig:
1301         * TestWebKitAPI/Configurations/Base.xcconfig:
1302         * WebKitTestRunner/Configurations/Base.xcconfig:
1303
1304 2017-07-03  Brady Eidson  <beidson@apple.com>
1305
1306         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
1307         https://bugs.webkit.org/show_bug.cgi?id=174073
1308
1309         Reviewed by Andy Estes.
1310
1311         * DumpRenderTree/mac/TestRunnerMac.mm:
1312         (TestRunner::setIconDatabaseEnabled): Call new SPI for this setting instead of WebIconDatabase stuff.
1313
1314         * TestWebKitAPI/Tests/mac/WebViewIconLoading.mm:
1315         (-[MainFrameIconKVO observeValueForKeyPath:ofObject:change:context:]):
1316
1317 2017-07-03  Matt Lewis  <jlewis3@apple.com>
1318
1319         Unreviewed, rolling out r219083.
1320
1321         The revision caused an API failure on all testing platforms.
1322
1323         Reverted changeset:
1324
1325         "[MediaStream] Protect request and web view during gUM client
1326         callback"
1327         https://bugs.webkit.org/show_bug.cgi?id=174096
1328         http://trac.webkit.org/changeset/219083
1329
1330 2017-07-03  Jonathan Bedard  <jbedard@apple.com>
1331
1332         webkitpy: Properly number duplicated crashlogs
1333         https://bugs.webkit.org/show_bug.cgi?id=172002
1334
1335         Reviewed by Aakash Jain.
1336
1337         * Scripts/webkitpy/common/system/crashlogs.py:
1338         (CrashLogs._find_all_logs_darwin): Number multiple crash logs for a single process with
1339         an increasing integer.
1340         * Scripts/webkitpy/common/system/crashlogs_unittest.py:
1341         (CrashLogsTest.create_crash_logs_darwin): Create duplicated crashlog for testing.
1342         (CrashLogsTest.test_find_all_log_darwin): Now 7 Darwin logs instead of 5.
1343         (CrashLogsTest.test_duplicate_log_darwin): Test that duplicated logs are correctly numbered.
1344
1345 2017-07-03  Ryosuke Niwa  <rniwa@webkit.org>
1346
1347         WebContent processes crash when the network process crashes with pending connection requests
1348         https://bugs.webkit.org/show_bug.cgi?id=174065
1349         <rdar://problem/30359835>
1350
1351         Reviewed by Tim Horton.
1352
1353         Add a API to ensure UI process tries to relaunch a new network process when the network process
1354         crashes with pending network connection requests.
1355
1356         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1357         * TestWebKitAPI/Tests/WebKit2/NetworkProcessCrashWithPendingConnection.mm: Added.
1358         * TestWebKitAPI/cocoa/TestNavigationDelegate.h:
1359         * TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
1360         (-[TestNavigationDelegate webViewWebContentProcessDidTerminate:]): Added.
1361
1362 2017-07-03  Eric Carlson  <eric.carlson@apple.com>
1363
1364         [MediaStream] Protect request and web view during gUM client callback
1365         https://bugs.webkit.org/show_bug.cgi?id=174096
1366         <rdar://problem/32833102>
1367
1368         Reviewed by Youenn Fablet.
1369
1370         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1371         * TestWebKitAPI/Tests/WebKit2/GetUserMediaNavigation.mm: New test.
1372
1373 2017-07-03  Andy Estes  <aestes@apple.com>
1374
1375         [Xcode] Add an experimental setting to build with ccache
1376         https://bugs.webkit.org/show_bug.cgi?id=173875
1377
1378         Reviewed by Tim Horton.
1379
1380         On systems that already have ccache(1) installed, this patch adds experimental support for
1381         it to Xcode builds. It can be enabled with the WK_USE_CCACHE build setting.
1382
1383         When ccache is enabled, CC is overridden to invoke Tools/ccache/ccache-clang. This script
1384         finds the "-isysroot" argument to determine the active SDK, uses xcrun(1) and the SDK to
1385         find the toolchain from which to run clang, and then invokes ccache with the required
1386         arguments.
1387
1388         ccache is invoked with CCACHE_SLOPPINESS="pch_defines,time_macros", which is required for
1389         precompiled headers to work properly [1].
1390
1391         LDPLUSPLUS is overridden to invoke Tools/ccache/ccache-clang++. It behaves the same as
1392         ccache-clang, except it tells ccache to execute clang++ instead of clang. This is important
1393         during linking.
1394         
1395         [1] https://ccache.samba.org/manual.html#_precompiled_headers
1396
1397         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
1398         * MiniBrowser/Configurations/DebugRelease.xcconfig: Ditto.
1399         * MobileMiniBrowser/Configurations/DebugRelease.xcconfig: Ditto.
1400         * TestWebKitAPI/Configurations/DebugRelease.xcconfig: Ditto.
1401         * WebKitTestRunner/Configurations/DebugRelease.xcconfig: Ditto.
1402         * ccache/README.md: Added.
1403         * ccache/ccache-clang: Added.
1404         * ccache/ccache-clang++: Added.
1405         * ccache/ccache.xcconfig: Added. Overrides CC and LDPLUSPLUS when WK_USE_CACHE=YES.
1406
1407 2017-07-03  Alex Christensen  <achristensen@webkit.org>
1408
1409         REGRESSION(r215096) Queries of URLs with non-special schemes should not percent-encode single quotes
1410         https://bugs.webkit.org/show_bug.cgi?id=174051
1411
1412         Reviewed by Tim Horton.
1413
1414         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1415         (TestWebKitAPI::TEST_F):
1416
1417 2017-07-03  Matt Lewis  <jlewis3@apple.com>
1418
1419         Unreviewed, rolling out r219024.
1420
1421         This patch cause 3 didferent test to fail.
1422
1423         Reverted changeset:
1424
1425         "REGRESSION(r215096) Queries of URLs with non-special schemes
1426         should not percent-encode single quotes"
1427         https://bugs.webkit.org/show_bug.cgi?id=174051
1428         http://trac.webkit.org/changeset/219024
1429
1430 2017-07-03  Chris Dumez  <cdumez@apple.com>
1431
1432         Drop ResourceLoadStatisticsStore's statisticsLock
1433         https://bugs.webkit.org/show_bug.cgi?id=174080
1434
1435         Reviewed by Brent Fulgham.
1436
1437         Port WebKitTestRunner to new Asynchronous Cocoa SPI.
1438
1439         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1440         (WTR::TestController::isStatisticsPrevalentResource):
1441         (WTR::TestController::isStatisticsHasHadUserInteraction):
1442         (WTR::TestController::isStatisticsGrandfathered):
1443
1444 2017-07-03  Wenson Hsieh  <wenson_hsieh@apple.com>
1445
1446         Pasting single words copied to UIPasteboard inserts URLs in editable areas
1447         https://bugs.webkit.org/show_bug.cgi?id=174082
1448         <rdar://problem/33046992>
1449
1450         Reviewed by Tim Horton.
1451
1452         Adds 3 new unit tests to UIPasteboardTests to test cases of pasting plain text and URLs.
1453
1454         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
1455         (TestWebKitAPI::setUpWebViewForPasteboardTests):
1456         (TestWebKitAPI::TEST):
1457
1458 2017-07-02  Brady Eidson  <beidson@apple.com>
1459
1460         Add API test for all parts of WebKit1 API related to favicons.
1461         https://bugs.webkit.org/show_bug.cgi?id=174069
1462
1463         Reviewed by Andy Estes.
1464
1465         These two API tests cover all WebKit1 API related to icons.
1466         
1467         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1468         * TestWebKitAPI/Tests/mac/WebViewIconLoading.mm: Added.
1469         (mainResourceData):
1470         (defaultFaviconData):
1471         (customFaviconData):
1472         (imageFromData):
1473         (+[IconLoadingProtocol canInitWithRequest:]):
1474         (+[IconLoadingProtocol canonicalRequestForRequest:]):
1475         (-[IconLoadingProtocol startLoading]):
1476         (-[IconLoadingProtocol stopLoading]):
1477         (-[IconLoadingFrameLoadDelegate webView:didReceiveIcon:forFrame:]):
1478         (-[MainFrameIconKVO observeValueForKeyPath:ofObject:change:context:]):
1479         (TestWebKitAPI::TEST):
1480
1481 2017-07-01  Dan Bernstein  <mitz@apple.com>
1482
1483         [iOS] Remove code only needed when building for iOS 9.x
1484         https://bugs.webkit.org/show_bug.cgi?id=174068
1485
1486         Reviewed by Tim Horton.
1487
1488         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1489         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1490         (WTR::initializeWebViewConfiguration):
1491         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1492         (-[HIDEventGenerator _createIOHIDEventType:]):
1493
1494 2017-07-01  Brady Eidson  <beidson@apple.com>
1495
1496         When setting a custom cookie storage location on a WKWebsiteDataStore, cookies aren't actually removed.
1497         <rdar://problem/32410662> and https://bugs.webkit.org/show_bug.cgi?id=174035
1498
1499         Reviewed by Alex Christensen.
1500
1501         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.mm:
1502
1503 2017-07-01  Dan Bernstein  <mitz@apple.com>
1504
1505         [macOS] Remove code only needed when building for OS X Yosemite
1506         https://bugs.webkit.org/show_bug.cgi?id=174067
1507
1508         Reviewed by Tim Horton.
1509
1510         * DumpRenderTree/mac/Configurations/Base.xcconfig:
1511         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1512         * DumpRenderTree/mac/DumpRenderTree.mm:
1513         (setDefaultsToConsistentValuesForTesting):
1514         * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
1515         (-[DumpRenderTreeDraggingInfo resetSpringLoading]):
1516         * MiniBrowser/Configurations/Base.xcconfig:
1517         * MiniBrowser/Configurations/DebugRelease.xcconfig:
1518         * TestWebKitAPI/Configurations/Base.xcconfig:
1519         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
1520         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1521         * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp:
1522         (TestWebKitAPI::TEST_F):
1523         * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm:
1524         * TestWebKitAPI/Tests/mac/DragAndDropPasteboardTests.mm:
1525         * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:
1526         (TestWebKitAPI::TEST_F):
1527         * TestWebKitAPI/Tests/mac/StringTruncator.mm:
1528         (TestWebKitAPI::TEST):
1529         * WebKitTestRunner/Configurations/Base.xcconfig:
1530         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1531         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
1532         (WTR::InjectedBundle::platformInitialize):
1533         * WebKitTestRunner/mac/WebKitTestRunnerDraggingInfo.mm:
1534         (-[WebKitTestRunnerDraggingInfo resetSpringLoading]):
1535
1536 2017-07-01  Chris Dumez  <cdumez@apple.com>
1537
1538         Replace ResourceLoadStatisticsStore C API with Cocoa SPI
1539         https://bugs.webkit.org/show_bug.cgi?id=174060
1540
1541         Reviewed by Brent Fulgham.
1542
1543         Port WebKitTestRunner over to the new Cocoa SPI.
1544
1545         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1546         (WTR::TestRunner::setStatisticsNotifyPagesWhenDataRecordsWereScanned):
1547         (WTR::TestRunner::setStatisticsNotifyPagesWhenTelemetryWasCaptured):
1548         Drop calls to the WKResourceLoadStatisticsStore C API here. Those were
1549         no-ops since this code runs in the WebContent process, not the
1550         UIProcess.
1551
1552         * WebKitTestRunner/TestController.cpp:
1553         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1554
1555 2017-06-30  Megan Gardner  <megan_gardner@apple.com>
1556
1557         Unreviewed mac build fix.
1558
1559         * TestWebKitAPI/Tests/WebKit2Cocoa/WKRequestActivatedElementInfo.mm:
1560         (TestWebKitAPI::TEST):
1561
1562 2017-06-30  Megan Gardner  <megan_gardner@apple.com>
1563
1564         Add API to get WKActivatedElementInfo
1565         https://bugs.webkit.org/show_bug.cgi?id=174001
1566         <rdar://problem/29165518>
1567         
1568         Tests for now SPI to get activatedElementInfo.
1569
1570         Reviewed by Tim Horton.
1571
1572         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1573         * TestWebKitAPI/Tests/WebKit2Cocoa/WKRequestActivatedElementInfo.mm: Added.
1574         (TestWebKitAPI::TEST):
1575
1576 2017-06-30  Chris Dumez  <cdumez@apple.com>
1577
1578         Move store logic from WebResourceLoadStatisticsManager to WebResourceLoadStatisticsStore
1579         https://bugs.webkit.org/show_bug.cgi?id=174038
1580
1581         Reviewed by Brent Fulgham.
1582
1583         Fix typo in API name.
1584
1585         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1586         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1587         (WTR::TestRunner::setStatisticsMinimumTimeBetweenDataRecordsRemoval):
1588         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1589         * WebKitTestRunner/TestController.cpp:
1590         (WTR::TestController::setStatisticsMinimumTimeBetweenDataRecordsRemoval):
1591         * WebKitTestRunner/TestController.h:
1592         * WebKitTestRunner/TestInvocation.cpp:
1593         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1594
1595 2017-06-30  Alex Christensen  <achristensen@webkit.org>
1596
1597         REGRESSION(r215096) Queries of URLs with non-special schemes should not percent-encode single quotes
1598         https://bugs.webkit.org/show_bug.cgi?id=174051
1599         <rdar://problem/33002846>
1600
1601         Reviewed by Tim Horton.
1602
1603         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1604         (TestWebKitAPI::TEST_F):
1605
1606 2017-06-30  Daniel Bates  <dabates@apple.com>
1607
1608         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
1609         https://bugs.webkit.org/show_bug.cgi?id=165160
1610         <rdar://problem/29451999>
1611
1612         Reviewed by Brady Eidson.
1613
1614         Add tests to ensure that -[WKFrameInfo webView] is computed correctly for the source and target frame
1615         for navigations and window creation.
1616
1617         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1618         * TestWebKitAPI/Tests/WebKit2Cocoa/DecidePolicyForNavigationAction.mm: Added. Derived from file ShouldOpenExternalURLsInNewWindowActions.mm.
1619         (-[DecidePolicyForNavigationActionController webView:decidePolicyForNavigationAction:decisionHandler:]):
1620         (-[DecidePolicyForNavigationActionController webView:didFinishNavigation:]):
1621         (-[DecidePolicyForNavigationActionController webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
1622         (TEST):
1623
1624 2017-06-29  Jer Noble  <jer.noble@apple.com>
1625
1626         Make Legacy EME API controlled by RuntimeEnabled setting.
1627         https://bugs.webkit.org/show_bug.cgi?id=173994
1628
1629         Reviewed by Sam Weinig.
1630
1631         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1632
1633 2017-06-30  Jonathan Bedard  <jbedard@apple.com>
1634
1635         Follow-up fix for r218996
1636
1637         Unreviewed infrastructure fix.
1638
1639         Repeated calls to 'ios_version' make the log noisy, memoize the function.
1640
1641         * Scripts/webkitpy/port/ios_simulator.py:
1642         (IOSSimulatorPort): Memoize ios_version().
1643
1644 2017-06-30  Wenson Hsieh  <wenson_hsieh@apple.com>
1645
1646         [iOS DnD] Drag caret rect is incorrectly computed when dropping in editable content in iframes
1647         https://bugs.webkit.org/show_bug.cgi?id=174017
1648         <rdar://problem/32959782>
1649
1650         Reviewed by Simon Fraser.
1651
1652         Add a new test verifying that the drag caret is visually contained within the bounds of an iframe. Before these
1653         changes, the caret would appear outside of the iframe.
1654
1655         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1656         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-in-iframe.html: Added.
1657         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1658         (checkDragCaretRectIsContainedInRect):
1659         (TestWebKitAPI::TEST):
1660         * TestWebKitAPI/ios/DataInteractionSimulator.h:
1661         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
1662         (-[DataInteractionSimulator _resetSimulatedState]):
1663         (-[DataInteractionSimulator _concludeDataInteractionAndPerformOperationIfNecessary]):
1664         (-[DataInteractionSimulator _advanceProgress]):
1665         (-[DataInteractionSimulator lastKnownDragCaretRect]):
1666
1667 2017-06-30  Jonathan Bedard  <jbedard@apple.com>
1668
1669         Add support for different versions of iOS when loading test expectations
1670         https://bugs.webkit.org/show_bug.cgi?id=173774
1671         <rdar://problem/32951132>
1672
1673         Rubber-stamped by Aakash Jain.
1674
1675         When running layout tests, we should support multiple version of iOS the same way we do Mac.
1676
1677         * Scripts/webkitpy/port/ios.py:
1678         (IOSPort.default_baseline_search_path): Add ios-<major version> test expectation.
1679         (IOSPort.test_expectations_file_position): Added new file expectations, increment expected file position.
1680         (IOSPort.ios_version): iOS ports must define a function to retrieve the iOS version.
1681         * Scripts/webkitpy/port/ios_device.py:
1682         (IOSDevicePort.ios_version): Ask connected devices for implementation.
1683         * Scripts/webkitpy/port/ios_device_unittest.py:
1684         (IOSDeviceTest.test_additional_platform_directory): Skip test until bug 173775 is finished.
1685         (IOSDeviceTest.test_baseline_searchpath): Ditto.
1686         (IOSDeviceTest.test_expectations_ordering): Ditto.
1687         * Scripts/webkitpy/port/ios_simulator.py:
1688         (IOSSimulatorPort.ios_version): If a runtime is specified, ask the runtime for the iOS version. Otherwise,
1689         ask the platform.
1690
1691 2017-06-30  Jacobo Aragunde Pérez  <jaragunde@igalia.com>
1692
1693         Fontconfig build breaks with glibc 2.15+
1694         https://bugs.webkit.org/show_bug.cgi?id=174019
1695
1696         Reviewed by Carlos Alberto Lopez Perez.
1697
1698         Apply patch by Khem Raj adapted to fontconfig 2.11.1.
1699
1700         * wpe/jhbuild.modules:
1701         * wpe/patches/fontconfig-avoid-conflicts-with-integer-width-macros-from-TS-18.patch: Added.
1702
1703 2017-06-29  Wenson Hsieh  <wenson_hsieh@apple.com>
1704
1705         [iOS DnD] Web content process crashes when the selection is moved far offscreen in dragstart
1706         https://bugs.webkit.org/show_bug.cgi?id=174010
1707         <rdar://problem/32597802>
1708
1709         Reviewed by Tim Horton.
1710
1711         Adds a new API test to ensure that we don't crash trying to dereference a null RefPtr when the TextIndicator
1712         snapshot fails for any reason.
1713
1714         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1715         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-change-selection-offscreen.html: Added.
1716         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1717         (TestWebKitAPI::TEST):
1718
1719 2017-06-29  Chris Fleizach  <cfleizach@apple.com>
1720
1721         AX: Cannot call setValue() on contenteditable or ARIA text controls
1722         https://bugs.webkit.org/show_bug.cgi?id=173520
1723
1724         Reviewed by Ryosuke Niwa.
1725
1726         Add setValue() method to WKTR (already existed in DRT).
1727
1728         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
1729         (WTR::AccessibilityUIElement::setValue):
1730         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
1731         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
1732         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
1733         (WTR::AccessibilityUIElement::setValue):
1734
1735 2017-06-28  Simon Fraser  <simon.fraser@apple.com>
1736
1737         getBoundingClientRect returns wrong value for combination of page zoom and scroll
1738         https://bugs.webkit.org/show_bug.cgi?id=173841
1739         rdar://problem/32983841
1740
1741         Reviewed by Dean Jackson.
1742
1743         Make "Zoom In" and "Zoom Out" work correctly in the WebKit1 window. Previously they
1744         always did text zooming.
1745
1746         * MiniBrowser/mac/WK1BrowserWindowController.m:
1747         (-[WK1BrowserWindowController zoomIn:]):
1748         (-[WK1BrowserWindowController zoomOut:]):
1749         (-[WK1BrowserWindowController canResetZoom]):
1750         (-[WK1BrowserWindowController resetZoom:]):
1751
1752 2017-06-29  John Wilander  <wilander@apple.com>
1753
1754         Fix for intermittent Layout Test fail http/tests/loading/resourceLoadStatistics/telemetry-generation.html
1755         https://bugs.webkit.org/show_bug.cgi?id=173940
1756         <rdar://problem/33018125>
1757
1758         Reviewed by Brent Fulgham.
1759
1760         This change allows the TestController to turn off
1761         regular resource load statistics telemetry submission
1762         and to manually control when telemetry is calculated
1763         and submitted.
1764
1765         * WebKitTestRunner/TestController.cpp:
1766         (WTR::TestController::initialize):
1767             Turns off automatic resource load statistics telemetry submission.
1768
1769 2017-06-29  Commit Queue  <commit-queue@webkit.org>
1770
1771         Unreviewed, rolling out r218512.
1772         https://bugs.webkit.org/show_bug.cgi?id=173981
1773
1774         "It changes the behavior of the JS API's JSEvaluateScript
1775         which breaks TurboTax" (Requested by saamyjoon on #webkit).
1776
1777         Reverted changeset:
1778
1779         "test262: Completion values for control flow do not match the
1780         spec"
1781         https://bugs.webkit.org/show_bug.cgi?id=171265
1782         http://trac.webkit.org/changeset/218512
1783
1784 2017-06-29  Jonathan Bedard  <jbedard@apple.com>
1785
1786         Add WebKitSystemInterface for iOS 11
1787         https://bugs.webkit.org/show_bug.cgi?id=173936
1788
1789         Reviewed by Lucas Forschler.
1790
1791         * Scripts/copy-webkitlibraries-to-product-directory: Copy iOS 11 WebKitSystemInterface libraries. 
1792
1793 2017-06-28  Keith Miller  <keith_miller@apple.com>
1794
1795         VMTraps has some races
1796         https://bugs.webkit.org/show_bug.cgi?id=173941
1797
1798         Reviewed by Michael Saboff.
1799
1800         Add new testing mode for testing the Watchdog with our stress
1801         tests.
1802
1803         * Scripts/run-jsc-stress-tests:
1804
1805 2017-06-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1806
1807         [GTK][WPE] Implement API::IconLoadingClient and rework WebKitFaviconDatabase to use IconDatabase directly
1808         https://bugs.webkit.org/show_bug.cgi?id=173877
1809
1810         Reviewed by Brady Eidson.
1811
1812         Update favicons unit test to ensure we wait until the database is updated in testGetFavicon() before starting
1813         the next tests.
1814
1815         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp:
1816         (testGetFavicon):
1817
1818 2017-06-28  Tim Horton  <timothy_horton@apple.com>
1819
1820         MobileSafari was constantly using 10-15% CPU viewing a PDF
1821         https://bugs.webkit.org/show_bug.cgi?id=173944
1822         <rdar://problem/33039910>
1823
1824         Reviewed by Simon Fraser.
1825
1826         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1827         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewStablePresentationUpdateCallback.mm:
1828         Add a test that we ever call the stable presentation update callback
1829         when we have a WKPDFView up, instead of infinitely looping.
1830
1831 2017-06-28  Alex Christensen  <achristensen@webkit.org>
1832
1833         Prevent displaying URLs with small capital letters
1834         https://bugs.webkit.org/show_bug.cgi?id=173949
1835         <rdar://problem/32952058>
1836
1837         Reviewed by Brent Fulgham.
1838
1839         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
1840         (TestWebKitAPI::TEST):
1841
1842 2017-06-28  Brent Fulgham  <bfulgham@apple.com>
1843
1844         Unreviewed test fix.
1845
1846         Disable the file monitor tests on iOS because the 'system' API is unavailable on that platform.
1847
1848         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: 
1849
1850 2017-06-28  Brent Fulgham  <bfulgham@apple.com>
1851
1852         Teach ResourceLoadStatistics to recognize changes in the file system
1853         https://bugs.webkit.org/show_bug.cgi?id=173800
1854         <rdar://problem/32937842>
1855
1856         Reviewed by Chris Dumez.
1857
1858         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1859         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: Added.
1860         (TestWebKitAPI::FileMonitorTest::tempFilePath):
1861         (TestWebKitAPI::handleFileModification):
1862         (TestWebKitAPI::handleFileDeletion):
1863         (TestWebKitAPI::resetTestState):
1864         (TestWebKitAPI::TEST_F):
1865
1866 2017-06-28  Brady Eidson  <beidson@apple.com>
1867
1868         DocumentLoader should always notify the client if there are pending icon loads when the load is stopped.
1869         https://bugs.webkit.org/show_bug.cgi?id=173874
1870
1871         Reviewed by Alex Christensen.
1872
1873         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm:
1874
1875 2017-06-28  Don Olmstead  <don.olmstead@sony.com>
1876
1877         Unreviewed, adding Don Olmstead to contributors.json
1878
1879         * Scripts/webkitpy/common/config/contributors.json:
1880
1881 2017-06-28  Alex Christensen  <achristensen@webkit.org>
1882
1883         WebsitePolicies given with navigation policy for redirects should apply to the provisional document
1884         https://bugs.webkit.org/show_bug.cgi?id=173886
1885         <rdar://problem/32543191>
1886
1887         Reviewed by Andy Estes.
1888
1889         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1890         (ParsedRange::ParsedRange):
1891         (-[TestSchemeHandler initWithVideoData:]):
1892         (-[TestSchemeHandler webView:startURLSchemeTask:]):
1893         (-[TestSchemeHandler webView:stopURLSchemeTask:]):
1894         (TEST):
1895
1896 2017-06-27  JF Bastien  <jfbastien@apple.com>
1897
1898         WebAssembly: running out of executable memory should throw OoM
1899         https://bugs.webkit.org/show_bug.cgi?id=171537
1900         <rdar://problem/32963338>
1901
1902         Reviewed by Saam Barati.
1903
1904         * Scripts/run-jsc-stress-tests: add a configuration which runs the
1905         tests under limited executable memory and avoids non-WebAssembly
1906         code generation so that we more reliably run out of executable
1907         memory in WebAssembly.
1908
1909 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1910
1911         [iOS DnD] Support dragging out of contenteditable areas without a prior selection
1912         https://bugs.webkit.org/show_bug.cgi?id=173854
1913         <rdar://problem/32236827>
1914
1915         Reviewed by Ryosuke Niwa and Tim Horton.
1916
1917         Adds a new test to check that an image can be dragged out of a contenteditable and dropped.
1918
1919         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1920         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-target.html: Added.
1921         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1922         (TestWebKitAPI::TEST):
1923
1924 2017-06-27  Don Olmstead  <don.olmstead@sony.com>
1925
1926         [PAL] Add symbol export macros for PAL
1927         https://bugs.webkit.org/show_bug.cgi?id=171519
1928
1929         Reviewed by Konstantin Tokarev.
1930
1931         * DumpRenderTree/config.h:
1932         * TestWebKitAPI/CMakeLists.txt:
1933         * TestWebKitAPI/config.h:
1934         * WebKitTestRunner/config.h:
1935
1936 2017-06-27  John Wilander  <wilander@apple.com>
1937
1938         Resource Load Statistics: Add telemetry
1939         https://bugs.webkit.org/show_bug.cgi?id=173499
1940         <rdar://problem/32826094>
1941
1942         Reviewed by Brent Fulgham.
1943
1944         Adds three new testRunner functions:
1945         - installStatisticsDidRunTelemetryCallback()
1946         - statisticsFireTelemetryHandler()
1947         - setStatisticsNotifyPagesWhenTelemetryWasCaptured()
1948
1949         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1950         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1951         (WTR::InjectedBundle::didReceiveMessageToPage):
1952         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1953         (WTR::TestRunner::installStatisticsDidRunTelemetryCallback):
1954         (WTR::TestRunner::statisticsDidRunTelemetryCallback):
1955         (WTR::TestRunner::statisticsFireTelemetryHandler):
1956         (WTR::TestRunner::setStatisticsNotifyPagesWhenTelemetryWasCaptured):
1957         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1958         * WebKitTestRunner/TestController.cpp:
1959         (WTR::TestController::resetStateToConsistentValues):
1960         (WTR::TestController::statisticsFireTelemetryHandler):
1961         (WTR::TestController::setStatisticsNotifyPagesWhenTelemetryWasCaptured):
1962         * WebKitTestRunner/TestController.h:
1963         * WebKitTestRunner/TestInvocation.cpp:
1964         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1965
1966 2017-06-27  Ting-Wei Lan  <lantw44@gmail.com>
1967
1968         Add missing includes to fix compilation error on FreeBSD
1969         https://bugs.webkit.org/show_bug.cgi?id=172919
1970
1971         Reviewed by Mark Lam.
1972
1973         * ImageDiff/cairo/PlatformImageCairo.cpp:
1974
1975 2017-06-26  Jonathan Bedard  <jbedard@apple.com>
1976
1977         Unreviewed, rolling out r218783.
1978
1979         Causing accessibility/mac/setting-attributes-is-
1980         asynchronous.html to crash consistently on mac-wk2 Debug
1981
1982         Reverted changeset:
1983
1984         "AX: Cannot call setValue() on contenteditable or ARIA text
1985         controls"
1986         https://bugs.webkit.org/show_bug.cgi?id=173520
1987         http://trac.webkit.org/changeset/218783
1988
1989 2017-06-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1990
1991         [WTF] Drop Thread::create(obsolete things) API since we can use lambda
1992         https://bugs.webkit.org/show_bug.cgi?id=173825
1993
1994         Reviewed by Saam Barati.
1995
1996         * DumpRenderTree/JavaScriptThreading.cpp:
1997         (runJavaScriptThread):
1998         (startJavaScriptThreads):
1999         * DumpRenderTree/mac/DumpRenderTree.mm:
2000         (runThread):
2001         (runPthread):
2002         (testThreadIdentifierMap):
2003
2004 2017-06-26  David Kilzer  <ddkilzer@apple.com>
2005
2006         [TestWebKitAPI] Fix false-positive bad release warnings found by clang static analyzer
2007         <https://webkit.org/b/173837>
2008
2009         Reviewed by Geoffrey Garen.
2010
2011         The clang static analyzer can't reason about objects that are
2012         assigned to a delegate as +1 retained, and then released
2013         later in a different method when the delegate is cleared.
2014
2015         Instead, use a common idiom where the object setting the
2016         delegate retains it as an instance variable on initialization.
2017         Then the same object clears the delegate and releases its
2018         instance variable during teardown.
2019
2020         Also add EXPECT_TRUE() tests to make sure the delegate objects
2021         match before teardown.
2022
2023         * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:
2024         (TestWebKitAPI::FullscreenZoomInitialFrame::initializeView):
2025         (TestWebKitAPI::FullscreenZoomInitialFrame::teardownView):
2026         * TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm:
2027         (TestWebKitAPI::PageVisibilityStateWithWindowChanges::initializeView):
2028         (TestWebKitAPI::PageVisibilityStateWithWindowChanges::teardownView):
2029
2030 2017-06-26  David Kilzer  <ddkilzer@apple.com>
2031
2032         [TestWebKitAPI] REGRESSION (r218750): Fix leak of NSURLResponse in WKURLSchemeHandler-1.mm
2033         <https://webkit.org/b/173836>
2034
2035         Reviewed by Brady Eidson.
2036
2037         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm:
2038         (-[RedirectSchemeHandler webView:startURLSchemeTask:]): Use
2039         adoptNS() to fix the leak.  Also use auto/adoptNS() for other
2040         objects in this test.
2041
2042 2017-06-26  Joanmarie Diggs  <jdiggs@igalia.com>
2043
2044         [ATK] Add support for aria-details and aria-errormessage
2045         https://bugs.webkit.org/show_bug.cgi?id=172588
2046
2047         Reviewed by Chris Fleizach.
2048
2049         Add additional methods to test ARIA properties which are exposed via
2050         AtkRelation. Also bump minimum versions of at-spi2-core and at-spi2-atk
2051         to versions which support the details and error-message relation types.
2052
2053         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2054         (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex):
2055         (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex):
2056         (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex):
2057         (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex):
2058         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2059         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2060         (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex):
2061         (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex):
2062         (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex):
2063         (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex):
2064         * gtk/jhbuild.modules:
2065
2066 2017-06-26  Carlos Garcia Campos  <cgarcia@igalia.com>
2067
2068         Unreviewed. Add libfii to GTK+ install dependencies script.
2069
2070         * gtk/install-dependencies:
2071
2072 2017-06-25  Michael Catanzaro  <mcatanzaro@igalia.com>
2073
2074         Unreviewed, rolling out r215190.
2075
2076         Broke product select element on GNOME Bugzilla
2077
2078         Reverted changeset:
2079
2080         "[GTK] Misplaced right click menu on web page due to
2081         deprecated gtk_menu_popup()"
2082         https://bugs.webkit.org/show_bug.cgi?id=170553
2083         http://trac.webkit.org/changeset/215190
2084
2085 2017-06-24  Joseph Pecoraro  <pecoraro@apple.com>
2086
2087         Remove Reflect.enumerate
2088         https://bugs.webkit.org/show_bug.cgi?id=173806
2089
2090         Reviewed by Yusuke Suzuki.
2091
2092         * Scripts/run-jsc-stress-tests:
2093
2094 2017-06-24  Chris Fleizach  <cfleizach@apple.com>
2095
2096         AX: Cannot call setValue() on contenteditable or ARIA text controls
2097         https://bugs.webkit.org/show_bug.cgi?id=173520
2098
2099         Reviewed by Ryosuke Niwa.
2100
2101         Add setValue() method to WKTR (already existed in DRT).
2102
2103         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
2104         (WTR::AccessibilityUIElement::setValue):
2105         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2106         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2107         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2108         (WTR::AccessibilityUIElement::setValue):
2109
2110 2017-06-23  Keith Miller  <keith_miller@apple.com>
2111
2112         Switch VMTraps to use halt instructions rather than breakpoint instructions
2113         https://bugs.webkit.org/show_bug.cgi?id=173677
2114
2115         Reviewed by JF Bastien.
2116
2117         * TestWebKitAPI/Tests/WTF/ThreadMessages.cpp:
2118         (TEST):
2119
2120 2017-06-23  Youenn Fablet  <youenn@apple.com>
2121
2122         Set getUserMedia permission to true by default on WTR
2123         https://bugs.webkit.org/show_bug.cgi?id=173610
2124
2125         Reviewed by Alex Christensen.
2126
2127         Adding a way to reset the getUserMedia permission to pending.
2128
2129         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2130         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2131         (WTR::InjectedBundle::setUserMediaPermissionAsUnset):
2132         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
2133         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2134         (WTR::TestRunner::setUserMediaPermissionAsUnset):
2135         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2136         * WebKitTestRunner/TestController.cpp:
2137         (WTR::TestController::resetStateToConsistentValues):
2138         (WTR::TestController::setUserMediaPermissionAsUnset):
2139         * WebKitTestRunner/TestController.h:
2140         * WebKitTestRunner/TestInvocation.cpp:
2141         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2142
2143 2017-06-23  Alex Christensen  <achristensen@webkit.org>
2144
2145         Add SPI to WKURLSchemeTask for redirection
2146         https://bugs.webkit.org/show_bug.cgi?id=173730
2147
2148         Reviewed by Brady Eidson.
2149
2150         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm:
2151         (-[SchemeHandler webView:startURLSchemeTask:]):
2152         (-[SchemeHandler webView:stopURLSchemeTask:]):
2153         (TEST):
2154         (-[RedirectSchemeHandler webView:startURLSchemeTask:]):
2155         (-[RedirectSchemeHandler webView:stopURLSchemeTask:]):
2156         (-[RedirectSchemeHandler webView:didReceiveServerRedirectForProvisionalNavigation:]):
2157         (-[RedirectSchemeHandler webView:decidePolicyForNavigationResponse:decisionHandler:]):
2158         (-[RedirectSchemeHandler userContentController:didReceiveScriptMessage:]):
2159
2160 2017-06-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2161
2162         [WPE] Use JSC API to send script messages from web extension in tests
2163         https://bugs.webkit.org/show_bug.cgi?id=173757
2164
2165         Reviewed by Žan Doberšek.
2166
2167         The GTK+ uses DOM bindings to send the messages. We can just build the message string and use JSEvaluateScript
2168         to run postMessage().
2169
2170         Fixes: /wpe/WebKitSecurityManager/file-xhr
2171                /wpe/WebKitConsoleMessage/console-api
2172                /wpe/WebKitConsoleMessage/js-exception
2173                /wpe/WebKitConsoleMessage/network-error
2174                /wpe/WebKitConsoleMessage/security-error
2175
2176         * TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp:
2177         (testWebKitConsoleMessageSecurityError): Remove ifdefs.
2178         (beforeAll): Ditto.
2179         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:
2180         (testWebContextSecurityFileXHR): Ditto.
2181         (beforeAll): Ditto.
2182         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
2183         (consoleMessageSentCallback): Use JSEvaluateScript in WPE. We need to escape the '"' in the message string.
2184         (pageCreatedCallback): Remove ifdefs.
2185
2186 2017-06-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2187
2188         Unreviewed. Fix WPE /wpe/WebKitWebView/javascript-dialogs and /wpe/WebKitWebView/window-properties
2189
2190         Skip onbeforeunload dialog tests for now in WPE since we don't have a implemention for
2191         simulateUserInteraction(). And do not expect changes in "geometry" property of WebKitWindowProperties that
2192         doesn't exist yet in WPE.
2193
2194         * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:
2195         (testWebViewJavaScriptDialogs):
2196         (testWebViewWindowProperties):
2197
2198 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2199
2200         [GTK] Upgrade pixman and cairo in jhbuild
2201         https://bugs.webkit.org/show_bug.cgi?id=173710
2202
2203         Reviewed by Carlos Alberto Lopez Perez.
2204
2205         * gtk/jhbuild.modules:
2206
2207 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2208
2209         REGRESSION(r218686): [GTK] Several unit tests are failing after r218686 in the bots
2210         https://bugs.webkit.org/show_bug.cgi?id=173711
2211
2212         Reviewed by Carlos Alberto Lopez Perez.
2213
2214         I can't reproduce it locally, but it's complaining about a g_setenv() and I only added one in r218686 to recover
2215         the XDG_RUNTIME_DIR, because it's required by Wayland to work. So, I guess that env var is not set in the bots.
2216
2217         * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.cpp:
2218         (WebKitTestBus::run): Ensure value is not nullptr before calling g_setenv().
2219
2220 2017-06-22  David Kilzer  <ddkilzer@apple.com>
2221
2222         REGRESSION (r218419): 7 leaks in PluginLoadClientPolicies.mm
2223         <https://webkit.org/b/173721>
2224
2225         Reviewed by Joseph Pecoraro.
2226
2227         Use RetainPtr<> to create NSMutableDictionary and NSNumber
2228         objects to fix leaks and to avoid the autoreleasepool.
2229
2230         * TestWebKitAPI/Tests/WebKit2Cocoa/PluginLoadClientPolicies.mm:
2231         (TEST):
2232
2233 2017-06-22  Matt Lewis  <jlewis3@apple.com>
2234
2235         Unreviewed, rolling out r218633.
2236
2237         The test is failing frequently on Sierra Debug and Windows
2238
2239         Reverted changeset:
2240
2241         "AX: Cannot call setValue() on contenteditable or ARIA text
2242         controls"
2243         https://bugs.webkit.org/show_bug.cgi?id=173520
2244         http://trac.webkit.org/changeset/218633
2245
2246 2017-06-22  David Kilzer  <ddkilzer@apple.com>
2247
2248         [TestWebKitAPI] Fix misuse of -[NSData dataWithBytesNoCopy:length:] with global variables
2249         <https://webkit.org/b/173690>
2250
2251         Reviewed by Chris Dumez.
2252
2253         Per documentation, -[NSData dataWithBytesNoCopy:length:] takes
2254         ownership of malloc()-ed memory, then frees it when it's
2255         released.  These tests were passing global variables into the
2256         method, which is not malloc()-ed memory, which violates the API
2257         contract.
2258
2259         The fix is to switch to use
2260         -[NSData dataWithBytesNoCopy:length:freeWhenDone:] and to pass
2261         NO for the last argument.
2262
2263         Caught by the clang static analyzer.
2264
2265         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm:
2266         (TEST):
2267         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm:
2268         (TEST):
2269
2270 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2271
2272         [GTK] Upgrade Harfbuzz to version 1.4.2
2273         https://bugs.webkit.org/show_bug.cgi?id=173592
2274
2275         Reviewed by Carlos Alberto Lopez Perez.
2276
2277         * gtk/jhbuild.modules:
2278
2279 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2280
2281         [WPE] Update WPEBackend-mesa
2282         https://bugs.webkit.org/show_bug.cgi?id=173705
2283
2284         Reviewed by Carlos Alberto Lopez Perez.
2285
2286         A crash has been fixed, needed for unit tests to work.
2287
2288         * wpe/jhbuild.modules:
2289
2290 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2291
2292         Remove unused coordinated graphics C API
2293         https://bugs.webkit.org/show_bug.cgi?id=173706
2294
2295         Reviewed by Žan Doberšek.
2296
2297         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewIsActiveSetIsActive.cpp: Removed.
2298         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewIsActiveSetIsActive_Bundle.cpp: Removed.
2299         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewRestoreZoomAndScrollBackForward.cpp: Removed.
2300         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewUserViewportToContents.cpp: Removed.
2301         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/backforward1.html: Removed.
2302         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/backforward2.html: Removed.
2303
2304 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2305
2306         [WPE] Build glib API tests
2307         https://bugs.webkit.org/show_bug.cgi?id=173702
2308
2309         Reviewed by Žan Doberšek.
2310
2311         Many of the tests pass without problems, others need to be investigated, and some others are known issues. The
2312         main difference between the GTK+ and WPE WebKitWebView is that in GTK+ it's a GtkWidget, so initially
2313         unowned. The tests assume that webkit_web_view_new methods return a floating reference. This patch adds
2314         Test::adoptView() method that returns a GRefPtr<WebKitWebView> with a different implementation in GTK+ and
2315         WPE. In the case of GTK+, it sinks the floating reference, while in WPE it simply adopts the reference. Another
2316         difference is that in GTK+ the web view is initially hidden and needs to be added to a window to make it
2317         visible. Also, some tests need the web view to be realized to work, and others need that the view is added to a
2318         toplevel window, instead of a popup window. All those things are not needed at all in WPE. I've added several
2319         #ifdefs with FIXME comments for the things that we know don't work in WPE yet, for example, because we haven't
2320         implemented the methods to send events to the web view. Those will be removed eventually when we fix the issues
2321         and implement the missing features.
2322
2323         * CMakeLists.txt:
2324         * TestWebKitAPI/Tests/WebKit2Gtk/EditorTest.cpp:
2325         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
2326         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
2327         (testAutomationSessionRequestSession):
2328         * TestWebKitAPI/Tests/WebKitGLib/TestBackForwardList.cpp:
2329         (testWebKitWebViewSessionState):
2330         (testWebKitWebViewSessionStateWithFormData):
2331         (testWebKitWebViewNavigationAfterSessionRestore):
2332         * TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp:
2333         (beforeAll):
2334         * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp:
2335         (testCookieManagerEphemeral):
2336         * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp:
2337         (testBlobDownload):
2338         (beforeAll):
2339         * TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp:
2340         * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp:
2341         * TestWebKitAPI/Tests/WebKitGLib/TestMultiprocess.cpp:
2342         (testProcessPerWebView):
2343         * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:
2344         * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:
2345         (testWebViewCreateNavigationData):
2346         (testWebViewJavaScriptDialogs):
2347         (testWebViewWindowProperties):
2348         (testWebViewMouseTarget):
2349         (testWebViewGeolocationPermissionRequests):
2350         (testWebViewUserMediaPermissionRequests):
2351         (testWebViewAudioOnlyUserMediaPermissionRequests):
2352         (testWebViewFileChooserRequest):
2353         (beforeAll):
2354         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
2355         (beforeAll):
2356         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp:
2357         (testPrivateBrowsing):
2358         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFindController.cpp:
2359         (testFindControllerHide):
2360         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSecurityOrigin.cpp:
2361         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
2362         (testWebKitSettings):
2363         (beforeAll):
2364         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp:
2365         (testWebViewNewWithUserContentManager):
2366         (beforeAll):
2367         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:
2368         (testWebContextEphemeral):
2369         (testWebContextProxySettings):
2370         (beforeAll):
2371         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
2372         (testWebViewWebContext):
2373         (testWebViewWebContextLifetime):
2374         (testWebViewEphemeral):
2375         (testWebViewSettings):
2376         (testWebViewCanShowMIMEType):
2377         (testWebViewPageVisibility):
2378         (testWebViewIsPlayingAudio):
2379         (beforeAll):
2380         * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:
2381         (testWebsiteDataEphemeral):
2382         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
2383         (documentLoadedCallback):
2384         (pageCreatedCallback):
2385         (methodCallCallback):
2386         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.h:
2387         * TestWebKitAPI/glib/CMakeLists.txt:
2388         * TestWebKitAPI/glib/PlatformGTK.cmake:
2389         * TestWebKitAPI/glib/WebKitGLib/LoadTrackingTest.cpp:
2390         * TestWebKitAPI/glib/WebKitGLib/TestMain.cpp:
2391         (main):
2392         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
2393         (Test::adoptView):
2394         * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.cpp:
2395         (WebKitTestBus::run):
2396         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
2397         (WebViewTest::~WebViewTest):
2398         (WebViewTest::initializeWebView):
2399         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.h:
2400         * TestWebKitAPI/glib/WebKitGLib/gtk/WebViewTestGtk.cpp: Added.
2401         (WebViewTest::platformDestroy):
2402         (WebViewTest::platformInitializeWebView):
2403         (WebViewTest::quitMainLoopAfterProcessingPendingEvents):
2404         (WebViewTest::resizeView):
2405         (WebViewTest::hideView):
2406         (parentWindowMapped):
2407         (WebViewTest::showInWindow):
2408         (WebViewTest::showInWindowAndWaitUntilMapped):
2409         (WebViewTest::mouseMoveTo):
2410         (WebViewTest::clickMouseButton):
2411         (WebViewTest::emitPopupMenuSignal):
2412         (WebViewTest::keyStroke):
2413         (WebViewTest::doMouseButtonEvent):
2414         * TestWebKitAPI/glib/WebKitGLib/wpe/WebViewTestWPE.cpp: Copied from Tools/TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.h.
2415         (WebViewTest::platformDestroy):
2416         (WebViewTest::platformInitializeWebView):
2417         (WebViewTest::quitMainLoopAfterProcessingPendingEvents):
2418         (WebViewTest::resizeView):
2419         (WebViewTest::hideView):
2420         (WebViewTest::mouseMoveTo):
2421         (WebViewTest::clickMouseButton):
2422         (WebViewTest::keyStroke):
2423
2424 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2425
2426         [GTK] Move WebKit2 GLib API tests to glib directories
2427         https://bugs.webkit.org/show_bug.cgi?id=173642
2428
2429         Reviewed by Žan Doberšek.
2430
2431         * CMakeLists.txt:
2432         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt: Removed.
2433         * TestWebKitAPI/Tests/WebKit2Gtk/resources/webkit2gtk-tests.gresource.xml: Removed.
2434         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/FrameTest.cpp.
2435         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestAuthentication.cpp.
2436         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestAutomationSession.cpp.
2437         * TestWebKitAPI/Tests/WebKitGLib/TestBackForwardList.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp.
2438         * TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp.
2439         (testWebKitConsoleMessageNetworkError):
2440         * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestCookieManager.cpp.
2441         * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp.
2442         * TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestFrame.cpp.
2443         * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp.
2444         (testLoadFromGResource):
2445         * TestWebKitAPI/Tests/WebKitGLib/TestMultiprocess.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestMultiprocess.cpp.
2446         * TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp.
2447         * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp.
2448         * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp.
2449         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp.
2450         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitFaviconDatabase.cpp.
2451         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFindController.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitFindController.cpp.
2452         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitPolicyClient.cpp.
2453         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSecurityOrigin.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSecurityOrigin.cpp.
2454         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSettings.cpp.
2455         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp.
2456         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp.
2457         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp.
2458         (testWebViewRunJavaScript):
2459         * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebsiteData.cpp.
2460         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp.
2461         (registerGResource):
2462         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.cpp.
2463         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.h: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.h.
2464         * TestWebKitAPI/Tests/WebKitGLib/resources/blank.ico: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/blank.ico.
2465         * TestWebKitAPI/Tests/WebKitGLib/resources/boring.html: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/boring.html.
2466         * TestWebKitAPI/Tests/WebKitGLib/resources/link-title.js: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/link-title.js.
2467         * TestWebKitAPI/Tests/WebKitGLib/resources/silence.mpg: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/silence.mpg.
2468         * TestWebKitAPI/Tests/WebKitGLib/resources/simple.json: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/simple.json.
2469         * TestWebKitAPI/Tests/WebKitGLib/resources/test-cert.pem: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/test-cert.pem.
2470         * TestWebKitAPI/Tests/WebKitGLib/resources/test-key.pem: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/test-key.pem.
2471         * TestWebKitAPI/Tests/WebKitGLib/resources/test.pdf: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/test.pdf.
2472         * TestWebKitAPI/Tests/WebKitGLib/resources/track.ogg: Renamed from Tools/TestWebKitAPI/Tests/WebKit2Gtk/resources/track.ogg.
2473         * TestWebKitAPI/Tests/WebKitGLib/resources/webkitglib-tests.gresource.xml: Added.
2474         * TestWebKitAPI/glib/CMakeLists.txt: Added.
2475         * TestWebKitAPI/glib/PlatformGTK.cmake: Added.
2476         * TestWebKitAPI/glib/WebKitGLib/LoadTrackingTest.cpp: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp.
2477         * TestWebKitAPI/glib/WebKitGLib/LoadTrackingTest.h: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.h.
2478         * TestWebKitAPI/glib/WebKitGLib/TestMain.cpp: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/TestMain.cpp.
2479         (registerGResource):
2480         * TestWebKitAPI/glib/WebKitGLib/TestMain.h: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/TestMain.h.
2481         (Test::getResourcesDir):
2482         * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.cpp: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.cpp.
2483         * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.h: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.h.
2484         * TestWebKitAPI/glib/WebKitGLib/WebKitTestServer.cpp: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp.
2485         * TestWebKitAPI/glib/WebKitGLib/WebKitTestServer.h: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.h.
2486         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp.
2487         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.h: Renamed from Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h.
2488
2489 2017-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2490
2491         [WPE] Add initial web extensions API
2492         https://bugs.webkit.org/show_bug.cgi?id=173640
2493
2494         Reviewed by Žan Doberšek.
2495
2496         Add style checker exceptions for WPE web extensions API files.
2497
2498         * Scripts/webkitpy/style/checker.py:
2499
2500 2017-06-21  Wenson Hsieh  <wenson_hsieh@apple.com>
2501
2502         [iOS DnD] [WK2] Cancelling a drag interaction using the ObjC SPI causes subsequent dragging to fail
2503         https://bugs.webkit.org/show_bug.cgi?id=173659
2504         <rdar://problem/32879788>
2505
2506         Reviewed by Tim Horton.
2507
2508         Adds a new test to verify that a lift cancelled within the UI process does not cause subsequent dragging to fail.
2509
2510         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-target-div.html:
2511
2512         Augment this test page to log dragend and dragstart events on the drag source as well.
2513
2514         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2515         (checkStringArraysAreEqual):
2516         (TestWebKitAPI::TEST):
2517
2518 2017-06-21  Antoine Quint  <graouts@apple.com>
2519
2520         Ensure DRT always logs rAF suspension debugging code
2521         https://bugs.webkit.org/show_bug.cgi?id=173681
2522
2523         Reviewed by Tim "Mr. T" Horton.
2524
2525         * DumpRenderTree/mac/DumpRenderTree.mm:
2526         (resetWebPreferencesToConsistentValues):
2527
2528 2017-06-21  Chris Dumez  <cdumez@apple.com>
2529
2530         Allow constructing a WTF:Function from a function pointer
2531         https://bugs.webkit.org/show_bug.cgi?id=173660
2532
2533         Reviewed by Alex Christensen.
2534
2535         Add API test coverage.
2536
2537         * TestWebKitAPI/Tests/WTF/Function.cpp:
2538         (TestWebKitAPI::returnThree):
2539         (TestWebKitAPI::returnFour):
2540         (TestWebKitAPI::returnPassedValue):
2541         (TestWebKitAPI::TEST):
2542
2543 2017-06-21  Antoine Quint  <graouts@apple.com>
2544
2545         Add logging to identify when the Page suspends scripted animations
2546         https://bugs.webkit.org/show_bug.cgi?id=173626
2547
2548         Reviewed by Tim Horton.
2549
2550         Turn the new logging on for WK1/DRT since the issue we're trying to pinpoint only occurs on WK1 bots.
2551
2552         * DumpRenderTree/mac/DumpRenderTree.mm:
2553         (resetWebPreferencesToConsistentValues):
2554
2555 2017-06-21  Chris Fleizach  <cfleizach@apple.com>
2556
2557         AX: Cannot call setValue() on contenteditable or ARIA text controls
2558         https://bugs.webkit.org/show_bug.cgi?id=173520
2559
2560         Reviewed by Ryosuke Niwa.
2561
2562         Add setValue() method to WKTR (already existed in DRT).
2563
2564         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
2565         (WTR::AccessibilityUIElement::setValue):
2566         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2567         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2568         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2569         (WTR::AccessibilityUIElement::setValue):
2570
2571 2017-06-21  Zan Dobersek  <zdobersek@igalia.com>
2572
2573         List libtasn1 packages in GTK+ and WPE install-dependencies scripts
2574         as one of the dependencies required to build the product.
2575
2576         Rubber-stamped by Carlos Garcia Campos.
2577
2578         * gtk/install-dependencies:
2579         * wpe/install-dependencies:
2580
2581 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
2582
2583         Disable font variations on macOS Sierra and iOS 10
2584         https://bugs.webkit.org/show_bug.cgi?id=173618
2585         <rdar://problem/32879164>
2586
2587         Reviewed by Jon Lee.
2588
2589         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2590
2591 2017-06-20  Wenson Hsieh  <wenson_hsieh@apple.com>
2592
2593         [iOS DnD] [WK2] Remove custom logic for disambiguating long press action sheet gestures and drag lift
2594         https://bugs.webkit.org/show_bug.cgi?id=173578
2595         <rdar://problem/32825028>
2596
2597         Reviewed by Tim Horton.
2598
2599         Slight tweak to ensure that DataInteractionTests.CustomActionSheetPopover still passes and verifies that showing
2600         a custom popover does not cause dragging to fail when the popover is presented.
2601
2602         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
2603         (-[DataInteractionSimulator _advanceProgress]):
2604
2605 2017-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2606
2607         [WPE] Add initial implementation of glib API
2608         https://bugs.webkit.org/show_bug.cgi?id=173546
2609
2610         Reviewed by Žan Doberšek.
2611
2612         Disable geolocation because WPE doesn't implement any provider and update the style checker exceptions to
2613         include WPE glib API files.
2614
2615         * Scripts/webkitperl/FeatureList.pm:
2616         * Scripts/webkitpy/style/checker.py:
2617         * Scripts/webkitpy/style/checkers/cpp.py:
2618         (check_identifier_name_in_declaration):
2619
2620 2017-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2621
2622         [GTK] Upgrade to ICU to version 57.1
2623         https://bugs.webkit.org/show_bug.cgi?id=173538
2624
2625         Reviewed by Žan Doberšek.
2626
2627         * gtk/jhbuild.modules:
2628
2629 2017-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2630
2631         [GTK] Remove unneeded modules from the jhbuild
2632         https://bugs.webkit.org/show_bug.cgi?id=170540
2633
2634         Reviewed by Michael Catanzaro.
2635
2636         We are building libxslt and libffi that we don't really need to build from sources.
2637
2638         * gtk/jhbuild.modules:
2639
2640 2017-06-19  Frederic Wang  <fwang@igalia.com>
2641
2642         [Mac] Add an experimental feature setting for async frame scrolling
2643         https://bugs.webkit.org/show_bug.cgi?id=173359
2644
2645         Reviewed by Simon Fraser.
2646
2647         * DumpRenderTree/mac/DumpRenderTree.mm:
2648         (enableExperimentalFeatures): Do not enable async frame scrolling for now.
2649         (resetWebPreferencesToConsistentValues): Disable async frame scrolling by default.
2650         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2651         (WTR::InjectedBundle::beginTesting): Initalize to async frame scrolling to false.
2652
2653 2017-06-19  Guillaume Emont  <guijemont@igalia.com>
2654
2655         Unreviewed, adding myself to contributors.json
2656
2657         * Scripts/webkitpy/common/config/contributors.json:
2658
2659 2017-06-19  Joseph Pecoraro  <pecoraro@apple.com>
2660
2661         test262: Completion values for control flow do not match the spec
2662         https://bugs.webkit.org/show_bug.cgi?id=171265
2663
2664         Reviewed by Saam Barati.
2665
2666         * Scripts/run-jsc-stress-tests:
2667         Include a :failDueToOutdatedOrBadTest to mark failures with justification.
2668
2669 2017-06-19  Zalan Bujtas  <zalan@apple.com>
2670
2671         Opening certain mails brings up a mail that grows indefinitely.
2672         https://bugs.webkit.org/show_bug.cgi?id=173562
2673         <rdar://problem/32766579>
2674
2675         Reviewed by Tim Horton.
2676
2677         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
2678         (TEST):
2679
2680 2017-06-19  Wenson Hsieh  <wenson_hsieh@apple.com>
2681
2682         [iOS DnD] Support .zip archives for file uploads via drag and drop
2683         https://bugs.webkit.org/show_bug.cgi?id=173511
2684         <rdar://problem/32521025>
2685
2686         Reviewed by Tim Horton.
2687
2688         Adds tests for dropping .zip archives into a JavaScript-based file upload area, as well as into a file input.
2689         Also verifies that URLs are not handled as file drops. See WebCore ChangeLog for more details.
2690
2691         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2692         * TestWebKitAPI/Tests/WebKit2Cocoa/compressed-files.zip: Added.
2693         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2694         (testZIPArchive):
2695         (TestWebKitAPI::TEST):
2696
2697 2017-06-18  Darin Adler  <darin@apple.com>
2698
2699         Fix Ref to deref before assignment, add tests for this to RefPtr, Ref, Function
2700         https://bugs.webkit.org/show_bug.cgi?id=173526
2701
2702         Reviewed by Sam Weinig.
2703
2704         * TestWebKitAPI/CMakeLists.txt: Added Function.cpp.
2705         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
2706
2707         * TestWebKitAPI/Tests/WTF/Function.cpp: Added. Contains basic tests and some
2708         tests for assignment before destruction ones.
2709
2710         * TestWebKitAPI/Tests/WTF/MoveOnly.h: Added a () operator so this can be used
2711         as a function, so it can be used in WTF::Function tests.
2712
2713         * TestWebKitAPI/Tests/WTF/Ref.cpp: Use EXPECT macros insead of ASSERT.
2714         Added tests for swap and for assignment before deref.
2715
2716         * TestWebKitAPI/Tests/WTF/RefLogger.cpp: Stopped using inlining; no good reason
2717         to inline everything. Also removed the unnecessary clearing of the log every time
2718         the DerivedRefLogger constructor is called.
2719         * TestWebKitAPI/Tests/WTF/RefLogger.h: Ditto.
2720
2721         * TestWebKitAPI/Tests/WTF/RefPtr.cpp: Use EXPECT macros instead of ASSERT.
2722         Added tests for assignment before deref and similar for releaseNonNull.
2723
2724 2017-06-19  Sam Weinig  <sam@webkit.org>
2725
2726         [WebIDL] Properly model buffer source / typed arrays as their own IDL types
2727         https://bugs.webkit.org/show_bug.cgi?id=173513
2728
2729         Reviewed by Alex Christensen.
2730
2731         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
2732         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
2733         Replace IsNonPointerType subroutine with IsPrimitiveType so we can remove IsNonPointerType.
2734
2735 2017-06-19  Per Arne Vollan  <pvollan@apple.com>
2736
2737         [Win] fast/dom/assign-to-window-status.html is flaky.
2738         https://bugs.webkit.org/show_bug.cgi?id=173512
2739
2740         Reviewed by Alex Christensen.
2741
2742         We should not dump status callbacks when test is done.
2743
2744         * DumpRenderTree/win/UIDelegate.cpp:
2745         (UIDelegate::setStatusText):
2746
2747 2017-06-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2748
2749         [WPE][JHBuild] Update WPEBackend-mesa
2750         https://bugs.webkit.org/show_bug.cgi?id=173433
2751
2752         Unreviewed.
2753
2754         Update WPEBackend-mesa back (like it was done originally in r218344)
2755         after fixing the issue with the DISPLAY environment variables that
2756         caused the crashes.
2757
2758         * wpe/jhbuild.modules:
2759
2760 2017-06-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2761
2762         Rename unit test file after r218482
2763         https://bugs.webkit.org/show_bug.cgi?id=173483
2764
2765         Unreviewed.
2766
2767         * Scripts/webkitpy/port/waylanddriver_unittest.py: Renamed from Tools/Scripts/webkitpy/port/wayland_unittest.py.
2768
2769 2017-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2770
2771         Unreviewed. Fix wrong style checker condition added in r218487.
2772
2773         * Scripts/webkitpy/style/checkers/cpp.py:
2774         (check_identifier_name_in_declaration):
2775
2776 2017-06-19  Adrian Perez de Castro  <aperez@igalia.com>
2777
2778         Missing <functional> includes make builds fail with GCC 7.x
2779         https://bugs.webkit.org/show_bug.cgi?id=173544
2780
2781         Unreviewed gardening.
2782
2783         Fix compilation with GCC 7.
2784
2785         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
2786         * TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.h:
2787
2788 2017-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2789
2790         [GTK] Move GTK+ API files that could be shared to glib dirs
2791         https://bugs.webkit.org/show_bug.cgi?id=173545
2792
2793         Reviewed by Žan Doberšek.
2794
2795         Update paths of GTK+ API in watchlist and style checker.
2796
2797         * Scripts/webkitpy/common/config/watchlist:
2798         * Scripts/webkitpy/style/checker.py:
2799         * Scripts/webkitpy/style/checkers/cpp.py:
2800         (check_identifier_name_in_declaration):
2801
2802 2017-06-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2803
2804         Port setup_environ_for_server should not set environment variables related with the driver.
2805         https://bugs.webkit.org/show_bug.cgi?id=173483
2806
2807         Reviewed by Carlos Garcia Campos.
2808
2809         The port setup_environ_for_server() should not set environment variables
2810         that depend on the type of driver (like DISPLAY or GDK_BACKEND).
2811         This varibles should be only set on the driver setup_environ_for_test().
2812
2813         This causes that (for example) the variable DISPLAY or XAUTHORITY leaks
2814         into the test environment even when running the tests with a driver
2815         that is not the Xorg or Xvfb one.
2816
2817         * Scripts/webkitpy/port/base.py: Stop setting XAUTHORITY and DISPLAY here.
2818         (Port.to.setup_environ_for_server):
2819         * Scripts/webkitpy/port/driver.py: Remove unneded WEBKIT_OUTPUTDIR that is already set on base.py
2820         (Driver._setup_environ_for_driver):
2821         * Scripts/webkitpy/port/driver_unittest.py:
2822         (DriverTest.test_setup_environ_for_test):
2823         (DriverTest):
2824         (DriverTest.test_setup_environ_base_vars):
2825         * Scripts/webkitpy/port/gtk.py: Stop setting GDK_BACKEND here and do that on the driver (Xvfb).
2826         (GtkPort.setup_environ_for_server):
2827         * Scripts/webkitpy/port/wayland_unittest.py: Added.
2828         (WaylandDriverTest):
2829         (WaylandDriverTest.make_driver):
2830         (WaylandDriverTest.make_environment):
2831         (WaylandDriverTest.test_checkdriver):
2832         (WaylandDriverTest.test_environment_needed_variables):
2833         (WaylandDriverTest.test_environment_forbidden_variables):
2834         (WaylandDriverTest.test_environment_optional_variables):
2835         * Scripts/webkitpy/port/waylanddriver.py: Allow the driver to run also with WAYLAND_SOCKET.
2836         (WaylandDriver.check_driver):
2837         (WaylandDriver._setup_environ_for_test):
2838         * Scripts/webkitpy/port/xorgdriver.py:
2839         (XorgDriver.check_driver):
2840         (XorgDriver._setup_environ_for_test):
2841         * Scripts/webkitpy/port/xorgdriver_unittest.py: Added.
2842         (XorgDriverTest):
2843         (XorgDriverTest.make_driver):
2844         (XorgDriverTest.make_environment):
2845         (XorgDriverTest.test_checkdriver):
2846         (XorgDriverTest.test_environment_needed_variables):
2847         (XorgDriverTest.test_environment_forbidden_variables):
2848         (XorgDriverTest.test_environment_optional_variables):
2849         * Scripts/webkitpy/port/xvfbdriver.py:
2850         (XvfbDriver._setup_environ_for_test):
2851         * Scripts/webkitpy/port/xvfbdriver_unittest.py:
2852         (XvfbDriverTest.assertDriverStartSuccessful):
2853
2854
2855 2017-05-14 Frederic Wang  <fwang@igalia.com>
2856
2857         Add heuristic to avoid flattening "fullscreen" iframes
2858         https://bugs.webkit.org/show_bug.cgi?id=171914
2859
2860         Reviewed by Simon Fraser.
2861
2862         * DumpRenderTree/mac/DumpRenderTree.mm:
2863         (resetWebPreferencesToConsistentValues): Use WebKitFrameFlatteningDisabled.
2864
2865 2017-06-18  Chris Dumez  <cdumez@apple.com>
2866
2867         Crash when re-entering MediaDevicesEnumerationRequest::cancel()
2868         https://bugs.webkit.org/show_bug.cgi?id=173522
2869         <rdar://problem/31185739>
2870
2871         Reviewed by Darin Adler.
2872
2873         Add API test for re-entering Function's assignment operators.
2874
2875         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2876         * TestWebKitAPI/Tests/WTF/Function.cpp: Added.
2877         (TestWebKitAPI::TestObject::TestObject):
2878         (TestWebKitAPI::TestObject::~TestObject):
2879         (TestWebKitAPI::TestObject::operator()):
2880         (TestWebKitAPI::TEST):
2881
2882 2017-06-16  Dan Bernstein  <mitz@apple.com>
2883
2884         [Cocoa] Some declarations have missing or incorrect availability attributes
2885         https://bugs.webkit.org/show_bug.cgi?id=173508
2886
2887         Reviewed by Tim Horton.
2888
2889         * TestWebKitAPI/Tests/ios/PositionInformationTests.mm:
2890         (TestWebKitAPI::TEST): Updated for renames.
2891
2892 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
2893
2894         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
2895         https://bugs.webkit.org/show_bug.cgi?id=173366
2896         <rdar://problem/32767014>
2897
2898         Reviewed by Tim Horton.
2899
2900         Move test pages and pieces of DataInteractionSimulator hidden behind WebKitAdditions into TestWebKitAPI. No
2901         change in behavior.
2902
2903         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2904         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2905         * TestWebKitAPI/Tests/WebKit2Cocoa/autofocus-contenteditable.html: Added.
2906         * TestWebKitAPI/Tests/WebKit2Cocoa/background-image-link-and-input.html: Added.
2907         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-textarea.html: Added.
2908         * TestWebKitAPI/Tests/WebKit2Cocoa/div-and-large-image.html: Added.
2909         * TestWebKitAPI/Tests/WebKit2Cocoa/file-uploading.html: Added.
2910         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-contenteditable.html: Added.
2911         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-textarea.html: Added.
2912         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-input.html: Added.
2913         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-target-div.html: Added.
2914         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-operation.html: Added.
2915         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-start.html: Added.
2916         * TestWebKitAPI/Tests/WebKit2Cocoa/textarea-to-input.html: Added.
2917         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
2918         (-[MockDragDropSession initWithItems:location:window:]):
2919         (-[MockDragDropSession allowsMoveOperation]):
2920         (-[MockDragDropSession isRestrictedToDraggingApplication]):
2921         (-[MockDragDropSession hasItemsConformingToTypeIdentifiers:]):
2922         (-[MockDragDropSession canLoadObjectsOfClass:]):
2923         (-[MockDragDropSession canLoadObjectsOfClasses:]):
2924         (-[MockDragDropSession items]):
2925         (-[MockDragDropSession setItems:]):
2926         (-[MockDragDropSession locationInView:]):
2927         (-[MockDataOperationSession initWithProviders:location:window:]):
2928         (-[MockDataOperationSession session]):
2929         (-[MockDataOperationSession isLocal]):
2930         (-[MockDataOperationSession progress]):
2931         (-[MockDataOperationSession setProgressIndicatorStyle:]):
2932         (-[MockDataOperationSession progressIndicatorStyle]):
2933         (-[MockDataOperationSession operationMask]):
2934         (-[MockDataOperationSession localDragSession]):
2935         (-[MockDataOperationSession hasItemsConformingToTypeIdentifier:]):
2936         (-[MockDataOperationSession canCreateItemsOfClass:]):
2937         (-[MockDataOperationSession loadObjectsOfClass:completion:]):
2938         (-[MockDataInteractionSession initWithWindow:]):
2939         (-[MockDataInteractionSession localOperationMask]):
2940         (-[MockDataInteractionSession externalOperationMask]):
2941         (-[MockDataInteractionSession session]):
2942         (-[DataInteractionSimulator _advanceProgress]):
2943
2944 2017-06-16  Alex Christensen  <achristensen@webkit.org>
2945
2946         Show punycode to user if a URL has dotless i or j followed by diacritic dot
2947         https://bugs.webkit.org/show_bug.cgi?id=173431
2948
2949         Reviewed by Darin Adler.
2950
2951         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
2952         (TestWebKitAPI::TEST):
2953
2954 2017-06-16  Chris Dumez  <cdumez@apple.com>
2955
2956         [WK2] Add WKProcessPool SPI to efficiently reset all plugin load client policies
2957         https://bugs.webkit.org/show_bug.cgi?id=173472
2958         <rdar://problem/28858817>
2959
2960         Reviewed by Brady Eidson.
2961
2962         Add API test coverage.
2963
2964         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2965         * TestWebKitAPI/Tests/WebKit2Cocoa/PluginLoadClientPolicies.mm: Added.
2966         (TEST):
2967
2968 2017-06-16  Brady Eidson  <beidson@apple.com>
2969
2970         REGRESSION (r218015) IconLoaders for already-cached resources expect to be asynchronous, no longer are.
2971         <rdar://problem/32817519> and https://bugs.webkit.org/show_bug.cgi?id=173478
2972
2973         Reviewed by Daniel Bates.
2974
2975         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm:
2976
2977 2017-06-16  Chris Dumez  <cdumez@apple.com>
2978
2979         DRT fails to reset page visibility between tests
2980         https://bugs.webkit.org/show_bug.cgi?id=173485
2981
2982         Reviewed by Alexey Proskuryakov.
2983
2984         DRT fails to reset page visibility between tests and relies on tests calling testRunner.resetPageVisibility().
2985         Fix this to address flakiness.
2986
2987         I confirmed this by commenting out the call to testRunner.resetPageVisibility() in
2988         fast/events/page-visibility-onvisibilitychange.html and running the test in a loop.
2989         The test became flaky without the DRT change and was no longer flaky with the DRT
2990         change.
2991
2992         WebKitTestRunner already does this.
2993
2994         * DumpRenderTree/mac/DumpRenderTree.mm:
2995         (resetWebViewToConsistentStateBeforeTesting):
2996
2997 2017-06-16  Alex Christensen  <achristensen@webkit.org>
2998
2999         Implement basic authentication in MiniBrowser
3000         https://bugs.webkit.org/show_bug.cgi?id=173443
3001
3002         Reviewed by Tim Horton.
3003
3004         * MiniBrowser/mac/WK2BrowserWindowController.m:
3005         (-[WK2BrowserWindowController webView:didReceiveAuthenticationChallenge:completionHandler:]):
3006
3007 2017-06-16  Jer Noble  <jer.noble@apple.com>
3008
3009         [WebRTC] Removing a MediaStreamTrack from a MediaStream reports no recording to WebKit clients
3010         https://bugs.webkit.org/show_bug.cgi?id=173398
3011         <rdar://problem/32592961>
3012
3013         Reviewed by Eric Carlson.
3014
3015         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3016         * TestWebKitAPI/Tests/WebKit2/MediaStreamTrackDetached.mm: Added.
3017         (-[MediaStreamTrackDetachedUIDelegate _webView:requestUserMediaAuthorizationForDevices:url:mainFrameURL:decisionHandler:]):
3018         (-[MediaStreamTrackDetachedUIDelegate _webView:checkUserMediaPermissionForURL:mainFrameURL:frameIdentifier:decisionHandler:]):
3019         (-[MediaStreamTrackDetachedUIDelegate _webView:mediaCaptureStateDidChange:]):
3020         (TestWebKitAPI::TEST):
3021         * TestWebKitAPI/Tests/WebKit2/mediastreamtrack-detached.html: Added.
3022
3023 2017-06-16  Matt Lewis  <jlewis3@apple.com>
3024
3025         Unreviewed, rolling out r218375.
3026
3027         The API test MediaStreamTrackDetached is still timing out
3028         after the patch
3029
3030         Reverted changeset:
3031
3032         "[WebRTC] Removing a MediaStreamTrack from a MediaStream
3033         reports no recording to WebKit clients"
3034         https://bugs.webkit.org/show_bug.cgi?id=173398
3035         http://trac.webkit.org/changeset/218375
3036
3037 2017-06-15  Jer Noble  <jer.noble@apple.com>
3038
3039         [WebRTC] Removing a MediaStreamTrack from a MediaStream reports no recording to WebKit clients
3040         https://bugs.webkit.org/show_bug.cgi?id=173398
3041         <rdar://problem/32592961>
3042
3043         Reviewed by Eric Carlson.
3044
3045         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3046         * TestWebKitAPI/Tests/WebKit2/MediaStreamTrackDetached.mm: Added.
3047         (-[MediaStreamTrackDetachedUIDelegate _webView:requestUserMediaAuthorizationForDevices:url:mainFrameURL:decisionHandler:]):
3048         (-[MediaStreamTrackDetachedUIDelegate _webView:checkUserMediaPermissionForURL:mainFrameURL:frameIdentifier:decisionHandler:]):
3049         (-[MediaStreamTrackDetachedUIDelegate _webView:mediaCaptureStateDidChange:]):
3050         (TestWebKitAPI::TEST):
3051         * TestWebKitAPI/Tests/WebKit2/mediastreamtrack-detached.html: Added.
3052
3053 2017-06-15  Matt Lewis  <jlewis3@apple.com>
3054
3055         Unreviewed, rolling out r218365.
3056
3057         The revision caused API timeouts on all builds.
3058
3059         Reverted changeset:
3060
3061         "[WebRTC] Removing a MediaStreamTrack from a MediaStream
3062         reports no recording to WebKit clients"
3063         https://bugs.webkit.org/show_bug.cgi?id=173398
3064         http://trac.webkit.org/changeset/218365
3065
3066 2017-06-15  Jer Noble  <jer.noble@apple.com>
3067
3068         [WebRTC] Removing a MediaStreamTrack from a MediaStream reports no recording to WebKit clients
3069         https://bugs.webkit.org/show_bug.cgi?id=173398
3070         <rdar://problem/32592961>
3071
3072         Reviewed by Eric Carlson.
3073
3074         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3075         * TestWebKitAPI/Tests/WebKit2/MediaStreamTrackDetached.mm: Added.
3076         (-[MediaStreamTrackDetachedUIDelegate _webView:requestUserMediaAuthorizationForDevices:url:mainFrameURL:decisionHandler:]):
3077         (-[MediaStreamTrackDetachedUIDelegate _webView:checkUserMediaPermissionForURL:mainFrameURL:frameIdentifier:decisionHandler:]):
3078         (-[MediaStreamTrackDetachedUIDelegate _webView:mediaCaptureStateDidChange:]):
3079         (TestWebKitAPI::TEST):
3080         * TestWebKitAPI/Tests/WebKit2/mediastreamtrack-detached.html: Added.
3081
3082 2017-06-15  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3083
3084         REGRESSION(r218344): [WPE] Thousands of layout test crashes
3085         https://bugs.webkit.org/show_bug.cgi?id=173433
3086
3087         Unreviewed.
3088
3089         * wpe/jhbuild.modules: Revert the update of WPEBackend-mesa.
3090
3091 2017-06-15  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3092
3093         [WPE] The run-minibrowser script should allow to execute also a WPE launcher
3094         https://bugs.webkit.org/show_bug.cgi?id=173061
3095
3096         Reviewed by Žan Doberšek.
3097
3098         Launch dyz <https://github.com/Igalia/dyz> with the script
3099         run-minibrowser for the wpe port. It is now built as part of the
3100         WPE dependencies with JHBuild.
3101
3102         * Scripts/run-minibrowser:
3103         * Scripts/webkitdirs.pm:
3104         (launcherPath):
3105         (launcherName):
3106         * wpe/install-dependencies: Luajit is needed for building dyz.
3107         * wpe/jhbuild.modules: Add dyz and update the revision for WPEBackend-mesa.
3108
3109 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
3110
3111         Using -[WebItemProviderPasteboard setItemProviders:] to swap out item providers before a drop breaks item provider loading
3112         https://bugs.webkit.org/show_bug.cgi?id=173338
3113         <rdar://problem/32777720>
3114
3115         Reviewed by Tim Horton.
3116
3117         Adds new unit tests to ensure that -_webView:willPerformDropWithSession: can be used to filter out drag items
3118         used by WebKit when handling a drop. These tests ensure that WebItemProviderPasteboard is still able to handle
3119         these remaining items on drop.
3120
3121         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
3122         (TestWebKitAPI::TEST):
3123         * TestWebKitAPI/ios/DataInteractionSimulator.h:
3124         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
3125
3126         Add -overridePerformDropBlock, which can be set to provide custom handling of dropped items.
3127
3128         (-[DataInteractionSimulator _webView:willPerformDropWithSession:]):
3129
3130 2017-06-15  Per Arne Vollan  <pvollan@apple.com>
3131
3132         [Win] Crash in accessibility layout test.
3133         https://bugs.webkit.org/show_bug.cgi?id=173401
3134
3135         Reviewed by Brent Fulgham.
3136
3137         We should not manually release the punkVal IUnknown member in a _variant_t object, since the punkVal
3138         member will be automatically released when the _variant_t object goes out of scope if the vt member
3139         does not equal VT_UNKNOWN | VT_BYREF.
3140         See https://msdn.microsoft.com/en-us/library/windows/desktop/ms221165(v=vs.85).aspx. 
3141
3142         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
3143         (AccessibilityUIElement::titleUIElement):
3144
3145 2017-06-15  Carlos Garcia Campos  <cgarcia@igalia.com>
3146
3147         [GTK] Add API to allow overriding popup menus
3148         https://bugs.webkit.org/show_bug.cgi?id=172905
3149
3150         Reviewed by Michael Catanzaro.
3151
3152         Add a unit test to check the new API.
3153
3154         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
3155         * TestWebKitAPI/Tests/WebKit2Gtk/TestOptionMenu.cpp: Added.
3156         (OptionMenuTest::OptionMenuTest):
3157         (OptionMenuTest::~OptionMenuTest):
3158         (OptionMenuTest::destroyMenu):
3159         (OptionMenuTest::showOptionMenuCallback):
3160         (OptionMenuTest::menuCloseCallback):
3161         (OptionMenuTest::showOptionMenu):
3162         (OptionMenuTest::clickAtPositionAndWaitUntilOptionMenuShown):
3163         (OptionMenuTest::close):
3164         (OptionMenuTest::activateItem):
3165         (OptionMenuTest::selectItem):
3166         (testOptionMenuSimple):
3167         (testOptionMenuGroups):
3168         (testOptionMenuActivate):
3169         (testOptionMenuSelect):
3170         (beforeAll):
3171         (afterAll):
3172
3173 2017-06-15  Fujii Hironori  <Hironori.Fujii@sony.com>
3174
3175         [WinCairo] DumpRenderTree.cpp: error C3861: 'CFURLCacheCreate': identifier not found
3176         https://bugs.webkit.org/show_bug.cgi?id=173399
3177
3178         Reviewed by Per Arne Vollan.
3179
3180         OpenCFLite doesn't have CFURLCacheCreate and CFURLCacheSetSharedURLCache.
3181         Curl port needs to do nothing because libcurl doesn't have disk cache.
3182
3183         * DumpRenderTree/win/DumpRenderTree.cpp:
3184         (prepareConsistentTestingEnvironment): Call CFURLCacheCreate() and
3185         CFURLCacheSetSharedURLCache() only if USE(CFURLCONNECTION).
3186
3187 2017-06-14  Tomas Popela  <tpopela@redhat.com>
3188
3189         [GTK] integer expression expected if running Tools/gtk/install-dependencies
3190         https://bugs.webkit.org/show_bug.cgi?id=173356
3191
3192         Reviewed by Michael Catanzaro.
3193
3194         Use the correct operator to compare the strings.
3195
3196         * gtk/install-dependencies:
3197
3198 2017-06-14  Commit Queue  <commit-queue@webkit.org>
3199
3200         Unreviewed, rolling out r218285.
3201         https://bugs.webkit.org/show_bug.cgi?id=173391
3202
3203         API test fails on iOS (Requested by alexchristensen on
3204         #webkit).
3205
3206         Reverted changeset:
3207
3208         "Add SPI for immediate injection of user scripts"
3209         https://bugs.webkit.org/show_bug.cgi?id=173342
3210         http://trac.webkit.org/changeset/218285
3211
3212 2017-06-14  Chris Dumez  <cdumez@apple.com>
3213
3214         WebKit falsely reports that a web process is unresponsive if you close a page shortly after stopping a load
3215         https://bugs.webkit.org/show_bug.cgi?id=173384
3216         <rdar://problem/32723779>
3217
3218         Reviewed by Dan Bernstein.
3219
3220         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3221         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimer.cpp: Added.
3222         Add API test coverage.
3223
3224         * TestWebKitAPI/cocoa/UtilitiesCocoa.mm:
3225         (TestWebKitAPI::Util::sleep):
3226         Update implementation of Util::sleep() so that we actually run the run loop.
3227         Otherwise, we don't process events while sleeping.
3228
3229 2017-06-14  Alex Christensen  <achristensen@webkit.org>
3230
3231         Add SPI for immediate injection of user scripts
3232         https://bugs.webkit.org/show_bug.cgi?id=173342
3233         <rdar://problem/29202285>
3234
3235         Reviewed by Brady Eidson.
3236
3237         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
3238         (waitForMessage):
3239         (TEST):
3240
3241 2017-06-14  Claudio Saavedra  <csaavedra@igalia.com>
3242
3243         Add WPE to the flakiness dashboard
3244         https://bugs.webkit.org/show_bug.cgi?id=173365
3245
3246         Reviewed by Carlos Alberto Lopez Perez.
3247
3248         * TestResultServer/static-dashboards/builders.jsonp:
3249         * TestResultServer/static-dashboards/flakiness_dashboard.js:
3250         * TestResultServer/static-dashboards/flakiness_dashboard_unittests.js:
3251         (resetGlobals):
3252         * TestResultServer/static-dashboards/loader_unittests.js:
3253
3254 2017-06-14  Brady Eidson  <beidson@apple.com>
3255
3256         WKIconLoadingDelegate never gets asked about the default favicon if touch/touch-precomposed icons are in the <head>
3257         <rdar://problem/32614328> and https://bugs.webkit.org/show_bug.cgi?id=173376
3258
3259         Reviewed by Alex Christensen.
3260
3261         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3262         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm: Added.
3263         (-[IconLoadingDelegate webView:shouldLoadIconWithParameters:completionHandler:]):
3264         (-[IconLoadingSchemeHandler initWithData:mimeType:]):
3265         (-[IconLoadingSchemeHandler webView:startURLSchemeTask:]):
3266         (-[IconLoadingSchemeHandler webView:stopURLSchemeTask:]):
3267         (TEST):
3268
3269 2017-06-14  Tim Horton  <timothy_horton@apple.com>
3270
3271         WKContentViewEditingActions API test always fails
3272         https://bugs.webkit.org/show_bug.cgi?id=173374
3273
3274         Reviewed by Wenson Hsieh.
3275
3276         * TestWebKitAPI/Tests/WebKit2Cocoa/WKContentViewEditingActions.mm:
3277         (TEST):
3278         selectAll isn't working, because canPerformAction for selectAll returns NO
3279         if selectionIsNone (which is true in the non-contenteditable case).
3280         Instead, make use of r218180's test page, which knows how to select itself.
3281         Also, reset the pasteboard at the beginning of the test to reduce confusion
3282         (I landed the test broken because my simulator had the correct text
3283         stuck in its pasteboard).
3284
3285 2017-06-14  Jonathan Bedard  <jbedard@apple.com>
3286
3287         Configure screen scale for running layout tests on plus devices
3288         https://bugs.webkit.org/show_bug.cgi?id=173319
3289
3290         Reviewed by Tim Horton.
3291
3292         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Include UIKitTestSPI.h in project.
3293         * DumpRenderTree/mac/DumpRenderTree.mm:
3294         (dumpRenderTree): Set screen scale to 2.0.
3295         * TestRunnerShared/spi/UIKitTestSPI.h: Copied from Tools/WebKitTestRunner/ios/UIKitSPI.h,
3296         add _setScale for UIScreen.
3297         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Include UIKitTestSPI.h in project.
3298         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm: Import UIKitTestSPI.h instead of UIKitSPI.h.
3299         * WebKitTestRunner/ios/HIDEventGenerator.h: Ditto.
3300         * WebKitTestRunner/ios/HIDEventGenerator.mm: Ditto.
3301         * WebKitTestRunner/ios/PlatformWebViewIOS.mm: Ditto.
3302         * WebKitTestRunner/ios/TestControllerIOS.mm: Ditto.
3303         (WTR::TestController::platformInitialize): Set screen scale to 2.0.
3304         * WebKitTestRunner/ios/UIKitSPI.h: Moved to TestRunnerShared/spi/UIKitTestSPI.h.
3305         * WebKitTestRunner/ios/UIScriptControllerIOS.mm: Import UIKitTestSPI.h instead of UIKitSPI.h.
3306         * WebKitTestRunner/ios/mainIOS.mm: Ditto.
3307
3308 2017-06-14  Alexey Proskuryakov  <ap@apple.com>
3309
3310         Add iOS 11 support to the bot watcher's dashboard
3311         https://bugs.webkit.org/show_bug.cgi?id=173369
3312
3313         Reviewed by Lucas Forschler.
3314
3315         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11.png: Added.
3316         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11@2x.png: Added.
3317         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11Simulator.png: Added.
3318         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11Simulator@2x.png: Added.
3319         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
3320         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
3321
3322 2017-06-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3323
3324         [GTK][WPE] Raise the timeout values for layout tests
3325         https://bugs.webkit.org/show_bug.cgi?id=173368
3326
3327         Reviewed by Carlos Garcia Campos.
3328
3329         Raise the values to 15 seconds in Release builds and 30 seconds (2x) in Debug builds.
3330         When running under valgrind a 10x multiplier is applied.
3331
3332         * Scripts/webkitpy/port/gtk.py:
3333         (GtkPort.default_timeout_ms):
3334         * Scripts/webkitpy/port/gtk_unittest.py:
3335         (GtkPortTest.test_default_timeout_ms):
3336         * Scripts/webkitpy/port/wpe.py:
3337         (WPEPort.default_timeout_ms):
3338         * Scripts/webkitpy/port/wpe_unittest.py: Copied from Tools/Scripts/webkitpy/port/gtk_unittest.py.
3339         (WPEPortTest):
3340         (WPEPortTest.make_port):
3341         (WPEPortTest.test_default_timeout_ms):
3342         (WPEPortTest.test_get_crash_log):
3343
3344 2017-06-14  Alex Christensen  <achristensen@webkit.org>
3345
3346         Test persistent WKHTTPCookieStorages on iOS.
3347         https://bugs.webkit.org/show_bug.cgi?id=173284
3348
3349         * TestWebKitAPI/Tests/WebKit2Cocoa/WKHTTPCookieStore.mm:
3350         (TEST):
3351         Make the bots green again for now. There's still a problem, and I'll investigate and fix.
3352
3353 2017-06-14  Per Arne Vollan  <pvollan@apple.com>
3354
3355         [Win] DRT should not use disk cache.
3356         https://bugs.webkit.org/show_bug.cgi?id=173361
3357
3358         Reviewed by Darin Adler.
3359
3360         Like on macOS/iOS, DRT on Windows should only use memory cache.
3361
3362         * DumpRenderTree/win/DumpRenderTree.cpp:
3363         (setDefaultsToConsistentValuesForTesting):
3364         (prepareConsistentTestingEnvironment):
3365
3366 2017-06-14  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
3367
3368         MediaSource duration attribute should not be equal to Infinity when set to a value greater than 2^64
3369         https://bugs.webkit.org/show_bug.cgi?id=171668
3370
3371         Reviewed by Jer Noble.
3372
3373         MediaSource duration attribute is a double represented in MediaSource by a MediaTime instance created with
3374         MediaTime::CreateWithDouble(). This method implements an overflow control mechanism which sets MediaTime to
3375         Infinity when the double value passed as argument is greater than 2^64.
3376
3377         This patch removes the overflow control mechanism when time value is represented as a double. This patch also
3378         modifies the behavior of mathematical operations between a double MediaTime and rational MediaTime: the rational
3379         MediaTime is converted to a double before applying the operation. Double MediaTime precision is the same as for
3380         double. Overflow mechanisms still apply to the conversion of a double MediaTime to rational with setTimescale()
3381         method. No behavior change for rational MediaTime.
3382
3383         * TestWebKitAPI/Tests/WTF/MediaTime.cpp: Add tests to check operation results between double and rational MediaTime.
3384         (TestWebKitAPI::TEST):
3385
3386 2017-06-13  Alex Christensen  <achristensen@webkit.org>
3387
3388         Test persistent WKHTTPCookieStorages on iOS
3389         https://bugs.webkit.org/show_bug.cgi?id=173284
3390         <rdar://problem/32260156>
3391
3392         * TestWebKitAPI/Tests/WebKit2Cocoa/WKHTTPCookieStore.mm:
3393         (TEST):
3394
3395 2017-06-13  Matt Rajca  <mrajca@apple.com>
3396
3397         WebsitePolicies: let clients select specific autoplay quirks
3398         https://bugs.webkit.org/show_bug.cgi?id=173343
3399
3400         Reviewed by Alex Christensen.
3401
3402         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
3403         (-[AutoplayPoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
3404         (TEST): Updated tests.
3405
3406 2017-06-13  Daniel Bates  <dabates@apple.com>
3407
3408         Implement W3C Secure Contexts Draft Specification
3409         https://bugs.webkit.org/show_bug.cgi?id=158121
3410         <rdar://problem/26012994>
3411
3412         Reviewed by Brent Fulgham.
3413
3414         Part 4
3415
3416         Expose the isSecureContext attribute by default in DumpRenderTree and WebKitTestRunner.
3417         Teach DumpRenderTree for Mac and WebKitTestRunner to parse the test option enableIsSecureContextAttribute
3418         to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
3419
3420         * DumpRenderTree/TestOptions.h:
3421         * DumpRenderTree/TestOptions.mm:
3422         (TestOptions::TestOptions):
3423         * DumpRenderTree/mac/DumpRenderTree.mm:
3424         (setWebPreferencesForTestOptions):
3425         * DumpRenderTree/win/DumpRenderTree.cpp:
3426         (enableExperimentalFeatures):
3427         * WebKitTestRunner/TestController.cpp:
3428         (WTR::TestController::resetPreferencesToConsistentValues):
3429         (WTR::updateTestOptionsFromTestHeader):
3430         * WebKitTestRunner/TestOptions.h:
3431         (WTR::TestOptions::hasSameInitializationOptions):
3432
3433 2017-06-13  Alex Christensen  <achristensen@webkit.org>
3434
3435         Test persistent WKHTTPCookieStorages on iOS
3436         https://bugs.webkit.org/show_bug.cgi?id=173284
3437         <rdar://problem/32260156>
3438
3439         Reviewed by Alexey Proskuryakov.
3440
3441         * TestWebKitAPI/Tests/WebKit2Cocoa/WKHTTPCookieStore.mm:
3442         (TEST):
3443
3444 2017-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3445
3446         [GTK] Blob download doesn't work
3447         https://bugs.webkit.org/show_bug.cgi?id=172442
3448
3449         Reviewed by Carlos Alberto Lopez Perez.
3450
3451         Add a unit test to check blob downloads.
3452
3453         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
3454         (testBlobDownload):
3455         (beforeAll):
3456
3457 2017-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3458
3459         [GTK] Do not include WTR, DumpRendererTree and ImageDiff in tarballs
3460         https://bugs.webkit.org/show_bug.cgi?id=173316
3461
3462         Reviewed by Alex Christensen.
3463
3464         It's not really possible to run layout tests from the tarball, so it's better not to include those files.
3465
3466         * gtk/manifest.txt.in:
3467
3468 2017-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
3469
3470         [WTR] Crash in WebGeolocationManagerProxy::~WebGeolocationManagerProxy() when running several tests
3471         https://bugs.webkit.org/show_bug.cgi?id=173315
3472
3473         Reviewed by Darin Adler.
3474
3475         This has started to happen after r218165, but I don't think it's a regression, but that r218165 revealed the bug
3476         somehow in WTR. The problem is that GeolocationProviderMock keeps a pointer to the WKGeolocationManagerRef
3477         returned by WKContextGetGeolocationManager. But in TestController::generatePageConfiguration() the context is
3478         freed before the GeolocationProviderMock. When the GeolocationProviderMock is then destroyed, it calls
3479         WKGeolocationManagerSetProvider(m_geolocationManager, 0); but the WKGeolocationManagerRef has already been
3480         destroyed. GeolocationProviderMock should keep a reference to the WKContext to ensure the
3481         WKGeolocationManagerRef is not destroyed.
3482
3483         * WebKitTestRunner/GeolocationProviderMock.cpp:
3484         (WTR::GeolocationProviderMock::GeolocationProviderMock):
3485         * WebKitTestRunner/GeolocationProviderMock.h:
3486
3487 2017-06-13  Wenson Hsieh  <wenson_hsieh@apple.com>
3488
3489         Unable to paste text that was copied from a page into the universal search field
3490         https://bugs.webkit.org/show_bug.cgi?id=173293
3491         <rdar://problem/32440918>
3492
3493         Reviewed by Ryosuke Niwa.
3494
3495         Adds 2 new unit tests for copying plain and rich selected web content.
3496         See WebCore and WebKit ChangeLogs for more detail.
3497
3498         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3499         * TestWebKitAPI/Tests/WebKit2Cocoa/rich-and-plain-text.html: Added.
3500         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm: Added.
3501         (TestWebKitAPI::dataForPasteboardType):
3502         (TestWebKitAPI::setUpWebViewForPasteboardTests):
3503         (TestWebKitAPI::TEST):
3504
3505 2017-06-13  Joanmarie Diggs  <jdiggs@igalia.com>
3506
3507         AX: [ATK] Implement missing AtkRelation types
3508         https://bugs.webkit.org/show_bug.cgi?id=155494
3509
3510         Reviewed by Darin Adler.
3511
3512         Add additional methods to test ARIA properties which are exposed via
3513         AtkRelation. Implement ATK support for ariaOwnsElementAtIndex().
3514
3515         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3516         (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex):
3517         (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex):
3518         (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex):
3519         (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex):
3520         (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex):
3521         (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex):
3522         (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex):
3523         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
3524         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3525         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
3526         (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex):
3527         (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex):
3528         (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex):
3529         (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex):
3530         (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex):
3531         (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex):
3532         (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex):
3533
3534 2017-06-12  Daniel Bates  <dabates@apple.com>
3535
3536         Add unit tests for SecurityOrigin::IsPotentiallyTrustworthy()
3537         https://bugs.webkit.org/show_bug.cgi?id=173286
3538         <rdar://problem/32726102>
3539
3540         Reviewed by Brent Fulgham.
3541
3542         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
3543         (TestWebKitAPI::TEST_F):
3544
3545 2017-06-12  Lucas Forschler  <lforschler@apple.com>
3546
3547         <rdar://problem/32683422>
3548         Teach copy-webkitlibraries-to-product-directory script about updated libraries.
3549
3550         Reviewed by Conrad Schultz.
3551
3552         * Scripts/copy-webkitlibraries-to-product-directory:
3553
3554 2017-06-12  Tim Horton  <timothy_horton@apple.com>
3555
3556         [iOS] Cmd-C doesn't copy text from WKWebView
3557         https://bugs.webkit.org/show_bug.cgi?id=173277
3558         <rdar://problem/32396742>
3559
3560         Reviewed by Dan Bernstein.
3561
3562         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3563         * Tests/WebKit2Cocoa/WKContentViewEditingActions.mm:
3564         Add a test ensuring that -copy on WKContentView will cause text to be copied.
3565
3566 2017-06-12  Jiewen Tan  <jiewen_tan@apple.com>
3567
3568         [WebCrypto] Remove experimental feature flag of SubtleCrypto
3569         https://bugs.webkit.org/show_bug.cgi?id=173197
3570         <rdar://problem/32688148>
3571
3572         Reviewed by Brent Fulgham.
3573
3574         * DumpRenderTree/mac/DumpRenderTree.mm:
3575         (enableExperimentalFeatures):
3576         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3577         (WTR::InjectedBundle::beginTesting):
3578         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3579         (WTR::TestRunner::setSubtleCryptoEnabled): Deleted.
3580         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3581
3582 2017-06-12  Wenson Hsieh  <wenson_hsieh@apple.com>
3583
3584         [iOS DnD] Allow the injected bundle to add client data when writing an image to the pasteboard
3585         https://bugs.webkit.org/show_bug.cgi?id=173238
3586         <rdar://problem/31943370>
3587
3588         Reviewed by Ryosuke Niwa and Tim Horton.
3589
3590         Add a new unit test to verify that data inserted by the injected bundle when beginning a drag on an image
3591         element is plumbed across to the UI delegate. Also refactors injected bundle unit tests to use the new version
3592         of adjustedDataInteractionItemProvidersForItemProvider: that takes representing objects and additional data.
3593
3594         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
3595         (TestWebKitAPI::TEST):
3596         * TestWebKitAPI/ios/DataInteractionSimulator.h:
3597         * TestWebKitAPI/ios/DataInteractionSimulator.mm:
3598         (-[DataInteractionSimulator _webView:adjustedDataInteractionItemProvidersForItemProvider:representingObjects:additionalData:]):
3599         (-[DataInteractionSimulator _webView:adjustedDataInteractionItemProviders:]): Deleted.
3600
3601 2017-06-12  Wenson Hsieh  <wenson_hsieh@apple.com>
3602
3603         WebItemProviderPasteboard should call its completion block immediately after a synchronous load
3604         https://bugs.webkit.org/show_bug.cgi?id=173225
3605         <rdar://problem/32713144>
3606
3607         Reviewed by Tim Horton.
3608
3609         Adds a new unit test to verify whether the completion block is called synchronously or asynchronously, in both
3610         cases where the synchronous timeout is very large, and the synchronous timeout is not used (0).
3611
3612         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
3613         (TestWebKitAPI::TEST):
3614
3615 2017-06-12  Jonathan Bedard  <jbedard@apple.com>
3616
3617         Return correct process names for iOS on-device testing
3618         https://bugs.webkit.org/show_bug.cgi?id=173263
3619
3620         Reviewed by Alex Christensen.
3621
3622         When running tests on iOS devices, process names do not end with '.Development'
3623         as they do on Mac and iOS simulator.
3624
3625         * WebKitTestRunner/TestController.cpp:
3626         (WTR::TestController::webProcessName): Return correct process name without '.Development'
3627         for iOS on-device testing.
3628         (WTR::TestController::networkProcessName): Ditto.
3629         (WTR::TestController::databaseProcessName): Ditto.
3630
3631 2017-06-12  Chris Dumez  <cdumez@apple.com>
3632
3633         Regression(r217867): Legacy SessionHistoryEntryData format should not change
3634         https://bugs.webkit.org/show_bug.cgi?id=173267
3635         <rdar://problem/32701257>
3636
3637         Reviewed by Simon Fraser.
3638
3639         Restrict test to stop covering saving / restore of scrollRestoration via the legacy
3640         SessionHistoryEntryData. Maintain coverage for the default value of scrollRestoration
3641         though as this covers the crash that r217867 was fixing.
3642
3643         * TestWebKitAPI/Tests/WebKit2/RestoreSessionState.cpp:
3644         (TestWebKitAPI::createSessionStateData):
3645         (TestWebKitAPI::TEST):
3646         (TestWebKitAPI::createSessionStateDataContainingScrollRestoration): Deleted.
3647
3648 2017-06-12  Carlos Garcia Campos  <cgarcia@igalia.com>
3649
3650         [GTK] Stop dismissing menus attached to the web view for every injected event
3651         https://bugs.webkit.org/show_bug.cgi?id=172708
3652
3653         Reviewed by Alex Christensen.
3654
3655         It's a workaround we added in r184015 that has worked so far for the context menu, but doesn't really work now
3656         that we also attach popup menus to the web view. We really need to be able to show a popup menu, and then send
3657         events while the menu is open.
3658
3659         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3660         (WTR::EventSendingController::contextClick): Use WKBundlePageCopyContextMenuAtPointInWindow() also in GTK+ port.
3661         * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
3662         (WTR::EventSenderProxy::dispatchEvent): Stop calling PlatformWebView::dismissAllPopupMenus().
3663
3664 2017-06-12  Miguel Gomez  <magomez@igalia.com>
3665
3666         [GTK][WPE] Enable GStreamer GL on development builds
3667         https://bugs.webkit.org/show_bug.cgi?id=173248
3668
3669         Enable GStreamer GL for GTK and WPE.
3670
3671         Reviewed by Carlos Garcia Campos.
3672
3673         * Scripts/webkitperl/FeatureList.pm:
3674
3675 2017-06-12  Carlos Garcia Campos  <cgarcia@igalia.com>
3676
3677         Unreviewed. Fix GTK+ test /webkit2/WebKitWebView/notification after r216641.
3678
3679         Notifications are no longer cleared on page navigation.
3680
3681         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
3682         (testWebViewNotification):
3683
3684 2017-06-11  Carlos Garcia Campos  <cgarcia@igalia.com>
3685
3686         Unreviewed. Fix GTK+ test /webkit2/WebKitAutomationSession/request-session after r217831.
3687
3688         DBus interface and object path names were updated in r217831.
3689
3690         * TestWebKitAPI/Tests/WebKit2Gtk/TestAutomationSession.cpp:
3691
3692 2017-06-10  Dan Bernstein  <mitz@apple.com>
3693
3694         Reverted r218056 because it made the IDE reindex constantly.
3695