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