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