fa96992a5499f0a79a3979d3c8bc6c5b7802a503
[WebKit-https.git] / Tools / ChangeLog
1 2016-09-28  Alex Christensen  <achristensen@webkit.org>
2
3         URLParser should ignore extra slashes after scheme:// and handle a missing slash after the port
4         https://bugs.webkit.org/show_bug.cgi?id=162690
5
6         Reviewed by Geoffrey Garen.
7
8         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
9         (TestWebKitAPI::TEST_F):
10
11 2016-09-28  Alex Christensen  <achristensen@webkit.org>
12
13         URLParser should correctly canonicalize uppercase IPv6 addresses
14         https://bugs.webkit.org/show_bug.cgi?id=162680
15
16         Reviewed by Tim Horton.
17
18         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
19         (TestWebKitAPI::TEST_F):
20
21 2016-09-27  Wenson Hsieh  <wenson_hsieh@apple.com>
22
23         Adopt MediaRemote SPI to achieve desired Now Playing behavior
24         https://bugs.webkit.org/show_bug.cgi?id=162658
25         <rdar://problem/28499358>
26
27         Reviewed by Jer Noble.
28
29         Introduces 2 unit tests in the new NowPlayingControlsTests test suite. Also provides some basic support for
30         mocking key window status for TestWKWebViews.
31
32         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
33         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm: Added.
34         (-[NowPlayingTestWebView hasActiveNowPlayingSession]):
35         (-[NowPlayingTestWebView expectHasActiveNowPlayingSession:]):
36         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:]):
37         (TestWebKitAPI::TEST):
38         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html: Added.
39         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
40         (-[TestWKWebViewHostWindow isKeyWindow]):
41         (-[TestWKWebViewHostWindow makeKeyWindow]):
42         (-[TestWKWebViewHostWindow resignKeyWindow]):
43
44 2016-09-28  Per Arne Vollan  <pvollan@apple.com>
45
46         [Win] Compile fix.
47         https://bugs.webkit.org/show_bug.cgi?id=162670
48
49         Reviewed by Brent Fulgham.
50
51         Make sure we include JavaScriptCore files from the forwarding headers folder.
52         Otherwise we might get multiple definitions if a JSC file is included both
53         from the forwarding headers folder and the JSC source folder, since
54         #pragma once is used in the header files.
55
56         * DumpRenderTree/TestRunner.cpp:
57
58 2016-09-28  Michael Catanzaro  <mcatanzaro@igalia.com>
59
60         [GTK] Add Chrome UA quirk
61         https://bugs.webkit.org/show_bug.cgi?id=162617
62
63         Reviewed by Carlos Garcia Campos.
64
65         Update test. This portion of the commit was actually unreviewed.
66
67         * TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp:
68         (TestWebKitAPI::TEST):
69
70 2016-09-28  Michael Catanzaro  <mcatanzaro@igalia.com>
71
72         [GTK] Adjust OS X UA quirks list
73         https://bugs.webkit.org/show_bug.cgi?id=162616
74
75         "Reviewed" by Carlos Garcia Campos.
76
77         Update test. This portion of the commit was actually unreviewed.
78
79         * TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp:
80         (TestWebKitAPI::TEST):
81
82 2016-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
83
84         [GTK] Switch to use GMenu internally in the context menu implementation
85         https://bugs.webkit.org/show_bug.cgi?id=162603
86
87         Reviewed by Michael Catanzaro.
88
89         Remove smart separators test, since that's now done automatically by GTK+.
90
91         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
92         (beforeAll):
93         (testContextMenuWebExtensionMenu): Deleted.
94
95 2016-09-27  Alex Christensen  <achristensen@webkit.org>
96
97         Correctly parse URLs with the first tab in the fragment
98         https://bugs.webkit.org/show_bug.cgi?id=162650
99
100         Reviewed by Saam Barati.
101
102         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
103         (TestWebKitAPI::TEST_F):
104
105 2016-09-27  Alex Christensen  <achristensen@webkit.org>
106
107         URLParser: Handle windows drive letters after two slashes in relative URLs according to spec
108         https://bugs.webkit.org/show_bug.cgi?id=162646
109
110         Reviewed by Saam Barati.
111
112         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
113         (TestWebKitAPI::TEST_F):
114
115 2016-09-27  Alex Christensen  <achristensen@webkit.org>
116
117         URLs with @ in the user should only search for the last @ until the end of the authority and host
118         https://bugs.webkit.org/show_bug.cgi?id=162635
119
120         Reviewed by Geoffrey Garen.
121
122         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
123         (TestWebKitAPI::TEST_F):
124
125 2016-09-27  JF Bastien  <jfbastien@apple.com>
126
127         Speed up Heap::isMarkedConcurrently
128         https://bugs.webkit.org/show_bug.cgi?id=162095
129
130         Reviewed by Filip Pizlo.
131
132         * TestWebKitAPI/CMakeLists.txt:
133         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
134         * TestWebKitAPI/Tests/WTF/Consume.cpp: Added.
135         (testConsume):
136         (TestWebKitAPI::TEST):
137
138 2016-09-26  Alex Christensen  <achristensen@webkit.org>
139
140         Implement URLParser::syntaxViolation
141         https://bugs.webkit.org/show_bug.cgi?id=162593
142
143         Reviewed by Geoffrey Garen.
144
145         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
146         (TestWebKitAPI::TEST_F):
147
148 2016-09-27  Anders Carlsson  <andersca@apple.com>
149
150         Turns out OptionSet.cpp wasn't added to the right target. Add it and fix the build for real.
151
152         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
153         * TestWebKitAPI/Tests/WTF/OptionSet.cpp:
154         (TestWebKitAPI::TEST):
155
156 2016-09-27  Anders Carlsson  <andersca@apple.com>
157
158         Try to fix the GTK+ build.
159
160         * TestWebKitAPI/Tests/WTF/OptionSet.cpp:
161         (TestWebKitAPI::TEST):
162
163 2016-09-27  Dan Bernstein  <mitz@apple.com>
164
165         [iOS] REGRESSION (r182126): Selection highlight and handles aren’t visible with WKSelectionGranularityCharacter
166         https://bugs.webkit.org/show_bug.cgi?id=162577
167         <rdar://problem/28481984>
168
169         Reviewed by Simon Fraser.
170
171         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
172         (WTR::UIScriptController::selectionRangeViewRects): Returns null.
173
174         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: Declared new
175           selectionRangeViewRects attribute.
176
177         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
178         (WTR::UIScriptContext::jsContext): Added this public accessor.
179
180         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
181         (WTR::selectionRangeViewRects): Generic implementation that returns null.
182         * TestRunnerShared/UIScriptContext/UIScriptController.h:
183
184         * WebKitTestRunner/TestController.cpp:
185         (WTR::updateTestOptionsFromTestHeader): Parse the new useCharacterSelectionGranularity
186           option.
187
188         * WebKitTestRunner/TestOptions.h: Added new useCharacterSelectionGranularity option.
189
190         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
191         (WTR::TestController::platformCreateWebView): Set the configuration’s selectionGranularity
192           property based on the new option.
193
194         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
195         (WTR::PlatformWebView::viewSupportsOptions): Compare selection granularity option values.
196
197         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
198         (WTR::UIScriptController::selectionRangeViewRects): iOS-specific implementation that calls
199           the new -[WKWebView _uiTextSelectionRectViews] and returns an array of view frame
200           dictionaries.
201
202 2016-09-27  Daniel Bates  <dabates@apple.com>
203
204         Cannot run dump-class-layout; dies with "global name 'lldb' is not defined"
205         https://bugs.webkit.org/show_bug.cgi?id=162585
206
207         Reviewed by Simon Fraser.
208
209         Import the lldb module into the global namespace.
210
211         Currently dump-class-layout imports the lldb Python module using the import statement
212         from the helper function import_lldb. The import statement imports the names of the
213         specified module into the scope of import_lldb(); => the names imported from this
214         module cannot be accessed outside the scope of import_lldb(). Other functions in
215         this script assume that the lldb module was imported into the global scope. We should
216         import the module lldb into the global scope, if it exists, so that these functions
217         can find it. Otherwise, we should emit a human readable error message that explains
218         that we failed to import the lldb module.
219
220         Also remove some unnecessary semicolon characters.
221
222         * Scripts/dump-class-layout:
223         (import_lldb):
224
225 2016-09-27  Jer Noble  <jer.noble@apple.com>
226
227         Remove deprecated ENCRYPTED_MEDIA implementation.
228         https://bugs.webkit.org/show_bug.cgi?id=161010
229
230         Reviewed by Eric Carlson.
231
232         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
233
234 2016-09-27  Chris Dumez  <cdumez@apple.com>
235
236         [WK2] Navigating to a Blob URL does not trigger a download
237         https://bugs.webkit.org/show_bug.cgi?id=162574
238
239         Reviewed by Darin Adler.
240
241         Add API that tests navigating to a Blob URL and checks that that the load
242         properly gets converted into a download.
243
244         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
245         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
246         (-[BlobDownloadDelegate _downloadDidStart:]):
247         (-[BlobDownloadDelegate _download:didReceiveResponse:]):
248         (-[BlobDownloadDelegate _download:didReceiveData:]):
249         (-[BlobDownloadDelegate _download:decideDestinationWithSuggestedFilename:allowOverwrite:]):
250         (-[BlobDownloadDelegate _downloadDidFinish:]):
251         (-[DownloadBlobURLNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
252         (TEST):
253         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestBlobURL.html: Added.
254
255 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
256
257         [GTK] Install binaries to pkglibexecdir rather than bindir
258         https://bugs.webkit.org/show_bug.cgi?id=162602
259
260         Reviewed by Carlos Garcia Campos.
261
262         Install MiniBrowser to LIBEXEC_INSTALL_DIR rather than EXEC_INSTALL_DIR.
263
264         * MiniBrowser/gtk/CMakeLists.txt:
265
266 2016-09-27  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
267
268         [EFL] Locate color picker popup to center of window
269         https://bugs.webkit.org/show_bug.cgi?id=162540
270
271         Reviewed by Michael Catanzaro.
272
273         Color picker popup hasn't located in a center of main window, because
274         elm_win_center() function doesn't work correctly. It looks a bug.
275
276         To fix the problem, this patch uses evas_object_geometry_set() instead.
277
278         * MiniBrowser/efl/main.c:
279         (_color_picker_request_cb):
280
281 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
282
283         [GTK] Disable ACCELERATED_2D_CANVAS when using build-webkit
284         https://bugs.webkit.org/show_bug.cgi?id=162600
285
286         Reviewed by Carlos Garcia Campos.
287
288         * Scripts/webkitperl/FeatureList.pm:
289
290 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
291
292         PyGIWarnings printed by webkit-patch
293         https://bugs.webkit.org/show_bug.cgi?id=152470
294
295         Reviewed by Carlos Garcia Campos.
296
297         Update to a newer version of the keyring module, since this bug has been fixed upstream for
298         a while. But be careful not to update to the latest version, since it has some compatibility
299         breaks and requires the SecretService python module on Linux, but I couldn't figure out how
300         to autoinstall it successfully.
301
302         * Scripts/webkitpy/thirdparty/__init__.py:
303         (AutoinstallImportHook._install_keyring):
304
305 2016-09-26  Ryan Haddad  <ryanhaddad@apple.com>
306
307         Add Sierra to the flakiness dashboard.
308         https://bugs.webkit.org/show_bug.cgi?id=162509
309
310         Reviewed by Alexey Proskuryakov.
311
312         * TestResultServer/static-dashboards/builders.jsonp:
313
314 2016-09-26  Daniel Bates  <dabates@apple.com>
315
316         Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING
317         https://bugs.webkit.org/show_bug.cgi?id=162365
318
319         Reviewed by Simon Fraser.
320
321         * DumpRenderTree/TestRunner.h:
322         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
323
324 2016-09-26  Tomas Popela  <tpopela@redhat.com>
325
326         [GTK] TestContextMenu is failing
327         https://bugs.webkit.org/show_bug.cgi?id=162569
328
329         We cannot use the MP3 file in the TestContextMenu, as it will not work
330         by default on most distributions (that don't have an MP3 codecs
331         installed). Change the test to use OGG file instead.
332
333         Reviewed by Michael Catanzaro.
334
335         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
336         (testContextMenuDefaultMenu):
337
338 2016-09-26  Yusuke Suzuki  <utatane.tea@gmail.com>
339
340         Using char16_t instead of wchar_t in TestWebKitAPI URLParser tests
341         https://bugs.webkit.org/show_bug.cgi?id=162537
342
343         Reviewed by Alex Christensen.
344
345         Some build bot (Linux ARM GTK port) fails since we cannot select
346         the specific StringBuilder::append method for wchar_t.
347
348         wchar_t implementation highly depends on platforms. sizeof(wchar_t) == 2
349         in Windows, while sizeof(wchar_t) == 4 in Linux and OS X. So, ICU
350         uses wchar_t for UChar (UTF-16) in Windows while it doesn't in other
351         platforms.
352
353         StringBuilder::append is overloaded for UChar. In Windows, we can pass
354         wchar_t since UChar is wchar_t. However, we cannot do that in other platforms.
355
356         Instead of using wchar_t, we use more platform portable UTF-16 literal for
357         testing. Use char16_t and C++11 UTF-16 literal.
358
359         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
360         (TestWebKitAPI::utf16String):
361         (TestWebKitAPI::TEST_F):
362         (TestWebKitAPI::wideString): Deleted.
363
364 2016-09-25  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
365
366         [EFL] Adjust EFL indentation to EFL MiniBrowser
367         https://bugs.webkit.org/show_bug.cgi?id=162542
368
369         Unreviewed, EFL simple coding style fix.
370
371         Some functions wasn't applied EFL coding style in prefix fix.
372
373         * MiniBrowser/efl/main.c:
374         (_key_down_cb):
375         (view_focus_set):
376         (_mouse_down_cb):
377         (title_set):
378         (_title_changed_cb):
379         (_url_changed_cb):
380         (_back_forward_list_changed_cb):
381         (_progress_cb):
382         (_error_cb):
383         (_download_request_cb):
384         (close_file_picker):
385         (_filepicker_parent_deletion_cb):
386         (_filepicker_deletion_cb):
387         (_fileselector_done_cb):
388         (_file_chooser_request_cb):
389         (_download_finished_cb):
390         (_download_failed_cb):
391         (_color_changed_cb):
392         (_color_item_selected_cb):
393         (_color_picker_ok_clicked_cb):
394         (_color_picker_cancel_clicked_cb):
395         (_color_picker_dismiss_cb):
396         (_color_picker_request_cb):
397         (quit):
398         (has_scheme):
399         (url_from_user_input):
400         (url_load_from_user_input):
401         (_url_bar_activated_cb):
402         (_url_bar_clicked_cb):
403         (_search_field_aborted_cb):
404         (_search_field_activated_cb):
405         (_search_field_clicked_cb):
406         (_back_button_clicked_cb):
407         (_forward_button_clicked_cb):
408         (_search_backward_button_clicked_cb):
409         (_search_forward_button_clicked_cb):
410         (_search_case_option_changed):
411         (_search_word_start_option_changed_cb):
412         (_search_close_button_clicked_cb):
413         (_refresh_button_clicked_cb):
414         (_stop_button_clicked_cb):
415         (list_item_label_get):
416         (_list_item_select_cb):
417         (navigation_button_longpress_process):
418         (_forward_button_longpress_cb):
419         (_back_button_longpress_cb):
420         (quit_event_loop):
421         (_ok_clicked_cb):
422         (_file_entry_dialog_show):
423
424 2016-09-24  Chris Dumez  <cdumez@apple.com>
425
426         [WK2] anchor.download attribute value is ignored by NETWORK_SESSION code path
427         https://bugs.webkit.org/show_bug.cgi?id=162531
428
429         Reviewed by Darin Adler.
430
431         Update decideDestinationWithSuggestedFilename() to return a actual file path
432         instead of nullptr. The NETWORK_SESSION code path cancels the download when
433         decideDestinationWithSuggestedFilename() returns an empty file path, unlike
434         the !NETWORK_SESSION code path that just continue downloading without
435         explicitely setting a destination path. This lead to different test results
436         for NETWORK_SESSION and !NETWORK_SESSION code paths. Returns a valid
437         destination path makes more sense and leads to consistent results.
438
439         * WebKitTestRunner/TestController.cpp:
440         (WTR::TestController::decideDestinationWithSuggestedFilename):
441
442 2016-09-23  Wenson Hsieh  <wenson_hsieh@apple.com>
443
444         [mac-sierra] 2 WKWebViewCandidateTests API test failures
445         https://bugs.webkit.org/show_bug.cgi?id=162470
446
447         Reviewed by Tim Horton.
448
449         VideoControlsManager, WKWebViewCandidateTests and CandidateTests should not be running on 10.12.0. Guard these
450         tests with an SDK check to prevent 10.12.0 bots from building them.
451
452         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
453         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
454         * TestWebKitAPI/Tests/mac/CandidateTests.mm:
455
456 2016-09-23  Alex Christensen  <achristensen@webkit.org>
457
458         Refactor URLParser
459         https://bugs.webkit.org/show_bug.cgi?id=162516
460
461         Reviewed by Brady Eidson.
462
463         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
464         (TestWebKitAPI::TEST_F):
465
466 2016-09-23  Caitlin Potter  <caitp@igalia.com>
467
468         [JSC] Implement parsing of Async Functions
469         https://bugs.webkit.org/show_bug.cgi?id=161409
470
471         Reviewed by Yusuke Suzuki.
472
473         * Scripts/build-jsc:
474         (cMakeArgsFromFeatures):
475         * Scripts/webkitperl/FeatureList.pm:
476         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
477
478 2016-09-23  Alex Christensen  <achristensen@webkit.org>
479
480         Refactor URLParser
481         https://bugs.webkit.org/show_bug.cgi?id=162511
482
483         Reviewed by Brady Eidson.
484
485         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
486         (TestWebKitAPI::TEST_F):
487         (TestWebKitAPI::checkURL):
488
489 2016-09-23  Alexey Proskuryakov  <ap@apple.com>
490
491         iOS playback user action tests fail on some machines
492         https://bugs.webkit.org/show_bug.cgi?id=162504
493         rdar://problem/28013994
494
495         Reviewed by Jer Noble.
496
497         Avoid the need to have a timeout.
498
499         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html:
500         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html:
501         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html:
502         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html:
503
504 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
505
506         REGRESSION(r204163): [GTK] API test /webkit2/WebKitSecurityManager/file-xhr is failing
507         https://bugs.webkit.org/show_bug.cgi?id=161607
508
509         Reviewed by Michael Catanzaro.
510
511         Since r204163, in case of cross origin error when loading the XHR, the load fails and an error message is shown
512         in the console, but there isn't any js expcetion, which is what we were checking. Now, we check that there
513         aren't exceptions, and that the error message is sent to the console.
514
515         * Scripts/run-gtk-tests:
516         (TestRunner):
517         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
518         (consoleMessageReceivedCallback):
519         (testWebContextSecurityFileXHR):
520
521 2016-09-23  Ryan Haddad  <ryanhaddad@apple.com>
522
523         Use correct hardware for Sierra Debug WK2 testers.
524         https://bugs.webkit.org/show_bug.cgi?id=162474
525
526         Reviewed by Alexey Proskuryakov.
527
528         * BuildSlaveSupport/build.webkit.org-config/config.json:
529
530 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
531
532         [GTK] Make all WebView tests have a WebKitUserContentManager
533         https://bugs.webkit.org/show_bug.cgi?id=162487
534
535         Reviewed by Michael Catanzaro.
536
537         It simplifies tests using the user content manager, and allows to use it without having to subclass WebViewTest.
538
539         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp:
540         (ConsoleMessageTest::ConsoleMessageTest):
541         (ConsoleMessageTest::~ConsoleMessageTest):
542         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
543         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp:
544         (testUserContentManagerInjectedStyleSheet):
545         (testUserContentManagerInjectedScript):
546         (UserScriptMessageTest::UserScriptMessageTest):
547         (beforeAll):
548         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
549         (testWebViewIsPlayingAudio):
550         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
551         (WebViewTest::WebViewTest):
552         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h:
553
554 2016-09-23  Antoine Quint  <graouts@apple.com>
555
556         Add a new runtime flag for work on modern media controls (off by default)
557         https://bugs.webkit.org/show_bug.cgi?id=162420
558         <rdar://problem/27989489>
559
560         Reviewed by Eric Carlson.
561
562         * DumpRenderTree/mac/DumpRenderTree.mm:
563         (resetWebPreferencesToConsistentValues):
564         * DumpRenderTree/win/DumpRenderTree.cpp:
565         (resetWebPreferencesToConsistentValues):
566         * Scripts/webkitperl/FeatureList.pm:
567         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
568         (WTR::InjectedBundle::beginTesting):
569         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
570         (WTR::TestRunner::setModernMediaControlsEnabled):
571         * WebKitTestRunner/InjectedBundle/TestRunner.h:
572
573 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
574
575         REGRESSION(r194387): Crash on github.com in IntlDateTimeFormat::resolvedOptions in C locale
576         https://bugs.webkit.org/show_bug.cgi?id=162139
577
578         Reviewed by Michael Catanzaro.
579
580         Add test cases to check the behavior when using the C locale and an invalid locale.
581
582         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
583         (testWebContextLanguages):
584
585 2016-09-22  Hunseop Jeong  <hs85.jeong@samsung.com>
586
587         [EFL] alert box is not displayed 
588         https://bugs.webkit.org/show_bug.cgi?id=156395
589
590         Reviewed by Gyuyoung Kim.
591
592         Some popup objects(alert, confirm, prompt, file entry dialog) used the ecore_main_loop_begin() to make
593         the modal popup but ecore_main_loop_begin() was not executed inside an exisiting main loop. So we have
594         to use the ecore_main_loop_iterate() instead of the ecore_main_loop_begin().
595
596         * MiniBrowser/efl/main.c:
597         (_ok_clicked_cb):
598         (_file_entry_dialog_show):
599         (_javascript_alert_cb):
600         (_javascript_confirm_cb):
601         (_javascript_prompt_cb):
602         (quit_event_loop): Deleted.
603
604 2016-09-22  Matthew Hanson  <matthew_hanson@apple.com>
605
606         Add an API for getting the branch identifier from a Git or SVN checkout.
607         https://bugs.webkit.org/show_bug.cgi?id=151570
608         rdar://problem/17959831
609
610         Reviewed by David Kilzer.
611
612         This patch adds a function called svnIdentifierForPath. This function returns either "trunk",
613         the name of the tag, or the name of the branch, as appropriate. This function is necessary for
614         a VCSUtils client that is not checked in to the WebKit project.
615
616         This patch also breaks up pathRelativeToSVNRepositoryRootForPath into four functions:
617         - pathRelativeToSVNRepositoryRootForPath
618         - svnInfoForPath
619         - svnURLForPath
620         - svnRepositoryRootForPath
621
622         This allows us to reuse logic from pathRelativeToSVNRepositoryRootForPath in svnIdentifierForPath and
623         allows clients of VCSUtils to extract what arbitrary information from the `svn info` command regardless
624         of SCM.
625
626         * Scripts/VCSUtils.pm:
627         (svnInfoForPath):
628         Copied logic that previously lived in pathRelativeToSVNRepositoryRootForPath.
629         Make code safe to use for a path, and not just for the CWD.
630
631         (svnURLForPath):
632         Calls svnInfoForPath and extracts the URL.
633
634         (svnRepositoryRootForPath):
635         Calls svnInfoForPath and extracts the Repository Root.
636
637         (svnIdentifierForPath):
638         Calls pathRelativeToSVNRepositoryRootForPath and extracts the repository identifier.
639
640         (pathRelativeToSVNRepositoryRootForPath):
641         Now uses svnURLForPath and svnRepositoryRootForPath instead of being responsible for
642         determining both values.
643
644 2016-09-22  Megan Gardner  <megan_gardner@apple.com>
645
646         Add long press selection test
647         https://bugs.webkit.org/show_bug.cgi?id=162367
648
649         Reviewed by Simon Fraser.
650
651         Add support to UIScriptController to synthesize long press events on iOS.
652         This required adding long-press functionality to HIDEventGenerator.
653
654         HIDEventGenerator sends the touchDown, but must then send the touchUp with
655         a dispatch_after (rather than sleeping, as we do for other events) in order
656         for the gesture recognizers to correctly detect a long press.
657
658         Use the long press synthesis in a test that detects whether a long press
659         gesture triggers text selection.
660
661         Fixed incorrect constants. NSTimeInterval is in seconds, original numbers
662         were nanoseconds and typedefed to long without regard to the type
663         differences. Redid constants to be the right value, and converted upon use.
664
665         Cleaned up unused enum types.
666
667         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
668         (WTR::UIScriptController::longPressAtPoint):
669         (WTR::UIScriptController::forcePressAtPoint):
670         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
671         * Scripts/webkitpy/common/config/contributors.json:
672         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
673         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
674         (WTR::UIScriptController::longPressAtPoint):
675         (WTR::UIScriptController::forcePressAtPoint):
676         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
677         * TestRunnerShared/UIScriptContext/UIScriptController.h:
678         * WebKitTestRunner/ios/HIDEventGenerator.h:
679         * WebKitTestRunner/ios/HIDEventGenerator.mm:
680         (-[HIDEventGenerator _createIOHIDEventType:]):
681         (-[HIDEventGenerator sendTaps:location:withNumberOfTouches:completionBlock:]):
682         (-[HIDEventGenerator clearTap:]):
683         (-[HIDEventGenerator longPressTimerCall:]):
684         (-[HIDEventGenerator longPressFinish:completionBlock:]):
685         (-[HIDEventGenerator longPress:completionBlock:]):
686         (-[HIDEventGenerator forcePress:completionBlock:]):
687         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
688         (WTR::UIScriptController::longPressAtPoint):
689         (WTR::UIScriptController::forcePressAtPoint):
690         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
691
692 2016-09-22  Jonathan Bedard  <jbedard@apple.com>
693
694         Automatic Text Replacement Testing in WebKit2
695         https://bugs.webkit.org/show_bug.cgi?id=161919
696
697         Reviewed by Ryosuke Niwa.
698
699         Implemented test hooks for text replacement for WebKit2.
700         Note that spell checking has not been implemented, so most tests which use text replacement still fail.
701
702         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Removed setAutomaticLinkDetectionEnabled from TestRunner, moved to Internals.
703         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: Ditto.
704         (WTR::InjectedBundle::beginTesting): Ditto.
705         * WebKitTestRunner/InjectedBundle/TestRunner.cpp: Ditto.
706         * WebKitTestRunner/InjectedBundle/TestRunner.h: Ditto.
707         * WebKitTestRunner/TestController.cpp:
708         (WTR::TestController::runTest): Place TextChecker into testing mode.
709
710 2016-09-21  Dan Bernstein  <mitz@apple.com>
711
712         [macOS] Upon layout, _webView:renderingProgressDidChange: fires before the intrinsic content size is updated
713         https://bugs.webkit.org/show_bug.cgi?id=162359
714         <rdar://problem/27776454>
715
716         Reviewed by Tim Horton.
717
718         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
719         (TEST):
720
721 2016-09-21  Keith Miller  <keith_miller@apple.com>
722
723         Fix build for future versions of Clang.
724         https://bugs.webkit.org/show_bug.cgi?id=162346
725
726         Reviewed by Filip Pizlo.
727
728         * TestWebKitAPI/Counters.cpp:
729         * TestWebKitAPI/Counters.h:
730         (DeleterCounter::deleterCount):
731         (DeleterCounter::TestingScope::TestingScope):
732         (DeleterCounter::operator()):
733         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
734         (TestWebKitAPI::TEST):
735         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
736         (TestWebKitAPI::TEST):
737
738 2016-09-21  Commit Queue  <commit-queue@webkit.org>
739
740         Unreviewed, rolling out r206222 and r206227.
741         https://bugs.webkit.org/show_bug.cgi?id=162361
742
743         "broke the windows build" (Requested by keith_mi_ on #webkit).
744
745         Reverted changesets:
746
747         "Fix build for future versions of Clang."
748         https://bugs.webkit.org/show_bug.cgi?id=162346
749         http://trac.webkit.org/changeset/206222
750
751         "Attempt to fix windows build after r206222."
752         http://trac.webkit.org/changeset/206227
753
754 2016-09-21  Alex Christensen  <achristensen@webkit.org>
755
756         URLParser should match URL::parse when parsing data urls with slashes in them
757         https://bugs.webkit.org/show_bug.cgi?id=162352
758
759         Reviewed by Darin Adler.
760
761         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
762         (TestWebKitAPI::TEST_F):
763
764 2016-09-21  Alex Christensen  <achristensen@webkit.org>
765
766         URLParser should fail when parsing invalid relative URLs with no schemes
767         https://bugs.webkit.org/show_bug.cgi?id=162355
768
769         Reviewed by Tim Horton.
770
771         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
772         (TestWebKitAPI::TEST_F):
773
774 2016-09-21  Keith Miller  <keith_miller@apple.com>
775
776         Fix build for future versions of Clang.
777         https://bugs.webkit.org/show_bug.cgi?id=162346
778
779         Reviewed by Filip Pizlo.
780
781         * TestWebKitAPI/Counters.cpp:
782         * TestWebKitAPI/Counters.h:
783         (DeleterCounter::deleterCount):
784         (DeleterCounter::TestingScope::TestingScope):
785         (DeleterCounter::operator()):
786         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
787         (TestWebKitAPI::TEST):
788         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
789         (TestWebKitAPI::TEST):
790
791 2016-09-21  Alex Christensen  <achristensen@webkit.org>
792
793         Prepare API tests for enabling URLParser by default
794         https://bugs.webkit.org/show_bug.cgi?id=162341
795
796         Reviewed by Tim Horton.
797
798         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
799         (TestWebKitAPI::checkURL):
800         (TestWebKitAPI::checkRelativeURL):
801         (TestWebKitAPI::checkURLDifferences):
802         (TestWebKitAPI::checkRelativeURLDifferences):
803         (TestWebKitAPI::shouldFail):
804
805 2016-09-21  Alex Christensen  <achristensen@webkit.org>
806
807         URLParser: Correctly parse URLs that are just nonspecialscheme:/
808         https://bugs.webkit.org/show_bug.cgi?id=162340
809
810         Reviewed by Tim Horton.
811
812         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
813         (TestWebKitAPI::TEST_F):
814
815 2016-09-21  Alex Christensen  <achristensen@webkit.org>
816
817         URLParser: correctly parse relative URLs that are just one character
818         https://bugs.webkit.org/show_bug.cgi?id=162344
819
820         Reviewed by Tim Horton.
821
822         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
823         (TestWebKitAPI::TEST_F):
824
825 2016-09-20  Alex Christensen  <achristensen@webkit.org>
826
827         Optimize URLParser
828         https://bugs.webkit.org/show_bug.cgi?id=162105
829
830         Reviewed by Geoffrey Garen.
831
832         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
833         (TestWebKitAPI::TEST_F):
834
835 2016-09-20  Aakash Jain  <aakash_jain@apple.com>
836
837         enable remote_api (for debugging) in flakiness dashboard app
838         https://bugs.webkit.org/show_bug.cgi?id=162325
839
840         Reviewed by Alexey Proskuryakov.
841
842         * TestResultServer/app.yaml: enabled remote_api and datastore_admin.
843
844 2016-09-20  Ryan Haddad  <ryanhaddad@apple.com>
845
846         Unreviewed, rolling out r206180.
847
848         Roll r206178 back in as the necessary changes have been made
849         on the build master.
850
851         Reverted changeset:
852
853         "Unreviewed, rolling out r206178."
854         https://bugs.webkit.org/show_bug.cgi?id=162249
855         http://trac.webkit.org/changeset/206180
856
857 2016-09-20  Alexey Proskuryakov  <ap@apple.com>
858
859         Use a hardcoded patch for sRGB color profile
860         https://bugs.webkit.org/show_bug.cgi?id=162320
861         rdar://problem/28387318
862
863         Reviewed by Simon Fraser.
864
865         This is a workaround for rdar://problem/28392768
866
867         * DumpRenderTree/mac/LayoutTestHelper.m:
868         (installLayoutTestColorProfile):
869
870 2016-09-20  Ryan Haddad  <ryanhaddad@apple.com>
871
872         Unreviewed, rolling out r206178.
873
874         This change caused buildbot config issues.
875
876         Reverted changeset:
877
878         "Add Sierra bots to buildbot and dashboard."
879         https://bugs.webkit.org/show_bug.cgi?id=162249
880         http://trac.webkit.org/changeset/206178
881
882 2016-09-20  Dean Johnson  <dean_johnson@apple.com>
883
884         Add Sierra bots to buildbot and dashboard.
885         https://bugs.webkit.org/show_bug.cgi?id=162249
886
887         Reviewed by Alexey Proskuryakov.
888
889         * BuildSlaveSupport/build.webkit.org-config/config.json:
890         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
891         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
892         (WebKitBuildbot):
893
894 2016-09-20  Alex Christensen  <achristensen@webkit.org>
895
896         Reduce allocations in URLParser
897         https://bugs.webkit.org/show_bug.cgi?id=162241
898
899         Reviewed by Chris Dumez.
900
901         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
902         (TestWebKitAPI::TEST_F):
903         (TestWebKitAPI::checkURL):
904
905 2016-09-20  Alex Christensen  <achristensen@webkit.org>
906
907         Align URLParser with web platform tests when parsing non-special relative URLs ending in AuthorityOrHost state
908         https://bugs.webkit.org/show_bug.cgi?id=162251
909
910         Reviewed by Tim Horton.
911
912         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
913         (TestWebKitAPI::checkURL):
914         (TestWebKitAPI::TEST_F):
915         (TestWebKitAPI::checkRelativeURL):
916         (TestWebKitAPI::checkURLDifferences):
917         (TestWebKitAPI::checkRelativeURLDifferences):
918
919 2016-09-20  Alex Christensen  <achristensen@webkit.org>
920
921         URLParser should allow '@' in user
922         https://bugs.webkit.org/show_bug.cgi?id=162272
923
924         Reviewed by Tim Horton.
925
926         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
927         (TestWebKitAPI::TEST_F):
928
929 2016-09-20  Alex Christensen  <achristensen@webkit.org>
930
931         URLParser: Fix parsing relative URLs with one slash after the scheme:
932         https://bugs.webkit.org/show_bug.cgi?id=162294
933
934         Reviewed by Tim Horton.
935
936         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
937         (TestWebKitAPI::TEST_F):
938
939 2016-09-20  Alex Christensen  <achristensen@webkit.org>
940
941         Fix Windows file URL quirks in URLParser
942         https://bugs.webkit.org/show_bug.cgi?id=162303
943
944         Reviewed by Tim Horton.
945
946         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
947         (TestWebKitAPI::TEST_F):
948
949 2016-09-20  Filip Pizlo  <fpizlo@apple.com>
950
951         Make MarkedBlock state tracking support overlapped allocation and marking state
952         https://bugs.webkit.org/show_bug.cgi?id=161581
953
954         Reviewed by Geoffrey Garen.
955         
956         Remove the always-trigger-copy-phase configuration.
957
958         * Scripts/run-jsc-stress-tests:
959
960 2016-09-20  Don Olmstead  <don.olmstead@am.sony.com>
961
962         [WinCairo] Use find_package cairo in build
963         https://bugs.webkit.org/show_bug.cgi?id=162239
964
965         Reviewed by Alex Christensen.
966
967         * DumpRenderTree/PlatformWin.cmake:
968         * TestWebKitAPI/PlatformWin.cmake:
969
970 2016-09-20  Wenson Hsieh  <wenson_hsieh@apple.com>
971
972         Unreviewed build fix on 10.10 bots.
973
974         * TestWebKitAPI/mac/TestWKWebViewMac.h:
975
976 2016-09-20  Wenson Hsieh  <wenson_hsieh@apple.com>
977
978         VideoControlsManager.VideoControlsManagerSingleLargeVideo fails intermittently on the Mac WK2 bot
979         https://bugs.webkit.org/show_bug.cgi?id=162255
980
981         Reviewed by Jer Noble.
982
983         This is reproducible by running the test repeatedly in a for loop (locally, I observed that running the test
984         back-to-back would result in the second one failing). This suggests that even on the runloop after the video
985         starts playing, the state of the playback controls manager may not be up to date in the UI process. Instead, we
986         can just spin the runloop until the playback controls are shown, which makes back-to-back tests to succeed and
987         will probably address flakiness on the bots for this test.
988
989         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
990         (TestWebKitAPI::TEST):
991         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html:
992
993 2016-09-20  Per Arne Vollan  <pvollan@apple.com>
994
995         [Win] Run layout tests in parallel.
996         https://bugs.webkit.org/show_bug.cgi?id=162145
997
998         Reviewed by Brent Fulgham.
999
1000         To speed up layout tests, try running them in parallel.
1001
1002         * Scripts/webkitpy/port/win.py:
1003         (WinPort.default_child_processes): Deleted.
1004
1005 2016-09-19  Wenson Hsieh  <wenson_hsieh@apple.com>
1006
1007         Unreviewed build fix after r206135
1008
1009         NSEventMaskLeftMouseDown and friends are only available on 10.12.
1010
1011         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
1012         (__simulated_forceClickAssociatedEventsMask):
1013
1014 2016-09-19  Wenson Hsieh  <wenson_hsieh@apple.com>
1015
1016         Add a unit test covering <https://trac.webkit.org/changeset/205983>
1017         https://bugs.webkit.org/show_bug.cgi?id=162112
1018
1019         Reviewed by Beth Dakin.
1020
1021         Adds a new unit test covering the changes in r205983 along with the infrastructure needed to support it. Also
1022         further refactors the TestWKWebView used by VideoControlsManager and WKWebViewCandidateTests so that in both
1023         cases, we add the WKWebView to a visible key window, and when sending a mouse down event, we propagate the event
1024         at the window level rather than the view level, allowing greater flexibility to simulate behaviors such as
1025         pressure-sensitive events that are needed for the new test.
1026
1027         Also rewrites currently disabled unit tests in CandidateTests as WebKit2 unit tests in WKWebViewCandidateTests,
1028         checking whether or not to should be requesting candidates in password and non-password fields.
1029
1030         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1031         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1032         (TestWebKitAPI::setUpWebViewForTestingVideoControlsManager):
1033         (TestWebKitAPI::TEST):
1034         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
1035         (-[CandidateTestWebView typeString:inputMessage:]):
1036         (+[CandidateTestWebView setUpWithFrame:testPage:]):
1037         * TestWebKitAPI/Tests/WebKit2Cocoa/large-input-field-focus-onload.html: Added.
1038         * TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html: Added.
1039         * TestWebKitAPI/mac/TestWKWebViewMac.h:
1040         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
1041         (__simulated_forceClickAssociatedEventsMask):
1042         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
1043         (-[TestWKWebView initWithFrame:]):
1044         (-[TestWKWebView initWithFrame:configuration:]):
1045         (-[TestWKWebView _setUpTestWindow:]):
1046         (-[TestWKWebView mouseDownAtPoint:simulatePressure:]):
1047         (-[TestWKWebView typeCharacter:]):
1048         (-[TestWKWebView mouseDownAtPoint:]): Deleted.
1049
1050 2016-09-19  Alex Christensen  <achristensen@webkit.org>
1051
1052         URLParser can read memory out of bounds
1053         https://bugs.webkit.org/show_bug.cgi?id=162206
1054
1055         Reviewed by Geoff Garen.
1056
1057         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1058         (TestWebKitAPI::TEST_F):
1059
1060 2016-09-19  Daniel Bates  <dabates@apple.com>
1061
1062         Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
1063         https://bugs.webkit.org/show_bug.cgi?id=162167
1064
1065         Reviewed by Simon Fraser.
1066
1067         * Scripts/webkitperl/FeatureList.pm:
1068         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1069
1070 2016-09-19  Nan Wang  <n_wang@apple.com>
1071
1072         AX: Add accessibility support for details element on iOS
1073         https://bugs.webkit.org/show_bug.cgi?id=162041
1074
1075         Reviewed by Chris Fleizach.
1076
1077         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
1078         (AccessibilityUIElement::isExpanded):
1079         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1080         (WTR::AccessibilityUIElement::isExpanded):
1081
1082 2016-09-18  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
1083
1084         [EFL] Bump efl library to 1.18.1
1085         https://bugs.webkit.org/show_bug.cgi?id=162120
1086
1087         Reviewed by Michael Catanzaro.
1088
1089         * efl/jhbuild.modules: Use efl-1.18.1 instead of 1.18.
1090
1091 2016-09-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1092
1093         [EFL] Adjust EFL coding style to EFL MiniBrowser
1094         https://bugs.webkit.org/show_bug.cgi?id=162119
1095
1096         Reviewed by Michael Catanzaro.
1097
1098         Apply EFL coding style to main.c for MiniBrowser.
1099           - Use _foo_cb instead of on_foo for callback function
1100           - Use 3 spaces and use 2 spaces in keywords.
1101
1102         - EFL coding style.
1103           https://phab.enlightenment.org/w/coding_convention/
1104
1105         Additionally this patch adds an exception rule that style checker doesn't
1106         check indentation rule in EFL MiniBrowser.
1107
1108         * MiniBrowser/efl/main.c:
1109         (miniBrowserViewSmartClass):
1110         (window_find_with_ewk_view):
1111         (_tooltip_show):
1112         (window_tooltip_hide):
1113         (window_tooltip_update):
1114         (_mouse_in_cb):
1115         (_mouse_move_cb):
1116         (_mouse_out_cb):
1117         (_mouse_wheel_cb):
1118         (_window_resize_cb):
1119         (update_view_favicon):
1120         (_icon_changed_cb):
1121         (window_free):
1122         (window_close):
1123         (search_icon_show):
1124         (search_box_show):
1125         (search_box_hide):
1126         (history_list_hide):
1127         (save_page_contents_callback):
1128         (script_execute_callback):
1129         (toggle_window_fullscreen):
1130         (_key_down_cb):
1131         (_mouse_down_cb):
1132         (_title_changed_cb):
1133         (_url_changed_cb):
1134         (_back_forward_list_changed_cb):
1135         (_progress_cb):
1136         (_error_cb):
1137         (_download_request_cb):
1138         (close_file_picker):
1139         (_filepicker_parent_deletion_cb):
1140         (_filepicker_deletion_cb):
1141         (_fileselector_done_cb):
1142         (_file_chooser_request_cb):
1143         (_download_finished_cb):
1144         (_download_failed_cb):
1145         (_color_changed_cb):
1146         (_color_item_selected_cb):
1147         (_color_picker_ok_clicked_cb):
1148         (_color_picker_cancel_clicked_cb):
1149         (_color_picker_dismiss_cb):
1150         (_color_picker_request_cb):
1151         (_url_bar_activated_cb):
1152         (_url_bar_clicked_cb):
1153         (_search_field_aborted_cb):
1154         (_search_field_activated_cb):
1155         (_search_field_clicked_cb):
1156         (_back_button_clicked_cb):
1157         (_forward_button_clicked_cb):
1158         (_search_backward_button_clicked_cb):
1159         (_search_forward_button_clicked_cb):
1160         (_search_case_option_changed):
1161         (_search_word_start_option_changed_cb):
1162         (_search_close_button_clicked_cb):
1163         (_refresh_button_clicked_cb):
1164         (_stop_button_clicked_cb):
1165         (_list_item_select_cb):
1166         (navigation_button_longpress_process):
1167         (_forward_button_longpress_cb):
1168         (_back_button_longpress_cb):
1169         (_ok_clicked_cb):
1170         (_file_entry_dialog_show):
1171         (_javascript_alert_cb):
1172         (_javascript_confirm_cb):
1173         (_javascript_prompt_cb):
1174         (_javascript_before_unload_confirm_cb):
1175         (_popup_menu_item_clicked_cb):
1176         (popup_menu_populate):
1177         (_popup_menu_show):
1178         (_popup_menu_hide):
1179         (_window_geometry_get):
1180         (_window_geometry_set):
1181         (_fullscreen_accept_cb):
1182         (_fullscreen_deny_cb):
1183         (_fullscreen_enter_cb):
1184         (_fullscreen_exit_cb):
1185         (_window_create_cb):
1186         (_window_close_cb):
1187         (_context_menu_item_selected_cb):
1188         (context_menu_populate):
1189         (_context_menu_show):
1190         (_context_menu_hide):
1191         (auth_popup_close):
1192         (_auth_cancel_cb):
1193         (_auth_ok_cb):
1194         (_authentication_request_cb):
1195         (_search_text_found_cb):
1196         (_tooltip_text_set):
1197         (_tooltip_text_unset):
1198         (_navigation_policy_decision_cb):
1199         (_home_button_clicked_cb):
1200         (_window_deletion_cb):
1201         (create_toolbar_button):
1202         (window_create):
1203         (configuration):
1204         (parse_cookies_policy):
1205         (parse_window_size):
1206         (elm_main):
1207         (on_tooltip_show): Deleted.
1208         (on_mouse_in): Deleted.
1209         (on_mouse_move): Deleted.
1210         (on_mouse_out): Deleted.
1211         (on_mouse_wheel): Deleted.
1212         (on_window_resize): Deleted.
1213         (on_icon_changed_cb): Deleted.
1214         (on_key_down): Deleted.
1215         (on_mouse_down): Deleted.
1216         (on_title_changed): Deleted.
1217         (on_url_changed): Deleted.
1218         (on_back_forward_list_changed): Deleted.
1219         (on_progress): Deleted.
1220         (on_error): Deleted.
1221         (on_download_request): Deleted.
1222         (on_filepicker_parent_deletion): Deleted.
1223         (on_filepicker_deletion): Deleted.
1224         (on_fileselector_done): Deleted.
1225         (on_file_chooser_request): Deleted.
1226         (on_download_finished): Deleted.
1227         (on_download_failed): Deleted.
1228         (on_color_changed): Deleted.
1229         (on_color_item_selected): Deleted.
1230         (on_color_picker_ok_clicked): Deleted.
1231         (on_color_picker_cancel_clicked): Deleted.
1232         (on_color_picker_dismiss): Deleted.
1233         (on_color_picker_request): Deleted.
1234         (on_url_bar_activated): Deleted.
1235         (on_url_bar_clicked): Deleted.
1236         (on_search_field_aborted): Deleted.
1237         (on_search_field_activated): Deleted.
1238         (on_search_field_clicked): Deleted.
1239         (on_back_button_clicked): Deleted.
1240         (on_forward_button_clicked): Deleted.
1241         (on_search_backward_button_clicked): Deleted.
1242         (on_search_forward_button_clicked): Deleted.
1243         (on_search_case_option_changed): Deleted.
1244         (on_search_word_start_option_changed): Deleted.
1245         (on_search_close_button_clicked): Deleted.
1246         (on_refresh_button_clicked): Deleted.
1247         (on_stop_button_clicked): Deleted.
1248         (on_list_item_select): Deleted.
1249         (on_forward_button_longpress): Deleted.
1250         (on_back_button_longpress): Deleted.
1251         (on_ok_clicked): Deleted.
1252         (show_file_entry_dialog): Deleted.
1253         (on_javascript_alert): Deleted.
1254         (on_javascript_confirm): Deleted.
1255         (on_javascript_prompt): Deleted.
1256         (on_javascript_before_unload_confirm): Deleted.
1257         (on_popup_menu_item_clicked): Deleted.
1258         (on_popup_menu_show): Deleted.
1259         (on_popup_menu_hide): Deleted.
1260         (on_window_geometry_get): Deleted.
1261         (on_window_geometry_set): Deleted.
1262         (on_fullscreen_accept): Deleted.
1263         (on_fullscreen_deny): Deleted.
1264         (on_fullscreen_enter): Deleted.
1265         (on_fullscreen_exit): Deleted.
1266         (on_window_create): Deleted.
1267         (on_window_close): Deleted.
1268         (context_menu_item_selected_cb): Deleted.
1269         (on_context_menu_show): Deleted.
1270         (on_context_menu_hide): Deleted.
1271         (on_auth_cancel): Deleted.
1272         (on_auth_ok): Deleted.
1273         (on_authentication_request): Deleted.
1274         (on_search_text_found): Deleted.
1275         (on_tooltip_text_set): Deleted.
1276         (on_tooltip_text_unset): Deleted.
1277         (on_navigation_policy_decision): Deleted.
1278         (on_home_button_clicked): Deleted.
1279         (on_window_deletion): Deleted.
1280         * Scripts/webkitpy/style/checker.py:
1281
1282 2016-09-16  Dave Hyatt  <hyatt@apple.com>
1283
1284         [CSS Parser] Get CSSPropertyParserHelpers.cpp compiling
1285         https://bugs.webkit.org/show_bug.cgi?id=162078
1286
1287         Reviewed by Dean Jackson.
1288
1289         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
1290         (TestWebKitAPI::createTestValue):
1291         Convert to ValueRange.
1292
1293 2016-09-16  Alex Christensen  <achristensen@webkit.org>
1294
1295         Fix API tests after r206036
1296         https://bugs.webkit.org/show_bug.cgi?id=162049
1297
1298         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1299         (TestWebKitAPI::TEST_F):
1300         An emoji had been UTF-8 encoded in the patch that was applied.
1301         The test needed to check the encoding of the emoji, not the UTF-8 encoding of the emoji.
1302         Everything was correct except applying the patch before committing.
1303
1304 2016-09-16  Wenson Hsieh  <wenson_hsieh@apple.com>
1305
1306         RequiresUserActionForPlayback TestWebKitAPI tests are broken after r206033.
1307         https://bugs.webkit.org/show_bug.cgi?id=162080
1308
1309         Reviewed by Jer Noble.
1310
1311         I renamed "playingHandler" to the more generalized "testHandler", but did not realize that the
1312         RequiresUserActionForPlayback tests also used "playingHandler". Renames the handler to account for this change.
1313
1314         * TestWebKitAPI/Tests/WebKit2Cocoa/RequiresUserActionForPlayback.mm:
1315         (RequiresUserActionForPlaybackTest::SetUp):
1316
1317 2016-09-16  Alex Christensen  <achristensen@webkit.org>
1318
1319         URLParser should percent encode the user and password according to spec
1320         https://bugs.webkit.org/show_bug.cgi?id=162049
1321
1322         Reviewed by Tim Horton.
1323
1324         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1325         (TestWebKitAPI::TEST_F):
1326
1327 2016-09-16  Alex Christensen  <achristensen@webkit.org>
1328
1329         Fix more edge cases in URLParser
1330         https://bugs.webkit.org/show_bug.cgi?id=162051
1331
1332         Reviewed by Tim Horton.
1333
1334         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1335         (TestWebKitAPI::TEST_F):
1336
1337 2016-09-16  Wenson Hsieh  <wenson_hsieh@apple.com>
1338
1339         Inserting a space after inserting an accepted candidate scrolls the document and causes a flicker
1340         https://bugs.webkit.org/show_bug.cgi?id=162009
1341         <rdar://problem/28086237>
1342
1343         Reviewed by Tim Horton.
1344
1345         Adds 3 new text editing API tests covering candidate insertion, as well as support for testing candidates in
1346         WKWebViews. Refactors common WKWebView helpers across both VideoControlsManager tests and the new
1347         WKWebViewCandidateTests into a new utility class, TestWKWebView in TestWKWebView.mm, which is capable of
1348         simulating mouse and keyboard events as well as waiting for JavaScript messages sent from the web process and
1349         performing actions in response.
1350
1351         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1352         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html:
1353         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html:
1354         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html:
1355         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1356         (TestWebKitAPI::TEST):
1357         (-[MessageHandler initWithMessage:handler:]): Deleted.
1358         (-[MessageHandler userContentController:didReceiveScriptMessage:]): Deleted.
1359         (-[VideoControlsManagerTestWebView mouseDownAtPoint:]): Deleted.
1360         (-[VideoControlsManagerTestWebView performAfterLoading:]): Deleted.
1361         (-[VideoControlsManagerTestWebView callJavascriptFunction:]): Deleted.
1362         (-[VideoControlsManagerTestWebView loadTestPageNamed:]): Deleted.
1363         (-[VideoControlsManagerTestWebView performAfterReceivingMessage:action:]): Deleted.
1364         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm: Added.
1365         (-[TestCandidate initWithReplacementString:inRange:]):
1366         (-[TestCandidate replacementString]):
1367         (-[TestCandidate resultType]):
1368         (-[TestCandidate range]):
1369         (-[CandidateTestWebView insertCandidatesAndWaitForResponse:range:]):
1370         (-[CandidateTestWebView _didHandleAcceptedCandidate]):
1371         (-[CandidateTestWebView expectCandidateListVisibilityUpdates:whenPerformingActions:]):
1372         (-[CandidateTestWebView _didUpdateCandidateListVisibility:]):
1373         (TEST):
1374         * TestWebKitAPI/Tests/WebKit2Cocoa/autoplaying-video-with-audio.html:
1375         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html:
1376         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html:
1377         * TestWebKitAPI/Tests/WebKit2Cocoa/full-size-autoplaying-video-with-audio.html:
1378         * TestWebKitAPI/Tests/WebKit2Cocoa/input-field-in-scrollable-document.html: Added.
1379         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-hides-controls-after-seek-to-end.html:
1380         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-mutes-onplaying.html:
1381         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html:
1382         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html:
1383         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-after-ending.html:
1384         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-to-beginning-and-play-after-ending.html:
1385         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html:
1386         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html:
1387         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html:
1388         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html:
1389         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html:
1390         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html:
1391         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html:
1392         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html:
1393         * TestWebKitAPI/Tests/WebKit2Cocoa/skinny-autoplaying-video-with-audio.html:
1394         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html:
1395         * TestWebKitAPI/mac/TestWKWebViewMac.h: Added.
1396         * TestWebKitAPI/mac/TestWKWebViewMac.mm: Added.
1397         (-[TestMessageHandler initWithMessage:handler:]):
1398         (-[TestMessageHandler userContentController:didReceiveScriptMessage:]):
1399         (-[TestWKWebView mouseDownAtPoint:]):
1400         (-[TestWKWebView performAfterReceivingMessage:action:]):
1401         (-[TestWKWebView loadTestPageNamed:]):
1402         (-[TestWKWebView typeCharacter:]):
1403         (-[TestWKWebView stringByEvaluatingJavaScript:]):
1404         (-[TestWKWebView waitForMessage:]):
1405         (-[TestWKWebView performAfterLoading:]):
1406
1407 2016-09-14  Jer Noble  <jer.noble@apple.com>
1408
1409         [media-source] fix imported/w3c/web-platform-tests/media-source/mediasource-duration.html
1410         https://bugs.webkit.org/show_bug.cgi?id=161999
1411
1412         Reviewed by Eric Carlson.
1413
1414         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
1415         (TestWebKitAPI::TEST):
1416
1417 2016-09-16  Anders Carlsson  <andersca@apple.com>
1418
1419         Fix isValidEnum to work with older versions of GCC
1420         https://bugs.webkit.org/show_bug.cgi?id=162065
1421
1422         Reviewed by Michael Catanzaro.
1423
1424         Add EnumTraits.cpp to the CMake build.
1425
1426         * TestWebKitAPI/CMakeLists.txt:
1427
1428 2016-09-16  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
1429
1430         Unreviewed: Change my primary address for auto-complete in bugzilla.
1431
1432         * Scripts/webkitpy/common/config/contributors.json:
1433
1434 2016-09-15  Alex Christensen  <achristensen@webkit.org>
1435
1436         URLParser: Check for invalid characters in the host
1437         https://bugs.webkit.org/show_bug.cgi?id=162023
1438
1439         Reviewed by Tim Horton.
1440
1441         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1442         (TestWebKitAPI::TEST_F):
1443
1444 2016-09-15  Fujii Hironori  <Hironori.Fujii@sony.com>
1445
1446         [CMake] Refactor GENERATE_BINDINGS
1447         https://bugs.webkit.org/show_bug.cgi?id=161854
1448
1449         Reviewed by Gyuyoung Kim.
1450
1451         * DumpRenderTree/CMakeLists.txt: Changed the arguments of
1452         GENERATE_BINDINGS to new style.
1453         * WebKitTestRunner/CMakeLists.txt: Ditto.
1454
1455 2016-09-15  Ryan Haddad  <ryanhaddad@apple.com>
1456
1457         Disable failing API WebKit2.DataDetectionReferenceDate until it can be investigated.
1458         https://bugs.webkit.org/show_bug.cgi?id=161967
1459
1460         Unreviewed test gardening.
1461
1462         * TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm:
1463         (TEST):
1464
1465 2016-09-15  Per Arne Vollan  <pvollan@apple.com>
1466
1467         [Win] run-api-tests is failing.
1468         https://bugs.webkit.org/show_bug.cgi?id=162015
1469
1470         Reviewed by Brent Fulgham.
1471
1472         MSVC is not interpreting C++ string literals with unicode characters correctly when the source file
1473         doesn't contain encoding information. Save the file with utf8 encoding with signature.
1474
1475         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1476
1477 2016-09-15  Jonathan Bedard  <jbedard@apple.com>
1478
1479         Move --no-sample-on-timeout to config.json for each bot
1480         https://bugs.webkit.org/show_bug.cgi?id=161964
1481
1482         Reviewed by Daniel Bates.
1483
1484         Roll out changes from 205573 and move them into config.json.  At this time, only macOS and iOS simulator sample a process on timeout, —no-sample-on-timeout is unneeded for GTK, EFL and Windows.
1485
1486         * BuildSlaveSupport/build.webkit.org-config/config.json: Each bot now independently defines if it will be running sample on timeout.
1487         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1488         (RunWebKitTests.start): Rolled out changes from 205573.
1489
1490 2016-09-15  Csaba Osztrogonác  <ossy@webkit.org>
1491
1492         js/stringimpl-to-jsstring-on-large-strings tests consume huge memory
1493         https://bugs.webkit.org/show_bug.cgi?id=159807
1494
1495         Reviewed by Saam Barati.
1496
1497         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1498         (RunRemoteJavaScriptCoreTests.start): JSCOnly bots are memory limited devices, tests should run with --memory-limited option.
1499         * Scripts/run-javascriptcore-tests:
1500         (runJSCStressTests): Pass through --memory-limited option to run-jsc-stress-tests.
1501         * Scripts/run-jsc-stress-tests: Typo fix.
1502
1503 2016-09-14  Wenson Hsieh  <wenson_hsieh@apple.com>
1504
1505         Media controls behave strangely when changing media sources
1506         https://bugs.webkit.org/show_bug.cgi?id=161914
1507         <rdar://problem/28227805>
1508
1509         Reviewed by Tim Horton.
1510
1511         Adds three new unit tests verifying that media controls remain stable during common `src` change scenarios. Also
1512         tweaks an existing test to account for new `ended` behavior.
1513
1514         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1515         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1516         (-[VideoControlsManagerTestWebView waitForMediaControlsToShow]):
1517         (-[VideoControlsManagerTestWebView waitForMediaControlsToHide]):
1518         (TestWebKitAPI::TEST):
1519         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html: Added.
1520         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html: Added.
1521         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html: Added.
1522
1523 2016-09-14  Jonathan Bedard  <jbedard@apple.com>
1524
1525         Fix mastercfg_unittest
1526         https://bugs.webkit.org/show_bug.cgi?id=161816
1527
1528         Reviewed by Daniel Bates.
1529
1530         (RunWebKitTests.start):
1531         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: Fixed broken unit tests.
1532
1533 2016-09-13  Alexey Proskuryakov  <ap@apple.com>
1534
1535         Landing optimized .png files, forgot to do it initially.
1536
1537         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10.png:
1538         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10@2x.png:
1539         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator.png:
1540         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice.png:
1541         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice@2x.png:
1542
1543 2016-09-13  Alexey Proskuryakov  <ap@apple.com>
1544
1545         Switch build.webkit.org to iOS 10
1546         https://bugs.webkit.org/show_bug.cgi?id=161930
1547
1548         Reviewed by Daniel Bates.
1549
1550         * BuildSlaveSupport/build.webkit.org-config/config.json:
1551         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1552         (RunWebKitTests.start):
1553         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
1554         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10.png: Added.
1555         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10@2x.png: Added.
1556         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator.png: Added.
1557         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator@2x.png: Added.
1558         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice.png:
1559         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice@2x.png:
1560         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator.png: Added.
1561         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator@2x.png: Added.
1562         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
1563         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
1564         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
1565         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
1566         * BuildSlaveSupport/build.webkit.org-config/wkbuild.py:
1567         * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
1568         * Scripts/webkitpy/port/ios.py:
1569         * TestResultServer/static-dashboards/builders.jsonp:
1570
1571 2016-09-13  Tim Horton  <timothy_horton@apple.com>
1572
1573         Provide a mechanism to specify the maximum width of WKThumbnailView snapshots
1574         https://bugs.webkit.org/show_bug.cgi?id=161896
1575         <rdar://problem/28229827>
1576
1577         Reviewed by Simon Fraser.
1578
1579         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm:
1580         (TestWebKitAPI::TEST):
1581         Add a test for the new property.
1582         Also fix the old new test to run on arbitrary scale displays without failing.
1583
1584 2016-09-12  Brent Fulgham  <bfulgham@apple.com>
1585
1586         [Win][Direct2D] Provide Direct2D-based geometry and transform cast operations
1587         https://bugs.webkit.org/show_bug.cgi?id=161818
1588
1589         Reviewed by Dean Jackson.
1590
1591         Add several new test suites for the various geometric primitives in WebCore.
1592
1593         * TestWebKitAPI/PlatformWin.cmake: Add new files for test cases.
1594         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
1595         * TestWebKitAPI/Tests/WebCore/AffineTransform.cpp: Added.
1596         * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp: Added.
1597         * TestWebKitAPI/Tests/WebCore/FloatRect.cpp: Added.
1598         * TestWebKitAPI/Tests/WebCore/FloatSize.cpp: Added.
1599         * TestWebKitAPI/Tests/WebCore/IntPoint.cpp: Added.
1600         * TestWebKitAPI/Tests/WebCore/IntRect.cpp: Added.
1601         * TestWebKitAPI/Tests/WebCore/IntSize.cpp: Added.
1602         * TestWebKitAPI/Tests/WebCore/TransformationMatrix.cpp: Add some new
1603         Windows-focused test cases.
1604
1605 2016-09-12  Chris Dumez  <cdumez@apple.com>
1606
1607         Fix post-landing review comments after r205787
1608         https://bugs.webkit.org/show_bug.cgi?id=161885
1609
1610         Reviewed by Darin Adler.
1611
1612         Leverage new StringBuilder::append(CFStringRef) overload.
1613
1614         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1615         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
1616
1617 2016-09-12  Alex Christensen  <achristensen@webkit.org>
1618
1619         URLParser: Correctly ignore spaces before relative URLs with no scheme
1620         https://bugs.webkit.org/show_bug.cgi?id=161889
1621
1622         Reviewed by Daniel Bates.
1623
1624         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1625         (TestWebKitAPI::TEST_F):
1626
1627 2016-09-12  Alex Christensen  <achristensen@webkit.org>
1628
1629         URLParser: Fix relative URLs containing only fragments
1630         https://bugs.webkit.org/show_bug.cgi?id=161882
1631
1632         Reviewed by Brady Eidson.
1633
1634         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1635         (TestWebKitAPI::TEST_F):
1636
1637 2016-09-12  Alex Christensen  <achristensen@webkit.org>
1638
1639         URLParser: Correctly handle relative URLs that are just a scheme and a colon
1640         https://bugs.webkit.org/show_bug.cgi?id=161876
1641
1642         Reviewed by Brady Eidson.
1643
1644         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1645         (TestWebKitAPI::TEST_F):
1646
1647 2016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
1648
1649         AX: WKWebView for macOS does not allow configuration of tabsToLinks
1650         https://bugs.webkit.org/show_bug.cgi?id=161394
1651
1652         Reviewed by Anders Carlsson.
1653
1654         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
1655         (TEST):
1656
1657 2016-09-12  Alex Christensen  <achristensen@webkit.org>
1658
1659         Remove trailing control characters and spaces before parsing a URL
1660         https://bugs.webkit.org/show_bug.cgi?id=161870
1661
1662         Reviewed by Tim Horton.
1663
1664         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1665         (TestWebKitAPI::TEST_F):
1666
1667 2016-09-12  Alex Christensen  <achristensen@webkit.org>
1668
1669         Fix more URLParser quirks
1670         https://bugs.webkit.org/show_bug.cgi?id=161834
1671
1672         Reviewed by Brady Eidson.
1673
1674         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1675         (TestWebKitAPI::TEST_F):
1676
1677 2016-09-10  Alex Christensen  <achristensen@webkit.org>
1678
1679         Optimize URLParser performance
1680         https://bugs.webkit.org/show_bug.cgi?id=161837
1681
1682         Reviewed by Brady Eidson.
1683
1684         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1685         (TestWebKitAPI::TEST_F):
1686         Added a test to verify the case insensitivity of the default port checks.
1687
1688 2016-09-10  Chris Dumez  <cdumez@apple.com>
1689
1690         parseHTMLInteger() should take a StringView in parameter
1691         https://bugs.webkit.org/show_bug.cgi?id=161669
1692
1693         Reviewed by Ryosuke Niwa.
1694
1695         Explicitly construct a String from the CFStringRef in order to call
1696         StringBuilder::append(). This is needed now that there is an append()
1697         overload taking an AtomicString in parameter.
1698
1699         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1700         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
1701
1702 2016-09-10  Wenson Hsieh  <wenson_hsieh@apple.com>
1703
1704         Apple.com keynote does not display media controls
1705         https://bugs.webkit.org/show_bug.cgi?id=161833
1706         <rdar://problem/28230123>
1707
1708         Reviewed by Tim Horton.
1709
1710         New unit test verifying that wide videos (~2 aspect ratio) still get media controls.
1711
1712         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1713         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1714         (TestWebKitAPI::TEST):
1715         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html: Added.
1716
1717 2016-09-09  Tim Horton  <timothy_horton@apple.com>
1718
1719         WKThumbnailView should expose a mode where it can be reparented without resnapshotting
1720         https://bugs.webkit.org/show_bug.cgi?id=161828
1721         <rdar://problem/28229756>
1722
1723         Reviewed by Alex Christensen.
1724
1725         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1726         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm: Added.
1727         (-[SnapshotSizeObserver observeValueForKeyPath:ofObject:change:context:]):
1728         (TestWebKitAPI::didFinishLoadForFrame):
1729         (TestWebKitAPI::setPageLoaderClient):
1730         (TestWebKitAPI::TEST):
1731         Add a test ensuring that this behaves correctly.
1732
1733 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1734
1735         URLParser: Keep track of cannot-be-a-base-url according to spec
1736         https://bugs.webkit.org/show_bug.cgi?id=161830
1737
1738         Reviewed by Tim Horton.
1739
1740         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1741         (TestWebKitAPI::TEST_F):
1742
1743 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1744
1745         Fix API tests after r205774.
1746         https://bugs.webkit.org/show_bug.cgi?id=161820
1747
1748         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1749         (TestWebKitAPI::TEST_F):
1750         I had committed the wrong expected path in one case. The functionality is correct.
1751
1752 2016-09-09  Michael Saboff  <msaboff@apple.com>
1753
1754         Unreviewed, rolling r205759 back in with a fix.
1755
1756         An expectation file, JSTests/ChakraCore/test/Lib/tostring.baseline-jsc,
1757         should be named "toString.baseline-jsc".  For systems with case-insensitive
1758         filesystems, the wrong name isn't an issue.  That rename is part of this
1759         fix.
1760
1761         * Scripts/run-javascriptcore-tests:
1762         (runJSCStressTests):
1763
1764 2016-09-09  Johan K. Jensen  <johan_jensen@apple.com>
1765
1766         Unreviewed. Added myself to the list of committers.
1767
1768         * Scripts/webkitpy/common/config/contributors.json:
1769
1770 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1771
1772         URLParser should convert ASCII hosts to lowercase
1773         https://bugs.webkit.org/show_bug.cgi?id=161820
1774
1775         Reviewed by Geoffrey Garen.
1776
1777         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1778         (TestWebKitAPI::TEST_F):
1779
1780 2016-09-09  Ryan Haddad  <ryanhaddad@apple.com>
1781
1782         Unreviewed, rolling out r205759.
1783
1784         This change broke all JSC tests
1785
1786         Reverted changeset:
1787
1788         "Add ChakraCore tests to run-javascriptcore-tests"
1789         https://bugs.webkit.org/show_bug.cgi?id=161808
1790         http://trac.webkit.org/changeset/205759
1791
1792 2016-09-09  Ryan Haddad  <ryanhaddad@apple.com>
1793
1794         Revert r205770 because Ricky is already a committer.
1795
1796         Unreviewed.
1797
1798         * Scripts/webkitpy/common/config/contributors.json:
1799
1800 2016-09-09  Ricky Mondello  <rmondello@apple.com>
1801
1802         Unreviewed. Added myself to the list of committers.
1803
1804         * Scripts/webkitpy/common/config/contributors.json:
1805
1806 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1807
1808         URLParser: Fix and optimize parsing file URLs ending with a host but no slash
1809         https://bugs.webkit.org/show_bug.cgi?id=161815
1810
1811         Reviewed by Geoffrey Garen.
1812
1813         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1814         (TestWebKitAPI::TEST_F):
1815
1816 2016-09-08  Dean Jackson  <dino@apple.com>
1817
1818         Expose Apple Pencil data to Touch events
1819         https://bugs.webkit.org/show_bug.cgi?id=161783
1820         <rdar://problem/28218898>
1821
1822         Reviewed by Beth Dakin.
1823
1824         The values that IOHID expects are different from their
1825         documentation, and from what UITouch interprets. Tweak
1826         incoming data so it will produce the output we expect.
1827
1828         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1829         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:]):
1830         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:]):
1831
1832 2016-09-09  JF Bastien  <jfbastien@apple.com>
1833
1834         Unreviewed. Added myself to the list of committers.
1835
1836         * Scripts/webkitpy/common/config/contributors.json:
1837
1838 2016-09-09  Michael Saboff  <msaboff@apple.com>
1839
1840         Add ChakraCore tests to run-javascriptcore-tests
1841         https://bugs.webkit.org/show_bug.cgi?id=161808
1842
1843         Reviewed by Saam Barati.
1844
1845         Added ChakraCore tests to the default list of tests to run.
1846
1847         * Scripts/run-javascriptcore-tests:
1848         (runJSCStressTests):
1849
1850 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1851
1852         URLParser: Handle \ in path according to spec
1853         https://bugs.webkit.org/show_bug.cgi?id=161805
1854
1855         Reviewed by Andy Estes.
1856
1857         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1858         (TestWebKitAPI::TEST_F):
1859
1860 2016-09-09  Alex Christensen  <achristensen@webkit.org>
1861
1862         URLParser should parse URLs with non-special schemes
1863         https://bugs.webkit.org/show_bug.cgi?id=161786
1864
1865         Reviewed by Andy Estes.
1866
1867         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1868         (TestWebKitAPI::TEST_F):
1869
1870 2016-09-08  Yusuke Suzuki  <utatane.tea@gmail.com>
1871
1872         [WTF] HashTable's rehash is not compatible to Ref<T> and ASan
1873         https://bugs.webkit.org/show_bug.cgi?id=161763
1874
1875         Reviewed by Mark Lam.
1876
1877         Add tests that inserts many Ref<>s. It incurs HashTable::rehash, and we can ensure
1878         that ASan crash does not occur with this patch.
1879
1880         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
1881         (TestWebKitAPI::TEST):
1882         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
1883         (TestWebKitAPI::TEST):
1884
1885 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1886
1887         URLParser: Handle \ in paths of special URLs according to spec
1888         https://bugs.webkit.org/show_bug.cgi?id=161781
1889
1890         Reviewed by Tim Horton.
1891
1892         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1893         (TestWebKitAPI::TEST_F):
1894
1895 2016-09-08  Simon Fraser  <simon.fraser@apple.com>
1896
1897         Update the content-animation.plan file to run css-accelerated-animation.html
1898         and pull SVN revision r205680.
1899
1900         * Scripts/webkitpy/benchmark_runner/data/plans/content-animation.plan:
1901
1902 2016-09-08  Simon Fraser  <simon.fraser@apple.com>
1903
1904         Add a content-animation test with accelerated CSS animations
1905         https://bugs.webkit.org/show_bug.cgi?id=161776
1906
1907         Reviewed by Dean Jackson.
1908
1909         * Scripts/webkitpy/benchmark_runner/data/patches/ContentAnimation.patch:
1910
1911 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1912
1913         URLParser: Parsing empty URLs with a base URL should return the base URL
1914         https://bugs.webkit.org/show_bug.cgi?id=161777
1915
1916         Reviewed by Tim Horton.
1917
1918         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1919         (TestWebKitAPI::TEST_F):
1920
1921 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1922
1923         URLParser failures should preserve the original input string
1924         https://bugs.webkit.org/show_bug.cgi?id=161769
1925
1926         Reviewed by Tim Horton.
1927
1928         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1929         (TestWebKitAPI::TEST_F):
1930         (TestWebKitAPI::shouldFail):
1931
1932 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1933
1934         URLParser should parse URLs with a user but no password
1935         https://bugs.webkit.org/show_bug.cgi?id=161773
1936
1937         Reviewed by Brady Eidson.
1938
1939         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1940         (TestWebKitAPI::TEST_F):
1941
1942 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1943
1944         URLParser should parse ports after IPv4 and IPv6 hosts
1945         https://bugs.webkit.org/show_bug.cgi?id=161731
1946
1947         Reviewed by Brady Eidson.
1948
1949         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1950         (TestWebKitAPI::TEST_F):
1951
1952 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1953
1954         URLParser should correctly handle \ in path
1955         https://bugs.webkit.org/show_bug.cgi?id=161762
1956
1957         Reviewed by Brady Eidson.
1958
1959         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1960         (TestWebKitAPI::TEST_F):
1961
1962 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1963
1964         URLParser should handle URLs with empty authority
1965         https://bugs.webkit.org/show_bug.cgi?id=161711
1966
1967         Reviewed by Brady Eidson.
1968
1969         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1970         (TestWebKitAPI::TEST_F):
1971
1972 2016-09-08  Alex Christensen  <achristensen@webkit.org>
1973
1974         Re-land r205580 after r205649 fixed the test failures
1975         https://bugs.webkit.org/show_bug.cgi?id=161668
1976
1977         Re-landing changesets:
1978
1979         "Punycode encode non-ascii hosts in URLParser"
1980         https://bugs.webkit.org/show_bug.cgi?id=161655
1981         http://trac.webkit.org/changeset/205521
1982
1983         "Fix query-only and fragment-only relative URLs when using
1984         URLParser"
1985         https://bugs.webkit.org/show_bug.cgi?id=161657
1986         http://trac.webkit.org/changeset/205526
1987
1988         "URLParser should parse / as a relative URL"
1989         https://bugs.webkit.org/show_bug.cgi?id=161667
1990         http://trac.webkit.org/changeset/205532
1991
1992 2016-09-08  Dean Jackson  <dino@apple.com>
1993
1994         Expose Apple Pencil input to testing system
1995         https://bugs.webkit.org/show_bug.cgi?id=161670
1996         <rdar://problem/28183327>
1997
1998         I fixed the internal builds, now try to fix the public builds.
1999
2000         * WebKitTestRunner/ios/IOKitSPI.h: Add new enum values.
2001
2002 2016-09-07  Dean Jackson  <dino@apple.com>
2003
2004         Expose Apple Pencil input to testing system
2005         https://bugs.webkit.org/show_bug.cgi?id=161670
2006         <rdar://problem/28183327>
2007
2008         Attempt to fix iOS 9 builds.
2009
2010         * WebKitTestRunner/ios/HIDEventGenerator.mm:
2011         (-[HIDEventGenerator _createIOHIDEventType:]):
2012
2013 2016-09-07  Alex Christensen  <achristensen@webkit.org>
2014
2015         Roll out r205580 and r205582.
2016         https://bugs.webkit.org/show_bug.cgi?id=161668
2017
2018         I need to figure out why this is failing on the bots before landing any more URLParser progress.
2019
2020 2016-09-07  Alex Christensen  <achristensen@webkit.org>
2021
2022         Unreviewed, revert r205533.
2023         https://bugs.webkit.org/show_bug.cgi?id=161668
2024
2025         Re-landing changesets:
2026
2027         "Punycode encode non-ascii hosts in URLParser"
2028         https://bugs.webkit.org/show_bug.cgi?id=161655
2029         http://trac.webkit.org/changeset/205521
2030
2031         "Fix query-only and fragment-only relative URLs when using
2032         URLParser"
2033         https://bugs.webkit.org/show_bug.cgi?id=161657
2034         http://trac.webkit.org/changeset/205526
2035
2036         "URLParser should parse / as a relative URL"
2037         https://bugs.webkit.org/show_bug.cgi?id=161667
2038         http://trac.webkit.org/changeset/205532
2039
2040 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
2041
2042         Enable the <meter> element on iOS
2043         https://bugs.webkit.org/show_bug.cgi?id=161714
2044         rdar://problem/8978410
2045
2046         Reviewed by Tim Horton.
2047
2048         Define ENABLE_METER_ELEMENT unconditionally now.
2049
2050         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2051
2052 2016-09-07  Jonathan Bedard  <jbedard@apple.com>
2053
2054         Run spindumps on timeout on iOS 9 Simulator Release WK2 (Tests)
2055         https://bugs.webkit.org/show_bug.cgi?id=161699
2056
2057         Reviewed by Alexey Proskuryakov.
2058
2059         This change does not have testing associated with it because the testing infrastructure does not exists, we cannot currently mock build-bot variables.
2060
2061         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
2062         (RunWebKitTests): Enable sample on timeout for everything.
2063         (RunWebKitTests.start): Disable sample on timeout for everything except iOS 9 WK2 release simulators.
2064
2065 2016-09-06  Dean Jackson  <dino@apple.com>
2066
2067         Expose Apple Pencil input to testing system
2068         https://bugs.webkit.org/show_bug.cgi?id=161670
2069         <rdar://problem/28183327>
2070
2071         Reviewed by Simon Fraser.
2072
2073         Add API to UIScriptController that allows a test to emulate
2074         stylus input, such as from the Apple Pencil.
2075
2076         The code is only implemented for WebKitTestRunner.
2077
2078         There are also four new tests that ensure an Apple Pencil
2079         operates similarly to a regular touch. The main difference
2080         is that you can't have multiple touches when using an Apple Pencil.
2081
2082         * DumpRenderTree/ios/UIScriptControllerIOS.mm: New methods. Empty implementations.
2083         (WTR::UIScriptController::stylusDownAtPoint):
2084         (WTR::UIScriptController::stylusMoveToPoint):
2085         (WTR::UIScriptController::stylusUpAtPoint):
2086         (WTR::UIScriptController::stylusTapAtPoint):
2087         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: New methods.
2088         * TestRunnerShared/UIScriptContext/UIScriptController.cpp: Empty implementations.
2089         (WTR::UIScriptController::stylusDownAtPoint):
2090         (WTR::UIScriptController::stylusMoveToPoint):
2091         (WTR::UIScriptController::stylusUpAtPoint):
2092         (WTR::UIScriptController::stylusTapAtPoint):
2093         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2094
2095         * WebKitTestRunner/ios/HIDEventGenerator.h:
2096         * WebKitTestRunner/ios/HIDEventGenerator.mm: New StylusEvent types. Add some properties
2097         to SyntheticEventDigitizerInfo.
2098         (-[HIDEventGenerator _createIOHIDEventType:]): Add support for StylusEvent types.
2099         (-[HIDEventGenerator touchDownAtPoints:touchCount:]): Clear any old stylus info.
2100         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:]):
2101         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:]):
2102         (-[HIDEventGenerator stylusUpAtPoint:]):
2103         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
2104         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
2105         (-[HIDEventGenerator stylusUpAtPoint:completionBlock:]):
2106         (-[HIDEventGenerator stylusTapAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
2107         * WebKitTestRunner/ios/IOKitSPI.h: Add new include, and new SPI.
2108         * WebKitTestRunner/ios/UIScriptControllerIOS.mm: Calls into the HIDEventGenerator for the new API.
2109         (WTR::UIScriptController::stylusDownAtPoint):
2110         (WTR::UIScriptController::stylusMoveToPoint):
2111         (WTR::UIScriptController::stylusUpAtPoint):
2112         (WTR::UIScriptController::stylusTapAtPoint):
2113
2114 2016-09-07  Daniel Bates  <dabates@apple.com>
2115
2116         Update WebKitSystemInterface
2117
2118         Rubber-stamped by Dean Jackson.
2119
2120         Copy WebKitSystemInterface for iOS 10 to the built products directory.
2121
2122         * Scripts/copy-webkitlibraries-to-product-directory:
2123
2124 2016-09-07  Youenn Fablet  <youenn@apple.com>
2125
2126         [Streams API] Separate compile flag for ReadableStream and WritableStream
2127         https://bugs.webkit.org/show_bug.cgi?id=161044
2128
2129         Reviewed by Alex Christensen.
2130
2131         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
2132
2133         * Scripts/webkitperl/FeatureList.pm:
2134         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2135
2136 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2137
2138         [GTK] Move some GObject DOM unstable API to stable
2139         https://bugs.webkit.org/show_bug.cgi?id=161681
2140
2141         Reviewed by Žan Doberšek.
2142
2143         Do not use user message handler unstable API in the tests, since we have stable convenient API for that.
2144
2145         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp:
2146         (testUserContentManagerScriptMessageFromDOMBindings):
2147         (serverCallback): Deleted.
2148         (beforeAll): Deleted.
2149         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2150         (documentLoadedCallback):
2151         (emitURIChanged): Deleted.
2152
2153 2016-09-07  Youenn Fablet  <youenn@apple.com>
2154
2155         Using tests-options.json to compute whether tests are slow
2156         https://bugs.webkit.org/show_bug.cgi?id=161626
2157
2158         Reviewed by Darin Adler.
2159
2160         * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py: Updated first test to use a MockHost.
2161         * Scripts/webkitpy/layout_tests/controllers/manager.py:
2162         (Manager.__init__): Loading tests-options.json
2163         (Manager._test_is_slow): Computing timeout value based on tests-options.json.
2164
2165 2016-09-07  Hunseop Jeong  <hs85.jeong@samsung.com>
2166
2167         [EFL] Need the libosmesa to support the software backend drawing.
2168         https://bugs.webkit.org/show_bug.cgi?id=147065
2169
2170         Reviewed by Gyuyoung Kim.
2171
2172         Added the libosmesa to support the software backend drawing.
2173
2174         * efl/install-dependencies:
2175
2176 2016-09-06  Commit Queue  <commit-queue@webkit.org>
2177
2178         Unreviewed, rolling out r205521, r205526, and r205532.
2179         https://bugs.webkit.org/show_bug.cgi?id=161668
2180
2181         broke API tests (Requested by alexchristensen on #webkit).
2182
2183         Reverted changesets:
2184
2185         "Punycode encode non-ascii hosts in URLParser"
2186         https://bugs.webkit.org/show_bug.cgi?id=161655
2187         http://trac.webkit.org/changeset/205521
2188
2189         "Fix query-only and fragment-only relative URLs when using
2190         URLParser"
2191         https://bugs.webkit.org/show_bug.cgi?id=161657
2192         http://trac.webkit.org/changeset/205526
2193
2194         "URLParser should parse / as a relative URL"
2195         https://bugs.webkit.org/show_bug.cgi?id=161667
2196         http://trac.webkit.org/changeset/205532
2197
2198 2016-09-06  Alex Christensen  <achristensen@webkit.org>
2199
2200         URLParser should parse / as a relative URL
2201         https://bugs.webkit.org/show_bug.cgi?id=161667
2202
2203         Reviewed by Tim Horton.
2204
2205         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2206         (TestWebKitAPI::TEST_F):
2207
2208 2016-09-06  Daniel Bates  <dabates@apple.com>
2209
2210         [iOS] DumpRenderTree and WebKitTestRunner fail to build - "Ad Hoc code signing is not allowed with SDK 'Simulator - iOS 10.0'"
2211         https://bugs.webkit.org/show_bug.cgi?id=161661
2212
2213         Reviewed by Darin Adler.
2214
2215         Allow ad-hoc code signing when building the dummy DumpRenderTree and WebKitTestRunner
2216         command line tools for simulator with the iOS 10 beta SDK.
2217
2218         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2219         * WebKitTestRunner/Configurations/Base.xcconfig:
2220
2221 2016-09-06  Alex Christensen  <achristensen@webkit.org>
2222
2223         Fix query-only and fragment-only relative URLs when using URLParser
2224         https://bugs.webkit.org/show_bug.cgi?id=161657
2225
2226         Reviewed by Tim Horton.
2227
2228         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2229         (TestWebKitAPI::TEST_F):
2230
2231 2016-09-06  Alex Christensen  <achristensen@webkit.org>
2232
2233         Punycode encode non-ascii hosts in URLParser
2234         https://bugs.webkit.org/show_bug.cgi?id=161655
2235
2236         Reviewed by Tim Horton.
2237
2238         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2239         (TestWebKitAPI::wideString):
2240         (TestWebKitAPI::TEST_F):
2241
2242 2016-09-05  Alex Christensen  <achristensen@webkit.org>
2243
2244         Implement relative file urls and begin implementing character encoding in URLParser
2245         https://bugs.webkit.org/show_bug.cgi?id=161618
2246
2247         Reviewed by Tim Horton.
2248
2249         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2250         (TestWebKitAPI::TEST_F):
2251
2252 2016-09-06  Commit Queue  <commit-queue@webkit.org>
2253
2254         Unreviewed, rolling out r205480.
2255         https://bugs.webkit.org/show_bug.cgi?id=161630
2256
2257         tests-options.json is not known from knockout filesystem
2258         (Requested by youenn on #webkit).
2259
2260         Reverted changeset:
2261
2262         "Using tests-options.json to compute whether tests are slow"
2263         https://bugs.webkit.org/show_bug.cgi?id=161626
2264         http://trac.webkit.org/changeset/205480
2265
2266 2016-09-06  Michael Catanzaro  <mcatanzaro@igalia.com>
2267
2268         "Redundant argument in sprintf" warning spam from prepare-ChangeLog
2269         https://bugs.webkit.org/show_bug.cgi?id=161606
2270
2271         Reviewed by Darin Adler.
2272
2273         Avoid extra arguments in call to sprintf, hopefully without introducing new warnings this
2274         time.
2275
2276         * Scripts/prepare-ChangeLog:
2277         (statusDescription):
2278
2279 2016-09-06  Youenn Fablet  <youenn@apple.com>
2280
2281         Using tests-options.json to compute whether tests are slow
2282         https://bugs.webkit.org/show_bug.cgi?id=161626
2283
2284         Reviewed by Darin Adler.
2285
2286         * Scripts/webkitpy/layout_tests/controllers/manager.py:
2287         (Manager.__init__): Loading tests-options.json
2288         (Manager._test_is_slow): Computing timeout value based on tests-options.json.
2289
2290 2016-09-06  Commit Queue  <commit-queue@webkit.org>
2291
2292         Unreviewed, rolling out r205461.
2293         https://bugs.webkit.org/show_bug.cgi?id=161628
2294
2295         Introduced "Use of uninitialized value $original in sprintf"
2296         warning (Requested by mcatanzaro on #webkit).
2297
2298         Reverted changeset:
2299
2300         ""Redundant argument in sprintf" warning spam from prepare-
2301         ChangeLog"
2302         https://bugs.webkit.org/show_bug.cgi?id=161606
2303         http://trac.webkit.org/changeset/205461
2304
2305 2016-09-06  Youenn Fablet  <youenn@apple.com>
2306
2307         W3C test importer should be able to identify slow test
2308         https://bugs.webkit.org/show_bug.cgi?id=161601
2309
2310         Reviewed by Darin Adler.
2311
2312         Test parser is now identifying slow tests based on "meta element name=timeout content=long" elements.
2313         Test importer is updating test-options.json file according that information.
2314
2315         In case of clean import, the test-options.json is cleaned from 'slow' options for all W3C tests.
2316
2317         * Scripts/webkitpy/w3c/test_importer.py:
2318         (TestImporter.__init__):
2319         (TestImporter.find_importable_tests):
2320         (TestImporter.import_tests):
2321         (TestImporter.update_test_options):
2322         (TestImporter):
2323         (TestImporter.remove_slow_from_w3c_test_options):
2324         * Scripts/webkitpy/w3c/test_parser.py:
2325         (TestParser.analyze_test):
2326         (TestParser.is_slow_test):
2327         (TestParser.potential_ref_filename):
2328
2329 2016-09-06  Per Arne Vollan  <pvollan@apple.com>
2330
2331         [Win] Crash logs have incorrect symbols.
2332         https://bugs.webkit.org/show_bug.cgi?id=161603
2333
2334         Reviewed by Darin Adler.
2335
2336         Add build path to _NT_SYMBOL_PATH environment variable.
2337
2338         * Scripts/webkitpy/port/win.py:
2339         (WinPort.setup_crash_log_saving):
2340
2341 2016-08-31  Filip Pizlo  <fpizlo@apple.com>
2342
2343         Butterflies should be allocated in Auxiliary MarkedSpace instead of CopiedSpace and we should rewrite as much of the GC as needed to make this not a regression
2344         https://bugs.webkit.org/show_bug.cgi?id=160125
2345
2346         Reviewed by Geoffrey Garen and Keith Miller.
2347
2348         * DumpRenderTree/TestRunner.cpp:
2349         * DumpRenderTree/mac/DumpRenderTree.mm:
2350         (DumpRenderTreeMain):
2351         * Scripts/run-jsc-stress-tests:
2352         * TestWebKitAPI/Tests/WTF/Vector.cpp:
2353         (TestWebKitAPI::TEST):
2354
2355 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
2356
2357         "Redundant argument in sprintf" warning spam from prepare-ChangeLog
2358         https://bugs.webkit.org/show_bug.cgi?id=161606
2359
2360         Reviewed by Darin Adler.
2361
2362         Avoid extra arguments in call to sprintf.
2363
2364         * Scripts/prepare-ChangeLog:
2365         (statusDescription):
2366
2367 2016-09-05  Michael Catanzaro  <mcatanzaro@igalia.com>
2368
2369         [GTK] Skip several failing API tests
2370
2371         Unfortunately we don't have any form of test expectations for API tests, so we'll just skip
2372         them after bugs are filed.
2373
2374         * Scripts/run-gtk-tests:
2375         (TestRunner):
2376
2377 2016-09-05  Youenn Fablet  <youenn@apple.com>
2378
2379         Fix W3C test importer unit tests after r205447
2380         https://bugs.webkit.org/show_bug.cgi?id=161604
2381
2382         Unreviewed.
2383
2384         * Scripts/webkitpy/w3c/test_importer.py:
2385         (TestImporter.__init__): Skip cleaning test_resource_files files if resource-files.json cannot be read.
2386
2387 2016-09-05  Philippe Normand  <pnormand@igalia.com>
2388
2389         WebRTC: Several media stream tests crashing
2390         https://bugs.webkit.org/show_bug.cgi?id=161582
2391
2392         Reviewed by Alejandro G. Castro.
2393
2394         * gtk/jhbuild.modules: Bump to latest OpenWebRTC master fixing the crash on missing
2395         glvideoflip GStreamer element.
2396
2397 2016-09-05  Youenn Fablet  <youenn@apple.com>
2398
2399         W3C test importer should generate the list of resource files
2400         https://bugs.webkit.org/show_bug.cgi?id=161578
2401
2402         Reviewed by Ryosuke Niwa.
2403
2404         Generating LayoutTests/imported/w3c/resources/resource-files.json when importing tests.
2405
2406         * Scripts/webkitpy/w3c/test_importer.py:
2407         (TestImporter.__init__): Reading test resource files configuration file.
2408         (TestImporter.find_importable_tests):
2409         (TestImporter.import_tests): Update the test resource files based on test parsed files.
2410         (TestImporter):
2411         (TestImporter._already_identified_as_resource_file): Helper routine to know whether a file is already set as a resource file.
2412         (TestImporter._is_in_resources_directory: Helper routine to know whether a file is in a resources directory.
2413
2414 2016-09-03  Wenson Hsieh  <wenson_hsieh@apple.com>
2415
2416         Media controls behave strangely when videos mute from within a playing handler
2417         https://bugs.webkit.org/show_bug.cgi?id=161559
2418         <rdar://problem/28018438>
2419
2420         Reviewed by Darin Adler.
2421
2422         Accounts for changes when determining whether or not to show media controls for autoplaying videos that have not
2423         begun playing yet. Rather than check for a controlled media element upon page load, we force tests to wait until
2424         all autoplaying videos have actually begun playing. This extends to tests that involve interaction, such as
2425         clicking or scrolling.
2426
2427         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2428         (-[VideoControlsManagerTestWebView callJavascriptFunction:]):
2429         (-[VideoControlsManagerTestWebView expectControlsManager:afterReceivingMessage:]):
2430         (-[VideoControlsManagerTestWebView performAfterReceivingMessage:action:]):
2431         (-[VideoControlsManagerTestWebView waitForPageToLoadWithAutoplayingVideos:]):
2432         (TestWebKitAPI::TEST):
2433         (-[VideoControlsManagerTestWebView loadTestPageNamed:andExpectControlsManager:afterReceivingMessage:]): Deleted.
2434         * TestWebKitAPI/Tests/WebKit2Cocoa/autoplaying-video-with-audio.html:
2435         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-hides-controls-after-seek-to-end.html:
2436         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html:
2437         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html:
2438         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html:
2439         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html:
2440         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html:
2441         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html:
2442         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html:
2443
2444 2016-09-03  Wenson Hsieh  <wenson_hsieh@apple.com>
2445
2446         Refactor the heuristic for showing media controls to take all media sessions into account
2447         https://bugs.webkit.org/show_bug.cgi?id=161503
2448         <rdar://problem/28033783>
2449
2450         Reviewed by Darin Adler.
2451
2452         Adds new unit tests verifying the behavior of media playback controls when scrolling another video into view.
2453         Please see the WebCore ChangeLog for more details about this change. Also refactors existing
2454         VideoControlsManager tests by folding duplicated setup and testing logic into helper methods to make the unit
2455         tests more readable.
2456
2457         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2458         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2459         (-[MessageHandler initWithMessage:handler:]):
2460         (-[MessageHandler userContentController:didReceiveScriptMessage:]):
2461         (-[VideoControlsManagerTestWebView performAfterLoading:]):
2462         (-[VideoControlsManagerTestWebView loadTestPageNamed:]):
2463         (-[VideoControlsManagerTestWebView loadTestPageNamed:andExpectControlsManager:afterReceivingMessage:]):
2464         (-[VideoControlsManagerTestWebView performAfterReceivingMessage:action:]):
2465         (-[VideoControlsManagerTestWebView controlledElementID]):
2466         (-[VideoControlsManagerTestWebView _handleControlledElementIDResponse:]):
2467         (TestWebKitAPI::setUpWebViewForTestingVideoControlsManager):
2468         (TestWebKitAPI::TEST):
2469         (-[MediaPlaybackMessageHandler initWithWKWebView:finalMessageString:]): Deleted.
2470         (-[MediaPlaybackMessageHandler userContentController:didReceiveScriptMessage:]): Deleted.
2471         (-[OnLoadMessageHandler initWithWKWebView:handler:]): Deleted.
2472         (-[OnLoadMessageHandler userContentController:didReceiveScriptMessage:]): Deleted.
2473         (-[WKWebView performAfterLoading:]): Deleted.
2474         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html: Added.
2475         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html: Added.
2476         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html: Added.
2477         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html: Added.
2478         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html: Added.
2479         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html: Added.
2480
2481 2016-09-03  Youenn Fablet  <youenn@apple.com>
2482
2483         run-webkit-tests should detect w3c test resource files
2484         https://bugs.webkit.org/show_bug.cgi?id=161307
2485
2486         Reviewed by Ryosuke Niwa.
2487
2488         * Scripts/webkitpy/port/base.py:
2489         (Port.__init__): Adding self._w3c_resource_files to store the list of resource files.
2490         (Port.potential_test_names_from_expected_file):
2491         (Port._real_tests):
2492         (Port.is_w3c_resource_file): Computing whether a file is a resource file based on imported/w3c/resources/resource-files.json.
2493         (Port._is_test_file): Updated to call Port.is_w3c_resource_file. _is_test_file is no longer static.
2494         (Port): Deleted.
2495         * Scripts/webkitpy/port/base_unittest.py:
2496         (PortTest.test_additional_platform_directory):
2497         (PortTest.test_find_no_paths_specified):
2498         (PortTest.test_is_test_file): Updated to use non-static version of _is_test_file.
2499         (PortTest.test_is_w3c_resource_file): Adding tests.
2500
2501 2016-09-02  Carlos Garcia Campos  <cgarcia@igalia.com>
2502
2503         Unreviewed. Fix archive-built-product step in GTK+ bots after r205280.
2504
2505         * BuildSlaveSupport/built-product-archive:
2506         (archiveBuiltProduct): Do not copy to the archive the files needed to run GObject DOM bindings API breaks tests
2507         that no longer exist.
2508
2509 2016-09-02  Alex Christensen  <achristensen@webkit.org>
2510
2511         URLParser should parse file URLs
2512         https://bugs.webkit.org/show_bug.cgi?id=161556
2513
2514         Reviewed by Tim Horton.
2515
2516         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2517         (TestWebKitAPI::TEST_F):
2518         (TestWebKitAPI::checkURLDifferences):
2519
2520 2016-09-01  Michael Saboff  <msaboff@apple.com>
2521
2522         Import Chakra tests to JSC
2523         https://bugs.webkit.org/show_bug.cgi?id=154697
2524
2525         Reviewed by Saam Barati.
2526
2527         Added "runChakra" and "chakraPassFailErrorHandler" to support the running of
2528         Chakra tests.
2529
2530         * Scripts/run-jsc-stress-tests:
2531
2532 2016-09-02  Jonathan Bedard  <jbedard@apple.com>
2533
2534         WebKitTestRunner needs layoutTestController.setDashboardCompatibilityMode
2535         https://bugs.webkit.org/show_bug.cgi?id=42547
2536  
2537         Reviewed by Darin Adler.
2538
2539         Added JavaScript bindings and C++ implementation of setUseDashboardCompatibilityMode for the WebKit2 sTestRunner.
2540         Note: this bug mistakenly called this function setDashboardCompatibilityMode, it is actually setUseDashboardCompatibilityMode.
2541
2542         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Added dashboard compatiblity mode setter.
2543         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2544         (WTR::InjectedBundle::beginTesting): Reset dashboard compatibility mode.
2545         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2546         (WTR::TestRunner::setJavaScriptCanAccessClipboard): Code style changes.
2547         (WTR::TestRunner::setPrivateBrowsingEnabled): Code style changes.
2548         (WTR::TestRunner::setUseDashboardCompatibilityMode): Added dashboard compatiblity mode setter.
2549         (WTR::TestRunner::setPopupBlockingEnabled): Code style changes.
2550         (WTR::TestRunner::setAuthorAndUserStylesEnabled): Code style changes.
2551         (WTR::TestRunner::addOriginAccessWhitelistEntry): Code style changes.
2552         * WebKitTestRunner/InjectedBundle/TestRunner.h: Added dashboard compatiblity mode setter.
2553
2554 2016-09-02  Jer Noble  <jer.noble@apple.com>
2555
2556         Unreviewed build fix: restore storyboard files to Xcode 7-compatability.
2557
2558         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard:
2559         * MobileMiniBrowser/MobileMiniBrowserFramework/Base.lproj/Main.storyboard:
2560
2561 2016-09-02  Tim Horton  <timothy_horton@apple.com>
2562
2563         REGRESSION (r205329): Two API tests time out on iOS Simulator
2564         https://bugs.webkit.org/show_bug.cgi?id=161542
2565
2566         Reviewed by Brady Eidson.
2567
2568         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm:
2569         (createAnimatedResizeWebView):
2570         (createFirstVisuallyNonEmptyWatchingNavigationDelegate):
2571         (TEST):
2572         (animatedResizeWebView): Deleted.
2573         The navigation delegate was being stored in a local and went out of scope
2574         before the test was over. Keep it around, instead.
2575
2576 2016-08-31  Jer Noble  <jer.noble@apple.com>
2577
2578         Refactor MobileMiniBrowser into an application framework to allow external XCTesting
2579         https://bugs.webkit.org/show_bug.cgi?id=161462
2580
2581         Reviewed by Eric Carlson.
2582
2583         XCTest targets need to be in the same project as the application which they're testing. To facilitate
2584         having external projects with XCTest targets, move the application's implementation into a framework
2585         that can be included with a bare-bones application shell for testing.
2586
2587         Simultaneously, add the ability to load files from within the new framework's bundle by using a
2588         'bundle:/' URL scheme. Update the tests to use this new bundle URL and remove the dependency on
2589         an external server for testing.
2590
2591         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
2592         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard:
2593         * MobileMiniBrowser/MobileMiniBrowser/Info.plist:
2594         * MobileMiniBrowser/MobileMiniBrowser/main.m:
2595         * MobileMiniBrowser/MobileMiniBrowserFramework/AppDelegate.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h.
2596         * MobileMiniBrowser/MobileMiniBrowserFramework/AppDelegate.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m.
2597         (-[AppDelegate application:didFinishLaunchingWithOptions:]): Manually instantiate the main view
2598             controller from the framework's bundle.
2599         * MobileMiniBrowser/MobileMiniBrowserFramework/Assets.xcassets/AppIcon.appiconset/Contents.json: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/Assets.xcassets/AppIcon.appiconset/Contents.json.
2600         * MobileMiniBrowser/MobileMiniBrowserFramework/Base.lproj/Main.storyboard: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard.
2601         * MobileMiniBrowser/MobileMiniBrowserFramework/Info.plist: Added.
2602         * MobileMiniBrowser/MobileMiniBrowserFramework/MobileMiniBrowser.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h.
2603         * MobileMiniBrowser/MobileMiniBrowserFramework/TabViewController.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.h.
2604         * MobileMiniBrowser/MobileMiniBrowserFramework/TabViewController.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.m.
2605         * MobileMiniBrowser/MobileMiniBrowserFramework/WebViewController.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.h.
2606         * MobileMiniBrowser/MobileMiniBrowserFramework/WebViewController.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.m.
2607         (+[NSURL __bundleURLForFileURL:bundle:]): Add utility method.
2608         (+[NSURL __fileURLForBundleURL:bundle:]): Ditto.
2609         (-[WebViewController navigateTo:]): Support loading "bundle:/" URLs which are really just "file:" URLs
2610             pointing to the framework's resources directory.
2611         (-[WebViewController observeValueForKeyPath:ofObject:change:context:]): Ditto.
2612         * MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m:
2613         (-[MobileMiniBrowserUITests testBasicVideoPlayback]):
2614
2615 2016-09-02  Jonathan Bedard  <jbedard@apple.com>
2616
2617         Fix --no-sample-on-timeout command line argument
2618         https://bugs.webkit.org/show_bug.cgi?id=161507
2619
2620         Reviewed by Alexey Proskuryakov.
2621
2622         This patch fixes the —no-sample-on-timeout flag and correctly names spindumps as spindump.txt.
2623
2624         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
2625         (parse_args): Fixed —-no-sample-on-timeout.
2626         * Scripts/webkitpy/port/apple.py:
2627         (ApplePort.sample_process): Use correct file name.
2628         (ApplePort.spindump_file_path): Spindump and sample file names are different.
2629         * Scripts/webkitpy/port/driver.py:
2630         (Driver._check_for_driver_timeout): Check “sample_on_timeout” flag.
2631         * Scripts/webkitpy/port/mac_unittest.py:
2632         (MacTest.test_spindump): Modified for correct filename.
2633
2634 2016-09-02  Jonathan Bedard  <jbedard@apple.com>
2635
2636         Unreviewed: moved myself to the reviewers list.
2637
2638         * Scripts/webkitpy/common/config/contributors.json:
2639
2640 2016-09-02  Tomas Popela  <tpopela@redhat.com>
2641
2642         [GTK] Fix compiler warning in MiniBrowser
2643         https://bugs.webkit.org/show_bug.cgi?id=161529
2644
2645         We were missing a return statement in decidePermissionRequest() and
2646         also there was unused variable in browserWindowConstructed().
2647
2648         Reviewed by Carlos Garcia Campos.
2649
2650         * MiniBrowser/gtk/BrowserTab.c:
2651         (decidePermissionRequest):
2652         * MiniBrowser/gtk/BrowserWindow.c:
2653         (browserWindowConstructed):
2654
2655 2016-09-01  Dan Bernstein  <mitz@apple.com>
2656
2657         Build fix.
2658
2659         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2660
2661 2016-09-01  Tim Horton  <timothy_horton@apple.com>
2662
2663         Provide a TestWebKitAPI-wide WKNavigationDelegate to simplify tests
2664         https://bugs.webkit.org/show_bug.cgi?id=161413
2665
2666         Reviewed by Simon Fraser.
2667
2668         Add TestNavigationDelegate, which provides block properties to make
2669         writing tests feel a little more natural (the callbacks can be inline),
2670         and also add WKWebView _test_waitForDidFinishNavigation, so that many
2671         tests don't even need to manually allocate a navigation delegate at all.
2672
2673         Adopt in some of the simpler tests; there are a few navigation delegates
2674         left behind, which we can move to the new model in the future.
2675
2676         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2677         * TestWebKitAPI/Tests/WebKit2/WKBackForwardList.mm:
2678         (TEST):
2679         (-[WKBackForwardListTestNavigationDelegate webView:didFinishNavigation:]): Deleted.
2680         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm:
2681         (TEST):
2682         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]): Deleted.
2683         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm:
2684         (animatedResizeWebView):
2685         (-[AnimatedResizeNavigationDelegate _webView:renderingProgressDidChange:]): Deleted.
2686         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
2687         (-[AutoLayoutWKWebView initWithFrame:configuration:]):
2688         (-[AutoLayoutWKWebView load:withWidth:expectingContentSize:resettingWidth:]):
2689         (TEST):
2690         (-[AutoLayoutNavigationDelegate webView:didFinishNavigation:]): Deleted.
2691         * TestWebKitAPI/Tests/WebKit2Cocoa/CancelFontSubresource.mm:
2692         (TEST):
2693         (-[CancelFontSubresourceNavigationDelegate webView:didFinishNavigation:]): Deleted.
2694         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm:
2695         (WebKit2_CommandBackForwardTestWKWebView::SetUp):
2696         (WebKit2_CommandBackForwardTestWKWebView::loadFiles):
2697         (TEST_F):
2698         (-[CommandBackForwardNavigationDelegate webView:didFinishNavigation:]): Deleted.
2699         * TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm:
2700         (expectLinkCount):
2701         (TEST):
2702         (-[DataDetectionNavigationDelegate webView:didFinishNavigation:]): Deleted.
2703         * TestWebKitAPI/Tests/WebKit2Cocoa/FindInPage.mm:
2704         (TEST):
2705         (-[FindInPageNavigationDelegate webView:didFinishNavigation:]): Deleted.
2706         * TestWebKitAPI/Tests/WebKit2Cocoa/FixedLayoutSize.mm:
2707         (TEST):
2708         (-[FixedLayoutSizeNavigationDelegate webView:didFinishNavigation:]): Deleted.
2709         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm:
2710         (TEST):
2711         (-[DatabaseProcessKillNavigationDelegate webView:didFinishNavigation:]): Deleted.
2712         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm:
2713         (-[IndexedDBNavigationDelegate webView:didFinishNavigation:]): Deleted.
2714         * TestWebKitAPI/Tests/WebKit2Cocoa/ProvisionalURLNotChange.mm:
2715         (TEST):
2716         (-[ProvisionalURLNotChangeController webView:didFinishNavigation:]): Deleted.
2717         (-[ProvisionalURLNotChangeController webView:didFailProvisionalNavigation:withError:]): Deleted.
2718         * TestWebKitAPI/Tests/WebKit2Cocoa/RequiresUserActionForPlayback.mm:
2719         (RequiresUserActionForPlaybackTest::createWebView):
2720         (RequiresUserActionForPlaybackTest::testVideoWithAudio):
2721         (RequiresUserActionForPlaybackTest::testVideoWithoutAudio):
2722         (RequiresUserActionForPlaybackTest::testAudioOnly):
2723         (-[RequiresUserActionForPlaybackNavigationDelegate webView:didFinishNavigation:]): Deleted.
2724         * TestWebKitAPI/Tests/WebKit2Cocoa/ShrinkToFit.mm:
2725         (TEST):
2726         (-[ShrinkToFitNavigationDelegate webView:didFinishNavigation:]): Deleted.
2727         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
2728         (TEST):
2729         (webViewForScriptMessageHandlerMultipleHandlerRemovalTest):
2730         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorld.mm:
2731         (TEST):
2732         (-[SimpleDelegate webView:didFinishNavigation:]): Deleted.
2733         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm:
2734         (TEST):
2735         (-[WKPDFViewResizeNavigationDelegate webView:didFinishNavigation:]): Deleted.
2736         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm:
2737         (TEST):
2738         (-[EvaluateJavaScriptNavigationDelegate webView:didFinishNavigation:]): Deleted.
2739         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewTextInput.mm:
2740         (TEST):
2741         (-[DummyNavigationDelegate webView:didFinishNavigation:]): Deleted.
2742         * TestWebKitAPI/cocoa/TestNavigationDelegate.h: Added.
2743         * TestWebKitAPI/cocoa/TestNavigationDelegate.mm: Added.
2744         (-[TestNavigationDelegate webView:didFailProvisionalNavigation:withError:]):
2745         (-[TestNavigationDelegate webView:didFinishNavigation:]):
2746         (-[TestNavigationDelegate _webView:renderingProgressDidChange:]):
2747         (-[TestNavigationDelegate waitForDidFinishNavigation]):
2748         (-[WKWebView _test_waitForDidFinishNavigation]):
2749
2750 2016-09-01  Ricky Mondello  <rmondello@apple.com>
2751
2752         YouTube Flash plug-in replacement facility should not insert showinfo=0 into iframe URLs
2753         https://bugs.webkit.org/show_bug.cgi?id=161478
2754         <rdar://problem/28050847>
2755
2756         Reviewed by Eric Carlson.
2757
2758         * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp:
2759         (TestWebKitAPI::TEST_F): Update expected results.
2760
2761 2016-09-01  Anders Carlsson  <andersca@apple.com>
2762
2763         add BlockPtr::fromCallable
2764         https://bugs.webkit.org/show_bug.cgi?id=161504
2765
2766         Reviewed by Tim Horton.
2767
2768         Add a test.
2769
2770         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2771         * TestWebKitAPI/Tests/WTF/BlockPtr.mm: Added.
2772         (TestWebKitAPI::TEST):
2773
2774 2016-09-01  Alex Christensen  <achristensen@webkit.org>
2775
2776         URLParser should handle . and .. in URL paths
2777         https://bugs.webkit.org/show_bug.cgi?id=161443
2778
2779         Reviewed by Brady Eidson.
2780
2781         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2782         (TestWebKitAPI::eq):
2783         (TestWebKitAPI::TEST_F):
2784
2785 2016-09-01  Commit Queue  <commit-queue@webkit.org>
2786
2787         Unreviewed, rolling out r205295 and r205303.
2788         https://bugs.webkit.org/show_bug.cgi?id=161505
2789
2790         Broke the iOS build (Requested by ryanhaddad on #webkit).
2791
2792         Reverted changesets:
2793
2794         "Refactor MobileMiniBrowser into an application framework to
2795         allow external XCTesting"
2796         https://bugs.webkit.org/show_bug.cgi?id=161462
2797         http://trac.webkit.org/changeset/205295
2798
2799         "Unreviewed build-fix; don't specify an explicit deployment
2800         target."
2801         http://trac.webkit.org/changeset/205303
2802
2803 2016-09-01  Ricky Mondello  <rmondello@apple.com>
2804
2805         YouTube Flash plug-in replacement facility should more gracefully handle malformed queries
2806         https://bugs.webkit.org/show_bug.cgi?id=161476
2807         <rdar://problem/28050847>
2808
2809         Reviewed by Eric Carlson.
2810
2811         * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp:
2812         (TestWebKitAPI::TEST_F): New tests. The first two and second-to-last test cases cover the "malformed" query
2813             logic. A few other tests are added, too.
2814
2815 2016-09-01  Jer Noble  <jer.noble@apple.com>
2816
2817         Unreviewed build-fix; don't specify an explicit deployment target.
2818
2819         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
2820
2821 2016-08-31  Jer Noble  <jer.noble@apple.com>
2822
2823         Refactor MobileMiniBrowser into an application framework to allow external XCTesting
2824         https://bugs.webkit.org/show_bug.cgi?id=161462
2825
2826         Reviewed by Eric Carlson.
2827
2828         XCTest targets need to be in the same project as the application which they're testing. To facilitate
2829         having external projects with XCTest targets, move the application's implementation into a framework
2830         that can be included with a bare-bones application shell for testing.
2831
2832         Simultaneously, add the ability to load files from within the new framework's bundle by using a
2833         'bundle:/' URL scheme. Update the tests to use this new bundle URL and remove the dependency on
2834         an external server for testing.
2835
2836         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
2837         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard:
2838         * MobileMiniBrowser/MobileMiniBrowser/Info.plist:
2839         * MobileMiniBrowser/MobileMiniBrowser/main.m:
2840         * MobileMiniBrowser/MobileMiniBrowserFramework/AppDelegate.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h.
2841         * MobileMiniBrowser/MobileMiniBrowserFramework/AppDelegate.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m.
2842         (-[AppDelegate application:didFinishLaunchingWithOptions:]): Manually instantiate the main view
2843             controller from the framework's bundle.
2844         * MobileMiniBrowser/MobileMiniBrowserFramework/Assets.xcassets/AppIcon.appiconset/Contents.json: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/Assets.xcassets/AppIcon.appiconset/Contents.json.
2845         * MobileMiniBrowser/MobileMiniBrowserFramework/Base.lproj/Main.storyboard: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard.
2846         * MobileMiniBrowser/MobileMiniBrowserFramework/Info.plist: Added.
2847         * MobileMiniBrowser/MobileMiniBrowserFramework/MobileMiniBrowser.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h.
2848         * MobileMiniBrowser/MobileMiniBrowserFramework/TabViewController.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.h.
2849         * MobileMiniBrowser/MobileMiniBrowserFramework/TabViewController.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/TabViewController.m.
2850         * MobileMiniBrowser/MobileMiniBrowserFramework/WebViewController.h: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.h.
2851         * MobileMiniBrowser/MobileMiniBrowserFramework/WebViewController.m: Renamed from Tools/MobileMiniBrowser/MobileMiniBrowser/WebViewController.m.
2852         (+[NSURL __bundleURLForFileURL:bundle:]): Add utility method.
2853         (+[NSURL __fileURLForBundleURL:bundle:]): Ditto.
2854         (-[WebViewController navigateTo:]): Support loading "bundle:/" URLs which are really just "file:" URLs
2855             pointing to the framework's resources directory.
2856         (-[WebViewController observeValueForKeyPath:ofObject:change:context:]): Ditto.
2857         * MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m:
2858         (-[MobileMiniBrowserUITests testBasicVideoPlayback]):
2859
2860 2016-09-01  Carlos Garcia Campos  <cgarcia@igalia.com>
2861
2862         Unreviewed. Fix webkitpy unit tests after r205280.
2863
2864         * Scripts/webkitpy/style/checker_unittest.py:
2865         (GlobalVariablesTest.test_path_rules_specifier):
2866
2867 2016-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
2868
2869         [GTK] Move GObject DOM bindings to WebKit2 layer and stop auto generating them
2870         https://bugs.webkit.org/show_bug.cgi?id=161438
2871
2872         Reviewed by Michael Catanzaro.
2873
2874         Remove scripts related to the GObject DOM bindings auto-generation.
2875
2876         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
2877         (RunGtkAPITests.getText2):
2878         (TestFactory.__init__):
2879         (RunWebKit1Tests): Deleted.
2880         (RunWebKit1Tests.start): Deleted.
2881         (RunWebKit1LeakTests): Deleted.
2882         (RunWebKit1LeakTests.start): Deleted.
2883         (RunAndUploadPerfTests): Deleted.
2884         (RunAndUploadPerfTests.start): Deleted.
2885         (BuildAndRemoteJSCTestsFactory.__init__): Deleted.
2886         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
2887         (BuildStepsTest.test_unnecessary_expected_results):
2888         (RunAndUploadPerfTestsTest): Deleted.
2889         (RunAndUploadPerfTestsTest.assertResults): Deleted.
2890         (RunAndUploadPerfTestsTest.test_success): Deleted.
2891         (RunAndUploadPerfTestsTest.test_tests_failed): Deleted.
2892         (RunAndUploadPerfTestsTest.test_build_bad_build): Deleted.
2893         (RunAndUploadPerfTestsTest.test_build_bad_source_json): Deleted.
2894         (RunAndUploadPerfTestsTest.test_build_bad_marge): Deleted.
2895         (RunAndUploadPerfTestsTest.test_build_bad_failed_uploading): Deleted.
2896         (RunAndUploadPerfTestsTest.test_build_bad_preparation): Deleted.
2897         (RunAndUploadPerfTestsTest.test_buildbot_timeout): Deleted.
2898         (RunBenchmarkTest): Deleted.
2899         (RunBenchmarkTest.assertResults): Deleted.
2900         (RunBenchmarkTest.test_success): Deleted.
2901         * Scripts/run-bindings-tests:
2902         (main):
2903         * Scripts/webkitpy/style/checker.py:
2904         * gtk/check-for-webkitdom-api-breaks: Removed.
2905         * gtk/generate-gtkdoc:
2906         * gtk/webkitdom.py: Removed.
2907
2908 2016-08-31  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2909
2910         [EFL] Small clean up in MiniBrowser
2911         https://bugs.webkit.org/show_bug.cgi?id=161428
2912
2913         Reviewed by Yusuke Suzuki.
2914
2915         This patch resizes MiniBrowser, add *char* constants for scheme,
2916         does line breaking, and remove unnecessary spaces.
2917
2918         * MiniBrowser/efl/main.c:
2919         (on_mouse_wheel):
2920         (history_list_hide):
2921         (script_execute_callback):
2922         (on_key_down):
2923         (on_url_changed):
2924         (on_error):
2925         (on_color_picker_request):
2926         (url_from_user_input):
2927         (url_load_from_user_input):
2928         (on_back_button_clicked):
2929         (on_search_case_option_changed):
2930         (on_search_word_start_option_changed):
2931         (on_list_item_select):
2932         (navigation_button_longpress_process):
2933         (on_navigation_policy_decision):
2934         (window_create):
2935         (parse_cookies_policy):
2936
2937 2016-08-31  Alex Christensen  <achristensen@webkit.org>
2938
2939         Implement IPv6 parsing in URLParser
2940         https://bugs.webkit.org/show_bug.cgi?id=161390
2941
2942         Reviewed by Darin Adler.
2943
2944         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2945         (TestWebKitAPI::TEST_F):
2946         (TestWebKitAPI::checkURLDifferences):
2947
2948 2016-08-31  Brady Eidson  <beidson@apple.com>
2949
2950         WK2 Gamepad provider on iOS.
2951         https://bugs.webkit.org/show_bug.cgi?id=161412
2952
2953         Reviewed by Tim Horton.
2954
2955         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2956
2957 2016-08-30  Ricky Mondello  <rmondello@apple.com>
2958
2959         YouTubePluginReplacementTest's URL transformation logic should have tests
2960         https://bugs.webkit.org/show_bug.cgi?id=161406
2961         <rdar://problem/28050847>
2962
2963         Reviewed by Eric Carlson.
2964
2965         Add some very basic tests. Future patches should expand on these to find and fix bugs.
2966
2967         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add YouTubePluginReplacement.cpp.
2968         * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: Added.
2969         (TestWebKitAPI::test): Added.
2970         (TestWebKitAPI::TEST_F): Added.
2971
2972 2016-08-30  Brady Eidson  <beidson@apple.com>
2973
2974         GameController.framework backend for gamepad API.
2975         https://bugs.webkit.org/show_bug.cgi?id=161086
2976
2977         Reviewed by Alex Christensen.
2978
2979         * MiniBrowser/mac/AppDelegate.m:
2980         (-[BrowserAppDelegate awakeFromNib]):
2981
2982         * MiniBrowser/mac/SettingsController.h:
2983         * MiniBrowser/mac/SettingsController.m:
2984         (-[SettingsController _populateMenu]):
2985         (-[SettingsController validateMenuItem:]):
2986         (-[SettingsController usesGameControllerFramework]):
2987         (-[SettingsController toggleUsesGameControllerFramework:]):
2988
2989 2016-08-30  Brent Fulgham  <bfulgham@apple.com>
2990
2991         Use of uninitialised memory in TransformationMatrx::blend4()
2992         https://bugs.webkit.org/show_bug.cgi?id=134621
2993         <rdar://problem/27337539>
2994
2995         Reviewed by Dean Jackson.
2996
2997         Change is based on the Blink change (patch by <alancutter@chromium.org>):
2998         <https://src.chromium.org/viewvc/blink?revision=177453&view=revision>
2999
3000         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3001         * TestWebKitAPI/Tests/WebCore/TransformationMatrix.cpp: Added.
3002         (TestWebKitAPI::TEST):
3003
3004 2016-08-30  Alex Christensen  <achristensen@webkit.org>
3005
3006         URLParser should handle relative URLs that start with //
3007         https://bugs.webkit.org/show_bug.cgi?id=161364
3008
3009         Reviewed by Darin Adler.
3010
3011         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3012         (TestWebKitAPI::checkRelativeURL):
3013         (TestWebKitAPI::TEST_F):
3014
3015 2016-08-29  Aakash Jain  <aakash_jain@apple.com>
3016
3017         EWS patch status page should indicate bot corresponding to each status message
3018         https://bugs.webkit.org/show_bug.cgi?id=161280
3019
3020         Reviewed by Alexey Proskuryakov.
3021
3022         * QueueStatusServer/templates/patch.html: Formatting changes.
3023
3024 2016-08-29  Aakash Jain  <aakash_jain@apple.com>
3025
3026         EWS should indicate which bot processed the patch
3027         https://bugs.webkit.org/show_bug.cgi?id=161222
3028
3029         Reviewed by Alexey Proskuryakov.
3030
3031         * QueueStatusServer/handlers/statusbubble.py:
3032         (StatusBubble._build_bubble): Remove the bot id from bubbles as it is confusing.
3033         bot ids are now displayed in patch status page.
3034
3035 2016-08-29  Alex Christensen  <achristensen@webkit.org>
3036
3037         URLParser should parse about:blank
3038         https://bugs.webkit.org/show_bug.cgi?id=161324
3039
3040         Reviewed by Brady Eidson.
3041
3042         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3043         (TestWebKitAPI::TEST_F):
3044
3045 2016-08-29  JF Bastien  <jfbastien@apple.com>
3046
3047         Bug 161165 - check-webkit-style doesn't understand macros containing `else` or labels
3048         https://bugs.webkit.org/show_bug.cgi?id=161165
3049
3050         Reviewed by Geoffrey Garen.
3051
3052         Fix handling of `else` in a macro. Don't handle labels in a macro:
3053         the checker is already pretty messy in that area and it should be
3054         a rare thing.
3055
3056         * Scripts/webkitpy/style/checkers/cpp.py:
3057         (check_braces):
3058         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
3059         (CppStyleTest.test_else_clause_not_on_same_line_as_else):
3060
3061 2016-08-29  Alex Christensen  <achristensen@webkit.org>
3062
3063         API test URLParserTest.ParserFailures failing ASSERT_NOT_REACHED
3064         https://bugs.webkit.org/show_bug.cgi?id=161317
3065
3066         Reviewed by Brady Eidson.
3067
3068         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3069         (TestWebKitAPI::TEST_F):
3070
3071 2016-08-29  Jer Noble  <jer.noble@apple.com>
3072
3073         Unreviewed gardening; only build MiniBrowser against iOS SDK targets.
3074
3075         * Makefile:
3076
3077 2016-08-29  Jonathan Bedard  <jbedard@apple.com>
3078
3079         Sample Process on notifyDone timed out
3080         https://bugs.webkit.org/show_bug.cgi?id=161063
3081
3082         Reviewed by Darin Adler.
3083
3084         * Scripts/webkitpy/port/driver.py:
3085         (Driver._check_for_driver_timeout): 
3086         * WebKitTestRunner/InjectedBundle/TestRunner.cpp: Call sample_process during notifyDone timeouts.
3087         (WTR::TestRunner::waitToDumpWatchdogTimerFired):
3088         * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm: Log pid and name for testing harness.
3089
3090 2016-08-29  Jonathan Bedard  <jbedard@apple.com>
3091
3092         Check-webkit-style does not work with Objective-C blocks
3093         https://bugs.webkit.org/show_bug.cgi?id=161247
3094
3095         Reviewed by Darin Adler.
3096
3097         * Scripts/webkitpy/style/checkers/cpp.py:
3098         (regex_for_lambda_functions): Changed to regex_for_lambdas_and_blocks.
3099         (regex_for_lambdas_and_blocks): Added check for Objective-C blocks.
3100         (check_spacing_for_function_call): Pass file state for lambda check.
3101         (check_spacing): Pass file state for lambda check.
3102         (check_braces): Pass file state for lambda check.
3103         (check_style): Pass file state for lambda check.
3104         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
3105         (CppStyleTest.test_cpp_lambda_functions): Changed from ‘test_lambda_functions’.
3106         (CppStyleTest.test_objective_c_block): Tests Objective-C blocks.
3107         (CppStyleTest.test_lambda_functions): Changed to ‘test_cpp_lambda_functions’.
3108
3109 2016-08-29  Aakash Jain  <aakash_jain@apple.com>
3110
3111         EWS patch status page should indicate bot corresponding to each status message
3112         https://bugs.webkit.org/show_bug.cgi?id=161280
3113
3114         Reviewed by Alexey Proskuryakov.
3115
3116         * QueueStatusServer/templates/patch.html: Added bot_id in the template so that bot id is displayed
3117         for each status message.
3118         * QueueStatusServer/stylesheets/common.css:
3119         (.status-bot): Added corresponding stylesheet class.
3120
3121 2016-08-29  Per Arne Vollan  <pvollan@apple.com>
3122
3123         Attempt to fix Windows build after r205090.
3124
3125         Unreviewed build fix.
3126
3127         * DumpRenderTree/win/DRTDataObject.cpp:
3128         (cfFileNameWFormat):
3129         (cfUrlWFormat):
3130
3131 2016-08-27  Alex Christensen  <achristensen@webkit.org>
3132
3133         URLParser should parse relative URLs
3134         https://bugs.webkit.org/show_bug.cgi?id=161282
3135
3136         Reviewed by Darin Adler.
3137
3138         * TestWebKitAPI/Tests/WTF/StringView.cpp:
3139         (TestWebKitAPI::TEST):
3140         Added some tests for the new operator=.
3141         Test saving iterators, restoring iterators, and even assigning iterators to new CodePoints objects.
3142         Using the same iterator to iterate multiple objects is bad practice, but it's possible and now tested.
3143         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3144         (TestWebKitAPI::checkURL):
3145         (TestWebKitAPI::TEST_F):
3146         (TestWebKitAPI::checkRelativeURL):
3147         (TestWebKitAPI::checkURLDifferences):
3148         (TestWebKitAPI::shouldFail):
3149         Add some relative URL tests.
3150
3151 2016-08-27  Jonathan Bedard  <jbedard@apple.com>
3152
3153         WTR needs an implementation of setAutomaticLinkDetectionEnabled
3154         https://bugs.webkit.org/show_bug.cgi?id=87162
3155
3156         Reviewed by Darin Adler.
3157
3158         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Added setAutomaticLinkDetectionEnabled binding.
3159         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3160         (WTR::InjectedBundle::beginTesting): Set automatic link detection to false by default.
3161         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3162         (WTR::TestRunner::setAutomaticLinkDetectionEnabled): Added setAutomaticLinkDetectionEnabled definition.
3163         * WebKitTestRunner/InjectedBundle/TestRunner.h: Added setAutomaticLinkDetectionEnabled declaration.
3164
3165 2016-08-27  Joseph Pecoraro  <pecoraro@apple.com>
3166
3167         Web Inspector: Make localizedString.js diff and commit friendly (UTF16 -> UTF8)
3168         https://bugs.webkit.org/show_bug.cgi?id=28685
3169         <rdar://problem/16460975>
3170
3171         Reviewed by Darin Adler.
3172
3173         * Scripts/extract-localizable-js-strings:
3174         * Scripts/update-webkit-localizable-strings:
3175         WebInspectorUI localizedStrings.js is now UTF-8. Other clients of
3176         this script still use UTF-16, so keep that the default.
3177
3178 2016-08-27  Alexey Proskuryakov  <ap@apple.com>
3179
3180         REGRESSION (r204052): Popovers on bot watcher's dashboard are broken
3181         https://bugs.webkit.org/show_bug.cgi?id=161254
3182
3183         Reviewed by Darin Adler.
3184
3185         Simplify the CSS. My understanding that the CSS was correct, and the root cause
3186         is tracked in bug 160478.
3187
3188         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Popover.css:
3189
3190 2016-08-27  Simon Fraser  <simon.fraser@apple.com>
3191
3192         Add run-webkit-tests --print-expectations to show expectations for all or a subset of tests
3193         https://bugs.webkit.org/show_bug.cgi?id=161217
3194
3195         Reviewed by Ryosuke Niwa.
3196
3197         "run-webkit-tests --print-expectations" runs the same logic as running the tests, but
3198         dumps out the lists of tests that would be run and skipped, and, for each, the entry
3199         in TestExpectations that determines the expected outcome of the test.
3200
3201         This is an improved version of webkit-patch print-expectations.
3202
3203         See bug for sample output.
3204
3205         * Scripts/webkitpy/layout_tests/controllers/manager.py:
3206         (Manager._print_expectations_for_subset): Print out the list of tests and expected
3207         outcome for some subset of tests.
3208         (Manager.print_expectations): Do the same splitting by device class that running tests
3209         does, and for each subset of tests, call _print_expectations_for_subset.
3210         * Scripts/webkitpy/layout_tests/models/test_expectations.py:
3211         (TestExpectationParser.expectation_for_skipped_test): Set the flag
3212         expectation_line.not_applicable_to_current_platform
3213         (TestExpectationLine.__init__): Init not_applicable_to_current_platform to False
3214         (TestExpectationLine.expected_behavior): line.expectation is ['PASS'] by default,
3215         even for skipped tests. This function returns a list relevant for display, taking the skipped
3216         modifier into account.
3217         (TestExpectationLine.create_passing_expectation): expectations is normally a list, not a set.
3218         (TestExpectations.readable_filename_and_line_number): Return something printable for 
3219         lines with and without filenames
3220         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
3221         (main): Handle options.print_expectations
3222         (parse_args): Add support for --print-expectations
3223         (_print_expectations):
3224         * Scripts/webkitpy/port/ios.py:
3225         (IOSSimulatorPort.default_child_processes): Make this a debug log.
3226
3227 2016-08-26  Dan Bernstein  <mitz@apple.com>
3228
3229         Keep trying to fix the build after r205057.
3230
3231         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
3232
3233 2016-08-26  Dan Bernstein  <mitz@apple.com>
3234
3235         Keep trying to fix the build after r205057.
3236
3237         * MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m: Don’t try to import nonexistent
3238           config.h. This file is only meant to be built with Xcode anyway.
3239         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard: Make this compile
3240           with Xcode 7.3 and deploy to iOS 9.0.
3241         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard: Ditto.
3242         * MobileMiniBrowser/MobileMiniBrowser/TabViewController.m: Don’t try to import config.h.
3243         * MobileMiniBrowser/MobileMiniBrowser/WebViewController.m: Ditto.
3244
3245 2016-08-26  Dan Bernstein  <mitz@apple.com>
3246
3247         Start trying to fix the build after r205057.
3248
3249         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
3250
3251 2016-08-26  Alexey Proskuryakov  <ap@apple.com>
3252
3253         Remove Yosemite Leaks from the flakiness dashboard
3254         https://bugs.webkit.org/show_bug.cgi?id=161253
3255
3256         Reviewed by Anders Carlsson.
3257
3258         * TestResultServer/static-dashboards/builders.jsonp:
3259
3260 2016-08-26  Sam Weinig  <sam@webkit.org>
3261
3262         Remove support for ENABLE_LEGACY_WEB_AUDIO
3263         https://bugs.webkit.org/show_bug.cgi?id=161262
3264
3265         Reviewed by Anders Carlsson.
3266
3267         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3268
3269 2016-08-26  Jer Noble  <jer.noble@apple.com>
3270
3271         Add a test harness for running UI tests on the iOS Simulator
3272         https://bugs.webkit.org/show_bug.cgi?id=161265
3273
3274         Reviewed by Simon Fraser.
3275
3276         Add a new iOS Simulator application which uses WKWebView to implement a basic browser, and which
3277         can serve as a test harness for WebKit UI tests.
3278
3279         Also add a basic media playback test which verifies that a <video> element will begin playing in
3280         fullscreen on an iPhone device, but will play inline on an iPad device.
3281
3282         * Makefile: Add MobileMiniBrowser as a Module for iOS builds.
3283         * MobileMiniBrowser/Configurations/Base.xcconfig: Added.
3284         * MobileMiniBrowser/Configurations/DebugRelease.xcconfig: Added.
3285         * MobileMiniBrowser/Configurations/MobileMiniBrowser.xcconfig: Added.
3286         * MobileMiniBrowser/Makefile: Added.
3287         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj: Added.
3288         * MobileMiniBrowser/MobileMiniBrowser/AppDelegate.h: Added.
3289         * MobileMiniBrowser/MobileMiniBrowser/AppDelegate.m: Added.
3290         (-[AppDelegate application:didFinishLaunchingWithOptions:]):
3291         (-[AppDelegate applicationWillResignActive:]):
3292         (-[AppDelegate applicationDidEnterBackground:]):
3293         (-[AppDelegate applicationWillEnterForeground:]):
3294         (-[AppDelegate applicationDidBecomeActive:]):
3295         (-[AppDelegate applicationWillTerminate:]):
3296         * MobileMiniBrowser/MobileMiniBrowser/Assets.xcassets/AppIcon.appiconset/Contents.json: Added.
3297         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/LaunchScreen.storyboard: Added.
3298         * MobileMiniBrowser/MobileMiniBrowser/Base.lproj/Main.storyboard: Added.
3299         * MobileMiniBrowser/MobileMiniBrowser/Info.plist: Added.
3300         * MobileMiniBrowser/MobileMiniBrowser/TabViewController.h: Added.
3301         * MobileMiniBrowser/MobileMiniBrowser/TabViewController.m: Added.
3302         (-[TabViewController dealloc]):
3303         (-[TabViewController viewDidLoad]):
3304         (-[TabViewController observeValueForKeyPath:ofObject:change:context:]):
3305         (-[TabViewController tableView:cellForRowAtIndexPath:]):
3306         (-[TabViewController tableView:numberOfRowsInSection:]):
3307         (-[TabViewController numberOfSectionsInTableView:]):
3308         (-[TabViewController tableView:canEditRowAtIndexPath:]):
3309         (-[TabViewController tableView:canMoveRowAtIndexPath:]):
3310         (-[TabViewController tableView:commitEditingStyle:forRowAtIndexPath:]):
3311         (-[TabViewController tableView:didSelectRowAtIndexPath:]):
3312         * MobileMiniBrowser/MobileMiniBrowser/WebViewController.h: Added.
3313         * MobileMiniBrowser/MobileMiniBrowser/WebViewController.m: Added.
3314         (-[WebViewController viewDidLoad]):
3315         (-[WebViewController didReceiveMemoryWarning]):
3316         (-[WebViewController reload:]):
3317         (-[WebViewController goBack:]):
3318         (-[WebViewController goForward:]):
3319         (-[WebViewController urlFieldEditingBegan:]):
3320         (-[WebViewController navigateTo:]):
3321         (-[WebViewController showTabs:]):
3322         (-[WebViewController selectWebViewAtIndex:]):
3323         (-[WebViewController removeWebViewAtIndex:]):
3324         (-[WebViewController addWebView]):
3325         (-[WebViewController createWebView]):
3326         (-[WebViewController removeWebView:]):
3327         (-[WebViewController setCurrentWebView:]):
3328         (-[WebViewController webView:didFailNavigation:withError:]):
3329         (-[WebViewController observeValueForKeyPath:ofObject:change:context:]):
3330         * MobileMiniBrowser/MobileMiniBrowser/main.m: Added.
3331         (main):
3332         * MobileMiniBrowser/MobileMiniBrowserUITests/Info.plist: Added.
3333         * MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m: Added.
3334         (-[MobileMiniBrowserUITests setUp]):
3335         (-[MobileMiniBrowserUITests tearDown]):
3336         (-[MobileMiniBrowserUITests testBasicVideoPlayback]):
3337
3338 2016-08-26  Aakash Jain  <aakash_jain@apple.com>
3339
3340         webkit-queues queue-status page should should list more recent statuses
3341         https://bugs.webkit.org/show_bug.cgi?id=161220
3342
3343         Reviewed by Daniel Bates.
3344
3345         * QueueStatusServer/handlers/queuestatus.py:
3346         (QueueStatus._fetch_statuses): Increase the number of recent statuses from 15 to 50.
3347
3348 2016-08-26  Dan Bernstein  <mitz@apple.com>
3349
3350         [Cocoa] Infinite recursion calling -charValue on a WKNSNumber
3351         https://bugs.webkit.org/show_bug.cgi?id=161258
3352
3353         Reviewed by Anders Carlsson.
3354
3355         * TestWebKitAPI/Tests/WebKit2Cocoa/WKNSNumber.mm:
3356         (TestWebKitAPI::TEST):
3357
3358 2016-08-26  Csaba Osztrogonác  <ossy@webkit.org>
3359
3360         Fix the ENABLE(WEBASSEMBLY) build on Linux
3361         https://bugs.webkit.org/show_bug.cgi?id=161197
3362
3363         Reviewed by Mark Lam.
3364
3365         * Scripts/build-jsc:
3366
3367 2016-08-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3368
3369         [GTK] run-gtk-tests should use the driver environment for checking the accessibility bus
3370         https://bugs.webkit.org/show_bug.cgi?id=161149
3371
3372         Reviewed by Carlos Garcia Campos.
3373
3374         Add a new function for waiting for the accesibility bus. It sets
3375         the test environment variables before starting the GLib mainloop.
3376         And restores the previous environment after it has finished.
3377         It also adds a timeout (5 seconds) to abort in case it has not
3378         been able to detect the accesibility bus before the timeout expires.
3379
3380         * Scripts/run-gtk-tests:
3381         (TestRunner):
3382         (TestRunner._wait_for_accessibility_bus):
3383         (TestRunner._wait_for_accessibility_bus.timeout_accessibility_bus):
3384         (TestRunner._start_accessibility_daemons):
3385         (TestRunner._get_tests_from_google_test_suite): Run this command also with the driver test environment.
3386
3387 2016-08-26  Per Arne Vollan  <pvollan@apple.com>
3388
3389         [Win] Warning fix.
3390         https://bugs.webkit.org/show_bug.cgi?id=161236
3391
3392         Reviewed by Brent Fulgham.
3393
3394         The & operator in the Test struct has no body.
3395
3396         * TestWebKitAPI/Tests/WTF/Vector.cpp:
3397         (TestWebKitAPI::TEST):
3398
3399 2016-08-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3400
3401         [GTK] run-gtk-tests should use webkitpy.port.gtk and webkitpy.port.xvfbdriver
3402         https://bugs.webkit.org/show_bug.cgi?id=160736
3403
3404         Reviewed by Carlos Garcia Campos.
3405
3406         This plugs run-gtk-tests into the webkitpy testing infrastructure.
3407         As a benefit of this, run-gtk-tests now can be executed over any of
3408         the existing supported gtk test display servers (xvfb, weston-over-xvfb,
3409         or native xorg). A new command line switch --wayland is added for
3410         run-gtk-tests.
3411
3412         * Scripts/run-gtk-tests:
3413         (TestRunner.__init__): Remove the --display command line switch, its not longer useful.
3414         Add a --wayland command line switch.
3415         (TestRunner._start_accessibility_daemons):
3416         (TestRunner):
3417         (TestRunner.__init__):
3418         (TestRunner._run_xvfb): Deleted.
3419         (TestRunner._create_driver):
3420         (TestRunner._setup_testing_environment): Delete the environment variable definitions that
3421         are now done by driver._setup_environ_for_test().
3422         (TestRunner._tear_down_testing_environment):
3423         * Scripts/webkitpy/port/driver.py:
3424         (Driver.__init__): Define self._server_name in the constructor of the base class.
3425         It is used by several functions, so it makes sense to store once the value here.
3426         (Driver._setup_environ_for_test): Factorize setting the environment for a given test.
3427         (Driver._start): Get the environment from self._setup_environ_for_test()
3428         * Scripts/webkitpy/port/driver_unittest.py:
3429         (DriverTest):
3430         (DriverTest.test_setup_environ_for_test): Add unittest for driver._setup_environ_for_test()
3431         * Scripts/webkitpy/port/gtk.py: Move the inspection of the env var USE_NATIVE_XDISPLAY to the constructor.
3432         (GtkPort.__init__):
3433         (GtkPort._driver_class):
3434         * Scripts/webkitpy/port/westondriver.py: Define and use self._setup_environ_for_test()
3435         (WestonDriver._setup_environ_for_test):
3436         (WestonDriver._start):
3437         * Scripts/webkitpy/port/xorgdriver.py: Define and use self._setup_environ_for_test()
3438         (XorgDriver._setup_environ_for_test):
3439         (XorgDriver._start):
3440         * Scripts/webkitpy/port/xvfbdriver.py: Define and use self._setup_environ_for_test()
3441         (XvfbDriver._setup_environ_for_test):
3442         (XvfbDriver._start):
3443
3444 2016-08-26  Csaba Osztrogonác  <ossy@webkit.org>
3445
3446         [EFL][GTK] REGRESSION(204877): Fix the clean build
3447         https://bugs.webkit.org/show_bug.cgi?id=161240
3448
3449         Reviewed by Carlos Garcia Campos.
3450
3451         * WebKitTestRunner/PlatformEfl.cmake:
3452         * WebKitTestRunner/PlatformGTK.cmake:
3453
3454 2016-08-26  Aakash Jain  <aakash_jain@apple.com>
3455
3456         EWS should indicate which bot processed the patch
3457         https://bugs.webkit.org/show_bug.cgi?id=161222
3458
3459         Reviewed by Daniel Bates.
3460
3461         * QueueStatusServer/handlers/statusbubble.py:
3462         (StatusBubble._build_bubble): Display the bot id in status bubble. Also removed "Started processing" message since
3463         after bug fix of 161223, bots send the "Started processing patch" message and it would be displayed in Recent messages.
3464         Also added "Started processing patch" message to progress_statuses.
3465         I might consider displaying bot id in other statuses as well later on.
3466
3467 2016-08-26  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3468
3469         [EFL] Change homepage url to www.ewebkit.org on MiniBrowser
3470         https://bugs.webkit.org/show_bug.cgi?id=161184
3471
3472         Reviewed by Carlos Garcia Campos.
3473
3474         * MiniBrowser/efl/main.c: Set www.ewebkit.org.
3475
3476 2016-08-25  Aakash Jain  <aakash_jain@apple.com>
3477
3478         ews queues should update status server when they start processing patch
3479         https://bugs.webkit.org/show_bug.cgi?id=161223
3480
3481         Reviewed by Daniel Bates.
3482
3483         * Scripts/webkitpy/tool/commands/queues.py:
3484         (AbstractReviewQueue.process_work_item): Update status server that the bot started processing the patch.
3485         * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
3486         (EarlyWarningSystemTest._default_expected_logs): Updated the unit test accordingly.
3487         * Scripts/webkitpy/tool/commands/queues_unittest.py:
3488         (StyleQueueTest.test_style_queue_with_style_exception): Same.
3489         (test_style_queue_with_watch_list_exception): Same.
3490         (test_non_valid_patch): Same.
3491
3492 2016-08-25  Alex Christensen  <achristensen@webkit.org>
3493
3494         CMake build fix.
3495
3496         * DumpRenderTree/PlatformMac.cmake:
3497
3498 2016-08-25  Alex Christensen  <achristensen@webkit.org>
3499
3500         Fix URLParserTest with GuardMalloc
3501         https://bugs.webkit.org/show_bug.cgi?id=161214
3502         rdar://problem/28014390
3503
3504         Reviewed by Tim Horton.
3505
3506         The CString returned by String::utf8 was going out of scope before we were doing a string comparison on its data.
3507         This just does the comparison of the CStrings instead to keep them in scope during the comparison.
3508
3509         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3510         (TestWebKitAPI::eq):
3511         (TestWebKitAPI::checkURL):
3512         (TestWebKitAPI::checkURLDifferences):
3513         (TestWebKitAPI::s): Deleted.
3514
3515 2016-08-25  Wenson Hsieh  <wenson_hsieh@apple.com>
3516
3517         Dragging against the end of the inline media scrubber causes the media scrubber to hide
3518         https://bugs.webkit.org/show_bug.cgi?id=161207
3519
3520         Reviewed by Eric Carlson.
3521
3522         Tweaks an existing WebKit API test covering this behavior change. After some discussion, rather than hide media
3523         controls in this case, we should actually continue showing them. This is because seeking due to user gestures
3524         similar to "scrubbing" are indistinguishable from gestures that immediately seek to the end.
3525
3526         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3527         (TestWebKitAPI::TEST):
3528
3529 2016-08-25  Daniel Bates  <dabates@apple.com>
3530
3531         Watch more things.
3532
3533         * Scripts/webkitpy/common/config/watchlist:
3534
3535 2016-08-25  Daniel Bates  <dabates@apple.com>
3536
3537         Fix test failure on GTK Linux bots after <http://trac.webkit.org/changeset/204695>
3538         (https://bugs.webkit.org/show_bug.cgi?id=148437)
3539
3540         Remove use of module File::Slurp as it is not part of the standard Perl 5 distribution
3541         and is not installed on the GTK Linux bots.
3542
3543         * Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:
3544         (writeFileWithContent): Added.
3545
3546 2016-08-25  Per Arne Vollan  <pvollan@apple.com>
3547
3548         [Win] run-api-tests is failing.
3549         https://bugs.webkit.org/show_bug.cgi?id=161140
3550
3551         Reviewed by Brent Fulgham.
3552
3553         Since the move constructor is called 3 more times on Windows, we will have 3 more destructor calls.
3554
3555         * TestWebKitAPI/Tests/WTF/CrossThreadTask.cpp:
3556         (TestWebKitAPI::TEST):
3557
3558 2016-08-24  Per Arne Vollan  <pvollan@apple.com>
3559
3560         [Win] run-api-tests is failing.
3561         https://bugs.webkit.org/show_bug.cgi?id=161140
3562
3563         Reviewed by Brent Fulgham.
3564
3565         The number of times the move constructor is called is different on Windows in this test. This seems
3566         to be caused by differences in MSVC's implementation of lambdas or std functions like std::make_tuple.
3567
3568         * TestWebKitAPI/Tests/WTF/CrossThreadTask.cpp:
3569         (TestWebKitAPI::TEST):
3570
3571 2016-08-24  Simon Fraser  <simon.fraser@apple.com>
3572
3573         Fix iOS DRT build.
3574
3575         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3576         (WTR::UIScriptController::zoomToScale):
3577
3578 2016-08-24  Simon Fraser  <simon.fraser@apple.com>
3579
3580         [iOS DRT] Hook up uiController.zoomToScale() for DRT
3581         https://bugs.webkit.org/show_bug.cgi?id=161173
3582
3583         Reviewed by Tim Horton.
3584         
3585         Make a UIWebScrollView subclass, DumpRenderTreeWebScrollView, which has an internal delegate to get
3586         UIScrollView delegate callbacks. Store the zoomToScaleCompletionHandler on it.
3587         
3588         UIScriptController::zoomToScale() has to bounce the zoom to the main thread (no poking UIKit from
3589         the WebThread!), but queue up the callback first.
3590
3591         * DumpRenderTree/ios/DumpRenderTreeBrowserView.h:
3592         * DumpRenderTree/ios/DumpRenderTreeBrowserView.mm:
3593         (-[DumpRenderTreeWebScrollView initWithFrame:]):
3594         (-[DumpRenderTreeWebScrollView dealloc]):
3595         (-[DumpRenderTreeWebScrollView zoomToScale:animated:completionHandler:]):
3596         (-[DumpRenderTreeWebScrollView completedZoomToScale]):
3597         (-[DumpRenderTreeWebScrollViewDelegate initWithScrollView:]):
3598         (-[DumpRenderTreeWebScrollViewDelegate viewForZoomingInScrollView:]): All UIScrollView delegates need to implement this.
3599         (-[DumpRenderTreeWebScrollViewDelegate scrollViewDidEndZooming:withView:atScale:]):
3600         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3601         (WTR::UIScriptController::zoomToScale):
3602         * DumpRenderTree/mac/DumpRenderTree.mm:
3603         (createWebViewAndOffscreenWindow):
3604         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3605         (WTR::UIScriptController::context):
3606
3607 2016-08-24  Ryan Haddad  <ryanhaddad@apple.com>
3608
3609         Attempt to fix Windows build after r204918.
3610
3611         Unreviewed build fix.
3612
3613         * DumpRenderTree/win/ResourceLoadDelegate.cpp:
3614         (ResourceLoadDelegate::willSendRequest):
3615
3616 2016-08-24  Simon Fraser  <simon.fraser@apple.com>
3617
3618         [iOS DRT] Get basic viewport tests working in DRT
3619         https://bugs.webkit.org/show_bug.cgi?id=161160
3620
3621         Reviewed by Tim Horton.
3622         
3623         Hook up enough of UIScriptController in iOS DRT to be able to read viewport
3624         scale, and get the contentVisibleRect.
3625         
3626         Requires exposing a bit of UIWebBrowserView SPI from UIKit, which in turn
3627         requires typing the gWebBrowserView as a DumpRenderTreeBrowserView * everywhere.
3628         
3629         One test has different results between DRT and WTR, but DRT behavior seems to differ
3630         from UIWebView here, so just give it a WK1-specific result.
3631
3632         * DumpRenderTree/ios/DumpRenderTreeBrowserView.h:
3633         * DumpRenderTree/ios/DumpRenderTreeBrowserView.mm:
3634         (-[DumpRenderTreeBrowserView documentVisibleRect]):
3635         * DumpRenderTree/ios/PixelDumpSupportIOS.mm:
3636         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3637         (WTR::UIScriptController::zoomScale):
3638         (WTR::UIScriptController::minimumZoomScale):
3639         (WTR::UIScriptController::maximumZoomScale):
3640         (WTR::UIScriptController::contentVisibleRect):
3641         * DumpRenderTree/mac/DumpRenderTree.mm:
3642         (createWebViewAndOffscreenWindow):
3643         * DumpRenderTree/mac/DumpRenderTreeMac.h:
3644
3645 2016-08-24  Simon Fraser  <simon.fraser@apple.com>
3646
3647         Minor project rearrangement.
3648
3649         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3650
3651 2016-08-24  Simon Fraser  <simon.fraser@apple.com>
3652
3653         [iOS DRT] Make iOS DRT use the same window size as WebKitTestRunner for flexible viewport tests
3654         https://bugs.webkit.org/show_bug.cgi?id=161124
3655
3656         Reviewed by Daniel Bates.
3657         
3658         Use the main UIScreen's bounds for the size of the window in flexible viewport mode,
3659         and remove the 'phoneBrowserAddressBarOffset' hack, so that it matches WTR.
3660         
3661         Remove some unnecessary zero initializations of static variables.
3662         
3663         Change _setVisibleSize to use the window size, which should not be a behavior change
3664         because this it just used for text autosizing, which is disabled by default,
3665         and only the width is consulted.
3666
3667         * DumpRenderTree/mac/DumpRenderTree.mm:
3668         (adjustWebDocumentForFlexibleViewport):
3669         (adjustWebDocumentForSt