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