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