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