1930ecdbb0794d8d1c1a5b6464806e92f29bdb60
[WebKit.git] / Tools / ChangeLog
1 2016-10-25  Antoine Quint  <graouts@apple.com>
2
3         [Modern Media Controls] Media Controller: skip back support
4         https://bugs.webkit.org/show_bug.cgi?id=163725
5         <rdar://problem/27989480>
6
7         Reviewed by Dean Jackson.
8
9         * Scripts/webkitpy/layout_tests/servers/aliases.json: Adding a new alias such that we may
10         access the modern-media-controls source files through the web server.
11
12 2016-10-19  Jer Noble  <jer.noble@apple.com>
13
14         Add WKWebView fullscreen delegate SPI
15         https://bugs.webkit.org/show_bug.cgi?id=163674
16
17         Reviewed by Anders Carlsson.
18
19         Add a new API test which verifies that the fullscreen delegate receives notifications.
20
21         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
22         (-[FullscreenDelegateMessageHandler userContentController:didReceiveScriptMessage:]):
23         (-[FullscreenDelegateMessageHandler _webViewWillEnterFullscreen:]):
24         (-[FullscreenDelegateMessageHandler _webViewDidEnterFullscreen:]):
25         (-[FullscreenDelegateMessageHandler _webViewWillExitFullscreen:]):
26         (-[FullscreenDelegateMessageHandler _webViewDidExitFullscreen:]):
27         (TestWebKitAPI::TEST):
28
29 2016-10-24  Alex Christensen  <achristensen@webkit.org>
30
31         URLParser should match old URL::parse with %2E in path
32         https://bugs.webkit.org/show_bug.cgi?id=163929
33
34         Reviewed by Alexey Proskuryakov.
35
36         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
37         (TestWebKitAPI::TEST_F):
38
39 2016-10-24  Ryan Haddad  <ryanhaddad@apple.com>
40
41         Unreviewed, rolling out r207795.
42
43         Introduced API test failures on iOS and macOS.
44
45         Reverted changeset:
46
47         "URLParser should match old URL::parse with %2E in path"
48         https://bugs.webkit.org/show_bug.cgi?id=163929
49         http://trac.webkit.org/changeset/207795
50
51 2016-10-24  Alex Christensen  <achristensen@webkit.org>
52
53         URLParser should match old URL::parse with %2E in path
54         https://bugs.webkit.org/show_bug.cgi?id=163929
55
56         Reviewed by Alexey Proskuryakov.
57
58         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
59         (TestWebKitAPI::TEST_F):
60
61 2016-10-21  Alex Christensen  <achristensen@webkit.org>
62
63         URL::port should return Optional<uint16_t>
64         https://bugs.webkit.org/show_bug.cgi?id=163806
65
66         Reviewed by Darin Adler.
67
68         * TestWebKitAPI/Tests/WebCore/URL.cpp:
69         (TestWebKitAPI::TEST_F):
70         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
71         (TestWebKitAPI::checkURL):
72         (TestWebKitAPI::checkRelativeURL):
73         (TestWebKitAPI::checkURLDifferences):
74         (TestWebKitAPI::checkRelativeURLDifferences):
75         (TestWebKitAPI::TEST_F):
76
77 2016-10-24  Youenn Fablet  <youenn@apple.com>
78
79         Activate WEB_RTC compilation flags for Mac bots
80         https://bugs.webkit.org/show_bug.cgi?id=163886
81
82         Reviewed by Eric Carlson.
83
84         * Scripts/webkitperl/FeatureList.pm:
85         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
86
87 2016-10-24  Wenson Hsieh  <wenson_hsieh@apple.com>
88
89         Unreviewed, add myself as a WebKit reviewer
90
91         * Scripts/webkitpy/common/config/contributors.json:
92
93 2016-10-22  Dan Bernstein  <mitz@apple.com>
94
95         Improve MiniBrowser window titles for URLs without paths and with no title
96         <https://webkit.org/b/163843>
97
98         Reviewed by Darin Adler.
99
100         * MiniBrowser/mac/WK1BrowserWindowController.m:
101         (-[WK1BrowserWindowController fetch:]): While we’re here, deploy
102           +[NSURL _webkit_URLWithUserTypedString:] here to match the WK2BrowserWindowController
103           version of this method.
104         (-[WK1BrowserWindowController updateTitle:]): If the URL doesn’t have a lastPathComponent,
105           use the entire URL.
106         (-[WK1BrowserWindowController webView:didCommitLoadForFrame:]): Also while we’re here,
107           deploy +[NSURL _web_userVisibleString] here to match the WK2BrowserWindowController
108           behavior.
109
110         * MiniBrowser/mac/WK2BrowserWindowController.m:
111         (-[WK2BrowserWindowController updateTitle:]): If the URL doesn’t have a lastPathComponent,
112           use the entire URL.
113
114 2016-10-21  David Kilzer  <ddkilzer@apple.com>
115
116         Bug 163762: IntSize::area() should used checked arithmetic
117         <https://webkit.org/b/163762>
118
119         Reviewed by Darin Adler.
120
121         * TestWebKitAPI/Tests/WebCore/IntRect.cpp:
122         (TestWebKitAPI::TEST): Call unsafeGet().
123         * TestWebKitAPI/Tests/WebCore/IntSize.cpp:
124         (TestWebKitAPI::TEST): Ditto.
125
126 2016-10-21  James Craig  <jcraig@apple.com>
127
128         Unreviewed: Added Aaron Chu <aaron_chu@apple.com> to contributors list.
129
130         * Scripts/webkitpy/common/config/contributors.json:
131
132 2016-10-21  Commit Queue  <commit-queue@webkit.org>
133
134         Unreviewed, rolling out r207582.
135         https://bugs.webkit.org/show_bug.cgi?id=163819
136
137         Not quite ready rdar://problem/28897179 (Requested by
138         alexchristensen on #webkit).
139
140         Reverted changeset:
141
142         "Re-enable URLParser for non-Safari Cocoa apps after r207321"
143         https://bugs.webkit.org/show_bug.cgi?id=163690
144         http://trac.webkit.org/changeset/207582
145
146 2016-10-21  Jonathan Bedard  <jbedard@apple.com>
147
148         WebKitTestRunnerApp packages .idl file
149         https://bugs.webkit.org/show_bug.cgi?id=163788
150
151         Reviewed by Darin Adler.
152
153         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Removed .idl file from app package, removed bad reference to app icon.
154
155 2016-10-21  Csaba Osztrogonác  <ossy@webkit.org>
156
157         [EFL] REGRESSION(r207616): Build is broken due to missing libgeoclue-dev package
158         https://bugs.webkit.org/show_bug.cgi?id=163733
159
160         Reviewed by Gyuyoung Kim.
161
162         * efl/install-dependencies: Added geoclue-2.0 package.
163
164 2016-10-21  Commit Queue  <commit-queue@webkit.org>
165
166         Unreviewed, rolling out r207609.
167         https://bugs.webkit.org/show_bug.cgi?id=163776
168
169         As glib bump was rollout, we need to rollout this too
170         (Requested by rego on #webkit).
171
172         Reverted changeset:
173
174         "[GTK] Cannot build GTK+ with CUPS 2.* versions"
175         https://bugs.webkit.org/show_bug.cgi?id=163591
176         http://trac.webkit.org/changeset/207609
177
178 2016-10-20  Chris Dumez  <cdumez@apple.com>
179
180         "Download Linked File" context menu action should use 'download' attribute as suggested filename
181         https://bugs.webkit.org/show_bug.cgi?id=163742
182         <rdar://problem/28840734>
183
184         Reviewed by Darin Adler.
185
186         Add API test coverage.
187
188         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
189         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html: Added.
190         * TestWebKitAPI/Tests/WebKit2/mac/ContextMenuDownload.mm: Added.
191         (TestWebKitAPI::didFinishLoadForFrame):
192         (TestWebKitAPI::getContextMenuFromProposedMenu):
193         (TestWebKitAPI::decideDestinationWithSuggestedFilename):
194         (TestWebKitAPI::TEST):
195
196 2016-10-20  Commit Queue  <commit-queue@webkit.org>
197
198         Unreviewed, rolling out r207589.
199         https://bugs.webkit.org/show_bug.cgi?id=163765
200
201         Introduced 17 new layout test failures (Requested by
202         mcatanzaro on #webkit).
203
204         Reverted changeset:
205
206         "[GTK] Bump glib to 2.50.1"
207         https://bugs.webkit.org/show_bug.cgi?id=163689
208         http://trac.webkit.org/changeset/207589
209
210 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
211
212         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
213         https://bugs.webkit.org/show_bug.cgi?id=163374
214
215         Reviewed by Darin Adler.
216
217         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
218
219 2016-10-20  Sam Weinig  <sam@webkit.org>
220
221         Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
222         https://bugs.webkit.org/show_bug.cgi?id=163713
223
224         Reviewed by Dan Bernstein.
225
226         * TestWebKitAPI/Tests/WTF/Variant.cpp:
227         Add test for WTF::switchOn()
228
229 2016-10-20  Fujii Hironori  <Hironori.Fujii@sony.com>
230
231         [CMake] CMake does not support the dep files for implicit dependency
232         https://bugs.webkit.org/show_bug.cgi?id=161433
233
234         Reviewed by Brent Fulgham.
235
236         Created a Perl script to generate all IDL bindings for CMake.
237         This script can regenerate outdated bindings by based on the
238         supplemental dependency and dep files created by
239         '--write-dependencies' switch of generate-bindings.pl.
240
241         add_custom_target is used to invoke the script instead of
242         add_custom_command because Ninja deletes all output files before
243         executing the command in case of add_custom_command.
244
245         USES_TERMINAL option of add_custom_target has two effects:
246         1) Not buffering output of the command
247         2) Invoking the command in the special Ninja pool which inhibits parallel build
248         One needs to use CMake 3.2 or later to enable this feature.
249
250         * DumpRenderTree/CMakeLists.txt: Specified a target name for
251         GENERATE_BINDINGS. Added dependency for the target.
252         * WebKitTestRunner/CMakeLists.txt: Ditto.
253
254 2016-10-20  Manuel Rego Casasnovas  <rego@igalia.com>
255
256         [GTK] Cannot build GTK+ with CUPS 2.* versions
257         https://bugs.webkit.org/show_bug.cgi?id=163591
258
259         Reviewed by Michael Catanzaro.
260
261         GTK+ is wrongly checking about the available CUPS version,
262         so if you have CUPS 2.* the configure step fails.
263
264         This has been already fixed upstream and included in 2.30 series:
265         https://git.gnome.org/browse/gtk+/commit/?id=631f6b536485829a0bd00532f5826ad302b4951b
266
267         Added patch on JHBuild so we can now build GTK+ with CUPS 2.*.
268
269         * gtk/jhbuild.modules: Applied patch and avoid using "configure" script directly
270         as the patch modifies "configure.ac".
271         * gtk/patches/configure-fix-detecting-CUPS-2.x.patch: Added.
272
273 2016-10-20  Manuel Rego Casasnovas  <rego@igalia.com>
274
275         [GTK] Bump glib to 2.50.1
276         https://bugs.webkit.org/show_bug.cgi?id=163689
277
278         Reviewed by Michael Catanzaro.
279
280         This is need in order to fix GTK+ build with CUPS 2.* (bug #163591).
281
282         * gtk/jhbuild.modules: Bump glib version. Pass --disable-libmount to build properly.
283         Also we don't need the patches anymore.
284         * gtk/patches/gdate-suppress-string-format-literal-warning.patch: Removed.
285         * gtk/patches/glib-warning-fix.patch: Removed.
286
287 2016-10-19  Alex Christensen  <achristensen@webkit.org>
288
289         Re-enable URLParser for non-Safari Cocoa apps after r207321
290         https://bugs.webkit.org/show_bug.cgi?id=163690
291
292         Reviewed by Darin Adler.
293
294         * DumpRenderTree/mac/DumpRenderTree.mm:
295         (DumpRenderTreeMain):
296         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
297         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
298         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
299         (TestWebKitAPI::TEST):
300         * WebKitTestRunner/TestController.cpp:
301         (WTR::TestController::TestController):
302
303 2016-10-19  Ryan Haddad  <ryanhaddad@apple.com>
304
305         Unreviewed, rolling out r207557.
306
307         This change caused animations/font-variations tests to time
308         out on pre-Sierra Macs.
309
310         Reverted changeset:
311
312         "[macOS] [iOS] Disable variation fonts on macOS El Capitan and
313         iOS 9"
314         https://bugs.webkit.org/show_bug.cgi?id=163374
315         http://trac.webkit.org/changeset/207557
316
317 2016-10-19  Andy Estes  <aestes@apple.com>
318
319         Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type
320         https://bugs.webkit.org/show_bug.cgi?id=163476
321         <rdar://problem/26941395>
322
323         Reviewed by Andreas Kling.
324
325         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
326         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Added.
327         (TEST): Added an API test that passes a nil MIMEType to
328         -[WKWebView loadData:MIMEType:characterEncodingName:baseURL:].
329
330 2016-10-19  Jer Noble  <jer.noble@apple.com>
331
332         Modify testrunner to mute audio during tests
333         https://bugs.webkit.org/show_bug.cgi?id=162582
334
335         Reviewed by Alexey Proskuryakov.
336
337         * DumpRenderTree/mac/DumpRenderTree.mm:
338         (createWebViewAndOffscreenWindow):
339         * WebKitTestRunner/TestController.cpp:
340         (WTR::TestController::resetStateToConsistentValues):
341
342 2016-10-19  Joseph Pecoraro  <pecoraro@apple.com>
343
344         check-webkit-style: fix false-positive warnings about using #pragma once header guard
345         https://bugs.webkit.org/show_bug.cgi?id=163575
346
347         Reviewed by Brady Eidson.
348
349         There were some false positive warnings about header guards
350         for ObjC headers that don't need guards. This changes the
351         style checker to no longer warn if there is no #pragma once.
352         It only warns if there are #ifndef that should be #pragma once.
353
354         * Scripts/webkitpy/style/checkers/cpp.py:
355         (check_for_header_guard):
356         Change when we output an error.
357
358         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
359         (CppStyleTest.test_build_header_guard):
360         Update tests.
361
362 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
363
364         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
365         https://bugs.webkit.org/show_bug.cgi?id=163374
366
367         Reviewed by Darin Adler.
368
369         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
370
371 2016-10-18  Philippe Normand  <pnormand@igalia.com>
372
373         WebRTC: [GTK] Update jhbuild environment for OpenWebRTC
374         https://bugs.webkit.org/show_bug.cgi?id=163330
375
376         Reviewed by Michael Catanzaro.
377
378         Bring back the openwebrtc JHBuild moduleset in the time being. It
379         should be removed after the bump to GStreamer 1.10 is complete and
380         the libnice patches have been upstreamed. The GStreamer git
381         snapshots used in this patch are the ones configured in Ericsson's
382         GStreamer Cerbero fork.
383
384         * gtk/openwebrtc.modules: Added.
385         * gtk/patches/libnice-0001-TURN-allow-REALM-to-be-empty.patch: Added.
386         * gtk/patches/libnice-0001-agent-Remove-unnecessary-NULL-check.patch: Added.
387         * gtk/patches/libnice-0001-nicesrc-spin-the-agent-mainloop-in-a-separate-thread.patch: Added.
388         * gtk/patches/libnice-0002-Do-not-update-a-remote-candidate-s-type.patch: Added.
389         * gtk/patches/libnice-0002-TURN-handle-437-Allocation-Mismatch-responses.patch: Added.
390         * gtk/patches/libnice-0003-Do-not-compare-scope-for-IPv6-address-when-scope-is-.patch: Added.
391         * gtk/patches/libnice-0004-Removing-no-op-assignment.patch: Added.
392
393 2016-10-18  Sam Weinig  <sam@webkit.org>
394
395         Replace std::experimental::variant with WTF::Variant (or similar)
396         https://bugs.webkit.org/show_bug.cgi?id=163626
397
398         Reviewed by Chris Dumez.
399
400         Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
401         into the WTF namespace.
402
403         * TestWebKitAPI/Tests/WTF/Variant.cpp:
404         (TestWebKitAPI::TEST):
405
406 2016-10-18  Simon Fraser  <simon.fraser@apple.com>
407
408         Add a MiniBrowser menu item to apply page scale in WK1 and WK2
409         https://bugs.webkit.org/show_bug.cgi?id=163627
410
411         Reviewed by Dean Jackson.
412
413         Rename setScale: to setViewScale: and add setPageScale:, hooking it up for WK1 (via exisiting SPI)
414         and WK2 (via new SPI).
415
416         * MiniBrowser/mac/BrowserWindowController.h:
417         * MiniBrowser/mac/BrowserWindowController.m:
418         (-[BrowserWindowController pageScaleForMenuItemTag:]):
419         (-[BrowserWindowController setPageScale:]):
420         (-[BrowserWindowController setViewScale:]):
421         (-[BrowserWindowController setScale:]): Deleted.
422         * MiniBrowser/mac/MainMenu.xib:
423         * MiniBrowser/mac/WK1BrowserWindowController.m:
424         (-[WK1BrowserWindowController setPageScale:]):
425         (-[WK1BrowserWindowController setViewScale:]):
426         (areEssentiallyEqual):
427         (-[WK1BrowserWindowController validateMenuItem:]):
428         (-[WK1BrowserWindowController setScale:]): Deleted.
429         * MiniBrowser/mac/WK2BrowserWindowController.m:
430         (-[WK2BrowserWindowController setPageScale:]):
431         (-[WK2BrowserWindowController viewScaleForMenuItemTag:]):
432         (-[WK2BrowserWindowController setViewScale:]):
433         (areEssentiallyEqual):
434         (-[WK2BrowserWindowController validateMenuItem:]):
435         (viewScaleForMenuItemTag): Deleted.
436         (-[WK2BrowserWindowController setScale:]): Deleted.
437
438 2016-10-18  Anders Carlsson  <andersca@apple.com>
439
440         Add an beforeunload alert to the WebKitLegacy MiniBrowser
441         https://bugs.webkit.org/show_bug.cgi?id=163634
442
443         Reviewed by Sam Weinig.
444
445         * MiniBrowser/mac/WK1BrowserWindowController.m:
446         (-[WK1BrowserWindowController webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:]):
447
448 2016-10-18  Commit Queue  <commit-queue@webkit.org>
449
450         Unreviewed, rolling out r207443.
451         https://bugs.webkit.org/show_bug.cgi?id=163616
452
453         "Caused 5% PLT regression" (Requested by krollin on #webkit).
454
455         Reverted changeset:
456
457         "Crash in ASCIICaseInsensitiveHash::hash() when a response has
458         a null MIME type"
459         https://bugs.webkit.org/show_bug.cgi?id=163476
460         http://trac.webkit.org/changeset/207443
461
462 2016-10-18  Eric Carlson  <eric.carlson@apple.com>
463
464         [MediaStream] Resolve constraints and enumerate devices in the UI process
465         https://bugs.webkit.org/show_bug.cgi?id=162147
466         <rdar://problem/28803569>
467
468         Reviewed by Darin Adler.
469
470         * WebKitTestRunner/TestController.cpp:
471         (WTR::TestController::resetPreferencesToConsistentValues): Enable mock capture devices.
472         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Update for API changes.
473
474 2016-10-17  Megan Gardner  <megan_gardner@apple.com>
475
476         Add test and infrastructure for link popover
477         https://bugs.webkit.org/show_bug.cgi?id=163406
478
479         Reviewed by Simon Fraser.
480
481         Added functionality test for link popovers.
482         Can query for what URL is loaded, and that the popover has appeared or has
483         been dismissed.
484         Added a link popover test.
485
486         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
487         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
488         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
489         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
490         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
491         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
492         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
493         (WTR::UIScriptController::setDidShowForcePressPreviewCallback):
494         (WTR::UIScriptController::didShowForcePressPreviewCallback):
495         (WTR::UIScriptController::setDidDismissForcePressPreviewCallback):
496         (WTR::UIScriptController::didDismissForcePressPreviewCallback):
497         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
498         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
499         (WTR::UIScriptController::didEndFormControlInteractionCallback): Deleted.
500         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
501         * TestRunnerShared/UIScriptContext/UIScriptController.h:
502         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
503         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
504         (-[TestRunnerWKWebView dealloc]):
505         (-[TestRunnerWKWebView didShowForcePressPreview]):
506         (-[TestRunnerWKWebView didDismissForcePressPreview]):
507         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
508         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
509         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
510         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
511
512 2016-10-17  Tim Horton  <timothy_horton@apple.com>
513
514         REGRESSION (r169805): WKWebView canGoBack returning YES when nothing is in the back-forward list after restoring session state
515         https://bugs.webkit.org/show_bug.cgi?id=163573
516         <rdar://problem/28744549>
517
518         Reviewed by Dan Bernstein.
519
520         * TestWebKitAPI/Tests/WebKit2/WKBackForwardList.mm:
521         (TEST):
522         Add a test ensuring that canGoBack returns NO after restoring session state without navigating.
523
524 2016-10-17  Andy Estes  <aestes@apple.com>
525
526         Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type
527         https://bugs.webkit.org/show_bug.cgi?id=163476
528         <rdar://problem/26941395>
529
530         Reviewed by Tim Horton.
531
532         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
533         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Added.
534         (TEST): Added an API test that passes a nil MIMEType to
535         -[WKWebView loadData:MIMEType:characterEncodingName:baseURL:].
536
537 2016-10-17  Dean Jackson  <dino@apple.com>
538
539         Allow creation of ExtendedColors and make Color immutable
540         https://bugs.webkit.org/show_bug.cgi?id=163557
541         <rdar://problem/28805360>
542
543         Reviewed by Darin Adler and Dave Hyatt.
544
545         API tests for ExtendedColor.
546
547         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
548         * TestWebKitAPI/Tests/WebCore/ExtendedColor.cpp: Added.
549         (TestWebKitAPI::TEST):
550         (TestWebKitAPI::makeColor):
551
552 2016-10-17  JF Bastien  <jfbastien@apple.com>
553
554         WebAssembly JS API: implement basic stub
555
556         Implement the global WebAssembly JavaScript object, and its constructor +
557         function properties as described in:
558           https://github.com/WebAssembly/design/blob/master/JS.md
559
560         These don't do anything at the moment, the parent bug will take care of adding
561         more functionality and associated tests.
562
563         WebAssembly JS API: implement basic stub
564         https://bugs.webkit.org/show_bug.cgi?id=163404
565
566         Reviewed by Keith Miller.
567
568         * Scripts/run-jsc-stress-tests: use the new JSC option which exposes the WebAssembly object.
569
570 2016-10-17  Fujii Hironori  <Hironori.Fujii@sony.com>
571
572         resolve-ChangeLogs: Specify --no-page to git diff
573         https://bugs.webkit.org/show_bug.cgi?id=163441
574
575         Reviewed by Darin Adler.
576
577         resolve-ChangeLogs shows the result after resolving by invoking
578         'git diff'. It runs a pager for every ChangeLog if it is under
579         TTY.
580
581         * Scripts/resolve-ChangeLogs:
582         (showStatus): Specify '--no-page' to git diff.
583
584 2016-10-17  Michael Catanzaro  <mcatanzaro@igalia.com>
585
586         Move user agent quirks to cross-platform location
587         https://bugs.webkit.org/show_bug.cgi?id=163508
588
589         Reviewed by Carlos Garcia Campos.
590
591         Move the test to a cross-platform location and improve it to better check the full list of
592         sites we have defined quirks for.
593
594         * TestWebKitAPI/PlatformGTK.cmake:
595         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp.
596         (TestWebKitAPI::assertUserAgentForURLHasChromeBrowserQuirk):
597         (TestWebKitAPI::assertUserAgentForURLHasMacPlatformQuirk):
598         (TestWebKitAPI::TEST):
599
600 2016-10-17  Carlos Garcia Campos  <cgarcia@igalia.com>
601
602         [SOUP] Downloads should always sniff contents
603         https://bugs.webkit.org/show_bug.cgi?id=163538
604
605         Reviewed by Michael Catanzaro.
606
607         Add a test case to check that the MIME type is correctly guessed for downloads.
608
609         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
610         (writeNextChunk):
611         (serverCallback):
612         (testDownloadMIMEType):
613         (beforeAll):
614         (writeNextChunkIdle): Deleted.
615
616 2016-10-16  Daniel Bates  <dabates@apple.com>
617
618         Fix Perl warning about masked variable following <http://trac.webkit.org/changeset/207382>
619         (https://bugs.webkit.org/show_bug.cgi?id=163456)
620
621         * Scripts/prepare-ChangeLog:
622         (actuallyGenerateFunctionLists):
623
624 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
625
626         Unreviewed. Fix GTK+ unit test /webkit2/WebKitWebContext/languages after r206949.
627
628         After r206949 navigator.language returns en-US instead of en-us. Language tags in Accept-Language header are
629         actually case-insensitive, so we should actually do case-insensitive comparisons, but we only have
630         g_assert_cmpstr for tests.
631
632         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
633         (testWebContextLanguages):
634
635 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
636
637         [GTK] WebKitWebPage URI not updated after URI is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame
638         https://bugs.webkit.org/show_bug.cgi?id=163389
639
640         Reviewed by Michael Catanzaro.
641
642         Update /webkit2/WebKitWebPage/get-uri test to check that web view and page uri always match even when request is
643         modified by WebKitWebPage::send-request signal.
644
645         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
646         (testWebPageURI):
647
648 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
649
650         Document request not updated after willSendRequest is called for a redirect
651         https://bugs.webkit.org/show_bug.cgi?id=163436
652
653         Reviewed by Michael Catanzaro.
654
655         Update /webkit2/WebKitWebView/active-uri test to check the active URI also when modified by
656         WebKitPage::send-request signal in a web extension.
657
658         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
659         (testWebViewActiveURI):
660         (serverCallback):
661         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
662         (sendRequestCallback):
663         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
664         (loadChangedCallback):
665
666 2016-10-15  Dan Bernstein  <mitz@apple.com>
667
668         REGRESSION (r191699): Contextual menu in Mail compose view doesn’t include any of the standard submenus
669         https://bugs.webkit.org/show_bug.cgi?id=163492
670         <rdar://problem/28654799>
671
672         Reviewed by Darin Adler.
673
674         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
675         * TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm: Added.
676         (-[ContextMenuDefaultItemsHaveTagsDelegate webView:didFinishLoadForFrame:]):
677         (TestWebKitAPI::TEST):
678
679 2016-10-15  Daniel Bates  <dabates@apple.com>
680
681         prepare-ChangeLog erroneously said that a python __init__ method was deleted
682         https://bugs.webkit.org/show_bug.cgi?id=163456
683
684         Reviewed by Simon Fraser.
685
686         Fixes an issue where prepare-ChangeLog may list as deleted functions that are
687         immediately above added code.
688
689         Currently prepare-ChangeLog makes use of the same overlap detection algorithm
690         to compute the list of deleted functions as it does to compute added and modified
691         functions. We consider a function deleted if its entire function body and signature
692         are removed. It is sufficient to compare the list of functions before the patch
693         is applied and the list of functions are the patch is applied to identify
694         these functions.
695
696         * Scripts/prepare-ChangeLog: Fix some style nits, including using Camel Case for
697         variable names.
698         (actuallyGenerateFunctionLists): Modified to call computeModifiedFunctions(). Always
699         compute the list of functions in the file after the patch regardless of whether the
700         patch only contains deletions. We will compare this list against the list of functions
701         before the patch was applied to determine the deleted functions.
702         (computeModifiedFunctions): Renamed; formerly named generateFunctionListsByRanges.
703         Removed out argument for the seen functions as we no longer make use of when computing
704         the list of deleted functions.
705         (diffCommand): Update comment.
706         (generateFunctionListsByRanges): Deleted.
707         * Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl: Added more unit tests.
708
709 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
710
711         REGRESSION (r206973): Running "webkit-patch suggest-reviewers" throws an AttributeError: 'NoneType' object has no attribute 'full_name'
712         https://bugs.webkit.org/show_bug.cgi?id=163478
713
714         Reviewed by Daniel Bates.
715         
716         Handle a None other in Contributor.__eq__.
717
718         * Scripts/webkitpy/common/config/committers.py:
719         (Contributor.__eq__):
720
721 2016-10-14  JF Bastien  <jfbastien@apple.com>
722
723         Basic WebAssembly testing
724
725         Create a small DSL in JavaScript which can build WebAssembly binary modules based on the JSON description of the format as described in:
726         https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
727
728         This DSL can then be used to write small text description of valid and invalid WebAssembly binaries, making testing the JSC implementation much easier.
729
730         Details and example in README.md.
731
732         Basic WebAssembly testing
733         https://bugs.webkit.org/show_bug.cgi?id=163267
734
735         Reviewed by Keith Miller.
736
737         * Scripts/run-javascriptcore-tests:
738         (runJSCStressTests): run wasm.yaml tests
739         * Scripts/run-jsc-stress-tests: add a WebAssembly-specific runner
740
741 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
742
743         Annotate bots in contributors.json and don't show them on webkit.org/team
744         https://bugs.webkit.org/show_bug.cgi?id=163317
745
746         Reviewed by Daniel Bates.
747         
748         Add "class" : "bot" for non-humans in contributors.json and round-trip it.
749
750         * Scripts/webkitpy/common/config/committers.py:
751         (Contributor.__init__):
752         (Contributor.as_dict):
753         (Bot):
754         (Bot.__init__):
755         (CommitterList.load_json):
756         * Scripts/webkitpy/common/config/contributors.json:
757
758 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
759
760         Fix printing in WK2 MiniBrowser
761         https://bugs.webkit.org/show_bug.cgi?id=163455
762
763         Reviewed by Tim Horton.
764         
765         Call the basic -_printOperationWithPrintInfo: which doens't require a frame argument.
766
767         * MiniBrowser/mac/WK2BrowserWindowController.m:
768         (-[WK2BrowserWindowController printWebView:]):
769
770 2016-10-14  Commit Queue  <commit-queue@webkit.org>
771
772         Unreviewed, rolling out r207335.
773         https://bugs.webkit.org/show_bug.cgi?id=163445
774
775         WebKit2.ProvisionalURLAfterWillSendRequestCallback is timing
776         out on Mac bots (Requested by youenn on #webkit).
777
778         Reverted changeset:
779
780         "Add ProvisionalURLAfterWillSendRequestCallback.cpp and
781         ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp to Mac
782         builds"
783         https://bugs.webkit.org/show_bug.cgi?id=163440
784         http://trac.webkit.org/changeset/207335
785
786 2016-10-14  Youenn Fablet  <youenn@apple.com>
787
788         Add ProvisionalURLAfterWillSendRequestCallback.cpp and ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp to Mac builds
789         https://bugs.webkit.org/show_bug.cgi?id=163440
790
791         Unreviewed.
792
793         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Adding new test files introduced in
794         https://bugs.webkit.org/show_bug.cgi?id=146306 patch.
795
796 2016-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
797
798         Unreviewed. Removed myself from BindingsScripts watch list.
799
800         * Scripts/webkitpy/common/config/watchlist:
801
802 2016-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
803
804         WebView and WebPage URLs not updated after URL is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame
805         https://bugs.webkit.org/show_bug.cgi?id=146306
806
807         Reviewed by Darin Adler.
808
809         Add unit test to check that the committed URL is updated when changed in willSendRequest callback.
810
811         * TestWebKitAPI/CMakeLists.txt:
812         * TestWebKitAPI/PlatformEfl.cmake:
813         * TestWebKitAPI/PlatformGTK.cmake:
814         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback.cpp: Added.
815         (TestWebKitAPI::didCommitLoadForFrame):
816         (TestWebKitAPI::TEST):
817         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp: Added.
818         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::ProvisionalURLAfterWillSendRequestCallbackTest):
819         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::willSendRequestForFrame):
820         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::didCommitLoadForFrame):
821
822 2016-10-13  Alex Christensen  <achristensen@webkit.org>
823
824         Hosts of URLs with non-special schemes should be case-sensitive, and non-ASCII characters in such hosts should be punycode-encoded
825         https://bugs.webkit.org/show_bug.cgi?id=163413
826
827         Reviewed by Tim Horton.
828
829         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
830         (TestWebKitAPI::TEST_F):
831         Update parsing results.  There are now fewer differences between the new URLParser and the old URL::parse.
832
833 2016-10-13  Alex Christensen  <achristensen@webkit.org>
834
835         Rebase API tests after r207305.
836
837         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
838         Actually build Tests/mac/LoadInvalidURLRequest.mm so we are running the WebKit1.LoadInvalidURLRequest API test.
839         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
840         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
841         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
842         (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
843         Change results back to what they were before r207162, r207167, and r207184.
844
845 2016-10-13  Alex Christensen  <achristensen@webkit.org>
846
847         Disable URLParser for non-Safari iOS and Mac apps for now
848         https://bugs.webkit.org/show_bug.cgi?id=163397
849
850         Reviewed by Tim Horton.
851
852         * DumpRenderTree/mac/DumpRenderTree.mm:
853         (DumpRenderTreeMain):
854         * WebKitTestRunner/TestController.cpp:
855         Enable the URLParser for testing.
856         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig:
857         Link with WebCoreTestSupport so we can find setURLParserEnabled.
858
859 2016-10-13  Ryan Haddad  <ryanhaddad@apple.com>
860
861         Unreviewed, rolling out r207297.
862
863         This change broke the iOS build.
864
865         Reverted changeset:
866
867         "Disable URLParser for non-Safari iOS and Mac apps for now"
868         https://bugs.webkit.org/show_bug.cgi?id=163397
869         http://trac.webkit.org/changeset/207297
870
871 2016-10-13  Alex Christensen  <achristensen@webkit.org>
872
873         Disable URLParser for non-Safari iOS and Mac apps for now
874         https://bugs.webkit.org/show_bug.cgi?id=163397
875
876         Reviewed by Tim Horton.
877
878         * DumpRenderTree/mac/DumpRenderTree.mm:
879         (DumpRenderTreeMain):
880         * WebKitTestRunner/ios/mainIOS.mm:
881         (main):
882         * WebKitTestRunner/mac/main.mm:
883         (main):
884
885 2016-10-12  Alex Christensen  <achristensen@webkit.org>
886
887         Fix out-of-bounds reading in URLParser when parsing improperly percent-encoded values
888         https://bugs.webkit.org/show_bug.cgi?id=163376
889
890         Reviewed by Saam Barati.
891
892         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
893         (TestWebKitAPI::TEST_F):
894
895 2016-10-11  Dean Jackson  <dino@apple.com>
896
897         Add preliminary support for extended colors to WebCore::Color
898         https://bugs.webkit.org/show_bug.cgi?id=162878
899         <rdar://problem/28596413>
900
901         Reviewed by Darin Adler.
902
903         A new API test for Colors.
904
905         * TestWebKitAPI/Tests/WebCore/Color.cpp:
906         (TestWebKitAPI::TEST):
907
908 2016-10-12  Ryan Haddad  <ryanhaddad@apple.com>
909
910         Unreviewed, rolling out r207225.
911
912         This change causes debug tests to exit early with crashes.
913
914         Reverted changeset:
915
916         "Optional's move-constructor and move-assignment operator
917         don't disengage the value being moved from"
918         https://bugs.webkit.org/show_bug.cgi?id=163309
919         http://trac.webkit.org/changeset/207225
920
921 2016-10-12  Alex Christensen  <achristensen@webkit.org>
922
923         Fix assertion after switching to URLParser
924         https://bugs.webkit.org/show_bug.cgi?id=163350
925         rdar://problem/28739938
926
927         Reviewed by Brady Eidson.
928
929         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
930         (TEST):
931
932 2016-10-11  Sam Weinig  <sam@webkit.org>
933
934         Optional's move-constructor and move-assignment operator don't disengage the value being moved from
935         https://bugs.webkit.org/show_bug.cgi?id=163309
936
937         Reviewed by Anders Carlsson.
938
939         * TestWebKitAPI/Tests/WTF/Optional.cpp:
940         (TestWebKitAPI::TEST):
941         Add tests for Optional's move-constructor and move-assignment operator.
942
943 2016-10-12  Wenson Hsieh  <wenson_hsieh@apple.com>
944
945         Now playing media sessions are always cleared for the active foreground tab
946         https://bugs.webkit.org/show_bug.cgi?id=163310
947         <rdar://problem/28573301>
948
949         Reviewed by Jer Noble.
950
951         Tweaks existing unit tests to verify that media session info persists when backgrounding and foregrounding, but
952         that media session info is correctly cleared out if the media session itself is no longer eligible for Now
953         Playing (not accounting for foreground/active state). Previously, these tests were verifying that we would
954         always clear out the information, but this is incorrect, and is the source of the problem.
955
956         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
957         (-[NowPlayingTestWebView waitForNowPlayingInfoToChange]):
958         (TestWebKitAPI::TEST):
959
960 2016-10-12  Per Arne Vollan  <pvollan@apple.com>
961
962         [Win] Parallel DRTs are sharing preferences and cache.
963         https://bugs.webkit.org/show_bug.cgi?id=163013
964
965         Reviewed by Brent Fulgham.
966
967         Use separate cache and preferences for each DRT instance.
968
969         * DumpRenderTree/win/DumpRenderTree.cpp:
970         (applicationId):
971         (setApplicationId):
972         (setCacheFolder):
973         (setDefaultsToConsistentValuesForTesting):
974         * Scripts/webkitpy/port/win.py:
975         (WinPort.setup_test_run):
976
977 2016-10-11  Alex Christensen  <achristensen@webkit.org>
978
979         Update API test expectation after r207162.
980        ​https://bugs.webkit.org/show_bug.cgi?id=162660
981
982         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
983         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
984         Like r207167 but with a WebKit2 test.
985         "https://www.example.com<>/" was an invalid URL with the old URL parser, is now valid with URLParser but not with NSURL's parser.
986
987 2016-10-11  Alex Christensen  <achristensen@webkit.org>
988
989         Update API test expectation after r207162.
990         https://bugs.webkit.org/show_bug.cgi?id=162660
991
992         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
993         (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
994         "https://www.example.com<>/" was an invalid URL with the old URL parser.
995         It is now a valid URL, but NSURL still considers it invalid.
996         This will be looked into more with https://bugs.webkit.org/show_bug.cgi?id=163127
997
998 2016-10-11  Edward O'Connor  <eoconnor@apple.com>
999
1000         Update my name in contributors.json
1001         https://bugs.webkit.org/show_bug.cgi?id=163251
1002
1003         Reviewed by Simon Fraser.
1004
1005         * Scripts/webkitpy/common/config/contributors.json:
1006
1007 2016-10-11  Said Abou-Hallawa  <sabouhallawa@apple.com>
1008
1009         Add SynchronizedFixedQueue class
1010         https://bugs.webkit.org/show_bug.cgi?id=162478
1011
1012         Reviewed by Geoffrey Garen.
1013
1014         Add a new test for SynchronizedFixedQueue. The test defines a new class
1015         called ToUpperConverter which converts strings from lower case to upper
1016         case. It creates two threads : (1) produce thread and (2) consume thread.
1017         Here is what each thread does:
1018
1019         1. Main threads: Enqueues lower case strings into m_lowerQueue.
1020         2. Produce thread: Dequeues lower case strings from m_lowerQueue and 
1021            enqueue their upper case strings in the m_upperQueue.
1022         3. Consume thread: Dequeues upper case strings from m_upperQueue.
1023
1024         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1025         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp: Added.
1026         (TestWebKitAPI::textItem): A helper function which returns a lower case string given an index.
1027         (TestWebKitAPI::toUpper): A helper function which Returns the upper case of a string.
1028         (TestWebKitAPI::ToUpperConverter::ToUpperConverter):
1029         (TestWebKitAPI::ToUpperConverter::produceQueue): Returns a workQueue for the produce thread.
1030         (TestWebKitAPI::ToUpperConverter::consumeQueue): Returns a workQueue for the consume thread.
1031         (TestWebKitAPI::ToUpperConverter::startProducing): Creates a thread for the producer.
1032         (TestWebKitAPI::ToUpperConverter::startConsuming): Creates a thread for the consumer.
1033         (TestWebKitAPI::ToUpperConverter::start): Starts both the producer and the consumer threads.
1034         (TestWebKitAPI::ToUpperConverter::stopProducing): Terminates the producer thread.
1035         (TestWebKitAPI::ToUpperConverter::stopConsuming): Terminates the consumer thread.
1036         (TestWebKitAPI::ToUpperConverter::stop): Terminates both the producer and the consumer threads.
1037         (TestWebKitAPI::ToUpperConverter::enqueueLower): Adds a lower case string to the m_lowerQueue on the main thread.
1038         (TestWebKitAPI::ToUpperConverter::isProducing): Returns whether the producing thread is active.
1039         (TestWebKitAPI::ToUpperConverter::isConsuming): Returns whether the consuming thread is active.
1040         (TestWebKitAPI::ToUpperConverter::produceCount): Returns the number of produced elements.
1041         (TestWebKitAPI::ToUpperConverter::consumeCount): Returns the number of consumed elements.
1042         (TestWebKitAPI::TEST):
1043
1044 2016-10-11  Megan Gardner  <megan_gardner@apple.com>
1045
1046         Extend event stream to include interpolated events and add a force press test that uses that interpolation
1047         https://bugs.webkit.org/show_bug.cgi?id=163161
1048
1049         Reviewed by Simon Fraser.
1050
1051         Added functionality to the event stream to allow for interpolated events.
1052         Can now do long press, as well as a better way to do drag and other time-based
1053         events that require a large stream of descrete HID events.
1054         Added a basic force touch test to demostrate this interpolation.
1055         Also updated the script to allow for iPhone 7 specific tests, as force touch
1056         needs to be on a device that had force touch.
1057
1058         * Scripts/webkitpy/port/ios.py:
1059         (IOSSimulatorPort):
1060         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1061         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1062         (linearInterpolation):
1063         (simpleCurveInterpolation):
1064         (calculateNextCurveLocation):
1065         (phaseFromString):
1066         (interpolationFromString):
1067         (-[HIDEventGenerator eventMaskFromEventInfo:]):
1068         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
1069         (-[HIDEventGenerator moveToPoints:touchCount:duration:]):
1070         (-[HIDEventGenerator interpolatedEvents:]):
1071         (-[HIDEventGenerator processEventsArray:withStartTime:]):
1072         (-[HIDEventGenerator eventDispatchThreadEntry:]):
1073         (simpleDragCurve): Deleted.
1074         (calculateNextLocation): Deleted.
1075
1076 2016-10-11  Alex Christensen  <achristensen@webkit.org>
1077
1078         URLParser should percent-encode non-ASCII and non-printable characters in fragment
1079         https://bugs.webkit.org/show_bug.cgi?id=163287
1080
1081         Reviewed by Brady Eidson.
1082
1083         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1084         (TestWebKitAPI::TEST_F):
1085
1086 2016-10-11  Alex Christensen  <achristensen@webkit.org>
1087
1088         Remove dead networking code
1089         https://bugs.webkit.org/show_bug.cgi?id=163263
1090
1091         Reviewed by Daniel Bates.
1092
1093         * DumpRenderTree/DumpRenderTree.h:
1094         * DumpRenderTree/config.h:
1095         * DumpRenderTree/win/DumpRenderTree.cpp:
1096         (main):
1097
1098 2016-10-11  John Wilander  <wilander@apple.com>
1099
1100         Modify check-webkit-style to prohibit sensitive phrases
1101         https://bugs.webkit.org/show_bug.cgi?id=163048
1102         <rdar://problem/28289755>
1103
1104         Terms considered or found to be too general to flag:
1105         ASSERT_WITH_SECURITY_IMPLICATION, bad cast, bug, bypass, crash,
1106         denial of service, dereference, disclosure, error, exploit,
1107         failure, heap, integer overflow, leak, null dereference,
1108         null pointer dereference, out of bounds, overflow,
1109         race condition, sensitive information, stack, type confusion.
1110
1111         Reviewed by Brent Fulgham.
1112
1113         * Scripts/webkitpy/style/checkers/changelog.py:
1114         (ChangeLogChecker.check_entry):
1115             Now calls ChangeLogChecker.check_for_unwanted_security_terms().
1116         (ChangeLogChecker):
1117         (ChangeLogChecker.check_for_unwanted_security_terms):
1118             New function to check for sensitive terms.
1119         (ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm):
1120         (ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm.__init__):
1121             Convenience class.
1122         * Scripts/webkitpy/style/checkers/changelog_unittest.py:
1123         (ChangeLogCheckerTest.test_unwanted_security_terms):
1124
1125 2016-10-11  Ryan Haddad  <ryanhaddad@apple.com>
1126
1127         Unreviewed, rolling out r207067.
1128
1129         This change caused webkitpy test failures.
1130
1131         Reverted changeset:
1132
1133         "[Win] Parallel DRTs are sharing preferences and cache."
1134         https://bugs.webkit.org/show_bug.cgi?id=163013
1135         http://trac.webkit.org/changeset/207067
1136
1137 2016-10-11  Per Arne Vollan  <pvollan@apple.com>
1138
1139         [Win] Parallel DRTs are sharing preferences and cache.
1140         https://bugs.webkit.org/show_bug.cgi?id=163013
1141
1142         Reviewed by Brent Fulgham.
1143
1144         Use separate cache and preferences for each DRT instance.
1145
1146         * DumpRenderTree/win/DumpRenderTree.cpp:
1147         (applicationId):
1148         (setApplicationId):
1149         (setCacheFolder):
1150         (setDefaultsToConsistentValuesForTesting):
1151         * Scripts/webkitpy/port/win.py:
1152         (WinPort.setup_test_run):
1153
1154 2016-10-10  Zan Dobersek  <zdobersek@igalia.com>
1155
1156         Add ENABLE_ENCRYPTED_MEDIA configuration option
1157         https://bugs.webkit.org/show_bug.cgi?id=163219
1158
1159         Reviewed by Darin Adler.
1160
1161         * Scripts/webkitperl/FeatureList.pm:
1162         Make the ENABLE_ENCRYPTED_MEDIA option overridable via build-webkit.
1163         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1164         Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
1165         to enable or disable the new EME implementation at build-time.
1166
1167 2016-10-10  Commit Queue  <commit-queue@webkit.org>
1168
1169         Unreviewed, rolling out r206972.
1170         https://bugs.webkit.org/show_bug.cgi?id=163227
1171
1172         Making EWS flaky (Requested by bfulgham_ on #webkit).
1173
1174         Reverted changeset:
1175
1176         "[CMake] CMake does not support the dep files for implicit
1177         dependency"
1178         https://bugs.webkit.org/show_bug.cgi?id=161433
1179         http://trac.webkit.org/changeset/206972
1180
1181 2016-10-10  Youenn Fablet  <youenn@apple.com>
1182
1183         W3C test downloader should be able to import specific files/sub-directories in a skipped directory
1184         https://bugs.webkit.org/show_bug.cgi?id=161789
1185
1186         Reviewed by Ryosuke Niwa.
1187
1188         Removed tests_directory option and corresponding test.
1189         This option was allowing to import a sub-directory from a test repository.
1190         We can readd it if necessary.
1191
1192         Adding support for finer-grained import rules.
1193         Previously skipped directories were fully removed.
1194         Now, directories may be skipped but sub directories of them may be imported.
1195         This currently happens in web-platform-tests repo.
1196
1197         * Scripts/webkitpy/w3c/test_downloader.py:
1198         (TestDownloader._add_test_suite_paths): Removing tests_directory option.
1199         (TestDownloader.copy_tests): Refactoring file copy by generating the list of all directories for which direct files should be imported.
1200         (TestDownloader.copy_tests.should_copy_dir):
1201         (TestDownloader.copy_tests.should_copy_file):
1202         * Scripts/webkitpy/w3c/test_importer_unittest.py:
1203         (TestImporterTest.test_tests_directory): Deleted.
1204         (TestImporterTest.test_skip_test_import): Added.
1205
1206 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
1207
1208         Make validate-committer-lists show inactive reviewers
1209         https://bugs.webkit.org/show_bug.cgi?id=163193
1210
1211         Reviewed by Sam Weinig.
1212         
1213         In preparation for updating contributors.json with the WebKit policy of retiring
1214         inactive reviewers, make validate-committer-lists show the list of reviewers who
1215         have not reviewed in the past year.
1216         
1217         This list is computed by grepping the output of 'git log --since=1.year" for
1218         the reviewer line, and looking up reviewers via Contributor.mentioned_in_text(),
1219         which looks for full names, aliases, irc nicks and email addresses.
1220         
1221         Support for aliases is added to Contributor. Aliases are alternates
1222         or misspellings of the reviewer's name. Some common aliases were added to
1223         contributors.json by manual examination of "Reviewed by" lines.
1224
1225         * Scripts/validate-committer-lists:
1226         (CommitterListFromGit.possibly_expired_committers):
1227         (CommitterListFromGit):
1228         (CommitterListFromGit.possibly_inactive_reviewers):
1229         (CommitterListFromGit.print_possibly_expired_committers):
1230         (CommitterListFromGit.print_possibly_inactive_reviewers):
1231         * Scripts/webkitpy/common/config/committers.py:
1232         (Contributor.__init__):
1233         (Contributor.contains_string):
1234         (Contributor.mentioned_in_text):
1235         (Contributor.as_dict):
1236         (Committer.__init__):
1237         (Reviewer.__init__):
1238         (CommitterList.load_json):
1239         * Scripts/webkitpy/common/config/contributors.json:
1240
1241 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
1242
1243         Convert contributors.json to a flat list
1244         https://bugs.webkit.org/show_bug.cgi?id=163183
1245
1246         Reviewed by Darin Adler.
1247         
1248         Make contributors.json easier to maintain by eliminating the big groupings ("Committers", "Reviewers" etc)
1249         and moving that data to a "status" property on each contributor.
1250
1251         * Scripts/webkitpy/common/config/committers.py:
1252         (Contributor.__eq__): Implement this to fix unit tests, now that load_json() is not @memoized.
1253         (Contributor.as_dict): Include status in the dict.
1254         (CommitterList.__init__): Clean up to make the testing code path more explicit.
1255         (CommitterList.load_json):
1256         (CommitterList.load_test_data):
1257         (CommitterList.as_json):
1258         (Contributor.__unicode__): Deleted.
1259         * Scripts/webkitpy/common/config/contributors.json:
1260         * Scripts/webkitpy/tool/bot/irc_command_unittest.py:
1261         (IRCCommandTest.test_whois): The ordering here is now alphabetical.
1262
1263 2016-10-09  Fujii Hironori  <Hironori.Fujii@sony.com>
1264
1265         [CMake] CMake does not support the dep files for implicit dependency
1266         https://bugs.webkit.org/show_bug.cgi?id=161433
1267
1268         Reviewed by Brent Fulgham.
1269
1270         Created a Perl script to generate all IDL bindings for CMake.
1271         This script can regenerate outdated bindings by based on the
1272         supplemental dependency and dep files created by
1273         '--write-dependencies' switch of generate-bindings.pl.
1274
1275         add_custom_target is used to invoke the script instead of
1276         add_custom_command because Ninja deletes all output files before
1277         executing the command in case of add_custom_command.
1278
1279         USES_TERMINAL option of add_custom_target has two effects:
1280         1) Not buffering output of the command
1281         2) Invoking the command in the special Ninja pool which inhibits parallel build
1282         One needs to use CMake 3.2 or later to enable this feature.
1283
1284         * DumpRenderTree/CMakeLists.txt: Specified a target name for
1285         GENERATE_BINDINGS. Added dependency for the target.
1286         * WebKitTestRunner/CMakeLists.txt: Ditto.
1287
1288 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
1289
1290         Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
1291         https://bugs.webkit.org/show_bug.cgi?id=163177
1292
1293         Follow-up fix.
1294         
1295         For unknown reasons, overriding Commiter.__dict__() caused mysterious test failures.
1296         Rename it to as_dict().
1297
1298         * Scripts/webkitpy/common/config/committers.py:
1299         (Contributor.as_dict):
1300         (CommitterList._contributor_list_to_dict):
1301         (Contributor.__dict__): Deleted.
1302
1303 2016-10-08  Simon Fraser  <simon.fraser@apple.com>
1304
1305         Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
1306         https://bugs.webkit.org/show_bug.cgi?id=163177
1307
1308         Reviewed by Ryosuke Niwa.
1309         
1310         Make it possible to round-trip contributors.json through CommitterList, so we can
1311         support writing out contributors.json in canonical format. This requires saving
1312         the case-preserved email and expertise in Contributor. CommitterList also needs
1313         to be able to generate the "exclusive" lists, since it currently uses lists
1314         that are the union of, say, committers and reviewers.
1315         
1316         If contributors.json is malformed (invalid JSON), catch the Exception, report it
1317         and exit rather than allowing the exception to propagate. With an invalid file,
1318         an exception would be thrown before the JSON style checker reached this file, so
1319         the error was not correctly reported.
1320         
1321         Add style/checker/committer.py for checking that committers.json has the canonical format.
1322         
1323         Add support to validate-committer-lists to dump out the canonical json (-d) or update
1324         the file in-place (-c).
1325
1326         * Scripts/validate-committer-lists:
1327         (CommitterListFromGit._print_three_column_row):
1328         (CommitterListFromGit.possibly_expired_committers):
1329         (CommitterListFromGit):
1330         (CommitterListFromGit.print_possibly_expired_committers):
1331         (main):
1332         * Scripts/webkitpy/common/config/committers.py:
1333         (Contributor.__init__):
1334         (Contributor.__dict__):
1335         (Committer.__init__):
1336         (Reviewer.__init__):
1337         (CommitterList.load_json):
1338         (CommitterList):
1339         (CommitterList._contributor_list_to_dict):
1340         (CommitterList.as_json):
1341         (CommitterList.reformat_in_place):
1342         (CommitterList._exclusive_contributors):
1343         (CommitterList._exclusive_committers):
1344         (Contributor.matches_glob): Deleted.
1345         (CommitterList.contributors): Deleted.
1346         * Scripts/webkitpy/common/config/contributors.json:
1347         * Scripts/webkitpy/style/checker.py:
1348         (CheckerDispatcher._create_checker):
1349         * Scripts/webkitpy/style/checkers/contributors.py: Added.
1350         (ContributorsChecker):
1351         (ContributorsChecker.__init__):
1352         (ContributorsChecker.check):
1353         (ContributorsChecker._unidiff_output):
1354
1355 2016-10-06  Darin Adler  <darin@apple.com>
1356
1357         Next step on moving to modern way to return DOM exceptions
1358         https://bugs.webkit.org/show_bug.cgi?id=163016
1359
1360         Reviewed by Ryosuke Niwa.
1361
1362         * Scripts/do-webcore-rename: Add proposed name change of setDOMException
1363         to propagateException, since this function is primarily used to take an
1364         exception already effectively "thrown" by setting an ExceptionCode out
1365         argument and propagate it into the JavaScript engine's exception machinery.
1366
1367 2016-10-07  Alex Christensen  <achristensen@webkit.org>
1368
1369         Non-special URL fragments should percent-encode non-ASCII characters
1370         https://bugs.webkit.org/show_bug.cgi?id=163153
1371
1372         Reviewed by Tim Horton.
1373
1374         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1375         (TestWebKitAPI::TEST_F):
1376
1377 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
1378
1379         Build fix for “Move functionality common to Darwin ports into a base class”
1380         https://bugs.webkit.org/show_bug.cgi?id=160709
1381
1382         Unreviewed build fix.
1383
1384         * Scripts/webkitpy/port/ios.py:
1385         (IOSSimulatorPort._get_crash_log): Added iOS implementation.
1386         * Scripts/webkitpy/port/mac.py:
1387         (MacPort._get_crash_log): Added Mac implementation.
1388
1389 2016-10-07  Chelsea Pugh  <cpugh@apple.com>
1390
1391         Unreviewed. Added myself to the list of committers.
1392
1393         * Scripts/webkitpy/common/config/contributors.json:
1394
1395 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
1396
1397         Move functionality common to Darwin ports into a base class
1398         https://bugs.webkit.org/show_bug.cgi?id=160709
1399
1400         Reviewed by Darin Adler.
1401
1402         * Scripts/webkitpy/port/apple.py:
1403         (ApplePort.determine_full_port_name): Specific iOS port check.
1404         (ApplePort.__init__): Move leak detector to DarwinPort.
1405         (ApplePort._make_leak_detector): Moved to DarwinPort.
1406         (ApplePort.supports_per_test_timeout): Moved to Port.
1407         (ApplePort.check_for_leaks): Moved to DarwinPort.
1408         (ApplePort.print_leaks_summary): Moved to DarwinPort.
1409         (ApplePort._path_to_webcore_library): Moved to DarwinPort.
1410         (ApplePort.show_results_html_file): Moved to DarwinPort.
1411         (ApplePort._merge_crash_logs): Moved to DarwinPort.
1412         (ApplePort._look_for_all_crash_logs_in_log_dir): Moved to DarwinPort.
1413         (ApplePort._get_crash_log): Moved to DarwinPort.
1414         (ApplePort.look_for_new_crash_logs): Moved to DarwinPort.
1415         (ApplePort.sample_process): Moved to DarwinPort.
1416         (ApplePort.sample_file_path): Moved to DarwinPort.
1417         (ApplePort.look_for_new_samples): Moved to DarwinPort.
1418         * Scripts/webkitpy/port/base.py:
1419         (Port.supports_per_test_timeout): Return true for all ports.
1420         * Scripts/webkitpy/port/darwin.py: Added.
1421         (DarwinPort): Shared iOS and Mac functions.
1422         * Scripts/webkitpy/port/darwin_testcase.py: Added.
1423         (DarwinTest): Shared iOS and Mac testing.
1424         * Scripts/webkitpy/port/efl.py:
1425         (EflPort):
1426         (EflPort.supports_per_test_timeout): Moved to Port.
1427         * Scripts/webkitpy/port/gtk.py:
1428         (GtkPort._driver_class):
1429         (GtkPort):
1430         (GtkPort.supports_per_test_timeout): Moved to Port.
1431         * Scripts/webkitpy/port/ios.py:
1432         (IOSPort):
1433         (IOSPort.operating_system):
1434         (IOSSimulatorPort):
1435         (IOSSimulatorPort.__init__): Inherits from DarwinPort.
1436         (IOSSimulatorPort._port_specific_expectations_files): Moved to DarwinPort.
1437         (IOSSimulatorPort._get_crash_log): Deleted.
1438         (IOSSimulatorPort.xcrun_find): Deleted.
1439         * Scripts/webkitpy/port/ios_unittest.py: Added.
1440         (iosTest): Unit tests for the iOS port.
1441         * Scripts/webkitpy/port/mac.py:
1442         (MacPort):
1443         (MacPort.__init__): Inherits from DarwinPort.
1444         (MacPort._port_specific_expectations_files): Moved to DarwinPort.
1445         (MacPort.make_command): Moved to DarwinPort.
1446         (MacPort._get_crash_log): Moved to DarwinPort.
1447         (MacPort.nm_command): Moved to DarwinPort.
1448         * Scripts/webkitpy/port/mac_unittest.py:
1449         (MacTest):
1450         (MacTest.test_sdk_name): Added test.
1451         (MacTest.test_xcrun): Added test.
1452         (MacTest.assert_skipped_file_search_paths): Moved to DarwinTest.
1453         (MacTest.test_default_timeout_ms): Moved to DarwinTest.
1454         (MacTest.assert_name): Moved to DarwinTest.
1455         (MacTest.test_helper_starts): Moved to DarwinTest.
1456         (MacTest.test_helper_fails_to_start): Moved to DarwinTest.
1457         (MacTest.test_helper_fails_to_stop): Moved to DarwinTest.
1458         (MacTest.test_spindump): Moved to DarwinTest.
1459         (MacTest.test_sample_process): Moved to DarwinTest.
1460         (MacTest.test_sample_process_exception): Moved to DarwinTest.
1461         * Scripts/webkitpy/port/port_testcase.py:
1462         (PortTestCase):
1463         (PortTestCase.test_diff_image): Added is_simulator flag.
1464         (PortTestCase.test_diff_image): Skip test if on a simulator.
1465         (PortTestCase.test_diff_image_crashed): Skip test if on a simulator.
1466         * Scripts/webkitpy/port/win.py:
1467         (WinPort):
1468         (WinPort.look_for_new_samples): Used default, ApplePort no longer implements.
1469         (WinPort.sample_process): Ditto.
1470         (WinPort._make_leak_detector): Ditto.
1471         (WinPort.check_for_leaks): Ditto.
1472         (WinPort.print_leaks_summary): Ditto.
1473         (WinPort._path_to_webcore_library): Ditto.
1474
1475 2016-10-07  Anders Carlsson  <andersca@apple.com>
1476
1477         Get rid of WKPageSetSession
1478         https://bugs.webkit.org/show_bug.cgi?id=163129
1479
1480         Reviewed by Tim Horton.
1481
1482         Rewrite this test to use WKPageConfigurationRef and WKWebsiteDataStoreRef.
1483
1484         * TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp:
1485         (TestWebKitAPI::TEST):
1486
1487 2016-10-07  Andreas Kling  <akling@apple.com>
1488
1489         [WK2] didRemoveFrameFromHierarchy callback doesn't fire for subframes when evicting from PageCache.
1490         <https://webkit.org/b/163098>
1491         <rdar://problem/28663488>
1492
1493         Reviewed by Antti Koivisto.
1494
1495         Add an API test that puts a 10-subframe page into the page cache, then loads other pages
1496         until the first page gets kicked out. The test succeeds if we receive didRemoveFrameFromHierarchy
1497         callbacks for all the subframes.
1498
1499         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1500         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache.cpp: Added.
1501         (TestWebKitAPI::didFinishLoadForFrame):
1502         (TestWebKitAPI::setPageLoaderClient):
1503         (TestWebKitAPI::didReceivePageMessageFromInjectedBundle):
1504         (TestWebKitAPI::setInjectedBundleClient):
1505         (TestWebKitAPI::TEST):
1506         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache_Bundle.cpp: Added.
1507         (TestWebKitAPI::didRemoveFrameFromHierarchyCallback):
1508         (TestWebKitAPI::DidRemoveFrameFromHiearchyInPageCacheTest::DidRemoveFrameFromHiearchyInPageCacheTest):
1509         (TestWebKitAPI::DidRemoveFrameFromHiearchyInPageCacheTest::didCreatePage):
1510         * TestWebKitAPI/Tests/WebKit2/many-iframes.html: Added.
1511
1512 2016-10-07  Emanuele Aina  <emanuele.aina@collabora.com>
1513
1514         Replace bug URL placeholders independently of the short desc one
1515         https://bugs.webkit.org/show_bug.cgi?id=161684
1516
1517         Reviewed by Darin Adler.
1518
1519         Instead of adding the bug URL when replacing the short description
1520         placeholder and then ignoring the bug URL placeholder, use the former
1521         to set the short description and the latter for the bug URL.
1522         This means that developers can fully prepare the changelog with short
1523         and long description before submission leaving the bug placeholder in
1524         place, and the changelog machinery will make sure to replace the
1525         latter with the URL of the newly created bug while submitting.
1526
1527         Note that this also means that the short description placeholder alone
1528         no longer causes the bug URL to be added.
1529
1530         * Scripts/webkitpy/common/checkout/changelog.py:
1531         (ChangeLog.set_short_description_and_bug_url):
1532         * Scripts/webkitpy/common/checkout/changelog_unittest.py:
1533         (test_set_short_description_and_bug_url):
1534
1535 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
1536
1537         Style Checking Error when Objective C Blocks passed as Argument
1538         https://bugs.webkit.org/show_bug.cgi?id=162463
1539
1540         Reviewed by Darin Adler.
1541
1542         * Scripts/webkitpy/style/checkers/cpp.py:
1543         (regex_for_lambdas_and_blocks): Consider case where block is passed as a function argument.
1544         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
1545         (CppStyleTest.test_objective_c_block_as_argument): Test case where block is passed as a function argument. 
1546
1547 2016-10-07  Philippe Normand  <pnormand@igalia.com>
1548
1549         [GTK] Docs build failure
1550         https://bugs.webkit.org/show_bug.cgi?id=163102
1551
1552         Reviewed by Carlos Garcia Campos.
1553
1554         * gtk/jhbuild.modules: Bump to gtk-doc 1.25 to fix build errors on Debian Testing.
1555
1556 2016-10-06  Joseph Pecoraro  <pecoraro@apple.com>
1557
1558         check-webkit-style: Enable the legal/copyright rule for cpp/h files
1559         https://bugs.webkit.org/show_bug.cgi?id=162707
1560
1561         Reviewed by Darin Adler.
1562
1563         * Scripts/webkitpy/style/checker.py:
1564         Enable this rule by default.
1565
1566 2016-10-06  Joseph Pecoraro  <pecoraro@apple.com>
1567
1568         Header guard style should be updated to be "#pragma once"
1569         https://bugs.webkit.org/show_bug.cgi?id=159785
1570
1571         Reviewed by Darin Adler.
1572
1573         * Scripts/webkitpy/style/checkers/cpp.py:
1574         (check_for_header_guard):
1575         (_process_lines):
1576         Simplify header_guard check to warn for a missing #pragma once
1577         in header files. For legacy files that contain an #ifndef only
1578         warn if the #ifndef line itself is changing.
1579
1580         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
1581         (CppStyleTestBase.perform_header_guard_check):
1582         (CppStyleTestBase.assert_header_guard):
1583         Helpers for enabling just this warning.
1584
1585         (CppStyleTest.test_build_header_guard):
1586         Test different header guard cases.
1587
1588         * Scripts/webkitpy/style/error_handlers.py:
1589         (DefaultStyleErrorHandler.should_line_be_checked):
1590         Always allow warnings that output for "line 0" which won't be in
1591         the list of modified lines that are 1-based.
1592
1593 2016-10-06  Commit Queue  <commit-queue@webkit.org>
1594
1595         Unreviewed, rolling out r206713.
1596         https://bugs.webkit.org/show_bug.cgi?id=163097
1597
1598         triggers apparent codegen bug on ARM 32-bit (Requested by smfr
1599         on #webkit).
1600
1601         Reverted changeset:
1602
1603         "Support transitions/animations of background-position with
1604         right/bottom-relative values"
1605         https://bugs.webkit.org/show_bug.cgi?id=162048
1606         http://trac.webkit.org/changeset/206713
1607
1608 2016-10-06  Alex Christensen  <achristensen@webkit.org>
1609
1610         URLParser: Non-ASCII characters in Non-UTF-8 encoded queries of relative URLs with ws, wss, or nonspecial schemes should be UTF-8 encoded
1611         https://bugs.webkit.org/show_bug.cgi?id=163089
1612
1613         Reviewed by Tim Horton.
1614
1615         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1616         (TestWebKitAPI::checkURL):
1617         (TestWebKitAPI::TEST_F):
1618
1619 2016-10-06  Alex Christensen  <achristensen@webkit.org>
1620
1621         Skip tabs and newlines between end of query and beginning of fragment in non-UTF-8-encoded URLs
1622         https://bugs.webkit.org/show_bug.cgi?id=163071
1623
1624         Reviewed by Tim Horton.
1625
1626         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1627         (TestWebKitAPI::TEST_F):
1628
1629 2016-10-06  Alex Christensen  <achristensen@webkit.org>
1630
1631         URLParser should parse file URLs with ports consistently
1632         https://bugs.webkit.org/show_bug.cgi?id=163075
1633
1634         Reviewed by Brady Eidson.
1635
1636         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1637         (TestWebKitAPI::TEST_F):
1638
1639 2016-10-06  John Wilander  <wilander@apple.com>
1640
1641         Update Resource Load Statistics
1642         https://bugs.webkit.org/show_bug.cgi?id=162811
1643
1644         Reviewed by Alex Christensen.
1645
1646         * TestWebKitAPI/Tests/mac/PublicSuffix.mm:
1647             Change from USE(PUBLIC_SUFFIX_LIST) to ENABLE(PUBLIC_SUFFIX_LIST)
1648
1649 2016-10-05  Philippe Normand  <pnormand@igalia.com>
1650
1651         [GStreamer][OWR] GL rendering support
1652         https://bugs.webkit.org/show_bug.cgi?id=162972
1653
1654         Reviewed by Žan Doberšek.
1655
1656         When GStreamer-GL is enabled the GL context needs to be properly passed
1657         to the GStreamer pipeline running within the OpenWebRTC video renderer.
1658         This is now supported using a new OpenWebRTC API that allows the
1659         renderer to request the context from the application using a callback
1660         registered within the renderer.
1661
1662         * gtk/jhbuild.modules: Bump to latest OpenWebRTC for the new
1663         owr_video_renderer_set_request_context_callback API added
1664         recently.
1665
1666 2016-10-05  Youenn Fablet  <youenn@apple.com>
1667
1668         Reuse CodeGenerator::UpdateFile in Tools CodeGenerator
1669         https://bugs.webkit.org/show_bug.cgi?id=162960
1670
1671         Reviewed by Alex Christensen.
1672
1673         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
1674         (WriteData): Using CodeGenerator::UpdateFile to do lazy generated file update when it is made feasible.
1675         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
1676         (WriteData): Ditto.
1677
1678 2016-10-05  Alex Christensen  <achristensen@webkit.org>
1679
1680         URLParser should parse IPv4 addresses as the last two pieces of an IPv6 address
1681         https://bugs.webkit.org/show_bug.cgi?id=162991
1682
1683         Reviewed by Saam Barati.
1684
1685         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1686         (TestWebKitAPI::TEST_F):
1687
1688 2016-10-05  Tim Horton  <timothy_horton@apple.com>
1689
1690         Avoid automatically re-taking snapshots for back-forward items that were never loaded into the view
1691         https://bugs.webkit.org/show_bug.cgi?id=162955
1692         <rdar://problem/27659173>
1693
1694         Reviewed by Simon Fraser.
1695
1696         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm:
1697         (-[SnapshotTestWKWebView init]):
1698         (forceRepaintCallback):
1699         (-[SnapshotTestWKWebView synchronouslyForceRepaint]):
1700         (-[SnapshotTestWKWebView synchronouslyLoadTestPageAndForceRepaint:]):
1701         (TEST):
1702         (makeRedSquareView):
1703         Add a test that restoring session state into a web view without navigating,
1704         then explicitly snapshotting and navigating away, leaves the original snapshot alone.
1705
1706         Adjust the existing test, as well, to ensure that it will reliably fail
1707         if the feature is broken. Use an explicitly added and removed red square
1708         instead of scrolling, because we can't scroll in the restore-without-navigating case.
1709
1710         Stop trying to override the window scale, because it's not working (we're getting partial snapshots)
1711         and isn't necessary; instead just multiply the expected value by the page scale.
1712
1713         (-[SnapshotTestWKWebView loadPageNamed:]): Deleted.
1714         * TestWebKitAPI/mac/TestWKWebViewMac.h:
1715         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
1716         (-[TestWKWebView synchronouslyLoadTestPageNamed:]):
1717         Reorganize to reduce duplication.
1718
1719 2016-10-05  Tim Horton  <timothy_horton@apple.com>
1720
1721         Make it possible to test ViewSnapshotStore behaviors
1722         https://bugs.webkit.org/show_bug.cgi?id=162983
1723
1724         Reviewed by Simon Fraser.
1725
1726         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1727         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm: Added.
1728         (-[SnapshotTestWKWebView init]):
1729         (-[SnapshotTestWKWebView loadPageNamed:]):
1730         (imagesAreEqual):
1731         Add tests for existing basic snapshotting behavior:
1732
1733         - a back-forward item shouldn't have a snapshot
1734           until it is navigated away from
1735
1736         - causing a back-forward item to fall out of the
1737           back-forward list should remove the snapshot
1738
1739         - calling the explicit snapshotting SPI, then navigating away from the page,
1740           should result in the snapshot being retaken
1741
1742 2016-10-05  Chris Dumez  <cdumez@apple.com>
1743
1744         KeyboardEvent.getModifierState() should support "CapsLock" modifier
1745         https://bugs.webkit.org/show_bug.cgi?id=162861
1746
1747         Reviewed by Darin Adler.
1748
1749         Add support for 'capsLockKey' modifier for EventSender.keyDown() so
1750         that we can test this new modifier support for layout tests.
1751
1752         * TestWebKitAPI/mac/PlatformWebViewMac.mm:
1753         (TestWebKitAPI::modifierFlagsForWKModifiers):
1754         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
1755         (WTR::parseModifier):
1756         * WebKitTestRunner/mac/EventSenderProxy.mm:
1757         (WTR::buildModifierFlags):
1758
1759 2016-10-05  Jeremy Jones  <jeremyj@apple.com>
1760
1761         Add MobileMiniBrowser tests for control center and looping fullscreen.
1762         https://bugs.webkit.org/show_bug.cgi?id=162748
1763
1764         Reviewed by Jer Noble.
1765
1766         Refactor existing MobileMiniBrowserTests and add new tests for 
1767         - fullscreen rotation
1768         - fullscreen looping (failing)
1769         - control center interruption (failing)
1770
1771         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
1772         * MobileMiniBrowser/MobileMiniBrowserFramework/Resources/looping2s.html: Added.
1773         * MobileMiniBrowser/MobileMiniBrowserFramework/test2s.mp4: Added.
1774         * MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m:
1775         (-[MobileMiniBrowserUITests setUp]):
1776         (-[MobileMiniBrowserUITests waitToTapButtonNamed:forApp:]):
1777         (-[MobileMiniBrowserUITests loadURL:]):
1778         (-[MobileMiniBrowserUITests requireMinFPS:sampleDurationSeconds:message:]):
1779         (-[MobileMiniBrowserUITests ensureFullscreenControls]):
1780         (-[MobileMiniBrowserUITests timeForTimeString:]):
1781         (-[MobileMiniBrowserUITests testBasicVideoPlayback]):
1782         (-[MobileMiniBrowserUITests testBasicVideoFullscreen]):
1783         (-[MobileMiniBrowserUITests testVideoFullscreenAndRotationAnimation]):
1784         (-[MobileMiniBrowserUITests testVideoFullscreenControlCenter]):
1785         (-[MobileMiniBrowserUITests testLoopingFullscreenLockup]):
1786
1787 2016-10-05  Alex Christensen  <achristensen@webkit.org>
1788
1789         URLParser should correctly strip unnecessary 0's in IPv6 addresses
1790         https://bugs.webkit.org/show_bug.cgi?id=162979
1791
1792         Reviewed by Brady Eidson.
1793
1794         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1795         (TestWebKitAPI::TEST_F):
1796
1797 2016-10-05  Alex Christensen  <achristensen@webkit.org>
1798
1799         UTF-8 encode queries of nonspecial and websocket schemes
1800         https://bugs.webkit.org/show_bug.cgi?id=162956
1801
1802         Reviewed by Geoffrey Garen and Brady Eidson.
1803
1804         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1805         (TestWebKitAPI::TEST_F):
1806
1807 2016-10-05  Alex Christensen  <achristensen@webkit.org>
1808
1809         Prepare to enable URLParser
1810         https://bugs.webkit.org/show_bug.cgi?id=162974
1811
1812         Reviewed by Brady Eidson.
1813
1814         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1815         (TestWebKitAPI::TEST_F):
1816         Added some tests that are unrelated to the code change, but these are
1817         reflected in changed LayoutTest results when enabling the URLParser,
1818         and they weren't in the URLParser tests yet.  They should be.
1819
1820 2016-10-05  Zan Dobersek  <zdobersek@igalia.com>
1821
1822         Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
1823         https://bugs.webkit.org/show_bug.cgi?id=162903
1824
1825         Reviewed by Alex Christensen.
1826
1827         Rename build guards for the remaining implementation of the legacy EME API
1828         to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
1829         of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
1830
1831         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Also remove the
1832         ENABLE_IOS_TEXT_AUTOSIZING feature define that was renamed in r206395 and was
1833         throwing up style checker errors.
1834
1835 2016-10-04  Andy Estes  <aestes@apple.com>
1836
1837         [iOS] Crash in WebResourceLoaderQuickLookDelegate when the client cancels the navigation to a QuickLook resource
1838         https://bugs.webkit.org/show_bug.cgi?id=162950
1839         <rdar://problem/23759114>
1840
1841         Reviewed by Brady Eidson.
1842
1843         Added a new API test.
1844
1845         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm: Sorted imports and removed redundant
1846         initialization of static bools.
1847         (runTest): Factored out the common test logic between QuickLook.NavigationDelegate and
1848         QuickLook.CancelNavigationAfterResponse.
1849         (TEST): Added QuickLook.CancelNavigationAfterResponse.
1850         (-[QuickLookDecidePolicyDelegate
1851         webView:decidePolicyForNavigationResponse:decisionHandler:]): Canceled the navigation.
1852         (-[QuickLookDecidePolicyDelegate webView:didFailProvisionalNavigation:withError:]): Set
1853         isDone to true.
1854
1855 2016-10-04  Ryosuke Niwa  <rniwa@webkit.org>
1856
1857         Add the support for running ES6SampleBench to run-benchmark
1858         https://bugs.webkit.org/show_bug.cgi?id=162890
1859
1860         Reviewed by Saam Barati.
1861
1862         Added the support for running ES6SampleBench as "es6bench".
1863         e.g. ./Tools/Scripts/run-benchmark --platform osx --plan es6bench --browser safari
1864
1865         Instead of the default 10 iterations, run the test 4 iterations using 5 instances of browser
1866         for the total of 20 iterations.
1867
1868         * Scripts/webkitpy/benchmark_runner/data/patches/ES6SampleBench.patch: Added.
1869         * Scripts/webkitpy/benchmark_runner/data/plans/es6bench.plan: Added.
1870         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
1871         (start): Fixed the bug that the linter will complain about the presence of "debugOutput" by
1872         removing it if it's present.
1873
1874 2016-10-04  Simon Fraser  <simon.fraser@apple.com>
1875
1876         [iOS WK2] Make it possible for a test to describe a user gesture as a stream of events in JSON format
1877         https://bugs.webkit.org/show_bug.cgi?id=162934
1878
1879         Reviewed by Dean Jackson.
1880
1881         With this change, a test can describe a user gesture in an "event stream", which is
1882         some JSON describing an array of events with their underlying touches. The added
1883         test describes a single tap.
1884         
1885         The implementation fires up an NSThread, and sleeps the thread between events to dispatch
1886         them at close to real time.
1887         
1888         In future, HIDEventGenerator could use this internally for all of the "compound" interactions.
1889
1890         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1891         (WTR::UIScriptController::sendEventStream):
1892         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1893         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1894         (WTR::UIScriptController::sendEventStream):
1895         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1896         * WebKitTestRunner/ios/HIDEventGenerator.h:
1897         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1898         (transducerTypeFromString):
1899         (phaseFromString):
1900         (-[HIDEventGenerator eventMaskFromEventInfo:]):
1901         (-[HIDEventGenerator touchFromEventInfo:]):
1902         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
1903         (-[HIDEventGenerator dispatchEventWithInfo:]):
1904         (-[HIDEventGenerator eventDispatchThreadEntry:]):
1905         (-[HIDEventGenerator sendEventStream:completionBlock:]):
1906         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1907         (WTR::UIScriptController::sendEventStream):
1908
1909 2016-10-04  Megan Gardner  <megan_gardner@apple.com>
1910
1911         Add Megan to contributor's list
1912         https://bugs.webkit.org/show_bug.cgi?id=162944
1913
1914         Reviewed by Tim Horton.
1915
1916         Add Megan to the contributor's lists so that her e-mail autocompletes for CC
1917
1918         * Scripts/webkitpy/common/config/contributors.json:
1919
1920 2016-10-04  Alex Christensen  <achristensen@webkit.org>
1921
1922         Add tests verifying non-special URL hosts are parsed according to spec
1923         https://bugs.webkit.org/show_bug.cgi?id=162885
1924
1925         Reviewed by Sam Weinig.
1926
1927         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1928         (TestWebKitAPI::TEST_F):
1929
1930 2016-10-04  Anders Carlsson  <andersca@apple.com>
1931
1932         Properly kill web processes in the launching state
1933         https://bugs.webkit.org/show_bug.cgi?id=162938
1934
1935         Reviewed by Tim Horton.
1936
1937         * TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp:
1938         Enable this test again.
1939
1940 2016-10-04  Alex Christensen  <achristensen@webkit.org>
1941
1942         URLParser: query-only URLs relative to file URLs should just add a query
1943         https://bugs.webkit.org/show_bug.cgi?id=162888
1944
1945         Reviewed by Tim Horton.
1946
1947         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1948         (TestWebKitAPI::TEST_F):
1949
1950 2016-10-04  Alex Christensen  <achristensen@webkit.org>
1951
1952         URLParser should match URL::parse and other browsers when parsing a URL containing only scheme://
1953         https://bugs.webkit.org/show_bug.cgi?id=162909
1954
1955         Reviewed by Tim Horton.
1956
1957         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1958         (TestWebKitAPI::TEST_F):
1959
1960 2016-10-04  Yusuke Suzuki  <utatane.tea@gmail.com>
1961
1962         [DOMJIT] Introduce DOMJIT::GetterSetter to tell JIT information
1963         https://bugs.webkit.org/show_bug.cgi?id=162916
1964
1965         Reviewed by Filip Pizlo.
1966
1967         * DumpRenderTree/CMakeLists.txt:
1968
1969 2016-10-04  Wenson Hsieh  <wenson_hsieh@apple.com>
1970
1971         Media controls are displayed in the incorrect state momentarily after switching between tabs playing media
1972         https://bugs.webkit.org/show_bug.cgi?id=162766
1973         <rdar://problem/28533523>
1974
1975         Reviewed by Jer Noble.
1976
1977         Adds new tests and tweaks existing tests to verify last updated Now Playing information.
1978
1979         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
1980         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:title:duration:elapsedTime:]):
1981         (TestWebKitAPI::TEST):
1982         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:]): Deleted.
1983         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html:
1984
1985 2016-10-03  Alex Christensen  <achristensen@webkit.org>
1986
1987         URLParser should ignore tabs at all locations
1988         https://bugs.webkit.org/show_bug.cgi?id=162836
1989
1990         Reviewed by Geoffrey Garen.
1991
1992         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1993         (TestWebKitAPI::checkURL):
1994         (TestWebKitAPI::checkRelativeURL):
1995         (TestWebKitAPI::checkURLDifferences):
1996         (TestWebKitAPI::checkRelativeURLDifferences):
1997         (TestWebKitAPI::TEST_F):
1998
1999 2016-10-03  Alex Christensen  <achristensen@webkit.org>
2000
2001         URLParser: fragment-only URLs relative to file URLs should just add a fragment
2002         https://bugs.webkit.org/show_bug.cgi?id=162871
2003
2004         Reviewed by Geoffrey Garen.
2005
2006         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2007         (TestWebKitAPI::TEST_F):
2008
2009 2016-10-03  Per Arne Vollan  <pvollan@apple.com>
2010
2011         [Win] DRT temp folder is not used.
2012         https://bugs.webkit.org/show_bug.cgi?id=162863
2013
2014         Reviewed by Alex Christensen.
2015
2016         Convert DRT temp folder to DOS path, which DRT can use.
2017
2018         * Scripts/webkitpy/port/driver.py:
2019         (Driver._setup_environ_for_driver):
2020
2021 2016-10-03  Alex Christensen  <achristensen@webkit.org>
2022
2023         URLParser: empty relative URLs should not copy fragment from the base URL
2024         https://bugs.webkit.org/show_bug.cgi?id=162864
2025
2026         Reviewed by Chris Dumez.
2027
2028         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2029         (TestWebKitAPI::TEST_F):
2030
2031 2016-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
2032
2033         [SOUP] Cleanup persistent credential storage code
2034         https://bugs.webkit.org/show_bug.cgi?id=162777
2035
2036         Reviewed by Alex Christensen.
2037
2038         Use USE(LIBSECRET) instead of ENABLE(CREDENTIAL_STORAGE).
2039
2040         * TestWebKitAPI/Tests/WebKit2Gtk/TestAuthentication.cpp:
2041         (testWebViewAuthenticationStorage):
2042
2043 2016-10-02  Darin Adler  <darin@apple.com>
2044
2045         Rename ExceptionCode-based exception handling to "legacy"
2046         https://bugs.webkit.org/show_bug.cgi?id=162859
2047
2048         Reviewed by Chris Dumez.
2049
2050         * Scripts/do-webcore-rename: Updated script to do this round of renames.
2051
2052 2016-10-02  Wenson Hsieh  <wenson_hsieh@apple.com>
2053
2054         Media controls for Soundcloud easily falls out of sync with what's actually playing
2055         https://bugs.webkit.org/show_bug.cgi?id=162843
2056         <rdar://problem/28176874>
2057
2058         Reviewed by Beth Dakin.
2059
2060         Adds two new tests simulating audio playback behavior on soundcloud. Also tweaks some of the WKWebView test
2061         message handling logic to support having multiple message-handler mappings.
2062
2063         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2064         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2065         (TestWebKitAPI::TEST):
2066         * TestWebKitAPI/Tests/WebKit2Cocoa/play-audio-on-click.html: Added.
2067         * TestWebKitAPI/mac/TestWKWebViewMac.h:
2068         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
2069         (-[TestMessageHandler addMessage:withHandler:]):
2070         (-[TestMessageHandler userContentController:didReceiveScriptMessage:]):
2071         (-[TestWKWebView performAfterReceivingMessage:action:]):
2072         (-[TestWKWebView performAfterLoading:]):
2073         (-[TestMessageHandler initWithMessage:handler:]): Deleted.
2074
2075 2016-09-30  Alex Christensen  <achristensen@webkit.org>
2076
2077         Fix off-by-one error in URLParser::parseIPv4Host
2078         https://bugs.webkit.org/show_bug.cgi?id=162789
2079
2080         Reviewed by Tim Horton.
2081
2082         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2083         (TestWebKitAPI::TEST_F):
2084
2085 2016-09-30  Alex Christensen  <achristensen@webkit.org>
2086
2087         URLParser: parsing a URL with an empty host and a colon should fail
2088         https://bugs.webkit.org/show_bug.cgi?id=162795
2089
2090         Reviewed by Tim Horton.
2091
2092         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2093         (TestWebKitAPI::TEST_F):
2094
2095 2016-09-30  Alex Christensen  <achristensen@webkit.org>
2096
2097         URLParser: handle syntax violations in non-UTF-8 encoded queries
2098         https://bugs.webkit.org/show_bug.cgi?id=162770
2099
2100         Reviewed by Tim Horton.
2101
2102         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2103         (TestWebKitAPI::checkURL):
2104         (TestWebKitAPI::TEST_F):
2105         Tests with emoji change behavior when we insert a tab between the surrogates, so don't do the
2106         insert-tab-at-each-location verification that syntax violations are handled correctly.
2107
2108 2016-09-30  Megan Gardner  <megan_gardner@apple.com>
2109
2110         Make it possible to test web-related user-interface features
2111         https://bugs.webkit.org/show_bug.cgi?id=162657
2112
2113         Reviewed by Simon Fraser.
2114
2115         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2116         (WTR::UIScriptController::contentsOfUserInterfaceItem):
2117         (WTR::UIScriptController::selectFormAccessoryPickerRow): Deleted.
2118         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2119         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2120         (WTR::UIScriptController::contentsOfUserInterfaceItem):
2121         (WTR::UIScriptController::selectFormAccessoryPickerRow): Deleted.
2122         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2123         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2124         (WTR::UIScriptController::contentsOfUserInterfaceItem):
2125         (WTR::UIScriptController::selectFormAccessoryPickerRow): Deleted.
2126
2127 2016-09-29  Jiewen Tan  <jiewen_tan@apple.com>
2128
2129         Expose CryptoKey to web workers
2130         https://bugs.webkit.org/show_bug.cgi?id=162640
2131         <rdar://problem/28182204>
2132
2133         Reviewed by Brent Fulgham.
2134
2135         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2136         * TestWebKitAPI/Tests/WebCore/SerializedCryptoKeyWrap.mm: Added.
2137         (TestWebKitAPI::TEST_F):
2138         Add API tests for SerializedCryptoKeyWrap APIs.
2139
2140 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2141
2142         Fix syntax violation handling in IPv4 address parsing
2143         https://bugs.webkit.org/show_bug.cgi?id=162756
2144
2145         Reviewed by Tim Horton.
2146
2147         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2148         (TestWebKitAPI::TEST_F):
2149
2150 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2151
2152         URLParser should correctly parse ports with leading 0's
2153         https://bugs.webkit.org/show_bug.cgi?id=162752
2154
2155         Reviewed by Tim Horton.
2156
2157         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2158         (TestWebKitAPI::TEST_F):
2159
2160 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2161
2162         URLParser: make parsing invalid IPv4 addresses more robust and correct
2163         https://bugs.webkit.org/show_bug.cgi?id=162746
2164
2165         Reviewed by Tim Horton.
2166
2167         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2168         (TestWebKitAPI::TEST_F):
2169
2170 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2171
2172         URLParser: IPv6 addresses followed by a colon are invalid
2173         https://bugs.webkit.org/show_bug.cgi?id=162747
2174
2175         Reviewed by Tim Horton.
2176
2177         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2178         (TestWebKitAPI::TEST_F):
2179
2180 2016-09-29  Alexey Proskuryakov  <ap@apple.com>
2181
2182         Make WKTR short timeout dynamic
2183         https://bugs.webkit.org/show_bug.cgi?id=162733
2184
2185         Reviewed by Alex Christensen.
2186
2187         WebKitTestRunner has a hardcoded value for how long to wait for IPC responses,
2188         which is 5 seconds, or 10 seconds under ASan. But some of the operations can be
2189         fairly time consuming - e.g. launching Networking process on demand.
2190         These may take longer under load, especially with GuardMalloc.
2191
2192         * WebKitTestRunner/TestController.cpp:
2193         (WTR::TestController::resetStateToConsistentValues):
2194         (WTR::TestController::reattachPageToWebProcess):
2195         * WebKitTestRunner/TestController.h:
2196         * WebKitTestRunner/TestInvocation.cpp:
2197         (WTR::TestInvocation::shortTimeout):
2198         (WTR::TestInvocation::invoke):
2199         (WTR::TestInvocation::dumpResults):
2200
2201         * WebKitTestRunner/TestInvocation.h:
2202         (WTR::TestInvocation::customTimeout): Deleted, this function was unused.
2203
2204 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2205
2206         URLParser should fail to parse unclosed IPv6 addresses
2207         https://bugs.webkit.org/show_bug.cgi?id=162715
2208
2209         Reviewed by Tim Horton.
2210
2211         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2212         (TestWebKitAPI::TEST_F):
2213
2214 2016-09-29  Alex Christensen  <achristensen@webkit.org>
2215
2216         URLParser should ignore tabs at all possible locations
2217         https://bugs.webkit.org/show_bug.cgi?id=162711
2218
2219         Reviewed by Tim Horton.
2220
2221         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2222         (TestWebKitAPI::ExpectedParts::isInvalid):
2223         (TestWebKitAPI::checkURL):
2224         (TestWebKitAPI::TEST_F):
2225
2226 2016-09-29  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
2227
2228         [EFL] Add search button to url bar in MiniBrowser
2229         https://bugs.webkit.org/show_bug.cgi?id=162716
2230
2231         Reviewed by Michael Catanzaro.
2232
2233         As a bug title, it would be good to add a search button to URL bar.
2234         Additionally this patch changes color of button to recognize the buttons.
2235
2236         * MiniBrowser/efl/main.c:
2237         (_search_button_clicked_cb):
2238         (_create_toolbar_button):
2239         (window_create):
2240         (create_toolbar_button): Deleted.
2241
2242 2016-09-28  Tim Horton  <timothy_horton@apple.com>
2243
2244         API test WebKit2.AutoLayoutIntegration is a flaky timeout
2245         https://bugs.webkit.org/show_bug.cgi?id=160284
2246
2247         Reviewed by Dan Bernstein.
2248
2249         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
2250         (-[AutoLayoutWKWebView load:withWidth:expectingContentSize:resettingWidth:]):
2251         (-[AutoLayoutWKWebView beginLayoutAtMinimumWidth:andExpectContentSizeChange:]):
2252         (-[AutoLayoutWKWebView waitForContentSizeChangeResettingWidth:]):
2253         (-[AutoLayoutWKWebView layoutAtMinimumWidth:andExpectContentSizeChange:resettingWidth:]):
2254         (-[AutoLayoutWKWebView invalidateIntrinsicContentSize]):
2255         (TEST):
2256         Make the autolayout tests a bit more flexible regarding the ordering of
2257         invalidateIntrinsicContentSize, to avoid a race between the load
2258         completing and the invalidation.
2259
2260         Also, move the newly added test to use its own WKWebView, since once in a
2261         while we get a first layout notification from the previous page, causing the test to fail.
2262
2263         Un-disable the tests, which now run without any flakes for me with quite a few iterations.
2264
2265 2016-09-28  Alex Christensen  <achristensen@webkit.org>
2266
2267         URLParser should properly handle unexpected periods and overflows in IPv4 addresses
2268         https://bugs.webkit.org/show_bug.cgi?id=162655
2269
2270         Reviewed by Geoffrey Garen.
2271
2272         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2273         (TestWebKitAPI::TEST_F):
2274
2275 2016-09-28  Ryan Haddad  <ryanhaddad@apple.com>
2276
2277         Disable flaky API test WebKit2.AutoLayoutIntegration.
2278         https://bugs.webkit.org/show_bug.cgi?id=160284
2279
2280         Unreviewed test gardening.
2281
2282         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
2283         (TEST):
2284
2285 2016-09-28  Alex Christensen  <achristensen@webkit.org>
2286
2287         URLParser should ignore tabs in authority
2288         https://bugs.webkit.org/show_bug.cgi?id=162694
2289
2290         Reviewed by Geoffrey Garen.
2291
2292         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2293         (TestWebKitAPI::TEST_F):
2294
2295 2016-09-28  Alex Christensen  <achristensen@webkit.org>
2296
2297         URLParser should ignore extra slashes after scheme:// and handle a missing slash after the port
2298         https://bugs.webkit.org/show_bug.cgi?id=162690
2299
2300         Reviewed by Geoffrey Garen.
2301
2302         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2303         (TestWebKitAPI::TEST_F):
2304
2305 2016-09-28  Alex Christensen  <achristensen@webkit.org>
2306
2307         URLParser should correctly canonicalize uppercase IPv6 addresses
2308         https://bugs.webkit.org/show_bug.cgi?id=162680
2309
2310         Reviewed by Tim Horton.
2311
2312         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2313         (TestWebKitAPI::TEST_F):
2314
2315 2016-09-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2316
2317         Adopt MediaRemote SPI to achieve desired Now Playing behavior
2318         https://bugs.webkit.org/show_bug.cgi?id=162658
2319         <rdar://problem/28499358>
2320
2321         Reviewed by Jer Noble.
2322
2323         Introduces 2 unit tests in the new NowPlayingControlsTests test suite. Also provides some basic support for
2324         mocking key window status for TestWKWebViews.
2325
2326         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2327         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm: Added.
2328         (-[NowPlayingTestWebView hasActiveNowPlayingSession]):
2329         (-[NowPlayingTestWebView expectHasActiveNowPlayingSession:]):
2330         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:]):
2331         (TestWebKitAPI::TEST):
2332         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html: Added.
2333         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
2334         (-[TestWKWebViewHostWindow isKeyWindow]):
2335         (-[TestWKWebViewHostWindow makeKeyWindow]):
2336         (-[TestWKWebViewHostWindow resignKeyWindow]):
2337
2338 2016-09-28  Per Arne Vollan  <pvollan@apple.com>
2339
2340         [Win] Compile fix.
2341         https://bugs.webkit.org/show_bug.cgi?id=162670
2342
2343         Reviewed by Brent Fulgham.
2344
2345         Make sure we include JavaScriptCore files from the forwarding headers folder.
2346         Otherwise we might get multiple definitions if a JSC file is included both
2347         from the forwarding headers folder and the JSC source folder, since
2348         #pragma once is used in the header files.
2349
2350         * DumpRenderTree/TestRunner.cpp:
2351
2352 2016-09-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2353
2354         [GTK] Add Chrome UA quirk
2355         https://bugs.webkit.org/show_bug.cgi?id=162617
2356
2357         Reviewed by Carlos Garcia Campos.
2358
2359         Update test. This portion of the commit was actually unreviewed.
2360
2361         * TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp:
2362         (TestWebKitAPI::TEST):
2363
2364 2016-09-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2365
2366         [GTK] Adjust OS X UA quirks list
2367         https://bugs.webkit.org/show_bug.cgi?id=162616
2368
2369         "Reviewed" by Carlos Garcia Campos.
2370
2371         Update test. This portion of the commit was actually unreviewed.
2372
2373         * TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp:
2374         (TestWebKitAPI::TEST):
2375
2376 2016-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2377
2378         [GTK] Switch to use GMenu internally in the context menu implementation
2379         https://bugs.webkit.org/show_bug.cgi?id=162603
2380
2381         Reviewed by Michael Catanzaro.
2382
2383         Remove smart separators test, since that's now done automatically by GTK+.
2384
2385         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
2386         (beforeAll):
2387         (testContextMenuWebExtensionMenu): Deleted.
2388
2389 2016-09-27  Alex Christensen  <achristensen@webkit.org>
2390
2391         Correctly parse URLs with the first tab in the fragment
2392         https://bugs.webkit.org/show_bug.cgi?id=162650
2393
2394         Reviewed by Saam Barati.
2395
2396         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2397         (TestWebKitAPI::TEST_F):
2398
2399 2016-09-27  Alex Christensen  <achristensen@webkit.org>
2400
2401         URLParser: Handle windows drive letters after two slashes in relative URLs according to spec
2402         https://bugs.webkit.org/show_bug.cgi?id=162646
2403
2404         Reviewed by Saam Barati.
2405
2406         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2407         (TestWebKitAPI::TEST_F):
2408
2409 2016-09-27  Alex Christensen  <achristensen@webkit.org>
2410
2411         URLs with @ in the user should only search for the last @ until the end of the authority and host
2412         https://bugs.webkit.org/show_bug.cgi?id=162635
2413
2414         Reviewed by Geoffrey Garen.
2415
2416         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2417         (TestWebKitAPI::TEST_F):
2418
2419 2016-09-27  JF Bastien  <jfbastien@apple.com>
2420
2421         Speed up Heap::isMarkedConcurrently
2422         https://bugs.webkit.org/show_bug.cgi?id=162095
2423
2424         Reviewed by Filip Pizlo.
2425
2426         * TestWebKitAPI/CMakeLists.txt:
2427         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2428         * TestWebKitAPI/Tests/WTF/Consume.cpp: Added.
2429         (testConsume):
2430         (TestWebKitAPI::TEST):
2431
2432 2016-09-26  Alex Christensen  <achristensen@webkit.org>
2433
2434         Implement URLParser::syntaxViolation
2435         https://bugs.webkit.org/show_bug.cgi?id=162593
2436
2437         Reviewed by Geoffrey Garen.
2438
2439         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2440         (TestWebKitAPI::TEST_F):
2441
2442 2016-09-27  Anders Carlsson  <andersca@apple.com>
2443
2444         Turns out OptionSet.cpp wasn't added to the right target. Add it and fix the build for real.
2445
2446         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2447         * TestWebKitAPI/Tests/WTF/OptionSet.cpp:
2448         (TestWebKitAPI::TEST):
2449
2450 2016-09-27  Anders Carlsson  <andersca@apple.com>
2451
2452         Try to fix the GTK+ build.
2453
2454         * TestWebKitAPI/Tests/WTF/OptionSet.cpp:
2455         (TestWebKitAPI::TEST):
2456
2457 2016-09-27  Dan Bernstein  <mitz@apple.com>
2458
2459         [iOS] REGRESSION (r182126): Selection highlight and handles aren’t visible with WKSelectionGranularityCharacter
2460         https://bugs.webkit.org/show_bug.cgi?id=162577
2461         <rdar://problem/28481984>
2462
2463         Reviewed by Simon Fraser.
2464
2465         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2466         (WTR::UIScriptController::selectionRangeViewRects): Returns null.
2467
2468         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: Declared new
2469           selectionRangeViewRects attribute.
2470
2471         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
2472         (WTR::UIScriptContext::jsContext): Added this public accessor.
2473
2474         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2475         (WTR::selectionRangeViewRects): Generic implementation that returns null.
2476         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2477
2478         * WebKitTestRunner/TestController.cpp:
2479         (WTR::updateTestOptionsFromTestHeader): Parse the new useCharacterSelectionGranularity
2480           option.
2481
2482         * WebKitTestRunner/TestOptions.h: Added new useCharacterSelectionGranularity option.
2483
2484         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2485         (WTR::TestController::platformCreateWebView): Set the configuration’s selectionGranularity
2486           property based on the new option.
2487
2488         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2489         (WTR::PlatformWebView::viewSupportsOptions): Compare selection granularity option values.
2490
2491         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2492         (WTR::UIScriptController::selectionRangeViewRects): iOS-specific implementation that calls
2493           the new -[WKWebView _uiTextSelectionRectViews] and returns an array of view frame
2494           dictionaries.
2495
2496 2016-09-27  Daniel Bates  <dabates@apple.com>
2497
2498         Cannot run dump-class-layout; dies with "global name 'lldb' is not defined"
2499         https://bugs.webkit.org/show_bug.cgi?id=162585
2500
2501         Reviewed by Simon Fraser.
2502
2503         Import the lldb module into the global namespace.
2504
2505         Currently dump-class-layout imports the lldb Python module using the import statement
2506         from the helper function import_lldb. The import statement imports the names of the
2507         specified module into the scope of import_lldb(); => the names imported from this
2508         module cannot be accessed outside the scope of import_lldb(). Other functions in
2509         this script assume that the lldb module was imported into the global scope. We should
2510         import the module lldb into the global scope, if it exists, so that these functions
2511         can find it. Otherwise, we should emit a human readable error message that explains
2512         that we failed to import the lldb module.
2513
2514         Also remove some unnecessary semicolon characters.
2515
2516         * Scripts/dump-class-layout:
2517         (import_lldb):
2518
2519 2016-09-27  Jer Noble  <jer.noble@apple.com>
2520
2521         Remove deprecated ENCRYPTED_MEDIA implementation.
2522         https://bugs.webkit.org/show_bug.cgi?id=161010
2523
2524         Reviewed by Eric Carlson.
2525
2526         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2527
2528 2016-09-27  Chris Dumez  <cdumez@apple.com>
2529
2530         [WK2] Navigating to a Blob URL does not trigger a download
2531         https://bugs.webkit.org/show_bug.cgi?id=162574
2532
2533         Reviewed by Darin Adler.
2534
2535         Add API that tests navigating to a Blob URL and checks that that the load
2536         properly gets converted into a download.
2537
2538         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2539         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
2540         (-[BlobDownloadDelegate _downloadDidStart:]):
2541         (-[BlobDownloadDelegate _download:didReceiveResponse:]):
2542         (-[BlobDownloadDelegate _download:didReceiveData:]):
2543         (-[BlobDownloadDelegate _download:decideDestinationWithSuggestedFilename:allowOverwrite:]):
2544         (-[BlobDownloadDelegate _downloadDidFinish:]):
2545         (-[DownloadBlobURLNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
2546         (TEST):
2547         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestBlobURL.html: Added.
2548
2549 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
2550
2551         [GTK] Install binaries to pkglibexecdir rather than bindir
2552         https://bugs.webkit.org/show_bug.cgi?id=162602
2553
2554         Reviewed by Carlos Garcia Campos.
2555
2556         Install MiniBrowser to LIBEXEC_INSTALL_DIR rather than EXEC_INSTALL_DIR.
2557
2558         * MiniBrowser/gtk/CMakeLists.txt:
2559
2560 2016-09-27  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2561
2562         [EFL] Locate color picker popup to center of window
2563         https://bugs.webkit.org/show_bug.cgi?id=162540
2564
2565         Reviewed by Michael Catanzaro.
2566
2567         Color picker popup hasn't located in a center of main window, because
2568         elm_win_center() function doesn't work correctly. It looks a bug.
2569
2570         To fix the problem, this patch uses evas_object_geometry_set() instead.
2571
2572         * MiniBrowser/efl/main.c:
2573         (_color_picker_request_cb):
2574
2575 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
2576
2577         [GTK] Disable ACCELERATED_2D_CANVAS when using build-webkit
2578         https://bugs.webkit.org/show_bug.cgi?id=162600
2579
2580         Reviewed by Carlos Garcia Campos.
2581
2582         * Scripts/webkitperl/FeatureList.pm:
2583
2584 2016-09-27  Michael Catanzaro  <mcatanzaro@igalia.com>
2585
2586         PyGIWarnings printed by webkit-patch
2587         https://bugs.webkit.org/show_bug.cgi?id=152470
2588
2589         Reviewed by Carlos Garcia Campos.
2590
2591         Update to a newer version of the keyring module, since this bug has been fixed upstream for
2592         a while. But be careful not to update to the latest version, since it has some compatibility
2593         breaks and requires the SecretService python module on Linux, but I couldn't figure out how
2594         to autoinstall it successfully.
2595
2596         * Scripts/webkitpy/thirdparty/__init__.py:
2597         (AutoinstallImportHook._install_keyring):
2598
2599 2016-09-26  Ryan Haddad  <ryanhaddad@apple.com>
2600
2601         Add Sierra to the flakiness dashboard.
2602         https://bugs.webkit.org/show_bug.cgi?id=162509
2603
2604         Reviewed by Alexey Proskuryakov.
2605
2606         * TestResultServer/static-dashboards/builders.jsonp:
2607
2608 2016-09-26  Daniel Bates  <dabates@apple.com>
2609
2610         Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING
2611         https://bugs.webkit.org/show_bug.cgi?id=162365
2612
2613         Reviewed by Simon Fraser.
2614
2615         * DumpRenderTree/TestRunner.h:
2616         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2617
2618 2016-09-26  Tomas Popela  <tpopela@redhat.com>
2619
2620         [GTK] TestContextMenu is failing
2621         https://bugs.webkit.org/show_bug.cgi?id=162569
2622
2623         We cannot use the MP3 file in the TestContextMenu, as it will not work
2624         by default on most distributions (that don't have an MP3 codecs
2625         installed). Change the test to use OGG file instead.
2626
2627         Reviewed by Michael Catanzaro.
2628
2629         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
2630         (testContextMenuDefaultMenu):
2631
2632 2016-09-26  Yusuke Suzuki  <utatane.tea@gmail.com>
2633
2634         Using char16_t instead of wchar_t in TestWebKitAPI URLParser tests
2635         https://bugs.webkit.org/show_bug.cgi?id=162537
2636
2637         Reviewed by Alex Christensen.
2638
2639         Some build bot (Linux ARM GTK port) fails since we cannot select
2640         the specific StringBuilder::append method for wchar_t.
2641
2642         wchar_t implementation highly depends on platforms. sizeof(wchar_t) == 2
2643         in Windows, while sizeof(wchar_t) == 4 in Linux and OS X. So, ICU
2644         uses wchar_t for UChar (UTF-16) in Windows while it doesn't in other
2645         platforms.
2646
2647         StringBuilder::append is overloaded for UChar. In Windows, we can pass
2648         wchar_t since UChar is wchar_t. However, we cannot do that in other platforms.
2649
2650         Instead of using wchar_t, we use more platform portable UTF-16 literal for
2651         testing. Use char16_t and C++11 UTF-16 literal.
2652
2653         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2654         (TestWebKitAPI::utf16String):
2655         (TestWebKitAPI::TEST_F):
2656         (TestWebKitAPI::wideString): Deleted.
2657
2658 2016-09-25  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2659
2660         [EFL] Adjust EFL indentation to EFL MiniBrowser
2661         https://bugs.webkit.org/show_bug.cgi?id=162542
2662
2663         Unreviewed, EFL simple coding style fix.
2664
2665         Some functions wasn't applied EFL coding style in prefix fix.
2666
2667         * MiniBrowser/efl/main.c:
2668         (_key_down_cb):
2669         (view_focus_set):
2670         (_mouse_down_cb):
2671         (title_set):
2672         (_title_changed_cb):
2673         (_url_changed_cb):
2674         (_back_forward_list_changed_cb):
2675         (_progress_cb):
2676         (_error_cb):
2677         (_download_request_cb):
2678         (close_file_picker):
2679         (_filepicker_parent_deletion_cb):
2680         (_filepicker_deletion_cb):
2681         (_fileselector_done_cb):
2682         (_file_chooser_request_cb):
2683         (_download_finished_cb):
2684         (_download_failed_cb):
2685         (_color_changed_cb):
2686         (_color_item_selected_cb):
2687         (_color_picker_ok_clicked_cb):
2688         (_color_picker_cancel_clicked_cb):
2689         (_color_picker_dismiss_cb):
2690         (_color_picker_request_cb):
2691         (quit):
2692         (has_scheme):
2693         (url_from_user_input):
2694         (url_load_from_user_input):
2695         (_url_bar_activated_cb):
2696         (_url_bar_clicked_cb):
2697         (_search_field_aborted_cb):
2698         (_search_field_activated_cb):
2699         (_search_field_clicked_cb):
2700         (_back_button_clicked_cb):
2701         (_forward_button_clicked_cb):
2702         (_search_backward_button_clicked_cb):
2703         (_search_forward_button_clicked_cb):
2704         (_search_case_option_changed):
2705         (_search_word_start_option_changed_cb):
2706         (_search_close_button_clicked_cb):
2707         (_refresh_button_clicked_cb):
2708         (_stop_button_clicked_cb):
2709         (list_item_label_get):
2710         (_list_item_select_cb):
2711         (navigation_button_longpress_process):
2712         (_forward_button_longpress_cb):
2713         (_back_button_longpress_cb):
2714         (quit_event_loop):
2715         (_ok_clicked_cb):
2716         (_file_entry_dialog_show):
2717
2718 2016-09-24  Chris Dumez  <cdumez@apple.com>
2719
2720         [WK2] anchor.download attribute value is ignored by NETWORK_SESSION code path
2721         https://bugs.webkit.org/show_bug.cgi?id=162531
2722
2723         Reviewed by Darin Adler.
2724
2725         Update decideDestinationWithSuggestedFilename() to return a actual file path
2726         instead of nullptr. The NETWORK_SESSION code path cancels the download when
2727         decideDestinationWithSuggestedFilename() returns an empty file path, unlike
2728         the !NETWORK_SESSION code path that just continue downloading without
2729         explicitely setting a destination path. This lead to different test results
2730         for NETWORK_SESSION and !NETWORK_SESSION code paths. Returns a valid
2731         destination path makes more sense and leads to consistent results.
2732
2733         * WebKitTestRunner/TestController.cpp:
2734         (WTR::TestController::decideDestinationWithSuggestedFilename):
2735
2736 2016-09-23  Wenson Hsieh  <wenson_hsieh@apple.com>
2737
2738         [mac-sierra] 2 WKWebViewCandidateTests API test failures
2739         https://bugs.webkit.org/show_bug.cgi?id=162470
2740
2741         Reviewed by Tim Horton.
2742
2743         VideoControlsManager, WKWebViewCandidateTests and CandidateTests should not be running on 10.12.0. Guard these
2744         tests with an SDK check to prevent 10.12.0 bots from building them.
2745
2746         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2747         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
2748         * TestWebKitAPI/Tests/mac/CandidateTests.mm:
2749
2750 2016-09-23  Alex Christensen  <achristensen@webkit.org>
2751
2752         Refactor URLParser
2753         https://bugs.webkit.org/show_bug.cgi?id=162516
2754
2755         Reviewed by Brady Eidson.
2756
2757         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2758         (TestWebKitAPI::TEST_F):
2759
2760 2016-09-23  Caitlin Potter  <caitp@igalia.com>
2761
2762         [JSC] Implement parsing of Async Functions
2763         https://bugs.webkit.org/show_bug.cgi?id=161409
2764
2765         Reviewed by Yusuke Suzuki.
2766
2767         * Scripts/build-jsc:
2768         (cMakeArgsFromFeatures):
2769         * Scripts/webkitperl/FeatureList.pm:
2770         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2771
2772 2016-09-23  Alex Christensen  <achristensen@webkit.org>
2773
2774         Refactor URLParser
2775         https://bugs.webkit.org/show_bug.cgi?id=162511
2776
2777         Reviewed by Brady Eidson.
2778
2779         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2780         (TestWebKitAPI::TEST_F):
2781         (TestWebKitAPI::checkURL):
2782
2783 2016-09-23  Alexey Proskuryakov  <ap@apple.com>
2784
2785         iOS playback user action tests fail on some machines
2786         https://bugs.webkit.org/show_bug.cgi?id=162504
2787         rdar://problem/28013994
2788
2789         Reviewed by Jer Noble.
2790
2791         Avoid the need to have a timeout.
2792
2793         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html:
2794         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html:
2795         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html:
2796         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html:
2797
2798 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2799
2800         REGRESSION(r204163): [GTK] API test /webkit2/WebKitSecurityManager/file-xhr is failing
2801         https://bugs.webkit.org/show_bug.cgi?id=161607
2802
2803         Reviewed by Michael Catanzaro.
2804
2805         Since r204163, in case of cross origin error when loading the XHR, the load fails and an error message is shown
2806         in the console, but there isn't any js expcetion, which is what we were checking. Now, we check that there
2807         aren't exceptions, and that the error message is sent to the console.
2808
2809         * Scripts/run-gtk-tests:
2810         (TestRunner):
2811         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2812         (consoleMessageReceivedCallback):
2813         (testWebContextSecurityFileXHR):
2814
2815 2016-09-23  Ryan Haddad  <ryanhaddad@apple.com>
2816
2817         Use correct hardware for Sierra Debug WK2 testers.
2818         https://bugs.webkit.org/show_bug.cgi?id=162474
2819
2820         Reviewed by Alexey Proskuryakov.
2821
2822         * BuildSlaveSupport/build.webkit.org-config/config.json:
2823
2824 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2825
2826         [GTK] Make all WebView tests have a WebKitUserContentManager
2827         https://bugs.webkit.org/show_bug.cgi?id=162487
2828
2829         Reviewed by Michael Catanzaro.
2830
2831         It simplifies tests using the user content manager, and allows to use it without having to subclass WebViewTest.
2832
2833         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp:
2834         (ConsoleMessageTest::ConsoleMessageTest):
2835         (ConsoleMessageTest::~ConsoleMessageTest):
2836         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
2837         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp:
2838         (testUserContentManagerInjectedStyleSheet):
2839         (testUserContentManagerInjectedScript):
2840         (UserScriptMessageTest::UserScriptMessageTest):
2841         (beforeAll):
2842         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2843         (testWebViewIsPlayingAudio):
2844         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
2845         (WebViewTest::WebViewTest):
2846         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h:
2847
2848 2016-09-23  Antoine Quint  <graouts@apple.com>
2849
2850         Add a new runtime flag for work on modern media controls (off by default)
2851         https://bugs.webkit.org/show_bug.cgi?id=162420
2852         <rdar://problem/27989489>
2853
2854         Reviewed by Eric Carlson.
2855
2856         * DumpRenderTree/mac/DumpRenderTree.mm:
2857         (resetWebPreferencesToConsistentValues):
2858         * DumpRenderTree/win/DumpRenderTree.cpp:
2859         (resetWebPreferencesToConsistentValues):
2860         * Scripts/webkitperl/FeatureList.pm:
2861         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2862         (WTR::InjectedBundle::beginTesting):
2863         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2864         (WTR::TestRunner::setModernMediaControlsEnabled):
2865         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2866
2867 2016-09-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2868
2869         REGRESSION(r194387): Crash on github.com in IntlDateTimeFormat::resolvedOptions in C locale
2870         https://bugs.webkit.org/show_bug.cgi?id=162139
2871
2872         Reviewed by Michael Catanzaro.
2873
2874         Add test cases to check the behavior when using the C locale and an invalid locale.
2875
2876         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2877         (testWebContextLanguages):
2878
2879 2016-09-22  Hunseop Jeong  <hs85.jeong@samsung.com>
2880
2881         [EFL] alert box is not displayed 
2882         https://bugs.webkit.org/show_bug.cgi?id=156395
2883
2884         Reviewed by Gyuyoung Kim.
2885
2886         Some popup objects(alert, confirm, prompt, file entry dialog) used the ecore_main_loop_begin() to make
2887         the modal popup but ecore_main_loop_begin() was not executed inside an exisiting main loop. So we have
2888         to use the ecore_main_loop_iterate() instead of the ecore_main_loop_begin().
2889
2890         * MiniBrowser/efl/main.c:
2891         (_ok_clicked_cb):
2892         (_file_entry_dialog_show):
2893         (_javascript_alert_cb):
2894         (_javascript_confirm_cb):
2895         (_javascript_prompt_cb):
2896         (quit_event_loop): Deleted.
2897
2898 2016-09-22  Matthew Hanson  <matthew_hanson@apple.com>
2899
2900         Add an API for getting the branch identifier from a Git or SVN checkout.
2901         https://bugs.webkit.org/show_bug.cgi?id=151570
2902         rdar://problem/17959831
2903
2904         Reviewed by David Kilzer.
2905
2906         This patch adds a function called svnIdentifierForPath. This function returns either "trunk",
2907         the name of the tag, or the name of the branch, as appropriate. This function is necessary for
2908         a VCSUtils client that is not checked in to the WebKit project.
2909
2910         This patch also breaks up pathRelativeToSVNRepositoryRootForPath into four functions:
2911         - pathRelativeToSVNRepositoryRootForPath
2912         - svnInfoForPath
2913         - svnURLForPath
2914         - svnRepositoryRootForPath
2915
2916         This allows us to reuse logic from pathRelativeToSVNRepositoryRootForPath in svnIdentifierForPath and
2917         allows clients of VCSUtils to extract what arbitrary information from the `svn info` command regardless
2918         of SCM.
2919
2920         * Scripts/VCSUtils.pm:
2921         (svnInfoForPath):
2922         Copied logic that previously lived in pathRelativeToSVNRepositoryRootForPath.
2923         Make code safe to use for a path, and not just for the CWD.
2924
2925         (svnURLForPath):
2926         Calls svnInfoForPath and extracts the URL.
2927
2928         (svnRepositoryRootForPath):
2929         Calls svnInfoForPath and extracts the Repository Root.
2930
2931         (svnIdentifierForPath):
2932         Calls pathRelativeToSVNRepositoryRootForPath and extracts the repository identifier.
2933
2934         (pathRelativeToSVNRepositoryRootForPath):
2935         Now uses svnURLForPath and svnRepositoryRootForPath instead of being responsible for
2936         determining both values.
2937
2938 2016-09-22  Megan Gardner  <megan_gardner@apple.com>
2939
2940         Add long press selection test
2941         https://bugs.webkit.org/show_bug.cgi?id=162367
2942
2943         Reviewed by Simon Fraser.
2944
2945         Add support to UIScriptController to synthesize long press events on iOS.
2946         This required adding long-press functionality to HIDEventGenerator.
2947
2948         HIDEventGenerator sends the touchDown, but must then send the touchUp with
2949         a dispatch_after (rather than sleeping, as we do for other events) in order
2950         for the gesture recognizers to correctly detect a long press.
2951
2952         Use the long press synthesis in a test that detects whether a long press
2953         gesture triggers text selection.
2954
2955         Fixed incorrect constants. NSTimeInterval is in seconds, original numbers
2956         were nanoseconds and typedefed to long without regard to the type
2957         differences. Redid constants to be the right value, and converted upon use.
2958
2959         Cleaned up unused enum types.
2960
2961         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2962         (WTR::UIScriptController::longPressAtPoint):
2963         (WTR::UIScriptController::forcePressAtPoint):
2964         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
2965         * Scripts/webkitpy/common/config/contributors.json:
2966         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2967         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2968         (WTR::UIScriptController::longPressAtPoint):
2969         (WTR::UIScriptController::forcePressAtPoint):
2970         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
2971         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2972         * WebKitTestRunner/ios/HIDEventGenerator.h:
2973         * WebKitTestRunner/ios/HIDEventGenerator.mm:
2974         (-[HIDEventGenerator _createIOHIDEventType:]):
2975         (-[HIDEventGenerator sendTaps:location:withNumberOfTouches:completionBlock:]):
2976         (-[HIDEventGenerator clearTap:]):
2977         (-[HIDEventGenerator longPressTimerCall:]):
2978         (-[HIDEventGenerator longPressFinish:completionBlock:]):
2979         (-[HIDEventGenerator longPress:completionBlock:]):
2980         (-[HIDEventGenerator forcePress:completionBlock:]):
2981         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2982         (WTR::UIScriptController::longPressAtPoint):
2983         (WTR::UIScriptController::forcePressAtPoint):
2984         (WTR::UIScriptController::dragFromPointToPoint): Deleted.
2985
2986 2016-09-22  Jonathan Bedard  <jbedard@apple.com>
2987
2988         Automatic Text Replacement Testing in WebKit2
2989         https://bugs.webkit.org/show_bug.cgi?id=161919
2990
2991         Reviewed by Ryosuke Niwa.
2992
2993         Implemented test hooks for text replacement for WebKit2.
2994         Note that spell checking has not been implemented, so most tests which use text replacement still fail.
2995
2996         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Removed setAutomaticLinkDetectionEnabled from TestRunner, moved to Internals.
2997         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: Ditto.
2998         (WTR::InjectedBundle::beginTesting): Ditto.
2999         * WebKitTestRunner/InjectedBundle/TestRunner.cpp: Ditto.
3000         * WebKitTestRunner/InjectedBundle/TestRunner.h: Ditto.
3001         * WebKitTestRunner/TestController.cpp:
3002         (WTR::TestController::runTest): Place TextChecker into testing mode.
3003
3004 2016-09-21  Dan Bernstein  <mitz@apple.com>
3005
3006         [macOS] Upon layout, _webView:renderingProgressDidChange: fires before the intrinsic content size is updated
3007         https://bugs.webkit.org/show_bug.cgi?id=162359
3008         <rdar://problem/27776454>
3009
3010         Reviewed by Tim Horton.
3011
3012         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm:
3013         (TEST):
3014
3015 2016-09-21  Keith Miller  <keith_miller@apple.com>
3016
3017         Fix build for future versions of Clang.
3018         https://bugs.webkit.org/show_bug.cgi?id=162346
3019
3020         Reviewed by Filip Pizlo.
3021
3022         * TestWebKitAPI/Counters.cpp:
3023         * TestWebKitAPI/Counters.h:
3024         (DeleterCounter::deleterCount):
3025         (DeleterCounter::TestingScope::TestingScope):
3026         (DeleterCounter::operator()):
3027         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
3028         (TestWebKitAPI::TEST):
3029         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
3030         (TestWebKitAPI::TEST):
3031
3032 2016-09-21  Commit Queue  <commit-queue@webkit.org>
3033
3034         Unreviewed, rolling out r206222 and r206227.
3035         https://bugs.webkit.org/show_bug.cgi?id=162361
3036
3037         "broke the windows build" (Requested by keith_mi_ on #webkit).
3038
3039         Reverted changesets:
3040
3041         "Fix build for future versions of Clang."
3042         https://bugs.webkit.org/show_bug.cgi?id=162346
3043         http://trac.webkit.org/changeset/206222
3044
3045         "Attempt to fix windows build after r206222."
3046         http://trac.webkit.org/changeset/206227
3047
3048 2016-09-21  Alex Christensen  <achristensen@webkit.org>
3049
3050         URLParser should match URL::parse when parsing data urls with slashes in them
3051         https://bugs.webkit.org/show_bug.cgi?id=162352
3052
3053         Reviewed by Darin Adler.
3054
3055         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3056         (TestWebKitAPI::TEST_F):
3057
3058 2016-09-21  Alex Christensen  <achristensen@webkit.org>
3059
3060         URLParser should fail when parsing invalid relative URLs with no schemes
3061         https://bugs.webkit.org/show_bug.cgi?id=162355
3062
3063         Reviewed by Tim Horton.
3064
3065         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3066         (TestWebKitAPI::TEST_F):
3067
3068 2016-09-21  Keith Miller  <keith_miller@apple.com>
3069
3070         Fix build for future versions of Clang.
3071         https://bugs.webkit.org/show_bug.cgi?id=162346
3072
3073         Reviewed by Filip Pizlo.
3074
3075         * TestWebKitAPI/Counters.cpp:
3076         * TestWebKitAPI/Counters.h:
3077         (DeleterCounter::deleterCount):
3078         (DeleterCounter::TestingScope::TestingScope):
3079         (DeleterCounter::operator()):
3080         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
3081         (TestWebKitAPI::TEST):
3082         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
3083         (TestWebKitAPI::TEST):
3084
3085 2016-09-21  Alex Christensen  <achristensen@webkit.org>
3086
3087         Prepare API tests for enabling URLParser by default
3088         https://bugs.webkit.org/show_bug.cgi?id=162341
3089
3090         Reviewed by Tim Horton.
3091
3092         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3093         (TestWebKitAPI::checkURL):
3094         (TestWebKitAPI::checkRelativeURL):
3095         (TestWebKitAPI::checkURLDifferences):
3096         (TestWebKitAPI::checkRelativeURLDifferences):
3097         (TestWebKitAPI::shouldFail):
3098
3099 2016-09-21  Alex Christensen  <achristensen@webkit.org>
3100
3101         URLParser: Correctly parse URLs that are just nonspecialscheme:/
3102         https://bugs.webkit.org/show_bug.cgi?id=162340
3103
3104         Reviewed by Tim Horton.
3105
3106         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3107         (TestWebKitAPI::TEST_F):
3108
3109 2016-09-21  Alex Christensen  <achristensen@webkit.org>
3110
3111         URLParser: correctly parse relative URLs that are just one character
3112         https://bugs.webkit.org/show_bug.cgi?id=162344
3113
3114         Reviewed by Tim Horton.
3115
3116         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3117         (TestWebKitAPI::TEST_F):
3118
3119 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3120
3121         Optimize URLParser
3122         https://bugs.webkit.org/show_bug.cgi?id=162105
3123
3124         Reviewed by Geoffrey Garen.
3125
3126         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3127         (TestWebKitAPI::TEST_F):
3128
3129 2016-09-20  Aakash Jain  <aakash_jain@apple.com>
3130
3131         enable remote_api (for debugging) in flakiness dashboard app
3132         https://bugs.webkit.org/show_bug.cgi?id=162325
3133
3134         Reviewed by Alexey Proskuryakov.
3135
3136         * TestResultServer/app.yaml: enabled remote_api and datastore_admin.
3137
3138 2016-09-20  Ryan Haddad  <ryanhaddad@apple.com>
3139
3140         Unreviewed, rolling out r206180.
3141
3142         Roll r206178 back in as the necessary changes have been made
3143         on the build master.
3144
3145         Reverted changeset:
3146
3147         "Unreviewed, rolling out r206178."
3148         https://bugs.webkit.org/show_bug.cgi?id=162249
3149         http://trac.webkit.org/changeset/206180
3150
3151 2016-09-20  Alexey Proskuryakov  <ap@apple.com>
3152
3153         Use a hardcoded patch for sRGB color profile
3154         https://bugs.webkit.org/show_bug.cgi?id=162320
3155         rdar://problem/28387318
3156
3157         Reviewed by Simon Fraser.
3158
3159         This is a workaround for rdar://problem/28392768
3160
3161         * DumpRenderTree/mac/LayoutTestHelper.m:
3162         (installLayoutTestColorProfile):
3163
3164 2016-09-20  Ryan Haddad  <ryanhaddad@apple.com>
3165
3166         Unreviewed, rolling out r206178.
3167
3168         This change caused buildbot config issues.
3169
3170         Reverted changeset:
3171
3172         "Add Sierra bots to buildbot and dashboard."
3173         https://bugs.webkit.org/show_bug.cgi?id=162249
3174         http://trac.webkit.org/changeset/206178
3175
3176 2016-09-20  Dean Johnson  <dean_johnson@apple.com>
3177
3178         Add Sierra bots to buildbot and dashboard.
3179         https://bugs.webkit.org/show_bug.cgi?id=162249
3180
3181         Reviewed by Alexey Proskuryakov.
3182
3183         * BuildSlaveSupport/build.webkit.org-config/config.json:
3184         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
3185         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3186         (WebKitBuildbot):
3187
3188 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3189
3190         Reduce allocations in URLParser
3191         https://bugs.webkit.org/show_bug.cgi?id=162241
3192
3193         Reviewed by Chris Dumez.
3194
3195         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3196         (TestWebKitAPI::TEST_F):
3197         (TestWebKitAPI::checkURL):
3198
3199 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3200
3201         Align URLParser with web platform tests when parsing non-special relative URLs ending in AuthorityOrHost state
3202         https://bugs.webkit.org/show_bug.cgi?id=162251
3203
3204         Reviewed by Tim Horton.
3205
3206         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3207         (TestWebKitAPI::checkURL):
3208         (TestWebKitAPI::TEST_F):
3209         (TestWebKitAPI::checkRelativeURL):
3210         (TestWebKitAPI::checkURLDifferences):
3211         (TestWebKitAPI::checkRelativeURLDifferences):
3212
3213 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3214
3215         URLParser should allow '@' in user
3216         https://bugs.webkit.org/show_bug.cgi?id=162272
3217
3218         Reviewed by Tim Horton.
3219
3220         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3221         (TestWebKitAPI::TEST_F):
3222
3223 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3224
3225         URLParser: Fix parsing relative URLs with one slash after the scheme:
3226         https://bugs.webkit.org/show_bug.cgi?id=162294
3227
3228         Reviewed by Tim Horton.
3229
3230         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3231         (TestWebKitAPI::TEST_F):
3232
3233 2016-09-20  Alex Christensen  <achristensen@webkit.org>
3234
3235         Fix Windows file URL quirks in URLParser
3236         https://bugs.webkit.org/show_bug.cgi?id=162303
3237
3238         Reviewed by Tim Horton.
3239
3240         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3241         (TestWebKitAPI::TEST_F):
3242
3243 2016-09-20  Filip Pizlo  <fpizlo@apple.com>
3244
3245         Make MarkedBlock state tracking support overlapped allocation and marking state
3246         https://bugs.webkit.org/show_bug.cgi?id=161581
3247
3248         Reviewed by Geoffrey Garen.
3249         
3250         Remove the always-trigger-copy-phase configuration.
3251
3252         * Scripts/run-jsc-stress-tests:
3253
3254 2016-09-20  Don Olmstead  <don.olmstead@am.sony.com>
3255
3256         [WinCairo] Use find_package cairo in build
3257         https://bugs.webkit.org/show_bug.cgi?id=162239
3258
3259         Reviewed by Alex Christensen.
3260
3261         * DumpRenderTree/PlatformWin.cmake:
3262         * TestWebKitAPI/PlatformWin.cmake:
3263
3264 2016-09-20  Wenson Hsieh  <wenson_hsieh@apple.com>
3265
3266         Unreviewed build fix on 10.10 bots.
3267
3268         * TestWebKitAPI/mac/TestWKWebViewMac.h:
3269
3270 2016-09-20  Wenson Hsieh  <wenson_hsieh@apple.com>
3271
3272         VideoControlsManager.VideoControlsManagerSingleLargeVideo fails intermittently on the Mac WK2 bot
3273         https://bugs.webkit.org/show_bug.cgi?id=162255
3274
3275         Reviewed by Jer Noble.
3276
3277         This is reproducible by running the test repeatedly in a for loop (locally, I observed that running the test
3278         back-to-back would result in the second one failing). This suggests that even on the runloop after the video
3279         starts playing, the state of the playback controls manager may not be up to date in the UI process. Instead, we
3280         can just spin the runloop until the playback controls are shown, which makes back-to-back tests to succeed and
3281         will probably address flakiness on the bots for this test.
3282
3283         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3284         (TestWebKitAPI::TEST):
3285         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html:
3286
3287 2016-09-20  Per Arne Vollan  <pvollan@apple.com>
3288
3289         [Win] Run layout tests in parallel.
3290         https://bugs.webkit.org/show_bug.cgi?id=162145
3291
3292         Reviewed by Brent Fulgham.
3293
3294         To speed up layout tests, try running them in parallel.
3295
3296         * Scripts/webkitpy/port/win.py:
3297         (WinPort.default_child_processes): Deleted.
3298
3299 2016-09-19  Wenson Hsieh  <wenson_hsieh@apple.com>
3300
3301         Unreviewed build fix after r206135
3302
3303         NSEventMaskLeftMouseDown and friends are only available on 10.12.
3304
3305         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
3306         (__simulated_forceClickAssociatedEventsMask):
3307
3308 2016-09-19  Wenson Hsieh  <wenson_hsieh@apple.com>
3309
3310         Add a unit test covering <https://trac.webkit.org/changeset/205983>
3311         https://bugs.webkit.org/show_bug.cgi?id=162112
3312
3313         Reviewed by Beth Dakin.
3314
3315         Adds a new unit test covering the changes in r205983 along with the infrastructure needed to support it. Also
3316         further refactors the TestWKWebView used by VideoControlsManager and WKWebViewCandidateTests so that in both
3317         cases, we add the WKWebView to a visible key window, and when sending a mouse down event, we propagate the event
3318         at the window level rather than the view level, allowing greater flexibility to simulate behaviors such as
3319         pressure-sensitive events that are needed for the new test.
3320
3321         Also rewrites currently disabled unit tests in CandidateTests as WebKit2 unit tests in WKWebViewCandidateTests,
3322         checking whether or not to should be requesting candidates in password and non-password fields.
3323
3324         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3325         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3326         (TestWebKitAPI::setUpWebViewForTestingVideoControlsManager):
3327         (TestWebKitAPI::TEST):
3328         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
3329         (-[CandidateTestWebView typeString:inputMessage:]):
3330         (+[CandidateTestWebView setUpWithFrame:testPage:]):
3331         * TestWebKitAPI/Tests/WebKit2Cocoa/large-input-field-focus-onload.html: Added.
3332         * TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html: Added.
3333         * TestWebKitAPI/mac/TestWKWebViewMac.h:
3334         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
3335         (__simulated_forceClickAssociatedEventsMask):
3336         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
3337         (-[TestWKWebView initWithFrame:]):
3338         (-[TestWKWebView initWithFrame:configuration:]):
3339         (-[TestWKWebView _setUpTestWindow:]):
3340         (-[TestWKWebView mouseDownAtPoint:simulatePressure:]):
3341         (-[TestWKWebView typeCharacter:]):
3342         (-[TestWKWebView mouseDownAtPoint:]): Deleted.
3343
3344 2016-09-19  Alex Christensen  <achristensen@webkit.org>
3345
3346         URLParser can read memory out of bounds
3347         https://bugs.webkit.org/show_bug.cgi?id=162206
3348
3349         Reviewed by Geoff Garen.
3350
3351         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3352         (TestWebKitAPI::TEST_F):
3353
3354 2016-09-19  Daniel Bates  <dabates@apple.com>
3355
3356         Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
3357         https://bugs.webkit.org/show_bug.cgi?id=162167
3358
3359         Reviewed by Simon Fraser.
3360
3361         * Scripts/webkitperl/FeatureList.pm:
3362         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3363
3364 2016-09-19  Nan Wang  <n_wang@apple.com>
3365
3366         AX: Add accessibility support for details element on iOS
3367         https://bugs.webkit.org/show_bug.cgi?id=162041
3368
3369         Reviewed by Chris Fleizach.
3370
3371         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3372         (AccessibilityUIElement::isExpanded):
3373         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3374         (WTR::AccessibilityUIElement::isExpanded):
3375
3376 2016-09-18  Gyuyoung Kim  <gyuyoung.kim@navercorp.com>
3377
3378         [EFL] Bump efl library to 1.18.1
3379         https://bugs.webkit.org/show_bug.cgi?id=162120
3380
3381         Reviewed by Michael Catanzaro.
3382
3383         * efl/jhbuild.modules: Use efl-1.18.1 instead of 1.18.
3384
3385 2016-09-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3386
3387         [EFL] Adjust EFL coding style to EFL MiniBrowser
3388         https://bugs.webkit.org/show_bug.cgi?id=162119
3389
3390         Reviewed by Michael Catanzaro.
3391
3392         Apply EFL coding style to main.c for MiniBrowser.
3393           - Use _foo_cb instead of on_foo for callback function
3394           - Use 3 spaces and use 2 spaces in keywords.
3395
3396         - EFL coding style.
3397           https://phab.enlightenment.org/w/coding_convention/
3398
3399         Additionally this patch adds an exception rule that style checker doesn't
3400         check indentation rule in EFL MiniBrowser.
3401
3402         * MiniBrowser/efl/main.c:
3403         (miniBrowserViewSmartClass):
3404         (window_find_with_ewk_view):
3405         (_tooltip_show):
3406         (window_tooltip_hide):
3407         (window_tooltip_update):
3408         (_mouse_in_cb):
3409         (_mouse_move_cb):
3410         (_mouse_out_cb):
3411         (_mouse_wheel_cb):
3412         (_window_resize_cb):
3413         (update_view_favicon):
3414         (_icon_changed_cb):
3415         (window_free):
3416         (window_close):
3417         (search_icon_show):
3418         (search_box_show):
3419         (search_box_hide):
3420         (history_list_hide):
3421         (save_page_contents_callback):
3422         (script_execute_callback):
3423         (toggle_window_fullscreen):
3424         (_key_down_cb):
3425         (_mouse_down_cb):
3426         (_title_changed_cb):
3427         (_url_changed_cb):
3428         (_back_forward_list_changed_cb):
3429         (_progress_cb):
3430         (_error_cb):
3431         (_download_request_cb):
3432         (close_file_picker):
3433         (_filepicker_parent_deletion_cb):
3434         (_filepicker_deletion_cb):
3435         (_fileselector_done_cb):
3436         (_file_chooser_request_cb):
3437         (_download_finished_cb):
3438         (_download_failed_cb):
3439         (_color_changed_cb):
3440         (_color_item_selected_cb):
3441         (_color_picker_ok_clicked_cb):
3442         (_color_picker_cancel_clicked_cb):
3443         (_color_picker_dismiss_cb):
3444         (_color_picker_request_cb):
3445         (_url_bar_activated_cb):
3446         (_url_bar_clicked_cb):
3447         (_search_field_aborted_cb):
3448         (_search_field_activated_cb):
3449         (_search_field_clicked_cb):
3450         (_back_button_clicked_cb):
3451         (_forward_button_clicked_cb):
3452         (_search_backward_button_clicked_cb):
3453         (_search_forward_button_clicked_cb):
3454         (_search_case_option_changed):
3455         (_search_word_start_option_changed_cb):
3456         (_search_close_button_clicked_cb):
3457         (_refresh_button_clicked_cb):
3458         (_stop_button_clicked_cb):
3459         (_list_item_select_cb):
3460         (navigation_button_longpress_process):
3461         (_forward_button_longpress_cb):
3462         (_back_button_longpress_cb):
3463         (_ok_clicked_cb):
3464         (_file_entry_dialog_show):
3465         (_javascript_alert_cb):
3466         (_javascript_confirm_cb):
3467         (_javascript_prompt_cb):
3468         (_javascript_before_unload_confirm_cb):
3469         (_popup_menu_item_clicked_cb):
3470         (popup_menu_populate):
3471         (_popup_menu_show):
3472         (_popup_menu_hide):
3473         (_window_geometry_get):
3474         (_window_geometry_set):
3475         (_fullscreen_accept_cb):
3476         (_fullscreen_deny_cb):
3477         (_fullscreen_enter_cb):
3478         (_fullscreen_exit_cb):
3479         (_window_create_cb):
3480         (_window_close_cb):
3481         (_context_menu_item_selected_cb):
3482         (context_menu_populate):
3483         (_context_menu_show):
3484         (_context_menu_hide):
3485         (auth_popup_close):
3486         (_auth_cancel_cb):
3487         (_auth_ok_cb):
3488         (_authentication_request_cb):
3489         (_search_text_found_cb):
3490         (_tooltip_text_set):
3491         (_tooltip_text_unset):
3492         (_navigation_policy_decision_cb):
3493         (_home_button_clicked_cb):
3494         (_window_deletion_cb):
3495         (create_toolbar_button):
3496         (window_create):
3497         (configuration):
3498         (parse_cookies_policy):
3499         (parse_window_size):
3500         (elm_main):
3501         (on_tooltip_show): Deleted.
3502         (on_mouse_in): Deleted.
3503         (on_mouse_move): Deleted.
3504         (on_mouse_out): Deleted.
3505         (on_mouse_wheel): Deleted.
3506         (on_window_resize): Deleted.
3507         (on_icon_changed_cb): Deleted.
3508         (on_key_down): Deleted.
3509         (on_mouse_down): Deleted.
3510         (on_title_changed): Deleted.
3511         (on_url_changed): Deleted.
3512         (on_back_forward_list_changed): Deleted.
3513         (on_progress): Deleted.
3514         (on_error): Deleted.
3515         (on_download_request): Deleted.
3516         (on_filepicker_parent_deletion): Deleted.
3517         (on_filepicker_deletion): Deleted.
3518         (on_fileselector_done): Deleted.
3519         (on_file_chooser_request): Deleted.
3520         (on_download_finished): Deleted.
3521         (on_download_failed): Deleted.
3522         (on_color_changed): Deleted.
3523         (on_color_item_selected): Deleted.
3524         (on_color_picker_ok_clicked): Deleted.
3525         (on_color_picker_cancel_clicked): Deleted.
3526         (on_color_picker_dismiss): Deleted.
3527         (on_color_picker_request): Deleted.
3528         (on_url_bar_activated): Deleted.
3529         (on_url_bar_clicked): Deleted.
3530         (on_search_field_aborted): Deleted.
3531         (on_search_field_activated): Deleted.
3532         (on_search_field_clicked): Deleted.
3533         (on_back_button_clicked): Deleted.
3534         (on_forward_button_clicked): Deleted.
3535         (on_search_backward_button_clicked): Deleted.
3536         (on_search_forward_button_clicked): Deleted.
3537         (on_search_case_option_changed): Deleted.
3538         (on_search_word_start_option_changed): Deleted.
3539         (on_search_close_button_clicked): Deleted.
3540         (on_refresh_button_clicked): Deleted.
3541         (on_stop_button_clicked): Deleted.
3542         (on_list_item_select): Deleted.
3543         (on_forward_button_longpress): Deleted.
3544         (on_back_button_longpress): Deleted.
3545         (on_ok_clicked): Deleted.
3546         (show_file_entry_dialog): Deleted.
3547         (on_javascript_alert): Deleted.
3548         (on_javascript_confirm): Deleted.
3549         (on_javascript_prompt): Deleted.
3550         (on_javascript_before_unload_confirm): Deleted.
3551         (on_popup_menu_item_clicked): Deleted.
3552         (on_popup_menu_show): Deleted.
3553         (on_popup_menu_hide): Deleted.
3554         (on_window_geometry_get): Deleted.
3555         (on_window_geometry_set): Deleted.
3556         (on_fullscreen_accept): Deleted.
3557         (on_fullscreen_deny): Deleted.
3558         (on_fullscreen_enter): Deleted.
3559         (on_fullscreen_exit): Deleted.
3560         (on_window_create): Deleted.
3561         (on_window_close): Deleted.
3562         (context_menu_item_selected_cb): Deleted.
3563         (on_context_menu_show): Deleted.
3564         (on_context_menu_hide): Deleted.
3565         (on_auth_cancel): Deleted.
3566         (on_auth_ok): Deleted.
3567         (on_authentication_request): Deleted.
3568         (on_search_text_found): Deleted.
3569         (on_tooltip_text_set): Deleted.
3570         (on_tooltip_text_unset): Deleted.
3571         (on_navigation_policy_decision): Deleted.
3572         (on_home_button_clicked): Deleted.
3573         (on_window_deletion): Deleted.
3574         * Scripts/webkitpy/style/checker.py:
3575
3576 2016-09-16  Dave Hyatt  <hyatt@apple.com>
3577
3578         [CSS Parser] Get CSSPropertyParserHelpers.cpp compiling
3579         https://bugs.webkit.org/show_bug.cgi?id=162078
3580
3581         Reviewed by Dean Jackson.
3582
3583         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
3584         (TestWebKitAPI::createTestValue):
3585         Convert to ValueRange.
3586
3587 2016-09-16  Alex Christensen  <achristensen@webkit.org>
3588
3589         Fix API tests after r206036
3590         https://bugs.webkit.org/show_bug.cgi?id=162049
3591
3592         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3593         (TestWebKitAPI::TEST_F):
3594         An emoji had been UTF-8 encoded in the patch that was applied.
3595         The test needed to check the encoding of the emoji, not the UTF-8 encoding of the emoji.
3596         Everything was correct except applying the patch before committing.
3597
3598 2016-09-16  Wenson Hsieh  <wenson_hsieh@apple.com>
3599
3600         RequiresUserActionForPlayback TestWebKitAPI tests are broken after r206033.
3601         https://bugs.webkit.org/show_bug.cgi?id=162080
3602
3603         Reviewed by Jer Noble.
3604
3605         I renamed "playingHandler" to the more generalized "testHandler", but did not realize that the
3606         RequiresUserActionForPlayback tests also used "playingHandler". Renames the handler to account for this change.
3607
3608         * TestWebKitAPI/Tests/WebKit2Cocoa/RequiresUserActionForPlayback.mm:
3609         (RequiresUserActionForPlaybackTest::SetUp):
3610
3611 2016-09-16  Alex Christensen  <achristensen@webkit.org>
3612
3613         URLParser should percent encode the user and password according to spec
3614         https://bugs.webkit.org/show_bug.cgi?id=162049
3615
3616         Reviewed by Tim Horton.
3617
3618         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3619         (TestWebKitAPI::TEST_F):
3620
3621 2016-09-16  Alex Christensen  <achristensen@webkit.org>
3622
3623         Fix more edge cases in URLParser
3624         https://bugs.webkit.org/show_bug.cgi?id=162051
3625
3626         Reviewed by Tim Horton.
3627
3628         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3629         (TestWebKitAPI::TEST_F):
3630
3631 2016-09-16  Wenson Hsieh  <wenson_hsieh@apple.com>
3632
3633         Inserting a space after inserting an accepted candidate scrolls the document and causes a flicker
3634         https://bugs.webkit.org/show_bug.cgi?id=162009
3635         <rdar://problem/28086237>
3636
3637         Reviewed by Tim Horton.
3638
3639         Adds 3 new text editing API tests covering candidate insertion, as well as support for testing candidates in
3640         WKWebViews. Refactors common WKWebView helpers across both VideoControlsManager tests and the new
3641         WKWebViewCandidateTests into a new utility class, TestWKWebView in TestWKWebView.mm, which is capable of
3642         simulating mouse and keyboard events as well as waiting for JavaScript messages sent from the web process and
3643         performing actions in response.
3644
3645         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3646         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html:
3647         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html:
3648         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html:
3649         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3650         (TestWebKitAPI::TEST):
3651         (-[MessageHandler initWithMessage:handler:]): Deleted.
3652         (-[MessageHandler userContentController:didReceiveScriptMessage:]): Deleted.
3653         (-[VideoControlsManagerTestWebView mouseDownAtPoint:]): Deleted.
3654         (-[VideoControlsManagerTestWebView performAfterLoading:]): Deleted.
3655         (-[VideoControlsManagerTestWebView callJavascriptFunction:]): Deleted.
3656         (-[VideoControlsManagerTestWebView loadTestPageNamed:]): Deleted.
3657         (-[VideoControlsManagerTestWebView performAfterReceivingMessage:action:]): Deleted.
3658         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm: Added.
3659         (-[TestCandidate initWithReplacementString:inRange:]):
3660         (-[TestCandidate replacementString]):
3661         (-[TestCandidate resultType]):
3662         (-[TestCandidate range]):
3663         (-[CandidateTestWebView insertCandidatesAndWaitForResponse:range:]):
3664         (-[CandidateTestWebView _didHandleAcceptedCandidate]):
3665         (-[CandidateTestWebView expectCandidateListVisibilityUpdates:whenPerformingActions:]):
3666         (-[CandidateTestWebView _didUpdateCandidateListVisibility:]):
3667         (TEST):
3668         * TestWebKitAPI/Tests/WebKit2Cocoa/autoplaying-video-with-audio.html:
3669         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html:
3670         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html:
3671         * TestWebKitAPI/Tests/WebKit2Cocoa/full-size-autoplaying-video-with-audio.html:
3672         * TestWebKitAPI/Tests/WebKit2Cocoa/input-field-in-scrollable-document.html: Added.
3673         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-hides-controls-after-seek-to-end.html:
3674         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-mutes-onplaying.html:
3675         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html:
3676         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html:
3677         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-after-ending.html:
3678         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-to-beginning-and-play-after-ending.html:
3679         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html:
3680         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html:
3681         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html:
3682         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html:
3683         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html:
3684         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html:
3685         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html:
3686         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html:
3687         * TestWebKitAPI/Tests/WebKit2Cocoa/skinny-autoplaying-video-with-audio.html:
3688         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html:
3689         * TestWebKitAPI/mac/TestWKWebViewMac.h: Added.
3690         * TestWebKitAPI/mac/TestWKWebViewMac.mm: Added.
3691         (-[TestMessageHandler initWithMessage:handler:]):
3692         (-[TestMessageHandler userContentController:didReceiveScriptMessage:]):
3693         (-[TestWKWebView mouseDownAtPoint:]):
3694         (-[TestWKWebView performAfterReceivingMessage:action:]):
3695         (-[TestWKWebView loadTestPageNamed:]):
3696         (-[TestWKWebView typeCharacter:]):
3697         (-[TestWKWebView stringByEvaluatingJavaScript:]):
3698         (-[TestWKWebView waitForMessage:]):
3699         (-[TestWKWebView performAfterLoading:]):
3700
3701 2016-09-14  Jer Noble  <jer.noble@apple.com>
3702
3703         [media-source] fix imported/w3c/web-platform-tests/media-source/mediasource-duration.html
3704         https://bugs.webkit.org/show_bug.cgi?id=161999
3705
3706         Reviewed by Eric Carlson.
3707
3708         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
3709         (TestWebKitAPI::TEST):
3710
3711 2016-09-16  Anders Carlsson  <andersca@apple.com>
3712
3713         Fix isValidEnum to work with older versions of GCC
3714         https://bugs.webkit.org/show_bug.cgi?id=162065
3715
3716         Reviewed by Michael Catanzaro.
3717
3718         Add EnumTraits.cpp to the CMake build.
3719
3720         * TestWebKitAPI/CMakeLists.txt:
3721
3722 2016-09-16  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
3723
3724         Unreviewed: Change my primary address for auto-complete in bugzilla.
3725
3726         * Scripts/webkitpy/common/config/contributors.json:
3727
3728 2016-09-15  Alex Christensen  <achristensen@webkit.org>
3729
3730         URLParser: Check for invalid characters in the host
3731         https://bugs.webkit.org/show_bug.cgi?id=162023
3732
3733         Reviewed by Tim Horton.
3734
3735         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3736         (TestWebKitAPI::TEST_F):
3737
3738 2016-09-15  Fujii Hironori  <Hironori.Fujii@sony.com>
3739
3740         [CMake] Refactor GENERATE_BINDINGS
3741         https://bugs.webkit.org/show_bug.cgi?id=161854
3742
3743         Reviewed by Gyuyoung Kim.
3744
3745         * DumpRenderTree/CMakeLists.txt: Changed the arguments of
3746         GENERATE_BINDINGS to new style.
3747         * WebKitTestRunner/CMakeLists.txt: Ditto.
3748
3749 2016-09-15  Ryan Haddad  <ryanhaddad@apple.com>
3750
3751         Disable failing API WebKit2.DataDetectionReferenceDate until it can be investigated.
3752         https://bugs.webkit.org/show_bug.cgi?id=161967
3753
3754         Unreviewed test gardening.
3755
3756         * TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm:
3757         (TEST):
3758
3759 2016-09-15  Per Arne Vollan  <pvollan@apple.com>
3760
3761         [Win] run-api-tests is failing.
3762         https://bugs.webkit.org/show_bug.cgi?id=162015
3763
3764         Reviewed by Brent Fulgham.
3765
3766         MSVC is not interpreting C++ string literals with unicode characters correctly when the source file
3767         doesn't contain encoding information. Save the file with utf8 encoding with signature.
3768
3769         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3770
3771 2016-09-15  Jonathan Bedard  <jbedard@apple.com>
3772
3773         Move --no-sample-on-timeout to config.json for each bot
3774         https://bugs.webkit.org/show_bug.cgi?id=161964
3775
3776         Reviewed by Daniel Bates.
3777
3778         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.
3779
3780         * BuildSlaveSupport/build.webkit.org-config/config.json: Each bot now independently defines if it will be running sample on timeout.
3781         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3782         (RunWebKitTests.start): Rolled out changes from 205573.
3783
3784 2016-09-15  Csaba Osztrogonác  <ossy@webkit.org>
3785
3786         js/stringimpl-to-jsstring-on-large-strings tests consume huge memory
3787         https://bugs.webkit.org/show_bug.cgi?id=159807
3788
3789         Reviewed by Saam Barati.
3790
3791         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3792         (RunRemoteJavaScriptCoreTests.start): JSCOnly bots are memory limited devices, tests should run with --memory-limited option.
3793         * Scripts/run-javascriptcore-tests:
3794         (runJSCStressTests): Pass through --memory-limited option to run-jsc-stress-tests.
3795         * Scripts/run-jsc-stress-tests: Typo fix.
3796
3797 2016-09-14  Wenson Hsieh  <wenson_hsieh@apple.com>
3798
3799         Media controls behave strangely when changing media sources
3800         https://bugs.webkit.org/show_bug.cgi?id=161914
3801         <rdar://problem/28227805>
3802
3803         Reviewed by Tim Horton.
3804
3805         Adds three new unit tests verifying that media controls remain stable during common `src` change scenarios. Also
3806         tweaks an existing test to account for new `ended` behavior.
3807
3808         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3809         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3810         (-[VideoControlsManagerTestWebView waitForMediaControlsToShow]):
3811         (-[VideoControlsManagerTestWebView waitForMediaControlsToHide]):
3812         (TestWebKitAPI::TEST):
3813         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html: Added.
3814         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html: Added.
3815         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html: Added.
3816
3817 2016-09-14  Jonathan Bedard  <jbedard@apple.com>
3818
3819         Fix mastercfg_unittest
3820         https://bugs.webkit.org/show_bug.cgi?id=161816
3821
3822         Reviewed by Daniel Bates.
3823
3824         (RunWebKitTests.start):
3825         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: Fixed broken unit tests.
3826
3827 2016-09-13  Alexey Proskuryakov  <ap@apple.com>
3828
3829         Landing optimized .png files, forgot to do it initially.
3830
3831         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10.png:
3832         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10@2x.png:
3833         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator.png:
3834         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice.png:
3835         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice@2x.png:
3836
3837 2016-09-13  Alexey Proskuryakov  <ap@apple.com>
3838
3839         Switch build.webkit.org to iOS 10
3840         https://bugs.webkit.org/show_bug.cgi?id=161930
3841
3842         Reviewed by Daniel Bates.
3843
3844         * BuildSlaveSupport/build.webkit.org-config/config.json:
3845         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3846         (RunWebKitTests.start):
3847         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
3848         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10.png: Added.
3849         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10@2x.png: Added.
3850         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator.png: Added.
3851         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator@2x.png: Added.
3852         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice.png:
3853         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice@2x.png:
3854         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator.png: Added.
3855         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator@2x.png: Added.
3856         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
3857         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
3858         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3859         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
3860         * BuildSlaveSupport/build.webkit.org-config/wkbuild.py:
3861         * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
3862         * Scripts/webkitpy/port/ios.py:
3863         * TestResultServer/static-dashboards/builders.jsonp:
3864
3865 2016-09-13  Tim Horton  <timothy_horton@apple.com>
3866
3867         Provide a mechanism to specify the maximum width of WKThumbnailView snapshots
3868         https://bugs.webkit.org/show_bug.cgi?id=161896
3869         <rdar://problem/28229827>
3870
3871         Reviewed by Simon Fraser.
3872
3873         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm:
3874         (TestWebKitAPI::TEST):
3875         Add a test for the new property.
3876         Also fix the old new test to run on arbitrary scale displays without failing.
3877
3878 2016-09-12  Brent Fulgham  <bfulgham@apple.com>
3879
3880         [Win][Direct2D] Provide Direct2D-based geometry and transform cast operations
3881         https://bugs.webkit.org/show_bug.cgi?id=161818
3882
3883         Reviewed by Dean Jackson.
3884
3885         Add several new test suites for the various geometric primitives in WebCore.
3886
3887         * TestWebKitAPI/PlatformWin.cmake: Add new files for test cases.
3888         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
3889         * TestWebKitAPI/Tests/WebCore/AffineTransform.cpp: Added.
3890         * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp: Added.
3891         * TestWebKitAPI/Tests/WebCore/FloatRect.cpp: Added.
3892         * TestWebKitAPI/Tests/WebCore/FloatSize.cpp: Added.
3893         * TestWebKitAPI/Tests/WebCore/IntPoint.cpp: Added.
3894         * TestWebKitAPI/Tests/WebCore/IntRect.cpp: Added.
3895         * TestWebKitAPI/Tests/WebCore/IntSize.cpp: Added.
3896         * TestWebKitAPI/Tests/WebCore/TransformationMatrix.cpp: Add some new
3897         Windows-focused test cases.
3898
3899 2016-09-12  Chris Dumez  <cdumez@apple.com>
3900
3901         Fix post-landing review comments after r205787
3902         https://bugs.webkit.org/show_bug.cgi?id=161885
3903
3904         Reviewed by Darin Adler.
3905
3906         Leverage new StringBuilder::append(CFStringRef) overload.
3907
3908         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3909         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
3910
3911 2016-09-12  Alex Christensen  <achristensen@webkit.org>
3912
3913         URLParser: Correctly ignore spaces before relative URLs with no scheme
3914         https://bugs.webkit.org/show_bug.cgi?id=161889
3915
3916         Reviewed by Daniel Bates.
3917
3918         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3919         (TestWebKitAPI::TEST_F):
3920
3921 2016-09-12  Alex Christensen  <achristensen@webkit.org>
3922
3923         URLParser: Fix relative URLs containing only fragments
3924         https://bugs.webkit.org/show_bug.cgi?id=161882
3925
3926         Reviewed by Brady Eidson.
3927
3928         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3929         (TestWebKitAPI::TEST_F):
3930
3931 2016-09-12  Alex Christensen  <achristensen@webkit.org>
3932
3933         URLParser: Correctly handle relative URLs that are just a scheme and a colon
3934         https://bugs.webkit.org/show_bug.cgi?id=161876
3935
3936         Reviewed by Brady Eidson.
3937
3938         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3939         (TestWebKitAPI::TEST_F):
3940
3941 2016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
3942
3943         AX: WKWebView for macOS does not allow configuration of tabsToLinks
3944         https://bugs.webkit.org/show_bug.cgi?id=161394
3945
3946         Reviewed by Anders Carlsson.
3947
3948         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
3949         (TEST):
3950
3951 2016-09-12  Alex Christensen  <achristensen@webkit.org>
3952
3953         Remove trailing control characters and spaces before parsing a URL
3954         https://bugs.webkit.org/show_bug.cgi?id=161870
3955
3956         Reviewed by Tim Horton.
3957
3958         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3959         (TestWebKitAPI::TEST_F):
3960
3961 2016-09-12  Alex Christensen  <achristensen@webkit.org>
3962
3963         Fix more URLParser quirks
3964         https://bugs.webkit.org/show_bug.cgi?id=161834
3965
3966         Reviewed by Brady Eidson.
3967
3968         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3969         (TestWebKitAPI::TEST_F):
3970
3971 2016-09-10  Alex Christensen  <achristensen@webkit.org>
3972
3973         Optimize URLParser performance
3974         https://bugs.webkit.org/show_bug.cgi?id=161837
3975
3976         Reviewed by Brady Eidson.
3977
3978         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3979         (TestWebKitAPI::TEST_F):
3980         Added a test to verify the case insensitivity of the default port checks.
3981
3982 2016-09-10  Chris Dumez  <cdumez@apple.com>
3983
3984         parseHTMLInteger() should take a StringView in parameter
3985         https://bugs.webkit.org/show_bug.cgi?id=161669
3986
3987         Reviewed by Ryosuke Niwa.
3988
3989         Explicitly construct a String from the CFStringRef in order to call
3990         StringBuilder::append(). This is needed now that there is an append()
3991         overload taking an AtomicString in parameter.
3992
3993         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3994         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
3995
3996 2016-09-10  Wenson Hsieh  <wenson_hsieh@apple.com>
3997
3998         Apple.com keynote does not display media controls
3999         https://bugs.webkit.org/show_bug.cgi?id=161833
4000         <rdar://problem/28230123>
4001
4002         Reviewed by Tim Horton.
4003
4004         New unit test verifying that wide videos (~2 aspect ratio) still get media controls.
4005
4006         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4007         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
4008         (TestWebKitAPI::TEST):
4009         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html: Added.
4010
4011 2016-09-09  Tim Horton  <timothy_horton@apple.com>
4012
4013         WKThumbnailView should expose a mode where it can be reparented without resnapshotting
4014         https://bugs.webkit.org/show_bug.cgi?id=161828
4015         <rdar://problem/28229756>
4016
4017         Reviewed by Alex Christensen.
4018
4019         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4020         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm: Added.
4021         (-[SnapshotSizeObserver observeValueForKeyPath:ofObject:change:context:]):
4022         (TestWebKitAPI::didFinishLoadForFrame):
4023         (TestWebKitAPI::setPageLoaderClient):
4024         (TestWebKitAPI::TEST):
4025         Add a test ensuring that this behaves correctly.
4026
4027 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4028
4029         URLParser: Keep track of cannot-be-a-base-url according to spec
4030         https://bugs.webkit.org/show_bug.cgi?id=161830
4031
4032         Reviewed by Tim Horton.
4033
4034         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4035         (TestWebKitAPI::TEST_F):
4036
4037 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4038
4039         Fix API tests after r205774.
4040         https://bugs.webkit.org/show_bug.cgi?id=161820
4041
4042         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4043         (TestWebKitAPI::TEST_F):
4044         I had committed the wrong expected path in one case. The functionality is correct.
4045
4046 2016-09-09  Michael Saboff  <msaboff@apple.com>
4047
4048         Unreviewed, rolling r205759 back in with a fix.
4049
4050         An expectation file, JSTests/ChakraCore/test/Lib/tostring.baseline-jsc,
4051         should be named "toString.baseline-jsc".  For systems with case-insensitive
4052         filesystems, the wrong name isn't an issue.  That rename is part of this
4053         fix.
4054
4055         * Scripts/run-javascriptcore-tests:
4056         (runJSCStressTests):
4057
4058 2016-09-09  Johan K. Jensen  <johan_jensen@apple.com>
4059
4060         Unreviewed. Added myself to the list of committers.
4061
4062         * Scripts/webkitpy/common/config/contributors.json:
4063
4064 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4065
4066         URLParser should convert ASCII hosts to lowercase
4067         https://bugs.webkit.org/show_bug.cgi?id=161820
4068
4069         Reviewed by Geoffrey Garen.
4070
4071         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4072         (TestWebKitAPI::TEST_F):
4073
4074 2016-09-09  Ryan Haddad  <ryanhaddad@apple.com>
4075
4076         Unreviewed, rolling out r205759.
4077
4078         This change broke all JSC tests
4079
4080         Reverted changeset:
4081
4082         "Add ChakraCore tests to run-javascriptcore-tests"
4083         https://bugs.webkit.org/show_bug.cgi?id=161808
4084         http://trac.webkit.org/changeset/205759
4085
4086 2016-09-09  Ryan Haddad  <ryanhaddad@apple.com>
4087
4088         Revert r205770 because Ricky is already a committer.
4089
4090         Unreviewed.
4091
4092         * Scripts/webkitpy/common/config/contributors.json:
4093
4094 2016-09-09  Ricky Mondello  <rmondello@apple.com>
4095
4096         Unreviewed. Added myself to the list of committers.
4097
4098         * Scripts/webkitpy/common/config/contributors.json:
4099
4100 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4101
4102         URLParser: Fix and optimize parsing file URLs ending with a host but no slash
4103         https://bugs.webkit.org/show_bug.cgi?id=161815
4104
4105         Reviewed by Geoffrey Garen.
4106
4107         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4108         (TestWebKitAPI::TEST_F):
4109
4110 2016-09-08  Dean Jackson  <dino@apple.com>
4111
4112         Expose Apple Pencil data to Touch events
4113         https://bugs.webkit.org/show_bug.cgi?id=161783
4114         <rdar://problem/28218898>
4115
4116         Reviewed by Beth Dakin.
4117
4118         The values that IOHID expects are different from their
4119         documentation, and from what UITouch interprets. Tweak
4120         incoming data so it will produce the output we expect.
4121
4122         * WebKitTestRunner/ios/HIDEventGenerator.mm:
4123         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:]):
4124         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:]):
4125
4126 2016-09-09  JF Bastien  <jfbastien@apple.com>
4127
4128         Unreviewed. Added myself to the list of committers.
4129
4130         * Scripts/webkitpy/common/config/contributors.json:
4131
4132 2016-09-09  Michael Saboff  <msaboff@apple.com>
4133
4134         Add ChakraCore tests to run-javascriptcore-tests
4135         https://bugs.webkit.org/show_bug.cgi?id=161808
4136
4137         Reviewed by Saam Barati.
4138
4139         Added ChakraCore tests to the default list of tests to run.
4140
4141         * Scripts/run-javascriptcore-tests:
4142         (runJSCStressTests):
4143
4144 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4145
4146         URLParser: Handle \ in path according to spec
4147         https://bugs.webkit.org/show_bug.cgi?id=161805
4148
4149         Reviewed by Andy Estes.
4150
4151         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4152         (TestWebKitAPI::TEST_F):
4153
4154 2016-09-09  Alex Christensen  <achristensen@webkit.org>
4155
4156         URLParser should parse URLs with non-special schemes
4157         https://bugs.webkit.org/show_bug.cgi?id=161786
4158
4159         Reviewed by Andy Estes.
4160
4161         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4162         (TestWebKitAPI::TEST_F):
4163
4164 2016-09-08  Yusuke Suzuki  <utatane.tea@gmail.com>
4165
4166         [WTF] HashTable's rehash is not compatible to Ref<T> and ASan
4167         https://bugs.webkit.org/show_bug.cgi?id=161763
4168
4169         Reviewed by Mark Lam.
4170
4171         Add tests that inserts many Ref<>s. It incurs HashTable::rehash, and we can ensure
4172         that ASan crash does not occur with this patch.
4173
4174         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
4175         (TestWebKitAPI::TEST):
4176         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
4177         (TestWebKitAPI::TEST):
4178
4179 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4180
4181         URLParser: Handle \ in paths of special URLs according to spec
4182         https://bugs.webkit.org/show_bug.cgi?id=161781
4183
4184         Reviewed by Tim Horton.
4185
4186         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4187         (TestWebKitAPI::TEST_F):
4188
4189 2016-09-08  Simon Fraser  <simon.fraser@apple.com>
4190
4191         Update the content-animation.plan file to run css-accelerated-animation.html
4192         and pull SVN revision r205680.
4193
4194         * Scripts/webkitpy/benchmark_runner/data/plans/content-animation.plan:
4195
4196 2016-09-08  Simon Fraser  <simon.fraser@apple.com>
4197
4198         Add a content-animation test with accelerated CSS animations
4199         https://bugs.webkit.org/show_bug.cgi?id=161776
4200
4201         Reviewed by Dean Jackson.
4202
4203         * Scripts/webkitpy/benchmark_runner/data/patches/ContentAnimation.patch:
4204
4205 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4206
4207         URLParser: Parsing empty URLs with a base URL should return the base URL
4208         https://bugs.webkit.org/show_bug.cgi?id=161777
4209
4210         Reviewed by Tim Horton.
4211
4212         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4213         (TestWebKitAPI::TEST_F):
4214
4215 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4216
4217         URLParser failures should preserve the original input string
4218         https://bugs.webkit.org/show_bug.cgi?id=161769
4219
4220         Reviewed by Tim Horton.
4221
4222         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4223         (TestWebKitAPI::TEST_F):
4224         (TestWebKitAPI::shouldFail):
4225
4226 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4227
4228         URLParser should parse URLs with a user but no password
4229         https://bugs.webkit.org/show_bug.cgi?id=161773
4230
4231         Reviewed by Brady Eidson.
4232
4233         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4234         (TestWebKitAPI::TEST_F):
4235
4236 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4237
4238         URLParser should parse ports after IPv4 and IPv6 hosts
4239         https://bugs.webkit.org/show_bug.cgi?id=161731
4240
4241         Reviewed by Brady Eidson.
4242
4243         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4244         (TestWebKitAPI::TEST_F):
4245
4246 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4247
4248         URLParser should correctly handle \ in path
4249         https://bugs.webkit.org/show_bug.cgi?id=161762
4250
4251         Reviewed by Brady Eidson.
4252
4253         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4254         (TestWebKitAPI::TEST_F):
4255
4256 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4257
4258         URLParser should handle URLs with empty authority
4259         https://bugs.webkit.org/show_bug.cgi?id=161711
4260
4261         Reviewed by Brady Eidson.
4262
4263         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4264         (TestWebKitAPI::TEST_F):
4265
4266 2016-09-08  Alex Christensen  <achristensen@webkit.org>
4267
4268         Re-land r205580 after r205649 fixed the test failures
4269         https://bugs.webkit.org/show_bug.cgi?id=161668
4270
4271         Re-landing changesets:
4272
4273         "Punycode encode non-ascii hosts in URLParser"
4274         https://bugs.webkit.org/show_bug.cgi?id=161655
4275         http://trac.webkit.org/changeset/205521
4276
4277         "Fix query-only and fragment-only relative URLs when using
4278         URLParser"
4279         https://bugs.webkit.org/show_bug.cgi?id=161657
4280         http://trac.webkit.org/changeset/205526
4281
4282         "URLParser should parse / as a relative URL"
4283         https://bugs.webkit.org/show_bug.cgi?id=161667
4284         http://trac.webkit.org/changeset/205532
4285
4286 2016-09-08  Dean Jackson  <dino@apple.com>
4287
4288         Expose Apple Pencil input to testing system
4289         https://bugs.webkit.org/show_bug.cgi?id=161670
4290         <rdar://problem/28183327>
4291
4292         I fixed the internal builds, now try to fix the public builds.
4293
4294         * WebKitTestRunner/ios/IOKitSPI.h: Add new enum values.
4295
4296 2016-09-07  Dean Jackson  <dino@apple.com>
4297
4298         Expose Apple Pencil input to testing system
4299         https://bugs.webkit.org/show_bug.cgi?id=161670
4300         <rdar://problem/28183327>
4301
4302         Attempt to fix iOS 9 builds.
4303
4304         * WebKitTestRunner/ios/HIDEventGenerator.mm:
4305         (-[HIDEventGenerator _createIOHIDEventType:]):
4306
4307 2016-09-07  Alex Christensen  <achristensen@webkit.org>
4308
4309         Roll out r205580 and r205582.
4310         https://bugs.webkit.org/show_bug.cgi?id=161668
4311
4312         I need to figure out why this is failing on the bots before landing any more URLParser progress.
4313
4314 2016-09-07  Alex Christensen  <achristensen@webkit.org>
4315
4316         Unreviewed, revert r205533.
4317         https://bugs.webkit.org/show_bug.cgi?id=161668
4318
4319         Re-landing changesets:
4320
4321         "Punycode encode non-ascii hosts in URLParser"
4322         https://bugs.webkit.org/show_bug.cgi?id=161655
4323         http://trac.webkit.org/changeset/205521
4324
4325         "Fix query-only and fragment-only relative URLs when using
4326         URLParser"
4327         https://bugs.webkit.org/show_bug.cgi?id=161657
4328         http://trac.webkit.org/changeset/205526
4329
4330         "URLParser should parse / as a relative URL"
4331         https://bugs.webkit.org/show_bug.cgi?id=161667
4332         http://trac.webkit.org/changeset/205532
4333
4334 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
4335
4336         Enable the <meter> element on iOS
4337         https://bugs.webkit.org/show_bug.cgi?id=161714
4338         rdar://problem/8978410
4339
4340         Reviewed by Tim Horton.
4341
4342         Define ENABLE_METER_ELEMENT unconditionally now.
4343
4344         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
4345
4346 2016-09-07  Jonathan Bedard  <jbedard@apple.com>
4347
4348         Run spindumps on timeout on iOS 9 Simulator Release WK2 (Tests)
4349         https://bugs.webkit.org/show_bug.cgi?id=161699
4350
4351         Reviewed by Alexey Proskuryakov.
4352
4353         This change does not have testing associated with it because the testing infrastructure does not exists, we cannot currently mock build-bot variables.
4354
4355         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
4356         (RunWebKitTests): Enable sample on timeout for everything.
4357         (RunWebKitTests.start): Disable sample on timeout for everything except iOS 9 WK2 release simulators.
4358
4359 2016-09-06  Dean Jackson  <dino@apple.com>
4360
4361         Expose Apple Pencil input to testing system
4362         https://bugs.webkit.org/show_bug.cgi?id=161670
4363         <rdar://problem/28183327>
4364
4365         Reviewed by Simon Fraser.
4366
4367         Add API to UIScriptController that allows a test to emulate
4368         stylus input, such as from the Apple Pencil.
4369
4370         The code is only implemented for WebKitTestRunner.
4371
4372         There are also four new tests that ensure an Apple Pencil
4373         operates similarly to a regular touch. The main difference
4374         is that you can't have multiple touches when using an Apple Pencil.
4375
4376         * DumpRenderTree/ios/UIScriptControllerIOS.mm: New methods. Empty implementations.
4377         (WTR::UIScriptController::stylusDownAtPoint):
4378         (WTR::UIScriptController::stylusMoveToPoint):
4379         (WTR::UIScriptController::stylusUpAtPoint):
4380         (WTR::UIScriptController::stylusTapAtPoint):
4381         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: New methods.
4382         * TestRunnerShared/UIScriptContext/UIScriptController.cpp: Empty implementations.
4383         (WTR::UIScriptController::stylusDownAtPoint):
4384         (WTR::UIScriptController::stylusMoveToPoint):
4385         (WTR::UIScriptController::stylusUpAtPoint):
4386         (WTR::UIScriptController::stylusTapAtPoint):
4387         * TestRunnerShared/UIScriptContext/UIScriptController.h:
4388
4389         * WebKitTestRunner/ios/HIDEventGenerator.h:
4390         * WebKitTestRunner/ios/HIDEventGenerator.mm: New StylusEvent types. Add some properties
4391         to SyntheticEventDigitizerInfo.
4392         (-[HIDEventGenerator _createIOHIDEventType:]): Add support for StylusEvent types.
4393         (-[HIDEventGenerator touchDownAtPoints:touchCount:]): Clear any old stylus info.
4394         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:]):
4395         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:]):
4396         (-[HIDEventGenerator stylusUpAtPoint:]):
4397         (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
4398         (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
4399         (-[HIDEventGenerator stylusUpAtPoint:completionBlock:]):
4400         (-[HIDEventGenerator stylusTapAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
4401         * WebKitTestRunner/ios/IOKitSPI.h: Add new include, and new SPI.
4402         * WebKitTestRunner/ios/UIScriptControllerIOS.mm: Calls into the HIDEventGenerator for the new API.
4403         (WTR::UIScriptController::stylusDownAtPoint):
4404         (WTR::UIScriptController::stylusMoveToPoint):
4405         (WTR::UIScriptController::stylusUpAtPoint):
4406         (WTR::UIScriptController::stylusTapAtPoint):
4407
4408 2016-09-07  Daniel Bates  <dabates@apple.com>
4409
4410         Update WebKitSystemInterface
4411
4412         Rubber-stamped by Dean Jackson.
4413
4414         Copy WebKitSystemInterface for iOS 10 to the built products directory.
4415
4416         * Scripts/copy-webkitlibraries-to-product-directory:
4417
4418 2016-09-07  Youenn Fablet  <youenn@apple.com>
4419
4420         [Streams API] Separate compile flag for ReadableStream and WritableStream
4421         https://bugs.webkit.org/show_bug.cgi?id=161044
4422
4423         Reviewed by Alex Christensen.
4424
4425         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
4426
4427         * Scripts/webkitperl/FeatureList.pm:
4428         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
4429
4430 2016-09-07  Carlos Garcia Campos  <cgarcia@igalia.com>
4431
4432         [GTK] Move some GObject DOM unstable API to stable
4433         https://bugs.webkit.org/show_bug.cgi?id=161681
4434
4435         Reviewed by Žan Doberšek.
4436
4437         Do not use user message handler unstable API in the tests, since we have stable convenient API for that.
4438
4439         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp:
4440         (testUserContentManagerScriptMessageFromDOMBindings):
4441         (serverCallback): Deleted.
4442         (beforeAll): Deleted.
4443         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
4444         (documentLoadedCallback):
4445         (emitURIChanged): Deleted.
4446
4447 2016-09-07  Youenn Fablet  <youenn@apple.com>
4448
4449         Using tests-options.json to compute whether tests are slow
4450         https://bugs.webkit.org/show_bug.cgi?id=161626
4451
4452         Reviewed by Darin Adler.
4453
4454         * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py: Updated first test to use a MockHost.
4455         * Scripts/webkitpy/layout_tests/controllers/manager.py:
4456         (Manager.__init__): Loading tests-options.json
4457         (Manager._test_is_slow): Computing timeout value based on tests-options.json.
4458
4459 2016-09-07  Hunseop Jeong  <hs85.jeong@samsung.com>
4460
4461         [EFL] Need the libosmesa to support the software backend drawing.
4462         https://bugs.webkit.org/show_bug.cgi?id=147065
4463
4464         Reviewed by Gyuyoung Kim.
4465
4466         Added the libosmesa to support the software backend drawing.
4467
4468         * efl/install-dependencies:
4469
4470 2016-09-06  Commit Queue  <commit-queue@webkit.org>
4471
4472         Unreviewed, rolling out r205521, r205526, and r205532.
4473         https://bugs.webkit.org/show_bug.cgi?id=161668
4474
4475         broke API tests (Requested by alexchristensen on #webkit).
4476
4477         Reverted changesets: