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