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