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