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