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