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