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