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