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