Add WKUIDelegatePrivate equivalent of WKPageUIClient's toolbarsAreVisible
[WebKit-https.git] / Tools / ChangeLog
1 2017-09-01  Alex Christensen  <achristensen@webkit.org>
2
3         Add WKUIDelegatePrivate equivalent of WKPageUIClient's toolbarsAreVisible
4         https://bugs.webkit.org/show_bug.cgi?id=176246
5         <rdar://problem/29270035>
6
7         Reviewed by Tim Horton.
8
9         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
10         (-[ToolbarDelegate _webView:getToolbarsAreVisibleWithCompletionHandler:]):
11         (-[ToolbarDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
12         (TEST):
13
14 2017-09-01  Eric Carlson  <eric.carlson@apple.com>
15
16         Switch HTMLMediaElement to release logging
17         https://bugs.webkit.org/show_bug.cgi?id=176065
18
19         Unreviewed build fix.
20
21         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
22
23 2017-09-01  Filip Pizlo  <fpizlo@apple.com>
24
25         WSL should have more tests of type checking failures
26         https://bugs.webkit.org/show_bug.cgi?id=176244
27
28         Reviewed by Myles Maxfield.
29
30         * WebGPUShadingLanguageRI/Checker.js:
31         (Checker.prototype.visitProtocolDecl.set throw):
32         * WebGPUShadingLanguageRI/Test.js:
33         (TEST_typeMismatchReturn):
34
35 2017-09-01  Filip Pizlo  <fpizlo@apple.com>
36
37         WSL should be be able to call a function declared in a protocol from a generic function
38         https://bugs.webkit.org/show_bug.cgi?id=176242
39
40         Reviewed by Myles Maxfield.
41         
42         It turns out that we need to know when a function is resolved to a protocol signature, so we
43         need to have a type for this. This introduces ProtocolFuncDecl.
44         
45         Also, this introduces parsing of protocol decls.
46         
47         When instantiating a function, we need to rewrite its CallExpressions if they were previously
48         resolved to a PrtococolFuncDecl instead of a FuncDef or NativeFunc. In that case, we need to
49         rerun the resolution on the program. That resolution is guaranteed to succeed if the type
50         system works correctly.
51
52         * WebGPUShadingLanguageRI/All.js:
53         * WebGPUShadingLanguageRI/CallExpression.js:
54         (CallExpression.prototype.resolve):
55         * WebGPUShadingLanguageRI/Checker.js:
56         (Checker.prototype.visitProtocolDecl.set throw):
57         * WebGPUShadingLanguageRI/EBufferBuilder.js:
58         (EBufferBuilder.prototype._createEPtr):
59         * WebGPUShadingLanguageRI/Func.js:
60         (Func):
61         (Func.prototype.get origin):
62         * WebGPUShadingLanguageRI/FuncDef.js:
63         (FuncDef):
64         (FuncDef.prototype.get origin): Deleted.
65         * WebGPUShadingLanguageRI/FuncInstantiator.js:
66         (FuncInstantiator):
67         (FuncInstantiator.prototype.getUnique.InstantiationSubstitution.prototype.visitCallExpression):
68         (FuncInstantiator.prototype.getUnique.InstantiationSubstitution):
69         * WebGPUShadingLanguageRI/NativeFunc.js:
70         (NativeFunc):
71         (NativeFunc.prototype.get origin): Deleted.
72         * WebGPUShadingLanguageRI/NativeFuncInstance.js:
73         (NativeFuncInstance):
74         * WebGPUShadingLanguageRI/Node.js:
75         (Node.prototype.substitute):
76         * WebGPUShadingLanguageRI/Parse.js:
77         (parseProtocolFuncDecl):
78         (parseProtocolDecl):
79         (parse):
80         * WebGPUShadingLanguageRI/Program.js:
81         (Program):
82         (Program.prototype.get protocols):
83         (Program.prototype.add):
84         * WebGPUShadingLanguageRI/ProtocolDecl.js:
85         (ProtocolDecl.prototype.add):
86         (ProtocolDecl.prototype.hasHeir):
87         (ProtocolDecl.prototype.addSignature): Deleted.
88         * WebGPUShadingLanguageRI/ProtocolFuncDecl.js: Added.
89         (ProtocolFuncDecl):
90         * WebGPUShadingLanguageRI/Rewriter.js:
91         (Rewriter.prototype.visitStructType):
92         (Rewriter.prototype.visitTypeVariable):
93         (Rewriter.prototype.visitProtocolFuncDecl):
94         (Rewriter.prototype.visitCallExpression):
95         * WebGPUShadingLanguageRI/StructType.js:
96         (StructType.prototype.instantiate):
97         * WebGPUShadingLanguageRI/Substitution.js:
98         (Substitution):
99         (Substitution.mapping): Deleted.
100         * WebGPUShadingLanguageRI/Test.js:
101         (TEST_simpleGeneric):
102         (TEST_simpleAssignment):
103         (TEST_simpleDefault):
104         (TEST_simpleDereference):
105         (TEST_dereferenceStore):
106         (TEST_simpleMakePtr):
107         (TEST_threadArrayLoad):
108         (TEST_deviceArrayLoad):
109         (TEST_threadArrayStore):
110         (TEST_deviceArrayStore):
111         (TEST_simpleProtocol):
112         * WebGPUShadingLanguageRI/Visitor.js:
113         (Visitor.prototype.visitProtocolFuncDecl):
114
115 2017-09-01  Eric Carlson  <eric.carlson@apple.com>
116
117         Switch HTMLMediaElement to release logging
118         https://bugs.webkit.org/show_bug.cgi?id=176065
119
120         Reviewed by Jer Noble.
121
122         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
123         (TestWebKitAPI::LogObserver::level const):
124
125 2017-09-01  Ross Kirsling  <ross.kirsling@sony.com>
126
127         download-latest-github-release.py should have friendlier output for non-404 errors
128         https://bugs.webkit.org/show_bug.cgi?id=176201
129
130         Reviewed by Brent Fulgham.
131
132         * Scripts/download-latest-github-release.py:
133
134 2017-09-01  Filip Pizlo  <fpizlo@apple.com>
135
136         [WSL] Add tests for storing to arrays
137         https://bugs.webkit.org/show_bug.cgi?id=176237
138
139         Reviewed by Myles Maxfield.
140         
141         Storing to arrays works now.
142
143         * WebGPUShadingLanguageRI/ArrayType.js:
144         (ArrayType):
145         * WebGPUShadingLanguageRI/Test.js:
146         (TEST_threadArrayStore):
147         (TEST_deviceArrayStore):
148
149 2017-09-01  Alex Christensen  <achristensen@webkit.org>
150
151         Replace WKUIDelegatePrivate's isPlayingMediaDidChange with KVO _isPlayingAudio on WKWebView
152         https://bugs.webkit.org/show_bug.cgi?id=176212
153
154         Reviewed by Tim Horton.
155
156         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
157         (-[AudioObserver observeValueForKeyPath:ofObject:change:context:]):
158         (TEST):
159         (-[MediaDelegate _webView:isPlayingMediaDidChange:]): Deleted.
160
161 2017-09-01  Filip Pizlo  <fpizlo@apple.com>
162
163         WSL Rewriter should be an identity on things that aren't inside function bodies
164         https://bugs.webkit.org/show_bug.cgi?id=176208
165
166         Reviewed by Myles Maxfield.
167         
168         Previously, if the Rewriter encountered a FunctionDef, StructType, NativeType, etc., then it
169         would either crash or try to rewrite them. That's unfortunate because we use the Rewriter to
170         rewrite struct and function bodies. If a function calls another function, then rewriting the
171         caller should not mean also rewriting the callee. Previously we "fixed" this by religiously
172         wrapping references to types with TypeDef and doing other such hacks. But that's subtly wrong.
173         It only worked because Rewriter wasn't rewriting TypeRef.type. I think that Rewriter has to
174         rewrite that in the long run because it may refer to another TypeRef, and it may be an
175         instantiation that is using types that themselves need to be rewritten.
176
177         * WebGPUShadingLanguageRI/Checker.js:
178         (Checker.prototype.visitProtocolDecl.set throw):
179         * WebGPUShadingLanguageRI/NullType.js:
180         (NullType):
181         * WebGPUShadingLanguageRI/Rewriter.js:
182         (Rewriter.prototype.visitFuncDef):
183         (Rewriter.prototype.visitNativeFunc):
184         (Rewriter.prototype.visitNativeFuncInstance):
185         (Rewriter.prototype.visitNativeType):
186         (Rewriter.prototype.visitTypeDef):
187         (Rewriter.prototype.visitStructType):
188         (Rewriter.prototype.visitTypeVariable):
189         (Rewriter.prototype.visitConstexprTypeParameter):
190         (Rewriter.prototype.visitNativeTypeInstance):
191         (Rewriter.prototype.visitTypeRef):
192         * WebGPUShadingLanguageRI/Visitor.js:
193         (Visitor.prototype.visitNativeTypeInstance):
194
195 2017-09-01  Alex Christensen  <achristensen@webkit.org>
196
197         Disable ObjC WebGL policy SPI on iOS
198         https://bugs.webkit.org/show_bug.cgi?id=176233
199
200         Reviewed by Tim Horton.
201
202         * TestWebKitAPI/Tests/WebKitCocoa/WebGLPolicy.mm:
203
204 2017-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
205
206         [GTK] Improve the way unit test are run and the results reported
207         https://bugs.webkit.org/show_bug.cgi?id=176104
208
209         Reviewed by Carlos Alberto Lopez Perez.
210
211         There are several issues with the way unit tests are run by run-gtk-tests and also with the way results are
212         reported:
213
214          - The results summary only mentions the test binaries, not the actual test cases, so you always have to scroll
215            up to find the actual test cases failing.
216          - The number of reported failures is the number of test binaries that failed, so if a new test case fails for
217            the same binary in a new revision, we won't notice it just looking at the number of failures.
218          - We show detailed information about skipped test in the results summary, which is just noise.
219          - In the case of glib tests, when a test case times out, we finish the test suite, instead of continuing with the
220            rest of the test cases like we do for normal failures or crashes. If a new test case fails after a test case that
221            timed out we will not notice it until we fix or skip the test cases timing out.
222          - In the case of glib tests, the timeout is applied to the whole suite, instead of per test case, we have a hack
223            to make it longer only for that. It has worked so far, but it doesn't scale, and it's an ugly hack.
224          - It's not currently possible to detect flaky tests, because again, we know the binaries/suites that failed but
225            not the actual test cases.
226
227         This patch fixes all these issues and makes it possible to add support for flaky tests in a follow up patch.
228
229         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
230         (RunGtkAPITests.commandComplete): Update the RunGtkAPITests step to parse the new output.
231         * Scripts/run-gtk-tests:
232         (TestRunner._start_timeout): Helper to start the timeout if needed.
233         (TestRunner._start_timeout._alarm_handler): Raise timeout exception.
234         (TestRunner._stop_timeout): Helper to stop the timeout if needed.
235         (TestRunner._waitpid): Merged waitpid and return_code_from_exit_status.
236         (TestRunner._run_test_glib): Do not double the timeout anymore, we now start/stop the timeout for every test
237         case. Return a dictionary where keys are test cases and values the results only in case of failures.
238         (TestRunner._run_test_glib.parse_line): Update the parser to also detect test cases and the results.
239         (TestRunner._run_test_glib.parse_line.set_test_result): Helper to set the result of a test case.
240         (TestRunner._run_google_test): Return a dictionary where key is the test case and value is the result only in
241         case of failure.
242         (TestRunner._run_google_test_suite): Updated now that _run_google_test returns a dictionary.
243         (TestRunner.run_tests): Handle the results dictionary and show the results with information about test cases
244         failing and grouped by test binaries.
245
246 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
247
248         WSL should support loading from arrays
249         https://bugs.webkit.org/show_bug.cgi?id=176207
250
251         Reviewed by Saam Barati.
252         
253         Getting a test that loads from arrays to work required doing a lot of things:
254         
255         - a[i] now parses to ^(operator\[](a, i)).
256         - added operator\[] for four array reference types.
257         - to make thread|threadgroup|device T[] work, you need T:primitive.
258         - so this adds the magical primitive protocol.
259         
260         This required a little bit of rejuggling in the name resolver and type checker. The main thing
261         is that to prevent the rewriter from copying the types referenced by some function, you need to
262         make sure that when you add a reference to a type, you wrap it in a TypeRef. This doesn't
263         completely feel right, but I'm sure we'll figure out the balance eventually. See bug 176208.
264
265         * WebGPUShadingLanguageRI/All.js:
266         * WebGPUShadingLanguageRI/Checker.js:
267         (Checker.prototype.visitProtocolDecl.set throw):
268         * WebGPUShadingLanguageRI/EArrayRef.js: Added.
269         (EArrayRef):
270         (EArrayRef.prototype.get ptr):
271         (EArrayRef.prototype.get length):
272         (EArrayRef.prototype.toString):
273         * WebGPUShadingLanguageRI/EPtr.js:
274         (EPtr.prototype.plus):
275         (EPtr.prototype.toString):
276         (EPtr):
277         * WebGPUShadingLanguageRI/Evaluator.js:
278         (Evaluator.prototype.visitUintLiteral):
279         * WebGPUShadingLanguageRI/FuncInstantiator.js:
280         (FuncInstantiator.prototype.getUnique.Instantiate.prototype.visitNativeFunc):
281         (FuncInstantiator.prototype.getUnique.Instantiate):
282         (FuncInstantiator.prototype.getUnique):
283         (FuncInstantiator):
284         * WebGPUShadingLanguageRI/Intrinsics.js:
285         (Intrinsics):
286         * WebGPUShadingLanguageRI/Lexer.js:
287         (Lexer.prototype.next):
288         (Lexer):
289         * WebGPUShadingLanguageRI/NameContext.js:
290         (NameContext.prototype.recognizeIntrinsics):
291         * WebGPUShadingLanguageRI/NameResolver.js:
292         (NameResolver.prototype.visitProtocolRef):
293         * WebGPUShadingLanguageRI/NativeFuncInstance.js:
294         (NativeFuncInstance.prototype.get isNative):
295         * WebGPUShadingLanguageRI/Parse.js:
296         (parseTerm):
297         (parseTypeDef):
298         (parseNative):
299         (parsePossibleSuffix):
300         (parse):
301         * WebGPUShadingLanguageRI/ProtocolDecl.js:
302         (ProtocolDecl):
303         * WebGPUShadingLanguageRI/ProtocolRef.js:
304         (ProtocolRef.prototype.get isPrimitive):
305         (ProtocolRef):
306         * WebGPUShadingLanguageRI/PtrType.js:
307         (PtrType.prototype.populateDefaultValue): Deleted.
308         * WebGPUShadingLanguageRI/ReferenceType.js:
309         (ReferenceType.prototype.populateDefaultValue):
310         (ReferenceType):
311         * WebGPUShadingLanguageRI/Rewriter.js:
312         (Rewriter.prototype.visitUintLiteral):
313         (Rewriter.prototype.visitFunc): Deleted.
314         (Rewriter.prototype.visitTypeVariable): Deleted.
315         (Rewriter.prototype.visitConstexprTypeParameter): Deleted.
316         * WebGPUShadingLanguageRI/StandardLibrary.js:
317         * WebGPUShadingLanguageRI/Test.js:
318         (TEST_threadArrayLoad):
319         (TEST_deviceArrayLoad):
320         * WebGPUShadingLanguageRI/TypeRef.js:
321         (TypeRef.prototype.get instantiatedType):
322         * WebGPUShadingLanguageRI/TypeVariable.js:
323         (TypeVariable.prototype.toString):
324         (TypeVariable):
325         * WebGPUShadingLanguageRI/UintLiteral.js: Added.
326         (UintLiteral):
327         (UintLiteral.prototype.get value):
328         (UintLiteral.prototype.get isConstexpr):
329         (UintLiteral.prototype.toString):
330         * WebGPUShadingLanguageRI/Visitor.js:
331         (Visitor.prototype.visitNativeFuncInstance):
332         (Visitor.prototype.visitTypeVariable):
333         (Visitor.prototype.visitPtrType):
334         (Visitor.prototype.visitArrayRefType):
335         (Visitor.prototype.visitUintLiteral):
336         * WebGPUShadingLanguageRI/WTrapError.js: Added.
337         (WTrapError):
338
339 2017-08-31  Alex Christensen  <achristensen@webkit.org>
340
341         Add WKUIDelegatePrivate equivalent of WKPageUIClient's isPlayingAudioDidChange
342         https://bugs.webkit.org/show_bug.cgi?id=176203
343         <rdar://problem/29270035>
344
345         Reviewed by Tim Horton.
346
347         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
348         (-[MediaDelegate _webView:isPlayingMediaDidChange:]):
349         (-[MediaDelegate webView:didFinishNavigation:]):
350         (TEST):
351
352 2017-08-31  Alex Christensen  <achristensen@webkit.org>
353
354         Add ObjC SPI corresponding to WKPageLoaderClient's webGLLoadPolicy and resolveWebGLLoadPolicy
355         https://bugs.webkit.org/show_bug.cgi?id=175779
356         <rdar://problem/22367975>
357
358         Reviewed by Tim Horton.
359
360         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
361         * TestWebKitAPI/Tests/WebKitCocoa/WebGLPolicy.mm: Added.
362         (-[WebGLTestDelegate webView:startURLSchemeTask:]):
363         (-[WebGLTestDelegate webView:stopURLSchemeTask:]):
364         (-[WebGLTestDelegate _webView:webGLLoadPolicyForURL:decisionHandler:]):
365         (-[WebGLTestDelegate _webView:resolveWebGLLoadPolicyForURL:decisionHandler:]):
366         (-[WebGLTestDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
367         (urlsEqual):
368         (runTest):
369         (TEST):
370
371 2017-08-31  Don Olmstead  <don.olmstead@sony.com>
372
373         [CMake] Make USE_CF conditional within Windows
374         https://bugs.webkit.org/show_bug.cgi?id=176173
375
376         Reviewed by Alex Christensen.
377
378         * DumpRenderTree/config.h:
379         * MiniBrowser/win/CMakeLists.txt:
380         * MiniBrowser/win/stdafx.h:
381         * TestWebKitAPI/PlatformWin.cmake:
382
383 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
384
385         WSL should support makeptr (\)
386         https://bugs.webkit.org/show_bug.cgi?id=176197
387
388         Reviewed by Saam Barati.
389         
390         This required introducing some sanity about how pointers are carried around in the evaluator.
391         It turns out that we need to be careful about when a pointer to an rvalue is dereferenced. It
392         should be dereferenced basically immediately. If it cannot be, then we need to snapshot the
393         value. To do that, we need to know the types of things in a few more places. That's what this
394         change accomplishes.
395
396         * WebGPUShadingLanguageRI/All.js:
397         * WebGPUShadingLanguageRI/CallFunction.js:
398         (callFunction):
399         * WebGPUShadingLanguageRI/Checker.js:
400         (Checker.prototype.visitProtocolDecl.set throw):
401         * WebGPUShadingLanguageRI/DereferenceExpression.js:
402         (DereferenceExpression.prototype.get isLValue):
403         * WebGPUShadingLanguageRI/Evaluator.js:
404         (Evaluator.prototype._snapshot):
405         (Evaluator.prototype.runBody):
406         (Evaluator.prototype.visitFunctionLikeBlock):
407         (Evaluator.prototype.visitDereferenceExpression):
408         (Evaluator.prototype.visitMakePtrExpression):
409         (Evaluator.prototype.visitCommaExpression):
410         (Evaluator.prototype.visitCallExpression):
411         (Evaluator):
412         (Evaluator.prototype._dereference): Deleted.
413         * WebGPUShadingLanguageRI/FuncInstantiator.js:
414         (FuncInstantiator.prototype.getUnique.Instantiate.prototype.visitFuncDef):
415         (FuncInstantiator.prototype.getUnique.Instantiate.prototype.visitNativeFunc):
416         (FuncInstantiator.prototype.getUnique.Instantiate):
417         (FuncInstantiator.prototype.getUnique):
418         (FuncInstantiator):
419         * WebGPUShadingLanguageRI/FunctionLikeBlock.js:
420         (FunctionLikeBlock):
421         (FunctionLikeBlock.prototype.get returnType):
422         (FunctionLikeBlock.prototype.toString):
423         * WebGPUShadingLanguageRI/Inliner.js:
424         (Inliner.prototype.visitCallExpression):
425         (Inliner):
426         * WebGPUShadingLanguageRI/MakePtrExpression.js: Added.
427         (MakePtrExpression):
428         (MakePtrExpression.prototype.get lValue):
429         (MakePtrExpression.prototype.toString):
430         * WebGPUShadingLanguageRI/NativeFuncInstance.js: Added.
431         (NativeFuncInstance):
432         (NativeFuncInstance.prototype.get func):
433         (NativeFuncInstance.prototype.toString):
434         * WebGPUShadingLanguageRI/Rewriter.js:
435         (Rewriter.prototype.visitMakePtrExpression):
436         (Rewriter.prototype.visitCallExpression):
437         * WebGPUShadingLanguageRI/Test.js:
438         (TEST_dereferenceStore):
439         (TEST_simpleMakePtr):
440         * WebGPUShadingLanguageRI/Value.js:
441         (Value.prototype.get isLValue):
442         (Value):
443         * WebGPUShadingLanguageRI/VariableRef.js:
444         (VariableRef.prototype.get isLValue):
445         (VariableRef.prototype.get addressSpace):
446         * WebGPUShadingLanguageRI/Visitor.js:
447         (Visitor.prototype.visitMakePtrExpression):
448         (Visitor.prototype.visitCallExpression):
449
450 2017-08-31  Ryan Haddad  <ryanhaddad@apple.com>
451
452         Unreviewed, rolling out r221445.
453
454         This change broke Sierra Release builds.
455
456         Reverted changeset:
457
458         "Switch HTMLMediaElement to release logging"
459         https://bugs.webkit.org/show_bug.cgi?id=176065
460         http://trac.webkit.org/changeset/221445
461
462 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
463
464         WSL should support dereference (^)
465         https://bugs.webkit.org/show_bug.cgi?id=176192
466
467         Reviewed by Myles Maxfield.
468         
469         This implements DereferenceExpression.
470         
471         It also renames Evaluator.prototype.visitFunctionBody, because that name confusingly implies
472         that there is a class named FunctionBody. It's now called runBody.
473         
474         I made the check to see if a type is a pointer type be the isPtr method, so that we can have
475         other pointer types that are implemented via something other than PtrType. We might want it if
476         for example we wanted a pointer type that is generic over address space.
477
478         * WebGPUShadingLanguageRI/All.js:
479         * WebGPUShadingLanguageRI/CallFunction.js:
480         (callFunction):
481         * WebGPUShadingLanguageRI/Checker.js:
482         (Checker.prototype.visitProtocolDecl.set throw):
483         * WebGPUShadingLanguageRI/DereferenceExpression.js: Added.
484         (DereferenceExpression):
485         (DereferenceExpression.prototype.get ptr):
486         (DereferenceExpression.prototype.toString):
487         * WebGPUShadingLanguageRI/Evaluator.js:
488         (Evaluator.prototype.visitFunctionLikeBlock):
489         (Evaluator.prototype._dereference):
490         (Evaluator.prototype.visitDereferenceExpression):
491         (Evaluator.prototype.visitFunctionBody): Deleted.
492         * WebGPUShadingLanguageRI/PtrType.js:
493         (PtrType.prototype.get isPtr):
494         (PtrType.prototype.populateDefaultValue):
495         * WebGPUShadingLanguageRI/Rewriter.js:
496         (Rewriter.prototype.visitAssignment):
497         (Rewriter.prototype.visitDereferenceExpression):
498         * WebGPUShadingLanguageRI/Test.js:
499         (TEST_simpleDereference):
500         * WebGPUShadingLanguageRI/Type.js:
501         (Type.prototype.get isPtr):
502         * WebGPUShadingLanguageRI/Visitor.js:
503         (Visitor.prototype.visitDereferenceExpression):
504
505 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
506
507         There should only be one callFunction API in WSL
508         https://bugs.webkit.org/show_bug.cgi?id=176189
509
510         Reviewed by Saam Barati.
511         
512         This removes the need for callFunctionByRef, which was weird. It's now the case the TypedValue
513         is always a tuple of type and ePtr, and TypedValue has a super simple API for boxing and
514         unboxing single-cell values like ints.
515
516         * WebGPUShadingLanguageRI/CallFunction.js:
517         (callFunction):
518         (callFunctionByRef): Deleted.
519         * WebGPUShadingLanguageRI/Test.js:
520         (makeInt):
521         * WebGPUShadingLanguageRI/TypedValue.js:
522         (TypedValue):
523         (TypedValue.prototype.get type):
524         (TypedValue.prototype.get ePtr):
525         (TypedValue.box):
526         (TypedValue.prototype.get value):
527         (TypedValue.prototype.toString):
528
529 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
530
531         WSL EPtr does not need to carry around the type
532         https://bugs.webkit.org/show_bug.cgi?id=176188
533
534         Reviewed by Saam Barati.
535         
536         To validate that the interpreter is modeling a statically typed execution environment, it's
537         really best if values don't know their types at all. A pointer is just a pointer (i.e a buffer
538         and offset in our world), and it's the job of the AST node that uses it to figure out what its
539         type should be.
540         
541         I think this makes the code simpler overall.
542
543         * WebGPUShadingLanguageRI/All.js:
544         * WebGPUShadingLanguageRI/CallFunction.js:
545         (callFunctionByRef):
546         (callFunction):
547         * WebGPUShadingLanguageRI/Checker.js:
548         (Checker.prototype.visitProtocolDecl.set throw):
549         * WebGPUShadingLanguageRI/EBufferBuilder.js:
550         (EBufferBuilder.prototype._createEPtr):
551         * WebGPUShadingLanguageRI/EPtr.js:
552         (EPtr):
553         (EPtr.box):
554         (EPtr.prototype.copyFrom):
555         (EPtr.prototype.toString):
556         * WebGPUShadingLanguageRI/EValue.js: Removed.
557         * WebGPUShadingLanguageRI/Evaluator.js:
558         (Evaluator.prototype.visitFunctionLikeBlock):
559         (Evaluator.prototype.visitVariableDecl):
560         (Evaluator.prototype.visitAssignment):
561         (Evaluator.prototype.visitIntLiteral):
562         * WebGPUShadingLanguageRI/Intrinsics.js:
563         (Intrinsics):
564         * WebGPUShadingLanguageRI/Rewriter.js:
565         (Rewriter.prototype.visitAssignment):
566         * WebGPUShadingLanguageRI/StructType.js:
567         (StructType.prototype.instantiate):
568         * WebGPUShadingLanguageRI/Test.js:
569         (checkInt):
570
571 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
572
573         WSL doesn't need to wrap primitives like ints and floats in specialized classes like EInt and EFloat
574         https://bugs.webkit.org/show_bug.cgi?id=176184
575
576         Reviewed by Saam Barati.
577         
578         The only use for EInt and EFloat was that users of the interpreter want to be able to reason
579         about values that know their type. But for the actual interpreter, it makes most sense for
580         EBuffer to hold values directly - for example, ints in the case of values of type int. Then,
581         all of the logic of doing math on those things can be implemented in Intrinsics.js.
582         
583         So, this removes EInt and EFloat but introduces a new TypedValue class that is used only on the
584         boundary of the interpreter. You can either use the interpreter by speaking its internal
585         language (EPtr to an EBuffer that has the values) or by using the simple API (which uses
586         TypedValue as a trade-off between power and convenience).
587
588         * WebGPUShadingLanguageRI/All.js:
589         * WebGPUShadingLanguageRI/CallFunction.js:
590         (callFunction):
591         * WebGPUShadingLanguageRI/EFloat.js: Removed.
592         * WebGPUShadingLanguageRI/EInt.js: Removed.
593         * WebGPUShadingLanguageRI/EPtr.js:
594         (EPtr.box):
595         * WebGPUShadingLanguageRI/Evaluator.js:
596         (Evaluator.prototype.visitIntLiteral):
597         * WebGPUShadingLanguageRI/Intrinsics.js:
598         (Intrinsics):
599         * WebGPUShadingLanguageRI/Test.js:
600         (makeInt):
601         (checkInt):
602         (TEST_add1):
603         (TEST_simpleGeneric):
604         (TEST_simpleAssignment):
605         (TEST_simpleDefault):
606         * WebGPUShadingLanguageRI/TypedValue.js: Added.
607         (TypedValue):
608         (TypedValue.prototype.toString):
609
610 2017-08-31  David Quesada  <david_quesada@apple.com>
611
612         WKNavigationDelegatePrivate client redirect SPI needs to be able to detect redirects scheduled before the document finishes loading
613         https://bugs.webkit.org/show_bug.cgi?id=176128
614         rdar://problem/34068476
615
616         Reviewed by Brady Eidson.
617
618         Removed API test for the deleted WKNavigationDelegatePrivate method,
619         and added two new tests for the two new methods.
620
621         * TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
622         (-[ClientRedirectNavigationDelegate _webView:willPerformClientRedirectToURL:delay:]):
623         (-[ClientRedirectNavigationDelegate _webViewDidCancelClientRedirect:]):
624         (-[ClientRedirectNavigationDelegate webView:didFinishNavigation:]):
625         (TEST):
626
627 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
628
629         WSL should handle variable assignments and variable declarations
630         https://bugs.webkit.org/show_bug.cgi?id=176180
631
632         Reviewed by Saam Barati.
633         
634         Just fills in VariableDecl and Assignment logic so that we can test variables.
635
636         * WebGPUShadingLanguageRI/Checker.js:
637         (Checker.prototype.visitProtocolDecl.set throw):
638         * WebGPUShadingLanguageRI/EBufferBuilder.js:
639         (EBufferBuilder.prototype._createEPtrForNode):
640         (EBufferBuilder.prototype.visitFuncParameter):
641         (EBufferBuilder.prototype.visitVariableDecl):
642         (EBufferBuilder):
643         * WebGPUShadingLanguageRI/Evaluator.js:
644         (Evaluator.prototype.visitVariableDecl):
645         (Evaluator.prototype.visitAssignment):
646         * WebGPUShadingLanguageRI/NameResolver.js:
647         (NameResolver.prototype.visitVariableDecl):
648         * WebGPUShadingLanguageRI/Rewriter.js:
649         (Rewriter.prototype.visitFuncParameter):
650         (Rewriter.prototype.visitVariableDecl):
651         * WebGPUShadingLanguageRI/Test.js:
652         (makeInt):
653         (TEST_add1):
654         (TEST_simpleGeneric):
655         (TEST_simpleAssignment):
656         (TEST_simpleDefault):
657         * WebGPUShadingLanguageRI/Visitor.js:
658         (Visitor.prototype.visitVariableDecl):
659
660 2017-08-31  Chris Dumez  <cdumez@apple.com>
661
662         getFileMetadata() does not work as expected for symbolic links
663         https://bugs.webkit.org/show_bug.cgi?id=176143
664
665         Reviewed by Andreas Kling.
666
667         Add API test coverage.
668
669         * TestWebKitAPI/Tests/WebCore/FileSystem.cpp:
670         (TestWebKitAPI::TEST_F):
671
672 2017-08-31  Filip Pizlo  <fpizlo@apple.com>
673
674         WSL parser should pass the token as the origin to the AST
675         https://bugs.webkit.org/show_bug.cgi?id=176177
676
677         Reviewed by Keith Miller.
678         
679         Parse.js was sometimes passing token.origin as the origin, but that's just the filename
680         component of the origin. This fixes the problem and adds a test. The test previously failed
681         because instead of reporting the origin of the type error as "<test>:1", it reported undefined.
682
683         * WebGPUShadingLanguageRI/Parse.js:
684         (parseProtocolRef):
685         (consumeEndOfTypeArgs):
686         (parseTypeParameters):
687         (parseTerm):
688         (parseTypeArguments):
689         (parseType):
690         (parseTypeDef):
691         (parseNative):
692         (parseLeftOperatorCall):
693         (parsePossibleSuffix):
694         (parsePossiblePrefix):
695         (parsePossibleRelationalEquality):
696         (parseLeftLogicalExpression):
697         (parsePossibleTernaryConditional):
698         (parsePossibleAssignment):
699         (genericParseCommaExpression):
700         (parseReturn):
701         (parseVariableDecls):
702         (parseBlock):
703         * WebGPUShadingLanguageRI/Test.js:
704         (checkFail):
705         (TEST_nameResolutionFailure):
706
707 2017-08-31  Keith Miller  <keith_miller@apple.com>
708
709         Add a filter argument to WSL test suite.
710         https://bugs.webkit.org/show_bug.cgi?id=176176
711
712         Reviewed by Filip Pizlo.
713
714         * WebGPUShadingLanguageRI/Test.js:
715         (this.string_appeared_here.i.switch):
716         (let.s.in.this.s.startsWith.string_appeared_here.s.match):
717         (let.s.in.this.s.startsWith): Deleted.
718
719 2017-08-30  Filip Pizlo  <fpizlo@apple.com>
720
721         WSL should be able to run a program that uses generics
722         https://bugs.webkit.org/show_bug.cgi?id=176152
723
724         Reviewed by Keith Miller.
725         
726         This fixes the WSL parser and type checker to the point that we can:
727         
728         - Parse a function call!
729         - Type check a generic function call with an inferred type parameter.
730         - Instantiate a generic function.
731         - Inline a function call.
732         - Evaluate an inlined function call.
733         
734         This also changes the test suite so that it's a little nicer to add new tests. Functions whose
735         names start with "TEST_" are tests.
736
737         * WebGPUShadingLanguageRI/Checker.js:
738         (Checker.prototype.visitProtocolDecl.set throw):
739         * WebGPUShadingLanguageRI/EBufferBuilder.js:
740         (EBufferBuilder.prototype.visitFuncParameter):
741         (EBufferBuilder):
742         * WebGPUShadingLanguageRI/Evaluator.js:
743         (Evaluator.prototype.visitFunctionLikeBlock):
744         * WebGPUShadingLanguageRI/FuncDef.js:
745         (FuncDef.prototype.toString):
746         (FuncDef):
747         * WebGPUShadingLanguageRI/FuncInstantiator.js:
748         (FuncInstantiator.prototype.getUnique):
749         (FuncInstantiator):
750         * WebGPUShadingLanguageRI/Inliner.js:
751         (Inliner.prototype.visitCallExpression):
752         (Inliner):
753         * WebGPUShadingLanguageRI/Lexer.js:
754         (Lexer):
755         * WebGPUShadingLanguageRI/NameContext.js:
756         (NameContext):
757         (NameContext.prototype.add):
758         (NameContext.prototype.get let):
759         (NameContext.prototype.defineAll):
760         (NameContext.get intrinsics): Deleted.
761         (NameContext.set program): Deleted.
762         (NameContext.get program): Deleted.
763         * WebGPUShadingLanguageRI/NameResolver.js:
764         (NameResolver.prototype.visitProgram):
765         * WebGPUShadingLanguageRI/Parse.js:
766         (parseTerm):
767         (parsePossibleSuffix):
768         (genericParseCommaExpression):
769         (parseReturn):
770         * WebGPUShadingLanguageRI/Program.js:
771         (Program.prototype.resolveFuncOverload):
772         * WebGPUShadingLanguageRI/ProtocolDecl.js:
773         (ProtocolDecl.prototype.inherits):
774         * WebGPUShadingLanguageRI/ResolveOverloadImpl.js:
775         (resolveOverloadImpl):
776         * WebGPUShadingLanguageRI/Rewriter.js:
777         (Rewriter.prototype.visitFuncParameter):
778         (Rewriter.prototype.visitCallExpression):
779         (Rewriter.prototype._map): Deleted.
780         * WebGPUShadingLanguageRI/Test.js:
781         (checkInt):
782         (TEST_add1):
783         (TEST_simpleGeneric):
784         (let.s.in.this.s.startsWith):
785         (load): Deleted.
786         * WebGPUShadingLanguageRI/TypeVariable.js:
787         (TypeVariable.prototype.typeVariableUnify):
788         * WebGPUShadingLanguageRI/UnificationContext.js:
789         (UnificationContext.prototype.union):
790
791 2017-08-30  Alex Christensen  <achristensen@webkit.org>
792
793         Add WKUIDelegatePrivate equivalent of WKPageUIClient's didClickAutoFillButton
794         https://bugs.webkit.org/show_bug.cgi?id=176139
795         <rdar://problem/29270035>
796
797         Reviewed by Tim Horton.
798
799         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
800         * TestWebKitAPI/Tests/WebKitCocoa/ClickAutoFillButton.mm: Added.
801         (didClickAutoFillButton):
802         (-[ClickAutoFillButton webProcessPlugIn:didCreateBrowserContextController:]):
803         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
804         (-[AutoFillDelegate _webView:didClickAutoFillButtonWithUserInfo:]):
805         (-[AutoFillDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
806         (TEST):
807
808 2017-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
809
810         [GTK] Several InputMethodFilter tests are failing and crashing
811         https://bugs.webkit.org/show_bug.cgi?id=176158
812
813         Reviewed by Carlos Alberto Lopez Perez.
814
815         This started to happen after the GTK+ upgrade from 3.16 to 3.22 in the internal jhbuild. Now, GtkIMContext
816         doesn't emit the preedit signals when using the compose key (GDK_KEY_Multi_key). The composition results are
817         committed directly when they are ready. The test InputMethodFilterComposeKey was failing because it expected
818         preedit events that no longer happen. Tests InputMethodFilterContextFocusOutDuringOngoingComposition and
819         InputMethodFilterContextMouseClickDuringOngoingComposition were crashing because InputMethodFilter::confirmCurrentComposition()
820         accessed the WebPageProxy unconditionally, that is not available in testing mode. I wonder how this ever
821         worked. Other tests results have also been updated because logHandleKeyboardEventWithCompositionResultsForTesting()
822         now uses hexadecimal numbers for the key codes, for consistency with all other event logs.
823
824         * TestWebKitAPI/Tests/WebKit/gtk/InputMethodFilter.cpp:
825         (TestWebKitAPI::TestInputMethodFilter::TestInputMethodFilter):
826         (TestWebKitAPI::TEST):
827         (TestWebKitAPI::verifyCanceledComposition): Deleted.
828
829 2017-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
830
831         [GTK][Wayland] Crash when gdk_keymap_get_entries_for_keyval returns TRUE but n_keys=0
832         https://bugs.webkit.org/show_bug.cgi?id=176154
833
834         Reviewed by Carlos Alberto Lopez Perez.
835
836         Also check the n_keys > 0 when using gdk_keymap_get_entries_for_keyval().
837
838         * TestWebKitAPI/Tests/WebKit/gtk/InputMethodFilter.cpp:
839         (TestWebKitAPI::TestInputMethodFilter::sendKeyEventToFilter):
840         * TestWebKitAPI/Tests/WebKitGtk/TestPrinting.cpp: Remove duplicated code and use WebViewTest::keyStroke instead.
841         * TestWebKitAPI/glib/WebKitGLib/gtk/WebViewTestGtk.cpp:
842         (WebViewTest::keyStroke):
843         * TestWebKitAPI/gtk/PlatformWebViewGtk.cpp:
844         (TestWebKitAPI::doKeyStroke):
845         * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
846         (WTR::EventSenderProxy::keyDown):
847
848 2017-08-31  Carlos Garcia Campos  <cgarcia@igalia.com>
849
850         Unreviewed. Fix GTK+ test /webkit2/WebKitAutomationSession/request-session.
851
852         It fails when comparing the browser version if micro version is 0 (or if both micro and minor are 0 too).
853
854         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: Use a helper method to convert major, minor, micro
855         numbers into a version string, using the same approach as WebKitAutomationSession.
856
857 2017-08-30  Dan Bernstein  <mitz@apple.com>
858
859         [iOS] REGRESSION (r218144) -[WKContentView targetForAction:withSender:] returns the content view for actions implemented only by the WKWebView, causing a crash
860         https://bugs.webkit.org/show_bug.cgi?id=176077
861         <rdar://problem/34145200>
862
863         Reviewed by Sam Weinig.
864
865         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
866         * TestWebKitAPI/Tests/WebKitCocoa/WKContentViewTargetForAction.mm: Added.
867         (-[TestWKContentViewTargetForActionView testAction:]):
868         (TEST):
869         * TestWebKitAPI/ios/UIKitSPI.h:
870
871 2017-08-30  Carlos Alberto Lopez Perez  <clopez@igalia.com>
872
873         [GTK] install-dependencies script should install CUPS headers
874         https://bugs.webkit.org/show_bug.cgi?id=176129
875
876         Reviewed by Michael Catanzaro.
877         
878         When building GTK+ on the JHBuild, it will enable the CUPS print
879         backend if the CUPS headers are installed. Having a print backend
880         on GTK+ is needed for the print-related API tests.
881
882         * gtk/install-dependencies:
883
884 2017-08-30  Filip Pizlo  <fpizlo@apple.com>
885
886         Rename ArrayLang to WebGPU Shading Language, or WSL for short, pronounced "whistle"
887         https://bugs.webkit.org/show_bug.cgi?id=176117
888
889         Reviewed by Myles Maxfield.
890         
891         Renamed ArrayLangRI to WebGPUShadingLanguageRI.
892         
893         Renamed ALSyntaxError/ALTypeError to WSyntaxError/WTypeError.
894         
895         Renamed all references to "ArrayLang" in the code to "WSL".
896
897         * ArrayLangRI: Removed.
898         * ArrayLangRI/ALSyntaxError.js: Removed.
899         * ArrayLangRI/ALTypeError.js: Removed.
900         * ArrayLangRI/AddressSpace.js: Removed.
901         * ArrayLangRI/All.js: Removed.
902         * ArrayLangRI/ArrayRefType.js: Removed.
903         * ArrayLangRI/ArrayType.js: Removed.
904         * ArrayLangRI/Assignment.js: Removed.
905         * ArrayLangRI/Block.js: Removed.
906         * ArrayLangRI/CallAssignment.js: Removed.
907         * ArrayLangRI/CallExpression.js: Removed.
908         * ArrayLangRI/CallFunction.js: Removed.
909         * ArrayLangRI/Check.js: Removed.
910         * ArrayLangRI/Checker.js: Removed.
911         * ArrayLangRI/CommaExpression.js: Removed.
912         * ArrayLangRI/ConstexprTypeParameter.js: Removed.
913         * ArrayLangRI/EBuffer.js: Removed.
914         * ArrayLangRI/EBufferBuilder.js: Removed.
915         * ArrayLangRI/EFloat.js: Removed.
916         * ArrayLangRI/EInt.js: Removed.
917         * ArrayLangRI/EPtr.js: Removed.
918         * ArrayLangRI/EValue.js: Removed.
919         * ArrayLangRI/EvaluationCommon.js: Removed.
920         * ArrayLangRI/Evaluator.js: Removed.
921         * ArrayLangRI/Expression.js: Removed.
922         * ArrayLangRI/Field.js: Removed.
923         * ArrayLangRI/Func.js: Removed.
924         * ArrayLangRI/FuncDef.js: Removed.
925         * ArrayLangRI/FuncInstantiator.js: Removed.
926         * ArrayLangRI/FuncParameter.js: Removed.
927         * ArrayLangRI/FunctionLikeBlock.js: Removed.
928         * ArrayLangRI/Inline.js: Removed.
929         * ArrayLangRI/Inliner.js: Removed.
930         * ArrayLangRI/InstantiateImmediates.js: Removed.
931         * ArrayLangRI/IntLiteral.js: Removed.
932         * ArrayLangRI/Intrinsics.js: Removed.
933         * ArrayLangRI/Lexer.js: Removed.
934         * ArrayLangRI/LexerToken.js: Removed.
935         * ArrayLangRI/NameContext.js: Removed.
936         * ArrayLangRI/NameResolver.js: Removed.
937         * ArrayLangRI/NativeFunc.js: Removed.
938         * ArrayLangRI/NativeType.js: Removed.
939         * ArrayLangRI/NativeTypeInstance.js: Removed.
940         * ArrayLangRI/Node.js: Removed.
941         * ArrayLangRI/NullType.js: Removed.
942         * ArrayLangRI/Parse.js: Removed.
943         * ArrayLangRI/Prepare.js: Removed.
944         * ArrayLangRI/Program.js: Removed.
945         * ArrayLangRI/Protocol.js: Removed.
946         * ArrayLangRI/ProtocolDecl.js: Removed.
947         * ArrayLangRI/ProtocolRef.js: Removed.
948         * ArrayLangRI/PtrType.js: Removed.
949         * ArrayLangRI/ReferenceType.js: Removed.
950         * ArrayLangRI/ResolveNames.js: Removed.
951         * ArrayLangRI/ResolveOverloadImpl.js: Removed.
952         * ArrayLangRI/ResolveTypeDefs.js: Removed.
953         * ArrayLangRI/Return.js: Removed.
954         * ArrayLangRI/ReturnException.js: Removed.
955         * ArrayLangRI/Rewriter.js: Removed.
956         * ArrayLangRI/StandardLibrary.js: Removed.
957         * ArrayLangRI/StructType.js: Removed.
958         * ArrayLangRI/Substitution.js: Removed.
959         * ArrayLangRI/SuffixCallAssignment.js: Removed.
960         * ArrayLangRI/Test.js: Removed.
961         * ArrayLangRI/Type.js: Removed.
962         * ArrayLangRI/TypeDef.js: Removed.
963         * ArrayLangRI/TypeDefResolver.js: Removed.
964         * ArrayLangRI/TypeOrVariableRef.js: Removed.
965         * ArrayLangRI/TypeRef.js: Removed.
966         * ArrayLangRI/TypeVariable.js: Removed.
967         * ArrayLangRI/UnificationContext.js: Removed.
968         * ArrayLangRI/Value.js: Removed.
969         * ArrayLangRI/VariableDecl.js: Removed.
970         * ArrayLangRI/VariableRef.js: Removed.
971         * ArrayLangRI/VisitingSet.js: Removed.
972         * ArrayLangRI/Visitor.js: Removed.
973         * WebGPUShadingLanguageRI: Copied from Tools/ArrayLangRI.
974         * WebGPUShadingLanguageRI/ALSyntaxError.js: Removed.
975         * WebGPUShadingLanguageRI/ALTypeError.js: Removed.
976         * WebGPUShadingLanguageRI/All.js:
977         * WebGPUShadingLanguageRI/CallFunction.js:
978         (callFunctionByRef):
979         * WebGPUShadingLanguageRI/Checker.js:
980         (Checker.prototype.visitProtocolDecl.set throw):
981         * WebGPUShadingLanguageRI/Intrinsics.js:
982         (Intrinsics.prototype.add):
983         (Intrinsics):
984         * WebGPUShadingLanguageRI/Lexer.js:
985         (Lexer):
986         * WebGPUShadingLanguageRI/NameContext.js:
987         (NameContext.prototype.add):
988         * WebGPUShadingLanguageRI/NameResolver.js:
989         (NameResolver.prototype._resolveTypeArguments):
990         (NameResolver.prototype.visitTypeRef):
991         (NameResolver.prototype.visitVariableRef):
992         * WebGPUShadingLanguageRI/Parse.js:
993         * WebGPUShadingLanguageRI/StandardLibrary.js:
994         * WebGPUShadingLanguageRI/StructType.js:
995         (StructType.prototype.add):
996         (StructType.prototype.instantiate):
997         * WebGPUShadingLanguageRI/TypeDefResolver.js:
998         (TypeDefResolver.prototype.visitTypeRef):
999         (TypeDefResolver):
1000         * WebGPUShadingLanguageRI/VisitingSet.js:
1001         (VisitingSet.prototype.doVisit):
1002         (VisitingSet):
1003         * WebGPUShadingLanguageRI/WSyntaxError.js: Copied from Tools/ArrayLangRI/ALSyntaxError.js.
1004         (ALSyntaxError): Deleted.
1005         * WebGPUShadingLanguageRI/WTypeError.js: Copied from Tools/ArrayLangRI/ALTypeError.js.
1006         (ALTypeError): Deleted.
1007
1008 2017-08-30  Eric Carlson  <eric.carlson@apple.com>
1009
1010         Add Logger observer and helper class
1011         https://bugs.webkit.org/show_bug.cgi?id=176106
1012
1013         Reviewed by Andy Estes.
1014
1015         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
1016         (TestWebKitAPI::LoggingTest::LoggingTest):
1017         (TestWebKitAPI::LoggingTest::Logger::create):
1018         (TestWebKitAPI::TEST_F):
1019         (TestWebKitAPI::LogObserver::log):
1020         (TestWebKitAPI::LogObserver::channel const):
1021
1022 2017-08-29  Filip Pizlo  <fpizlo@apple.com>
1023
1024         Initial reference implementation scaffolding for ArrayLang
1025         https://bugs.webkit.org/show_bug.cgi?id=175925
1026
1027         Reviewed by Myles Maxfield.
1028         
1029         This introduces a very rough scaffolding for an AST walk interpreter and type checker for an
1030         experimental shader language we are calling ArrayLang for now.
1031         
1032         The idea is to have a strong core type system that includes generics and memory-safe pointers
1033         and array references. Everything has deterministic semantics right up to the limit of what is
1034         portably possible.
1035         
1036         This language will support generics. This will be valid:
1037         
1038         protocol Addable { Addable operator+(Addable, Addable); }
1039         T add<T:Addable>(T a, T b) { return a + b; }
1040         
1041         This language will support pointers and array references. This will be valid:
1042         
1043         thread int^ foo() { int x; return \x; }
1044         
1045         Each variable behaves as if it was declared "static", with one copy per type instantiation.
1046         Functions cannot recurse and there is no stack.
1047         
1048         Currently, this just tests that the following function can be parsed, checked, and called:
1049         
1050         int foo(int x) { return x + 1; }
1051
1052         * ArrayLangRI: Added.
1053         * ArrayLangRI/ALSyntaxError.js: Added.
1054         (ALSyntaxError):
1055         * ArrayLangRI/ALTypeError.js: Added.
1056         (ALTypeError):
1057         * ArrayLangRI/AddressSpace.js: Added.
1058         (isAddressSpace):
1059         (validateAddressSpace):
1060         * ArrayLangRI/All.js: Added.
1061         * ArrayLangRI/ArrayRefType.js: Added.
1062         (ArrayRefType.prototype.unifyImpl):
1063         (ArrayRefType.prototype.toString):
1064         (ArrayRefType):
1065         * ArrayLangRI/ArrayType.js: Added.
1066         (ArrayType):
1067         (ArrayType.prototype.get origin):
1068         (ArrayType.prototype.get elementType):
1069         (ArrayType.prototype.get numElements):
1070         (ArrayType.prototype.get isPrimitive):
1071         (ArrayType.prototype.toString):
1072         (ArrayType.prototype.get size):
1073         (ArrayType.prototype.unifyImpl):
1074         * ArrayLangRI/Assignment.js: Added.
1075         (Assignment):
1076         (Assignment.prototype.get lhs):
1077         (Assignment.prototype.get rhs):
1078         (Assignment.prototype.toString):
1079         * ArrayLangRI/Block.js: Added.
1080         (Block):
1081         (Block.prototype.get origin):
1082         (Block.prototype.add):
1083         (Block.prototype.get statements):
1084         (Block.prototype.toString):
1085         * ArrayLangRI/CallAssignment.js: Added.
1086         (CallAssignment):
1087         (CallAssignment.prototype.get name):
1088         (CallAssignment.prototype.get lhs):
1089         (CallAssignment.prototype.get rhs):
1090         (CallAssignment.prototype.toString):
1091         * ArrayLangRI/CallExpression.js: Added.
1092         (CallExpression):
1093         (CallExpression.prototype.get name):
1094         (CallExpression.prototype.get typeArguments):
1095         (CallExpression.prototype.get argumentList):
1096         (CallExpression.prototype.toString):
1097         * ArrayLangRI/CallFunction.js: Added.
1098         (callFunctionByRef):
1099         (callFunction):
1100         * ArrayLangRI/Check.js: Added.
1101         (check):
1102         * ArrayLangRI/Checker.js: Added.
1103         (Checker):
1104         (Checker.prototype.visitProgram):
1105         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable.prototype.visitTypeRef):
1106         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable.prototype.visitVariableRef):
1107         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable):
1108         (Checker.prototype.visitProtocolDecl.set throw):
1109         * ArrayLangRI/CommaExpression.js: Added.
1110         (CommaExpression):
1111         (CommaExpression.prototype.get list):
1112         (CommaExpression.prototype.toString):
1113         * ArrayLangRI/ConstexprTypeParameter.js: Added.
1114         (ConstexprTypeParameter):
1115         (ConstexprTypeParameter.prototype.get name):
1116         (ConstexprTypeParameter.prototype.get type):
1117         (ConstexprTypeParameter.prototype.get isConstexpr):
1118         (ConstexprTypeParameter.prototype.get isUnifiable):
1119         (ConstexprTypeParameter.prototype.typeVariableUnify):
1120         (ConstexprTypeParameter.prototype.unifyImpl):
1121         (ConstexprTypeParameter.prototype.verifyAsArgument):
1122         (ConstexprTypeParameter.prototype.verifyAsParameter):
1123         (ConstexprTypeParameter.prototype.toString):
1124         * ArrayLangRI/EBuffer.js: Added.
1125         (EBuffer):
1126         (EBuffer.get index):
1127         * ArrayLangRI/EBufferBuilder.js: Added.
1128         (EBufferBuilder):
1129         (EBufferBuilder.prototype._createEPtr):
1130         (EBufferBuilder.prototype.visitFuncParameter):
1131         * ArrayLangRI/EFloat.js: Added.
1132         (EFloat):
1133         (EFloat.prototype.get value):
1134         (EFloat.prototype.add):
1135         (EFloat.prototype.toString):
1136         * ArrayLangRI/EInt.js: Added.
1137         (EInt):
1138         (EInt.prototype.get value):
1139         (EInt.prototype.add):
1140         (EInt.prototype.toString):
1141         * ArrayLangRI/EPtr.js: Added.
1142         (EPtr):
1143         (EPtr.box):
1144         (EPtr.prototype.get buffer):
1145         (EPtr.prototype.get offset):
1146         (EPtr.prototype.loadValue):
1147         (EPtr.prototype.copyFrom):
1148         (EPtr.prototype.toString):
1149         * ArrayLangRI/EValue.js: Added.
1150         (EValue):
1151         (EValue.prototype.get type):
1152         * ArrayLangRI/EvaluationCommon.js: Added.
1153         * ArrayLangRI/Evaluator.js: Added.
1154         (Evaluator):
1155         (Evaluator.prototype.visitFunctionBody):
1156         (Evaluator.prototype.visitFunctionLikeBlock):
1157         (Evaluator.prototype.visitReturn):
1158         (Evaluator.prototype.visitCommaExpression):
1159         (Evaluator.prototype.visitVariableRef):
1160         (Evaluator.prototype.visitIntLiteral):
1161         (Evaluator.prototype.visitCallExpression):
1162         * ArrayLangRI/Expression.js: Added.
1163         (Expression):
1164         (Expression.prototype.get origin):
1165         * ArrayLangRI/Field.js: Added.
1166         (Field):
1167         (Field.prototype.get origin):
1168         (Field.prototype.get name):
1169         (Field.prototype.get type):
1170         (Field.prototype.toString):
1171         * ArrayLangRI/Func.js: Added.
1172         (Func):
1173         (Func.prototype.get name):
1174         (Func.prototype.get returnType):
1175         (Func.prototype.get typeParameters):
1176         (Func.prototype.get parameters):
1177         (Func.prototype.get parameterTypes):
1178         (Func.prototype.get kind):
1179         (Func.prototype.toString):
1180         * ArrayLangRI/FuncDef.js: Added.
1181         (FuncDef):
1182         (FuncDef.prototype.get origin):
1183         (FuncDef.prototype.toString):
1184         * ArrayLangRI/FuncInstantiator.js: Added.
1185         (FuncInstantiator):
1186         (FuncInstantiator.prototype.getUnique):
1187         * ArrayLangRI/FuncParameter.js: Added.
1188         (FuncParameter):
1189         (FuncParameter.prototype.get origin):
1190         (FuncParameter.prototype.get name):
1191         (FuncParameter.prototype.get type):
1192         (FuncParameter.prototype.toString):
1193         * ArrayLangRI/FuncSignature.js: Added.
1194         * ArrayLangRI/FunctionLikeBlock.js: Added.
1195         (FunctionLikeBlock):
1196         (FunctionLikeBlock.prototype.get origin):
1197         (FunctionLikeBlock.prototype.get argumentList):
1198         (FunctionLikeBlock.prototype.get parameters):
1199         (FunctionLikeBlock.prototype.get body):
1200         (FunctionLikeBlock.prototype.toString):
1201         * ArrayLangRI/Inline.js: Added.
1202         (inline):
1203         (_inlineFunction):
1204         (resolveInlinedFunction):
1205         * ArrayLangRI/Inliner.js: Added.
1206         (Inliner):
1207         (Inliner.prototype.visitCallExpression):
1208         * ArrayLangRI/InstantiateImmediates.js: Added.
1209         (InstantiateImmediates.prototype.visitTypeRef):
1210         (InstantiateImmediates.prototype.visitReferenceType):
1211         (InstantiateImmediates.prototype.visitStructType):
1212         (InstantiateImmediates.prototype.visitNativeType):
1213         (InstantiateImmediates.prototype.visitTypeVariable):
1214         (InstantiateImmediates):
1215         * ArrayLangRI/IntLiteral.js: Added.
1216         (IntLiteral):
1217         (IntLiteral.prototype.get value):
1218         (IntLiteral.prototype.get isConstexpr):
1219         (IntLiteral.prototype.toString):
1220         * ArrayLangRI/Intrinsics.js: Added.
1221         (Intrinsics):
1222         (Intrinsics.prototype.add):
1223         * ArrayLangRI/Lexer.js: Added.
1224         (Lexer):
1225         (Lexer.prototype.get lineNumber):
1226         (Lexer.prototype.get origin):
1227         (Lexer.prototype.get originString):
1228         (Lexer.prototype.lineNumberForIndex):
1229         (Lexer.prototype.get state):
1230         (Lexer.prototype.set state):
1231         (Lexer.prototype.next):
1232         * ArrayLangRI/LexerToken.js: Added.
1233         (LexerToken):
1234         (LexerToken.prototype.get kind):
1235         (LexerToken.prototype.get text):
1236         (LexerToken.prototype.get origin):
1237         (LexerToken.prototype.get index):
1238         (LexerToken.prototype.get lineNumber):
1239         (LexerToken.prototype.get originString):
1240         (LexerToken.prototype.toString):
1241         * ArrayLangRI/NameContext.js: Added.
1242         (isWildcardKind):
1243         (NameContext):
1244         (NameContext.prototype.mapFor):
1245         (NameContext.prototype.add):
1246         (NameContext.get currentStatement):
1247         (NameContext.get intrinsics):
1248         (NameContext.set program):
1249         (NameContext.get program):
1250         (NameContext.prototype.get let):
1251         * ArrayLangRI/NameResolver.js: Added.
1252         (NameResolver):
1253         (NameResolver.prototype.visitProgram):
1254         (NameResolver.prototype._visitTypeParametersAndBuildNameContext):
1255         (NameResolver.prototype.visitFunc):
1256         (NameResolver.prototype.visitFuncDef):
1257         (NameResolver.prototype.visitBlock):
1258         (NameResolver.prototype.visitProtocolDecl):
1259         (NameResolver.prototype.visitTypeDef):
1260         (NameResolver.prototype.visitStructType):
1261         (NameResolver.prototype._resolveTypeArguments):
1262         (NameResolver.prototype.visitTypeRef):
1263         (NameResolver.prototype.visitReferenceType):
1264         (NameResolver.prototype.visitVariableRef):
1265         (NameResolver.prototype.visitReturn):
1266         (NameResolver.prototype.visitCallExpression):
1267         * ArrayLangRI/NativeFunc.js: Added.
1268         (NativeFunc):
1269         (NativeFunc.prototype.get origin):
1270         (NativeFunc.prototype.get isNative):
1271         (NativeFunc.prototype.toString):
1272         * ArrayLangRI/NativeType.js: Added.
1273         (NativeType):
1274         (NativeType.prototype.get origin):
1275         (NativeType.prototype.get name):
1276         (NativeType.prototype.get isPrimitive):
1277         (NativeType.prototype.get typeParameters):
1278         (NativeType.prototype.get isNative):
1279         (NativeType.prototype.instantiate):
1280         (NativeType.prototype.toString):
1281         * ArrayLangRI/NativeTypeInstance.js: Added.
1282         (NativeTypeInstance):
1283         (NativeTypeInstance.prototype.get type):
1284         (NativeTypeInstance.prototype.get typeArguments):
1285         (NativeTypeInstance.prototype.get isPrimitive):
1286         (NativeTypeInstance.prototype.get isNative):
1287         (NativeTypeInstance.prototype.unifyImpl):
1288         (NativeTypeInstance.prototype.toString):
1289         * ArrayLangRI/Node.js: Added.
1290         (Node.prototype.visit):
1291         (Node.unify):
1292         (Node.prototype.unifyImpl):
1293         (Node.prototype.typeVariableUnify):
1294         (Node.prototype.get unifyNode):
1295         (Node.prototype.get isUnifiable):
1296         (Node.prototype.get isNative):
1297         (Node.prototype.equals):
1298         (Node.prototype.substitute):
1299         (Node.prototype.substituteToUnification):
1300         (Node):
1301         * ArrayLangRI/NullType.js: Added.
1302         (NullType):
1303         * ArrayLangRI/Parse.js: Added.
1304         (genericConsume):
1305         (consume):
1306         (genericTest):
1307         (test):
1308         (tryConsumeKind):
1309         (parseProtocolRef):
1310         (consumeEndOfTypeArgs):
1311         (parseTypeParameters):
1312         (parseTerm):
1313         (parseConstexpr):
1314         (parseTypeArguments):
1315         (parseType.getAddressSpace):
1316         (parseType):
1317         (parseTypeDef):
1318         (parseNative):
1319         (genericParseLeft):
1320         (parseLeftOperatorCall):
1321         (parsePossibleSuffix):
1322         (parsePossiblePrefix):
1323         (parsePossibleProduct):
1324         (parsePossibleSum):
1325         (parsePossibleShift):
1326         (parsePossibleRelationalInequality):
1327         (parsePossibleRelationalEquality):
1328         (parsePossibleBitwiseXor):
1329         (parsePossibleBitwiseOr):
1330         (parseLeftLogicalExpression):
1331         (parsePossibleLogicalOr):
1332         (parsePossibleTernaryConditional):
1333         (parsePossibleAssignment):
1334         (parseAssignment):
1335         (parseEffectfulExpression):
1336         (genericParseCommaExpression):
1337         (parseCommaExpression):
1338         (parseExpression):
1339         (parseEffectfulStatement):
1340         (parseReturn):
1341         (parseVariableDecls):
1342         (parseStatement):
1343         (parseBlock):
1344         (parseParameter):
1345         (parseFuncName):
1346         (parseFuncDef):
1347         (parse):
1348         * ArrayLangRI/Prepare.js: Added.
1349         (prepare):
1350         * ArrayLangRI/Program.js: Added.
1351         (Program):
1352         (Program.prototype.get topLevelStatements):
1353         (Program.prototype.get functions):
1354         (Program.prototype.get types):
1355         (Program.prototype.get funcInstantiator):
1356         (Program.prototype.add):
1357         (Program.prototype.resolveFuncOverload):
1358         (Program.prototype.get nameContext):
1359         (Program.prototype.toString):
1360         * ArrayLangRI/Protocol.js: Added.
1361         (Protocol):
1362         (Protocol.prototype.get origin):
1363         (Protocol.prototype.get name):
1364         (Protocol.prototype.get kind):
1365         (Protocol.prototype.toString):
1366         * ArrayLangRI/ProtocolDecl.js: Added.
1367         (ProtocolDecl):
1368         (ProtocolDecl.prototype.addSignature):
1369         (ProtocolDecl.prototype.get signatures):
1370         (ProtocolDecl.prototype.signaturesByName):
1371         (ProtocolDecl.prototype.get typeVariable):
1372         (ProtocolDecl.prototype.signaturesByNameWithTypeVariable):
1373         (ProtocolDecl.prototype.inherits):
1374         (ProtocolDecl.prototype.hasHeir):
1375         (ProtocolDecl.prototype.toString):
1376         * ArrayLangRI/ProtocolRef.js: Added.
1377         (ProtocolRef):
1378         (ProtocolRef.prototype.inherits):
1379         (ProtocolRef.prototype.hasHeir):
1380         * ArrayLangRI/PtrType.js: Added.
1381         (PtrType.prototype.unifyImpl):
1382         (PtrType.prototype.toString):
1383         (PtrType):
1384         * ArrayLangRI/ReferenceType.js: Added.
1385         (ReferenceType):
1386         (ReferenceType.prototype.get origin):
1387         (ReferenceType.prototype.get addressSpace):
1388         (ReferenceType.prototype.get elementType):
1389         (ReferenceType.prototype.get isPrimitive):
1390         (ReferenceType.prototype.get size):
1391         * ArrayLangRI/ResolveNames.js: Added.
1392         (resolveNames):
1393         * ArrayLangRI/ResolveOverloadImpl.js: Added.
1394         (resolveOverloadImpl):
1395         * ArrayLangRI/ResolveTypeDefs.js: Added.
1396         (resolveTypeDefs):
1397         * ArrayLangRI/Return.js: Added.
1398         (Return):
1399         (Return.prototype.get origin):
1400         (Return.prototype.get value):
1401         (Return.prototype.toString):
1402         * ArrayLangRI/ReturnException.js: Added.
1403         (ReturnException):
1404         (ReturnException.prototype.get value):
1405         * ArrayLangRI/Rewriter.js: Added.
1406         (Rewriter):
1407         (Rewriter.prototype._map):
1408         (Rewriter.prototype._getMapping):
1409         (Rewriter.prototype.visitFunc):
1410         (Rewriter.prototype.visitFuncParameter):
1411         (Rewriter.prototype.visitBlock):
1412         (Rewriter.prototype.visitCommaExpression):
1413         (Rewriter.prototype.visitProtocolRef):
1414         (Rewriter.prototype.visitTypeRef):
1415         (Rewriter.prototype.visitTypeVariable):
1416         (Rewriter.prototype.visitConstexprTypeParameter):
1417         (Rewriter.prototype.visitField):
1418         (Rewriter.prototype.visitReferenceType):
1419         (Rewriter.visitPtrType):
1420         (Rewriter.prototype.visitArrayRefType):
1421         (Rewriter.prototype.visitArrayType):
1422         (Rewriter.prototype.visitAssignment):
1423         (Rewriter.prototype.visitVariableRef):
1424         (Rewriter.prototype.visitReturn):
1425         (Rewriter.prototype.visitIntLiteral):
1426         (Rewriter.prototype.visitCallExpression):
1427         (Rewriter.prototype.visitFunctionLikeBlock):
1428         * ArrayLangRI/StandardLibrary.js: Added.
1429         * ArrayLangRI/StructType.js: Added.
1430         (StructType):
1431         (StructType.prototype.add):
1432         (StructType.prototype.get name):
1433         (StructType.prototype.get typeParameters):
1434         (StructType.prototype.get fieldNames):
1435         (StructType.prototype.fieldByName):
1436         (StructType.prototype.get fields):
1437         (StructType.prototype.get fieldMap):
1438         (StructType.prototype.get isPrimitive):
1439         (StructType.prototype.instantiate):
1440         (StructType.prototype.toString):
1441         * ArrayLangRI/Substitution.js: Added.
1442         (Substitution):
1443         (Substitution.mapping):
1444         (Substitution.prototype.visitTypeRef):
1445         (Substitution.prototype.visitVariableRef):
1446         * ArrayLangRI/SuffixCallAssignment.js: Added.
1447         (SuffixCallAssignment):
1448         (SuffixCallAssignment.prototype.get name):
1449         (SuffixCallAssignment.prototype.get lhs):
1450         (SuffixCallAssignment.prototype.toString):
1451         * ArrayLangRI/Test.js: Added.
1452         (load):
1453         * ArrayLangRI/Type.js: Added.
1454         (Type.prototype.get typeParameters):
1455         (Type.prototype.get kind):
1456         (Type.prototype.inherits):
1457         (Type.prototype.get instantiatedType):
1458         (Type):
1459         * ArrayLangRI/TypeDef.js: Added.
1460         (TypeDef):
1461         (TypeDef.prototype.get origin):
1462         (TypeDef.prototype.get name):
1463         (TypeDef.prototype.get typeParameters):
1464         (TypeDef.prototype.get type):
1465         * ArrayLangRI/TypeDefResolver.js: Added.
1466         (TypeDefResolver):
1467         (TypeDefResolver.prototype.visitTypeRef):
1468         * ArrayLangRI/TypeOrVariableRef.js: Added.
1469         (TypeOrVariableRef):
1470         (TypeOrVariableRef.prototype.get origin):
1471         (TypeOrVariableRef.prototype.get name):
1472         (TypeOrVariableRef.prototype.toString):
1473         * ArrayLangRI/TypeRef.js: Added.
1474         (TypeRef):
1475         (TypeRef.wrap):
1476         (TypeRef.prototype.get origin):
1477         (TypeRef.prototype.get name):
1478         (TypeRef.prototype.get typeArguments):
1479         (TypeRef.prototype.get isPrimitive):
1480         (TypeRef.prototype.get instantiatedType):
1481         (TypeRef.prototype.get unifyNode):
1482         (TypeRef.prototype.populateDefaultValue):
1483         (TypeRef.prototype.get size):
1484         (TypeRef.prototype.setTypeAndArguments):
1485         (TypeRef.prototype.unifyImpl):
1486         (TypeRef.prototype.toString):
1487         * ArrayLangRI/TypeVariable.js: Added.
1488         (TypeVariable):
1489         (TypeVariable.prototype.get name):
1490         (TypeVariable.prototype.get protocol):
1491         (TypeVariable.prototype.get isPrimitive):
1492         (TypeVariable.prototype.get isUnifiable):
1493         (TypeVariable.prototype.inherits):
1494         (TypeVariable.prototype.typeVariableUnify):
1495         (TypeVariable.prototype.unifyImpl):
1496         (TypeVariable.prototype.verifyAsArgument):
1497         (TypeVariable.prototype.verifyAsParameter):
1498         (TypeVariable.prototype.toString):
1499         * ArrayLangRI/UnificationContext.js: Added.
1500         (UnificationContext):
1501         (UnificationContext.prototype.union):
1502         (UnificationContext.prototype.find):
1503         (UnificationContext.prototype.get nodes):
1504         (UnificationContext.prototype.verify):
1505         (UnificationContext.prototype.isUnunified):
1506         * ArrayLangRI/Value.js: Added.
1507         (Value.prototype.get kind):
1508         (Value.prototype.get isConstexpr):
1509         (Value):
1510         * ArrayLangRI/VariableDecl.js: Added.
1511         (VariableDecl):
1512         (VariableDecl.prototype.get origin):
1513         (VariableDecl.prototype.get name):
1514         (VariableDecl.prototype.get type):
1515         (VariableDecl.prototype.get initializer):
1516         (VariableDecl.prototype.toString):
1517         * ArrayLangRI/VariableRef.js: Added.
1518         (VariableRef):
1519         (VariableRef.prototype.get name):
1520         (VariableRef.prototype.get isConstexpr):
1521         (VariableRef.prototype.get unifyNode):
1522         (VariableRef.prototype.toString):
1523         * ArrayLangRI/VisitingSet.js: Added.
1524         (VisitingSet):
1525         (VisitingSet.prototype.doVisit):
1526         * ArrayLangRI/Visitor.js: Added.
1527         (Visitor.prototype.visitProgram):
1528         (Visitor.prototype.visitFunc):
1529         (Visitor.prototype.visitFuncParameter):
1530         (Visitor.prototype.visitFuncDef):
1531         (Visitor.prototype.visitNativeFunc):
1532         (Visitor.prototype.visitBlock):
1533         (Visitor.prototype.visitCommaExpression):
1534         (Visitor.prototype.visitProtocolRef):
1535         (Visitor.prototype.visitProtocolDecl):
1536         (Visitor.prototype.visitTypeRef):
1537         (Visitor.prototype.visitNativeType):
1538         (Visitor.prototype.visitTypeDef):
1539         (Visitor.prototype.visitStructType):
1540         (Visitor.prototype.visitTypeVariable):
1541         (Visitor.prototype.visitConstexprTypeParameter):
1542         (Visitor.prototype.visitField):
1543         (Visitor.prototype.visitElementalType):
1544         (Visitor.prototype.visitPtrType):
1545         (Visitor.prototype.visitArrayRefType):
1546         (Visitor.prototype.visitArrayType):
1547         (Visitor.prototype.visitAssignment):
1548         (Visitor.prototype.visitVariableRef):
1549         (Visitor.prototype.visitReturn):
1550         (Visitor.prototype.visitIntLiteral):
1551         (Visitor.prototype.visitCallExpression):
1552         (Visitor.prototype.visitFunctionLikeBlock):
1553         (Visitor):
1554
1555 2017-08-30  Stephan Szabo  <stephan.szabo@sony.com>
1556
1557         [Win][JSCOnly] Support running JSC tests for win-cairo from windows command prompt
1558         https://bugs.webkit.org/show_bug.cgi?id=174985
1559
1560         Reviewed by Keith Miller.
1561
1562         * Scripts/run-javascriptcore-tests:
1563         * Scripts/run-jsc-stress-tests:
1564         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
1565         * Scripts/webkitruby/jsc-stress-test-writer-ruby.rb: Added.
1566
1567 2017-08-30  Adrian Perez de Castro  <aperez@igalia.com>
1568
1569         [GTK] Do not use autogen whenever possible in JHBuild modules
1570         https://bugs.webkit.org/show_bug.cgi?id=176098
1571
1572         Reviewed by Carlos Alberto Lopez Perez.
1573
1574         * gtk/jhbuild.modules: Added autogen-sh="configure" attributes for many Autootools modules.
1575
1576 2017-08-30  Tomas Popela  <tpopela@redhat.com>
1577
1578         [GTK] Avoid building fontconfig documentation in jhbuild
1579         https://bugs.webkit.org/show_bug.cgi?id=176097
1580
1581         Reviewed by Carlos Alberto Lopez Perez.
1582
1583         Disable building fontconfig documentation in jhbuild as it needs the
1584         docbook-utils-pdf package installed which depends on quite a few
1585         packages (on Fedora it's 226 packages (mostly textlive) with installed
1586         size of 274 MB). The documentation is not needed at all in jhbuild, so
1587         disable it to save some bandwidth and disc space.
1588
1589         * gtk/install-dependencies: Pass --disable-docs to fontconfig.
1590         * gtk/jhbuild.modules: Don't install docbook-utils-pdf on Fedora.
1591
1592 2017-08-30  Tomas Popela  <tpopela@redhat.com>
1593
1594         Unreviewed, remove trailing space
1595
1596         * gtk/jhbuildrc:
1597
1598 2017-08-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1599
1600         REGRESSION(r221064): [GTK] Editor not correctly working after r221064
1601         https://bugs.webkit.org/show_bug.cgi?id=176052
1602
1603         Reviewed by Michael Catanzaro.
1604
1605         Run the test inside a window to ensure display updates happen.
1606
1607         * TestWebKitAPI/Tests/WebKitGtk/TestWebViewEditor.cpp:
1608         (testWebViewEditorEditorStateTypingAttributes):
1609
1610 2017-08-29  Don Olmstead  <don.olmstead@sony.com>
1611
1612         [CMake] Use find_package for zlib
1613         https://bugs.webkit.org/show_bug.cgi?id=176075
1614
1615         Reviewed by Alex Christensen.
1616
1617         * TestWebKitAPI/PlatformWin.cmake:
1618
1619 2017-08-29  Brent Fulgham  <bfulgham@apple.com>
1620
1621         ResourceLoadStatistics logic does not understand custom WebsiteData stores
1622         https://bugs.webkit.org/show_bug.cgi?id=176037
1623         <rdar://problem/33338238>
1624
1625         Reviewed by Alex Christensen.
1626
1627         * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
1628         (TEST): Update for ResourceLoadStatistics directories.
1629
1630 2017-08-29  Brady Eidson  <beidson@apple.com>
1631
1632         Rename "potentionally trustworthy" to "potentially trustworthy"
1633         https://bugs.webkit.org/show_bug.cgi?id=176081
1634
1635         Reviewed by Daniel Bates.
1636
1637         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
1638         (TestWebKitAPI::TEST_F):
1639
1640 2017-08-29  Stephan Szabo  <stephan.szabo@sony.com>
1641
1642         [Win][JSCOnly] Fix call for updating wincairo-libs in build-jsc
1643         https://bugs.webkit.org/show_bug.cgi?id=176080
1644
1645         Reviewed by Brent Fulgham.
1646
1647         * Scripts/build-jsc:
1648
1649 2017-08-29  Adrian Perez de Castro  <aperez@igalia.com>
1650
1651         [WPE] Avoid using autogen for JHBuild modules, trying to fix the EWS
1652
1653         Unreviewed build fix.
1654
1655         This also makes the JHBuild process faster, because there are less
1656         modules which will trigger slow, ancient Perl and M4 based tooling.
1657
1658         * wpe/jhbuild.modules:
1659
1660 2017-08-29  Don Olmstead  <don.olmstead@sony.com>
1661
1662         [CMake] Use find_package for libxml2 and libxstl
1663         https://bugs.webkit.org/show_bug.cgi?id=176042
1664
1665         Reviewed by Konstantin Tokarev.
1666
1667         * TestWebKitAPI/PlatformWin.cmake:
1668
1669 2017-08-29  Per Arne Vollan  <pvollan@apple.com>
1670
1671         [Win] A WTF test is timing out in run-api-tests.
1672         https://bugs.webkit.org/show_bug.cgi?id=176056
1673
1674         Reviewed by Brent Fulgham.
1675
1676         The test SynchronizedFixedQueue.ProduceOnly relies on that putting a thread to sleep for
1677         1ms will wake it up before another thread which is put to sleep for 10ms. I believe this
1678         is not neccessarily true on Windows where the thread scheduling does not have millisecond
1679         accuracy. Fix the test timeout by adjusting the sleep time slightly.
1680  
1681         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
1682         (TestWebKitAPI::ToUpperConverter::startProducing):
1683
1684 2017-08-29  Eric Carlson  <eric.carlson@apple.com>
1685
1686         Unreviewed, update my watchlist filters.
1687
1688         * Scripts/webkitpy/common/config/watchlist:
1689
1690 2017-08-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1691
1692         Unreviewed. REGRESSION(r221219): Fix unit tests using resources from WebKit directory.
1693
1694         The WebKit2 directory was renamed as WebKit in r221219, but neither run-gtk-tests script nor
1695         Test::getResourcesDir() were updated to use the new name.
1696
1697         * Scripts/run-gtk-tests:
1698         (TestRunner._setup_testing_environment):
1699         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
1700         (Test::getResourcesDir):
1701
1702 2017-08-28  Eric Carlson  <eric.carlson@apple.com>
1703
1704         Logger should use makeString instead of String::format
1705         https://bugs.webkit.org/show_bug.cgi?id=176035
1706
1707         Reviewed by Jer Noble.
1708
1709         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
1710         (TestWebKitAPI::TEST_F): Update test.
1711
1712 2017-08-28  Michael Catanzaro  <mcatanzaro@igalia.com>
1713
1714         [GStreamer] The glvideoflip GStreamer element isn't available. Video mirroring and rotation functionalities are thus disabled.
1715         https://bugs.webkit.org/show_bug.cgi?id=175576
1716
1717         Reviewed by Carlos Alberto Lopez Perez.
1718
1719         Build graphene to enable the glvideoflip element.
1720
1721         * gstreamer/jhbuild.modules:
1722         * gtk/jhbuild.modules:
1723         * jhbuild/jhbuild-wrapper:
1724         * wpe/jhbuild.modules:
1725
1726 2017-08-28  Ms2ger  <Ms2ger@gmail.com>
1727
1728         Ensure that the alert function is called in TestWebExtensions.
1729         https://bugs.webkit.org/show_bug.cgi?id=175880
1730
1731         Reviewed by Carlos Garcia Campos.
1732
1733         The test relied on a bug in the HTMLDocument JavaScript bindings: when calling
1734         document.open() with three arguments, it would call any function set as the
1735         "open" property on the window object, rather than just the real Window::open()
1736         method. This bug was fixed by the removal of custom bindings for HTMLDocument
1737         in r218437. As a result, the test no longer called alert(), which caused it to
1738         fail.
1739
1740         Instead, call the window.open() function directly.
1741
1742         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
1743         (testWebExtensionIsolatedWorld):
1744
1745 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1746
1747         Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.
1748         https://bugs.webkit.org/show_bug.cgi?id=170955
1749         <rdar://problem/31697653>
1750
1751         Reviewed by Ryosuke Niwa.
1752
1753         Replace UIScriptController.insertText with UIScriptController.replaceTextAtRange, and implement
1754         replaceTextAtRange in WebKit1. See corresponding layout tests (input-event-insert-replacement.html and
1755         before-input-prevent-insert-replacement.html) for more detail.
1756
1757         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1758         * DumpRenderTree/mac/AppKitTestSPI.h: Added.
1759
1760         Introduce an SPI header for private AppKit headers needed to support DumpRenderTree.
1761
1762         * DumpRenderTree/mac/UIScriptControllerMac.mm:
1763         (WTR::UIScriptController::replaceTextAtRange):
1764         (WTR::UIScriptController::insertText): Deleted.
1765         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1766         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1767         (WTR::UIScriptController::replaceTextAtRange):
1768         (WTR::UIScriptController::insertText): Deleted.
1769         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1770         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1771         (WTR::UIScriptController::replaceTextAtRange):
1772         (WTR::UIScriptController::insertText): Deleted.
1773
1774         Replace UIScriptController.insertText with UIScriptController.replaceTextAtRange, which better describes the
1775         behavior of this function.
1776
1777 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1778
1779         [iOS WK2] Web process crashes after changing selection to the end of the document when speaking a selection
1780         https://bugs.webkit.org/show_bug.cgi?id=176011
1781         <rdar://problem/32614095>
1782
1783         Reviewed by Ryosuke Niwa.
1784
1785         Introduces AccessibilityTests, and adds three new tests that traverse selection-rect-finding codepaths when
1786         speaking selected content. See WebKit and WebCore ChangeLogs for more detail.
1787
1788         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1789         * TestWebKitAPI/Tests/ios/AccessibilityTestsIOS.mm: Added.
1790         (-[WKWebView rectsAtSelectionOffset:withText:]):
1791         (checkCGRectValueAtIndex):
1792         (TestWebKitAPI::TEST):
1793
1794 2017-08-25  Eric Carlson  <eric.carlson@apple.com>
1795
1796         Add Logger::logAlways
1797         https://bugs.webkit.org/show_bug.cgi?id=175996
1798
1799         Reviewed by Jer Noble.
1800
1801         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
1802         (TestWebKitAPI::TEST_F):
1803
1804 2017-08-25  Alex Christensen  <achristensen@webkit.org>
1805
1806         Disable saveDataToFile API test.
1807         https://bugs.webkit.org/show_bug.cgi?id=176000
1808
1809         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
1810         The test was only working on High Sierra.  It needs investigation on older operating systems.
1811
1812 2017-08-25  Alex Christensen  <achristensen@webkit.org>
1813
1814         Rename TestWebKitAPI/Tests/WebKit2* to WebKit* following Source directory rename.
1815
1816         Rubber-stamped by Brady Eidson.
1817
1818         * TestWebKitAPI/PlatformGTK.cmake:
1819         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1820         * TestWebKitAPI/Tests/WebKit2Cocoa: Removed.
1821         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLs.mm: Removed.
1822         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLsPlugin.mm: Removed.
1823         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLsProtocol.h: Removed.
1824         * TestWebKitAPI/Tests/WebKit2Cocoa/AllAhem.svg: Removed.
1825         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Removed.
1826         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm: Removed.
1827         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db: Removed.
1828         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db-shm: Removed.
1829         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db-wal: Removed.
1830         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm: Removed.
1831         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm: Removed.
1832         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm: Removed.
1833         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Removed.
1834         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleParameters.mm: Removed.
1835         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleParametersPlugIn.mm: Removed.
1836         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandle.mm: Removed.
1837         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandlePlugIn.mm: Removed.
1838         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandleProtocol.h: Removed.
1839         * TestWebKitAPI/Tests/WebKit2Cocoa/CancelFontSubresource.mm: Removed.
1840         * TestWebKitAPI/Tests/WebKit2Cocoa/CancelFontSubresourcePlugIn.mm: Removed.
1841         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm: Removed.
1842         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm: Removed.
1843         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.h: Removed.
1844         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.html: Removed.
1845         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: Removed.
1846         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: Removed.
1847         * TestWebKitAPI/Tests/WebKit2Cocoa/CookieAcceptPolicy.mm: Removed.
1848         * TestWebKitAPI/Tests/WebKit2Cocoa/CookieMessage.html: Removed.
1849         * TestWebKitAPI/Tests/WebKit2Cocoa/Copying.mm: Removed.
1850         * TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm: Removed.
1851         * TestWebKitAPI/Tests/WebKit2Cocoa/DecidePolicyForNavigationAction.mm: Removed.
1852         * TestWebKitAPI/Tests/WebKit2Cocoa/DoAfterNextPresentationUpdateAfterCrash.mm: Removed.
1853         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm: Removed.
1854         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestBlobURL.html: Removed.
1855         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURL.html: Removed.
1856         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURL2.html: Removed.
1857         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURLFrame.html: Removed.
1858         * TestWebKitAPI/Tests/WebKit2Cocoa/DuplicateCompletionHandlerCalls.mm: Removed.
1859         * TestWebKitAPI/Tests/WebKit2Cocoa/EditorStateTests.mm: Removed.
1860         * TestWebKitAPI/Tests/WebKit2Cocoa/EmptyGrandfatheredResourceLoadStatistics.plist: Removed.
1861         * TestWebKitAPI/Tests/WebKit2Cocoa/FindInPage.mm: Removed.
1862         * TestWebKitAPI/Tests/WebKit2Cocoa/FixedLayoutSize.mm: Removed.
1863         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.html: Removed.
1864         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm: Removed.
1865         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.html: Removed.
1866         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.mm: Removed.
1867         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.html: Removed.
1868         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm: Removed.
1869         * TestWebKitAPI/Tests/WebKit2Cocoa/Geolocation.mm: Removed.
1870         * TestWebKitAPI/Tests/WebKit2Cocoa/GeolocationGetCurrentPositionResult.html: Removed.
1871         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.html: Removed.
1872         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm: Removed.
1873         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3: Removed.
1874         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3-shm: Removed.
1875         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3-wal: Removed.
1876         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.html: Removed.
1877         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm: Removed.
1878         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm: Removed.
1879         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.blob: Removed.
1880         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.sqlite3: Removed.
1881         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill-1.html: Removed.
1882         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm: Removed.
1883         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-1.html: Removed.
1884         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-2.html: Removed.
1885         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-3.html: Removed.
1886         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm: Removed.
1887         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-1.html: Removed.
1888         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-2.html: Removed.
1889         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm: Removed.
1890         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.mm: Removed.
1891         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3: Removed.
1892         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-shm: Removed.
1893         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal: Removed.
1894         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityRead.html: Removed.
1895         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityWrite.html: Removed.
1896         * TestWebKitAPI/Tests/WebKit2Cocoa/InitialWarmedProcessUsed.mm: Removed.
1897         * TestWebKitAPI/Tests/WebKit2Cocoa/InteractionDeadlockAfterCrash.mm: Removed.
1898         * TestWebKitAPI/Tests/WebKit2Cocoa/LineBreaking.html: Removed.
1899         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadAlternateHTMLString.mm: Removed.
1900         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Removed.
1901         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm: Removed.
1902         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.html: Removed.
1903         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm: Removed.
1904         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.html: Removed.
1905         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.localstorage: Removed.
1906         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.localstorage-shm: Removed.
1907         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.mm: Removed.
1908         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkEnabled.html: Removed.
1909         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkTest.mm: Removed.
1910         * TestWebKitAPI/Tests/WebKit2Cocoa/ModalAlerts.mm: Removed.
1911         * TestWebKitAPI/Tests/WebKit2Cocoa/NSFileManagerExtras.mm: Removed.
1912         * TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm: Removed.
1913         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm: Removed.
1914         * TestWebKitAPI/Tests/WebKit2Cocoa/ObservedRenderingProgressEventsAfterCrash.mm: Removed.
1915         * TestWebKitAPI/Tests/WebKit2Cocoa/OpenAndCloseWindow.mm: Removed.
1916         * TestWebKitAPI/Tests/WebKit2Cocoa/OverrideContentSecurityPolicy.mm: Removed.
1917         * TestWebKitAPI/Tests/WebKit2Cocoa/PictureInPictureDelegate.html: Removed.
1918         * TestWebKitAPI/Tests/WebKit2Cocoa/PictureInPictureDelegate.mm: Removed.
1919         * TestWebKitAPI/Tests/WebKit2Cocoa/PluginLoadClientPolicies.mm: Removed.
1920         * TestWebKitAPI/Tests/WebKit2Cocoa/Preferences.mm: Removed.
1921         * TestWebKitAPI/Tests/WebKit2Cocoa/PrepareForMoveToWindow.mm: Removed.
1922         * TestWebKitAPI/Tests/WebKit2Cocoa/ProvisionalURLNotChange.mm: Removed.
1923         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm: Removed.
1924         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.h: Removed.
1925         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.mm: Removed.
1926         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistryPlugIn.mm: Removed.
1927         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptions.mm: Removed.
1928         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsPlugIn.mm: Removed.
1929         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsProtocol.h: Removed.
1930         * TestWebKitAPI/Tests/WebKit2Cocoa/RequiresUserActionForPlayback.mm: Removed.
1931         * TestWebKitAPI/Tests/WebKit2Cocoa/ResourceLoadStatistics.mm: Removed.
1932         * TestWebKitAPI/Tests/WebKit2Cocoa/RunOpenPanel.mm: Removed.
1933         * TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm: Removed.
1934         * TestWebKitAPI/Tests/WebKit2Cocoa/ShrinkToFit.mm: Removed.
1935         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm: Removed.
1936         * TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm: Removed.
1937         * TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobToBeDeleted.html: Removed.
1938         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Removed.
1939         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm: Removed.
1940         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorld.mm: Removed.
1941         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorldPlugIn.mm: Removed.
1942         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorldProtocol.h: Removed.
1943         * TestWebKitAPI/Tests/WebKit2Cocoa/UserInitiatedActionInNavigationAction.mm: Removed.
1944         * TestWebKitAPI/Tests/WebKit2Cocoa/UserMediaDisabled.mm: Removed.
1945         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm: Removed.
1946         * TestWebKitAPI/Tests/WebKit2Cocoa/VisibleContentRect.mm: Removed.
1947         * TestWebKitAPI/Tests/WebKit2Cocoa/WKContentExtensionStore.mm: Removed.
1948         * TestWebKitAPI/Tests/WebKit2Cocoa/WKContentViewEditingActions.mm: Removed.
1949         * TestWebKitAPI/Tests/WebKit2Cocoa/WKHTTPCookieStore.mm: Removed.
1950         * TestWebKitAPI/Tests/WebKit2Cocoa/WKNSNumber.mm: Removed.
1951         * TestWebKitAPI/Tests/WebKit2Cocoa/WKObject.mm: Removed.
1952         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFView.mm: Removed.
1953         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm: Removed.
1954         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewStablePresentationUpdateCallback.mm: Removed.
1955         * TestWebKitAPI/Tests/WebKit2Cocoa/WKRequestActivatedElementInfo.mm: Removed.
1956         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm: Removed.
1957         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-leaks.mm: Removed.
1958         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm: Removed.
1959         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDefaultNavigationDelegate.mm: Removed.
1960         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDiagnosticLogging.mm: Removed.
1961         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDoesNotLogDuringInitialization.mm: Removed.
1962         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm: Removed.
1963         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewGetContents.mm: Removed.
1964         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewSnapshot.mm: Removed.
1965         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewTextInput.mm: Removed.
1966         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup-1.html: Removed.
1967         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup-2.html: Removed.
1968         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm: Removed.
1969         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.html: Removed.
1970         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.mm: Removed.
1971         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm: Removed.
1972         * TestWebKitAPI/Tests/WebKit2Cocoa/_WKUserContentExtensionStore.mm: Removed.
1973         * TestWebKitAPI/Tests/WebKit2Cocoa/apple.gif: Removed.
1974         * TestWebKitAPI/Tests/WebKit2Cocoa/attachment-element.html: Removed.
1975         * TestWebKitAPI/Tests/WebKit2Cocoa/autofocus-contenteditable.html: Removed.
1976         * TestWebKitAPI/Tests/WebKit2Cocoa/autofocused-text-input.html: Removed.
1977         * TestWebKitAPI/Tests/WebKit2Cocoa/autoplaying-video-with-audio.html: Removed.
1978         * TestWebKitAPI/Tests/WebKit2Cocoa/background-image-link-and-input.html: Removed.
1979         * TestWebKitAPI/Tests/WebKit2Cocoa/blinking-div.html: Removed.
1980         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html: Removed.
1981         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html: Removed.
1982         * TestWebKitAPI/Tests/WebKit2Cocoa/compressed-files.zip: Removed.
1983         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-target.html: Removed.
1984         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-textarea.html: Removed.
1985         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-in-iframe.html: Removed.
1986         * TestWebKitAPI/Tests/WebKit2Cocoa/disableGetUserMedia.html: Removed.
1987         * TestWebKitAPI/Tests/WebKit2Cocoa/div-and-large-image.html: Removed.
1988         * TestWebKitAPI/Tests/WebKit2Cocoa/double-click-does-not-select-trailing-space.html: Removed.
1989         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-change-selection-offscreen.html: Removed.
1990         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-clear-selection.html: Removed.
1991         * TestWebKitAPI/Tests/WebKit2Cocoa/duplicate-completion-handler-calls.html: Removed.
1992         * TestWebKitAPI/Tests/WebKit2Cocoa/editable-body.html: Removed.
1993         * TestWebKitAPI/Tests/WebKit2Cocoa/editor-state-test-harness.html: Removed.
1994         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous-video-with-sound.html: Removed.
1995         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous.svg: Removed.
1996         * TestWebKitAPI/Tests/WebKit2Cocoa/file-uploading.html: Removed.
1997         * TestWebKitAPI/Tests/WebKit2Cocoa/focus-inputs.html: Removed.
1998         * TestWebKitAPI/Tests/WebKit2Cocoa/full-size-autoplaying-video-with-audio.html: Removed.
1999         * TestWebKitAPI/Tests/WebKit2Cocoa/gif-and-file-input.html: Removed.
2000         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-contenteditable.html: Removed.
2001         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-textarea.html: Removed.
2002         * TestWebKitAPI/Tests/WebKit2Cocoa/image-in-link-and-input.html: Removed.
2003         * TestWebKitAPI/Tests/WebKit2Cocoa/image-map.html: Removed.
2004         * TestWebKitAPI/Tests/WebKit2Cocoa/input-field-in-scrollable-document.html: Removed.
2005         * TestWebKitAPI/Tests/WebKit2Cocoa/large-input-field-focus-onload.html: Removed.
2006         * TestWebKitAPI/Tests/WebKit2Cocoa/large-red-square.png: Removed.
2007         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-hides-controls-after-seek-to-end.html: Removed.
2008         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-mutes-onplaying.html: Removed.
2009         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html: Removed.
2010         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html: Removed.
2011         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-after-ending.html: Removed.
2012         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-to-beginning-and-play-after-ending.html: Removed.
2013         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html: Removed.
2014         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html: Removed.
2015         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.mp4: Removed.
2016         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html: Removed.
2017         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html: Removed.
2018         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html: Removed.
2019         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html: Removed.
2020         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html: Removed.
2021         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html: Removed.
2022         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html: Removed.
2023         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio.html: Removed.
2024         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-input.html: Removed.
2025         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-target-div.html: Removed.
2026         * TestWebKitAPI/Tests/WebKit2Cocoa/offscreen-iframe-of-media-document.html: Removed.
2027         * TestWebKitAPI/Tests/WebKit2Cocoa/open-multiple-external-url.html: Removed.
2028         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp-iframe.html: Removed.
2029         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html: Removed.
2030         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp-iframe.html: Removed.
2031         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp.html: Removed.
2032         * TestWebKitAPI/Tests/WebKit2Cocoa/password-protected.pages: Removed.
2033         * TestWebKitAPI/Tests/WebKit2Cocoa/play-audio-on-click.html: Removed.
2034         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-operation.html: Removed.
2035         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-start.html: Removed.
2036         * TestWebKitAPI/Tests/WebKit2Cocoa/rendered-image-excluding-overflow.html: Removed.
2037         * TestWebKitAPI/Tests/WebKit2Cocoa/rich-and-plain-text.html: Removed.
2038         * TestWebKitAPI/Tests/WebKit2Cocoa/silence-long.m4a: Removed.
2039         * TestWebKitAPI/Tests/WebKit2Cocoa/skinny-autoplaying-video-with-audio.html: Removed.
2040         * TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html: Removed.
2041         * TestWebKitAPI/Tests/WebKit2Cocoa/textarea-to-input.html: Removed.
2042         * TestWebKitAPI/Tests/WebKit2Cocoa/two-paragraph-contenteditable.html: Removed.
2043         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html: Removed.
2044         * TestWebKitAPI/Tests/WebKit2Gtk: Removed.
2045         * TestWebKitAPI/Tests/WebKit2Gtk/AccessibilityTestServer.cpp: Removed.
2046         * TestWebKitAPI/Tests/WebKit2Gtk/AutocleanupsTest.cpp: Removed.
2047         * TestWebKitAPI/Tests/WebKit2Gtk/DOMClientRectTest.cpp: Removed.
2048         * TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp: Removed.
2049         * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeFilterTest.cpp: Removed.
2050         * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeTest.cpp: Removed.
2051         * TestWebKitAPI/Tests/WebKit2Gtk/DOMXPathNSResolverTest.cpp: Removed.
2052         * TestWebKitAPI/Tests/WebKit2Gtk/EditorTest.cpp: Removed.
2053         * TestWebKitAPI/Tests/WebKit2Gtk/InspectorTestServer.cpp: Removed.
2054         * TestWebKitAPI/Tests/WebKit2Gtk/TestAutocleanups.cpp: Removed.
2055         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp: Removed.
2056         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMClientRect.cpp: Removed.
2057         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMDOMWindow.cpp: Removed.
2058         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNode.cpp: Removed.
2059         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNodeFilter.cpp: Removed.
2060         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMXPathNSResolver.cpp: Removed.
2061         * TestWebKitAPI/Tests/WebKit2Gtk/TestEditor.cpp: Removed.
2062         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspector.cpp: Removed.
2063         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp: Removed.
2064         * TestWebKitAPI/Tests/WebKit2Gtk/TestOptionMenu.cpp: Removed.
2065         * TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting.cpp: Removed.
2066         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp: Removed.
2067         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitVersion.cpp: Removed.
2068         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebViewEditor.cpp: Removed.
2069         * TestWebKitAPI/Tests/WebKit2ObjC: Removed.
2070         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm: Removed.
2071         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme_Bundle.cpp: Removed.
2072         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm: Removed.
2073         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm: Removed.
2074         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing_Bundle.cpp: Removed.
2075         * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm: Removed.
2076         * TestWebKitAPI/Tests/WebKit2ObjC/WKBrowsingContextGroupTest.mm: Removed.
2077         * TestWebKitAPI/Tests/WebKit2ObjC/WKBrowsingContextLoadDelegateTest.mm: Removed.
2078         * TestWebKitAPI/Tests/WebKitCocoa: Copied from TestWebKitAPI/Tests/WebKit2Cocoa.
2079         * TestWebKitAPI/Tests/WebKitGtk: Copied from TestWebKitAPI/Tests/WebKit2Gtk.
2080         * TestWebKitAPI/Tests/WebKitObjC: Copied from TestWebKitAPI/Tests/WebKit2ObjC.
2081         * TestWebKitAPI/glib/PlatformGTK.cmake:
2082
2083 2017-08-25  Alex Christensen  <achristensen@webkit.org>
2084
2085         Rename TestWebKitAPI/Tests/WebKit2 to WebKit following Source directory rename.
2086
2087         Rubber-stamped by Brady Eidson.
2088
2089         * TestWebKitAPI/CMakeLists.txt:
2090         * TestWebKitAPI/PlatformGTK.cmake:
2091         * TestWebKitAPI/PlatformWin.cmake:
2092         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2093         * TestWebKitAPI/Tests/WebKit: Copied from TestWebKitAPI/Tests/WebKit2.
2094         * TestWebKitAPI/Tests/WebKit2: Removed.
2095         * TestWebKitAPI/Tests/WebKit2/18-characters.html: Removed.
2096         * TestWebKitAPI/Tests/WebKit2/AboutBlankLoad.cpp: Removed.
2097         * TestWebKitAPI/Tests/WebKit2/Ahem.ttf: Removed.
2098         * TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp: Removed.
2099         * TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp: Removed.
2100         * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp: Removed.
2101         * TestWebKitAPI/Tests/WebKit2/CloseThenTerminate.cpp: Removed.
2102         * TestWebKitAPI/Tests/WebKit2/CookieManager.cpp: Removed.
2103         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp: Removed.
2104         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp: Removed.
2105         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp: Removed.
2106         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp: Removed.
2107         * TestWebKitAPI/Tests/WebKit2/DeferredViewInWindowStateChange.mm: Removed.
2108         * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls.cpp: Removed.
2109         * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp: Removed.
2110         * TestWebKitAPI/Tests/WebKit2/DidNotHandleKeyDown.cpp: Removed.
2111         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache.cpp: Removed.
2112         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache_Bundle.cpp: Removed.
2113         * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp: Removed.
2114         * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp: Removed.
2115         * TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp: Removed.
2116         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp: Removed.
2117         * TestWebKitAPI/Tests/WebKit2/EnvironmentUtilitiesTest.cpp: Removed.
2118         * TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp: Removed.
2119         * TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp: Removed.
2120         * TestWebKitAPI/Tests/WebKit2/EventModifiers.cpp: Removed.
2121         * TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp: Removed.
2122         * TestWebKitAPI/Tests/WebKit2/Find.cpp: Removed.
2123         * TestWebKitAPI/Tests/WebKit2/FindMatches.mm: Removed.
2124         * TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp: Removed.
2125         * TestWebKitAPI/Tests/WebKit2/FrameHandle.cpp: Removed.
2126         * TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp: Removed.
2127         * TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp: Removed.
2128         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp: Removed.
2129         * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp: Removed.
2130         * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp: Removed.
2131         * TestWebKitAPI/Tests/WebKit2/GetUserMediaNavigation.mm: Removed.
2132         * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp: Removed.
2133         * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp: Removed.
2134         * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp: Removed.
2135         * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp: Removed.
2136         * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest.cpp: Removed.
2137         * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest_Bundle.cpp: Removed.
2138         * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp: Removed.
2139         * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp: Removed.
2140         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp: Removed.
2141         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen_Bundle.cpp: Removed.
2142         * TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp: Removed.
2143         * TestWebKitAPI/Tests/WebKit2/LimitTitleSize.cpp: Removed.
2144         * TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp: Removed.
2145         * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp: Removed.
2146         * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp: Removed.
2147         * TestWebKitAPI/Tests/WebKit2/LoadPageOnCrash.cpp: Removed.
2148         * TestWebKitAPI/Tests/WebKit2/MediaStreamTrackDetached.mm: Removed.
2149         * TestWebKitAPI/Tests/WebKit2/MenuTypesForMouseEvents.cpp: Removed.
2150         * TestWebKitAPI/Tests/WebKit2/ModalAlertsSPI.cpp: Removed.
2151         * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp: Removed.
2152         * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp: Removed.
2153         * TestWebKitAPI/Tests/WebKit2/NavigationClientDefaultCrypto.cpp: Removed.
2154         * TestWebKitAPI/Tests/WebKit2/NetworkProcessCrashWithPendingConnection.mm: Removed.
2155         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp: Removed.
2156         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp: Removed.
2157         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp: Removed.
2158         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp: Removed.
2159         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp: Removed.
2160         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp: Removed.
2161         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp: Removed.
2162         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp: Removed.
2163         * TestWebKitAPI/Tests/WebKit2/PageGroup.cpp: Removed.
2164         * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp: Removed.
2165         * TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp: Removed.
2166         * TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp: Removed.
2167         * TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp: Removed.
2168         * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications.mm: Removed.
2169         * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications_Bundle.cpp: Removed.
2170         * TestWebKitAPI/Tests/WebKit2/PendingAPIRequestURL.cpp: Removed.
2171         * TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp: Removed.
2172         * TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp: Removed.
2173         * TestWebKitAPI/Tests/WebKit2/ProcessDidTerminate.cpp: Removed.
2174         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback.cpp: Removed.
2175         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp: Removed.
2176         * TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp: Removed.
2177         * TestWebKitAPI/Tests/WebKit2/ResizeReversePaginatedWebView.cpp: Removed.
2178         * TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp: Removed.
2179         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimer.cpp: Removed.
2180         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp: Removed.
2181         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp: Removed.
2182         * TestWebKitAPI/Tests/WebKit2/RestoreSessionState.cpp: Removed.
2183         * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp: Removed.
2184         * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateWithoutNavigation.cpp: Removed.
2185         * TestWebKitAPI/Tests/WebKit2/ScrollPinningBehaviors.cpp: Removed.
2186         * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp: Removed.
2187         * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp: Removed.
2188         * TestWebKitAPI/Tests/WebKit2/ShouldKeepCurrentBackForwardListItemInList.cpp: Removed.
2189         * TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp: Removed.
2190         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp: Removed.
2191         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp: Removed.
2192         * TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp: Removed.
2193         * TestWebKitAPI/Tests/WebKit2/TextFieldDidBeginAndEndEditing.cpp: Removed.
2194         * TestWebKitAPI/Tests/WebKit2/TextFieldDidBeginAndEndEditing_Bundle.cpp: Removed.
2195         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp: Removed.
2196         * TestWebKitAPI/Tests/WebKit2/UserMessage.cpp: Removed.
2197         * TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp: Removed.
2198         * TestWebKitAPI/Tests/WebKit2/ViewportSizeForViewportUnits.mm: Removed.
2199         * TestWebKitAPI/Tests/WebKit2/WKBackForwardList.mm: Removed.
2200         * TestWebKitAPI/Tests/WebKit2/WKBundleFileHandle.cpp: Removed.
2201         * TestWebKitAPI/Tests/WebKit2/WKBundleFileHandle_Bundle.cpp: Removed.
2202         * TestWebKitAPI/Tests/WebKit2/WKImageCreateCGImageCrash.cpp: Removed.
2203         * TestWebKitAPI/Tests/WebKit2/WKPageConfiguration.cpp: Removed.
2204         * TestWebKitAPI/Tests/WebKit2/WKPageCopySessionStateWithFiltering.cpp: Removed.
2205         * TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp: Removed.
2206         * TestWebKitAPI/Tests/WebKit2/WKPageIsPlayingAudio.cpp: Removed.
2207         * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp: Removed.
2208         * TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp: Removed.
2209         * TestWebKitAPI/Tests/WebKit2/WKString.cpp: Removed.
2210         * TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp: Removed.
2211         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm: Removed.
2212         * TestWebKitAPI/Tests/WebKit2/WKURL.cpp: Removed.
2213         * TestWebKitAPI/Tests/WebKit2/WebArchive.cpp: Removed.
2214         * TestWebKitAPI/Tests/WebKit2/WebArchive_Bundle.cpp: Removed.
2215         * TestWebKitAPI/Tests/WebKit2/WebCoreStatisticsWithNoWebProcess.cpp: Removed.
2216         * TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: Removed.
2217         * TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp: Removed.
2218         * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp: Removed.
2219         * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp: Removed.
2220         * TestWebKitAPI/Tests/WebKit2/all-content-in-one-iframe.html: Removed.
2221         * TestWebKitAPI/Tests/WebKit2/associate-form-controls.html: Removed.
2222         * TestWebKitAPI/Tests/WebKit2/auto-submitting-form.html: Removed.
2223         * TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html: Removed.
2224         * TestWebKitAPI/Tests/WebKit2/autoplay-check-in-iframe.html: Removed.
2225         * TestWebKitAPI/Tests/WebKit2/autoplay-check.html: Removed.
2226         * TestWebKitAPI/Tests/WebKit2/autoplay-inherits-gesture-from-document.html: Removed.
2227         * TestWebKitAPI/Tests/WebKit2/autoplay-muted-with-controls.html: Removed.
2228         * TestWebKitAPI/Tests/WebKit2/autoplay-no-audio-check.html: Removed.
2229         * TestWebKitAPI/Tests/WebKit2/autoplay-with-controls.html: Removed.
2230         * TestWebKitAPI/Tests/WebKit2/autoplay-zero-volume-check.html: Removed.
2231         * TestWebKitAPI/Tests/WebKit2/bundle-file.html: Removed.
2232         * TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html: Removed.
2233         * TestWebKitAPI/Tests/WebKit2/close-from-within-create-page.html: Removed.
2234         * TestWebKitAPI/Tests/WebKit2/closed-shadow-tree-test.html: Removed.
2235         * TestWebKitAPI/Tests/WebKit2/cocoa: Removed.
2236         * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm: Removed.
2237         * TestWebKitAPI/Tests/WebKit2/contentBlockerCheck.html: Removed.
2238         * TestWebKitAPI/Tests/WebKit2/custom-protocol-sync-xhr.html: Removed.
2239         * TestWebKitAPI/Tests/WebKit2/encrypted.pdf: Removed.
2240         * TestWebKitAPI/Tests/WebKit2/enumerateMediaDevices.html: Removed.
2241         * TestWebKitAPI/Tests/WebKit2/execCopy.html: Removed.
2242         * TestWebKitAPI/Tests/WebKit2/file-with-anchor.html: Removed.
2243         * TestWebKitAPI/Tests/WebKit2/file-with-mse.html: Removed.
2244         * TestWebKitAPI/Tests/WebKit2/file-with-video.html: Removed.
2245         * TestWebKitAPI/Tests/WebKit2/find.html: Removed.
2246         * TestWebKitAPI/Tests/WebKit2/findRanges.html: Removed.
2247         * TestWebKitAPI/Tests/WebKit2/geolocationGetCurrentPosition.html: Removed.
2248         * TestWebKitAPI/Tests/WebKit2/geolocationGetCurrentPositionWithHighAccuracy.html: Removed.
2249         * TestWebKitAPI/Tests/WebKit2/geolocationWatchPosition.html: Removed.
2250         * TestWebKitAPI/Tests/WebKit2/geolocationWatchPositionWithHighAccuracy.html: Removed.
2251         * TestWebKitAPI/Tests/WebKit2/getUserMedia.html: Removed.
2252         * TestWebKitAPI/Tests/WebKit2/gtk: Removed.
2253         * TestWebKitAPI/Tests/WebKit2/gtk/InputMethodFilter.cpp: Removed.
2254         * TestWebKitAPI/Tests/WebKit2/icon.png: Removed.
2255         * TestWebKitAPI/Tests/WebKit2/input-focus-blur.html: Removed.
2256         * TestWebKitAPI/Tests/WebKit2/js-autoplay-audio.html: Removed.
2257         * TestWebKitAPI/Tests/WebKit2/js-play-with-controls.html: Removed.
2258         * TestWebKitAPI/Tests/WebKit2/large-red-square-image.html: Removed.
2259         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute-with-slashes.html: Removed.
2260         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html: Removed.
2261         * TestWebKitAPI/Tests/WebKit2/link-with-title.html: Removed.
2262         * TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html: Removed.
2263         * TestWebKitAPI/Tests/WebKit2/lots-of-images.html: Removed.
2264         * TestWebKitAPI/Tests/WebKit2/lots-of-text-vertical-lr.html: Removed.
2265         * TestWebKitAPI/Tests/WebKit2/lots-of-text.html: Removed.
2266         * TestWebKitAPI/Tests/WebKit2/mac: Removed.
2267         * TestWebKitAPI/Tests/WebKit2/mac/AttributedSubstringForProposedRangeWithImage.mm: Removed.
2268         * TestWebKitAPI/Tests/WebKit2/mac/ContextMenuDownload.mm: Removed.
2269         * TestWebKitAPI/Tests/WebKit2/mac/EditorCommands.mm: Removed.
2270         * TestWebKitAPI/Tests/WebKit2/mac/GetBackingScaleFactor.mm: Removed.
2271         * TestWebKitAPI/Tests/WebKit2/mac/GetBackingScaleFactor_Bundle.mm: Removed.
2272         * TestWebKitAPI/Tests/WebKit2/mac/GetPIDAfterAbortedProcessLaunch.cpp: Removed.
2273         * TestWebKitAPI/Tests/WebKit2/mac/InjectedBundleAppleEvent.cpp: Removed.
2274         * TestWebKitAPI/Tests/WebKit2/mac/InjectedBundleAppleEvent_Bundle.cpp: Removed.
2275         * TestWebKitAPI/Tests/WebKit2/mac/RestoreStateAfterTermination.mm: Removed.
2276         * TestWebKitAPI/Tests/WebKit2/many-iframes.html: Removed.
2277         * TestWebKitAPI/Tests/WebKit2/mediastreamtrack-detached.html: Removed.
2278         * TestWebKitAPI/Tests/WebKit2/modal-alerts-in-new-about-blank-window.html: Removed.
2279         * TestWebKitAPI/Tests/WebKit2/mouse-button-listener.html: Removed.
2280         * TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html: Removed.
2281         * TestWebKitAPI/Tests/WebKit2/navigation-client-default-crypto.html: Removed.
2282         * TestWebKitAPI/Tests/WebKit2/no-autoplay-with-controls.html: Removed.
2283         * TestWebKitAPI/Tests/WebKit2/open-and-close-window.html: Removed.
2284         * TestWebKitAPI/Tests/WebKit2/push-state.html: Removed.
2285         * TestWebKitAPI/Tests/WebKit2/set-long-title.html: Removed.
2286         * TestWebKitAPI/Tests/WebKit2/should-open-external-schemes.html: Removed.
2287         * TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html: Removed.
2288         * TestWebKitAPI/Tests/WebKit2/simple-form.html: Removed.
2289         * TestWebKitAPI/Tests/WebKit2/simple-iframe.html: Removed.
2290         * TestWebKitAPI/Tests/WebKit2/simple-tall.html: Removed.
2291         * TestWebKitAPI/Tests/WebKit2/simple.html: Removed.
2292         * TestWebKitAPI/Tests/WebKit2/simple2.html: Removed.
2293         * TestWebKitAPI/Tests/WebKit2/simple3.html: Removed.
2294         * TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html: Removed.
2295         * TestWebKitAPI/Tests/WebKit2/test-mse.mp4: Removed.
2296         * TestWebKitAPI/Tests/WebKit2/test-without-audio-track.mp4: Removed.
2297         * TestWebKitAPI/Tests/WebKit2/test.mp4: Removed.
2298         * TestWebKitAPI/Tests/WebKit2/test.pdf: Removed.
2299         * TestWebKitAPI/Tests/WebKit2/webfont.html: Removed.
2300
2301 2017-08-25  Alex Christensen  <achristensen@webkit.org>
2302
2303         Rename TestWebKitAPI/Tests/WebKit to WebKitLegacy following Source directory rename.
2304
2305         Rubber-stamped by Brady Eidson.
2306
2307         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2308         * TestWebKitAPI/Tests/WebKit: Removed.
2309         * TestWebKitAPI/Tests/WebKit/ios: Removed.
2310         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm: Removed.
2311         * TestWebKitAPI/Tests/WebKit/ios/SnapshotViaRenderInContext.mm: Removed.
2312         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html: Removed.
2313         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html: Removed.
2314         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.mp4: Removed.
2315         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio-and-webaudio.html: Removed.
2316         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio.html: Removed.
2317         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html: Removed.
2318         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.mp4: Removed.
2319         * TestWebKitAPI/Tests/WebKit/win: Removed.
2320         * TestWebKitAPI/Tests/WebKit/win/ScaleWebView.cpp: Removed.
2321         * TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp: Removed.
2322         * TestWebKitAPI/Tests/WebKitLegacy: Copied from TestWebKitAPI/Tests/WebKit.
2323
2324 2017-08-25  Alex Christensen  <achristensen@webkit.org>
2325
2326         Add WKUIDelegatePrivate equivalent of WKPageUIClient's saveDataToFileInDownloadsFolder
2327         https://bugs.webkit.org/show_bug.cgi?id=176000
2328         <rdar://problem/29270035>
2329
2330         Reviewed by Andy Estes.
2331
2332         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
2333         (-[FocusDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2334         (TEST):
2335         (-[SaveDataToFileDelegate _webView:saveDataToFile:suggestedFilename:mimeType:originatingURL:]):
2336         (-[SaveDataToFileDelegate webView:didFinishNavigation:]):
2337
2338 2017-08-25  Youenn Fablet  <youenn@apple.com>
2339
2340         WPT server should not need to copy test harness files
2341         https://bugs.webkit.org/show_bug.cgi?id=175938
2342
2343         Reviewed by Alexey Proskuryakov.
2344
2345         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2346         (WebPlatformTestServer.__init__): Stopping explicit resource files copy when launching the WPT server.
2347         Use aliases instead.
2348
2349 2017-08-25  Eric Carlson  <eric.carlson@apple.com>
2350
2351         Add String::format variant that takes va_args
2352         https://bugs.webkit.org/show_bug.cgi?id=175988
2353
2354         Reviewed by Jer Noble.
2355
2356         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2357         (TestWebKitAPI::testWithFormatAndArguments):
2358         (TestWebKitAPI::TEST):
2359
2360 2017-08-25  Jonathan Bedard  <jbedard@apple.com>
2361
2362         Follow-up Internal build fix for r221187
2363         https://bugs.webkit.org/show_bug.cgi?id=175960
2364         <rdar://problem/34069264>
2365
2366         Unreviewed build fix.
2367
2368         * TestWebKitAPI/ios/DataInteractionSimulator.h: Move UIItemProvider declaration
2369         into #if block.
2370
2371 2017-08-25  Don Olmstead  <don.olmstead@sony.com>
2372
2373         [WinCairo] Use GitHub releases for WinCairoRequirements
2374         https://bugs.webkit.org/show_bug.cgi?id=175972
2375
2376         Reviewed by Brent Fulgham.
2377
2378         * Scripts/build-webkit:
2379         (cMakeArgsFromFeatures): Deleted.
2380         (writeCongrats): Deleted.
2381         * Scripts/download-latest-github-release.py:
2382         (Status):
2383         (parse_args):
2384         (main):
2385         * Scripts/update-webkit-wincairo-libs.py: Renamed from Tools/Scripts/update-webkit-wincairo-libs.
2386
2387 2017-08-25  Jonathan Bedard  <jbedard@apple.com>
2388
2389         Fix build breakage with Public iOS 11 SDK
2390         https://bugs.webkit.org/show_bug.cgi?id=175960
2391         <rdar://problem/34069264>
2392
2393         Reviewed by Wenson Hsieh.
2394
2395         * TestWebKitAPI/ios/DataInteractionSimulator.h: Add UIItemProvider declaration.
2396
2397 2017-08-24  Chris Dumez  <cdumez@apple.com>
2398
2399         [Directory Upload] Add basic support for input.webkitdirectory
2400         https://bugs.webkit.org/show_bug.cgi?id=175950
2401         <rdar://problem/33951915>
2402
2403         Reviewed by Geoffrey Garen.
2404
2405         * DumpRenderTree/mac/DumpRenderTree.mm:
2406         (resetWebPreferencesToConsistentValues):
2407         * WebKitTestRunner/TestController.cpp:
2408         (WTR::TestController::resetPreferencesToConsistentValues):
2409         Enable Directory Upload feature for testing, given that it is currently disabled by default.
2410
2411         (WTR::runOpenPanel):
2412         Print additional text when directories are allowed to extend testing coverage.
2413
2414 2017-08-24  Alex Christensen  <achristensen@webkit.org>
2415
2416         Add WKUIDelegatePrivate equivalent of WKPageUIClient's handleAutoplayEvent
2417         https://bugs.webkit.org/show_bug.cgi?id=175965
2418         <rdar://problem/29270035>
2419
2420         Reviewed by Tim Horton.
2421
2422         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
2423         (TEST):
2424         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
2425         (-[AutoplayPoliciesDelegate _webView:handleAutoplayEvent:withFlags:]):
2426         (TEST):
2427         (handleAutoplayEvent): Deleted.
2428
2429 2017-08-24  Alex Christensen  <achristensen@webkit.org>
2430
2431         didNotHandleWheelEvent test times out
2432         https://bugs.webkit.org/show_bug.cgi?id=175967
2433
2434         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
2435         Skip the test until WebCore's wheel event handling is reliable enough to test.
2436
2437 2017-08-24  Jonathan Bedard  <jbedard@apple.com>
2438
2439         Update configure-xcode-for-ios-development for iOS 11
2440         https://bugs.webkit.org/show_bug.cgi?id=173937
2441         <rdar://problem/33038924>
2442
2443         Reviewed by Daniel Bates.
2444
2445         Xcode 9 has removed the following headers from the iOS 11 Simulator SDK:
2446                 /usr/include/crt_externs.h
2447                 /usr/include/mach/mach_types.defs
2448                 /usr/include/mach/machine/machine_types.defs
2449                 /usr/include/mach/std_types.defs
2450                 /usr/include/objc/objc-class.h
2451                 /usr/include/objc/objc-runtime.h
2452                 /usr/include/objc/Protocol.h
2453                 /usr/include/readline/history.h
2454                 /usr/include/readline/readline.h
2455         To solve this problem, configure-xcode-for-ios-development copies these headers
2456         from the active macOS SDK into the iOS Simulator SDK.
2457
2458         * Scripts/configure-xcode-for-ios-development:
2459         (copyMissingHeadersFromSDKToSDKIfNeeded): Copy all missing header from one SDK
2460         into another if those headers do not exist in the destination SDK.
2461         (copyMissingHeadersToIPhoneOSSDKIfNeeded): Deleted.
2462
2463 2017-08-24  Alex Christensen  <achristensen@webkit.org>
2464
2465         Add WKUIDelegatePrivate callback corresponding to PageUIClient's didNotHandleWheelEvent
2466         https://bugs.webkit.org/show_bug.cgi?id=175957
2467         <rdar://problem/29270035>
2468
2469         Reviewed by Geoffrey Garen.
2470
2471         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
2472         (synthesizeWheelEvents):
2473         (-[WheelDelegate _webView:didNotHandleWheelEvent:]):
2474         (-[WheelDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2475         (TEST):
2476
2477 2017-08-24  Tim Horton  <timothy_horton@apple.com>
2478
2479         Layout size override changes during in-flight animated resize are dropped on the floor forever
2480         https://bugs.webkit.org/show_bug.cgi?id=175916
2481         <rdar://problem/33887295>
2482
2483         Reviewed by Beth Dakin.
2484
2485         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm:
2486         (TEST):
2487         Add a test ensuring that override layout size changes
2488         during an animated resize actually take effect.
2489
2490 2017-08-23  Matt Lewis  <jlewis3@apple.com>
2491
2492         Disabled VideoControlsManagerMultipleVideosSwitchControlledVideoWhenScrolling.
2493         https://bugs.webkit.org/show_bug.cgi?id=175909
2494
2495         Unreviewed test gardening.
2496
2497         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2498         (TestWebKitAPI::TEST):
2499
2500 2017-08-24  Don Olmstead  <don.olmstead@sony.com>
2501
2502         [CMake] Use find_package for SQLite
2503         https://bugs.webkit.org/show_bug.cgi?id=175803
2504
2505         Reviewed by Konstantin Tokarev.
2506
2507         * TestWebKitAPI/PlatformWin.cmake:
2508
2509 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
2510
2511         Leaking CARenderServerBuffer in PlatformWebView::windowSnapshotImage()
2512         https://bugs.webkit.org/show_bug.cgi?id=175905
2513
2514         Reviewed by Tim Horton.
2515
2516         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2517         (WTR::PlatformWebView::windowSnapshotImage): Pass CARenderServerBuffer to CGDataProviderCreateWithData
2518         so that the buffer can be destroyed.
2519
2520 2017-08-23  Alex Christensen  <achristensen@webkit.org>
2521
2522         Add WKUIDelegatePrivate callbacks corresponding to WKPageUIClient's takeFocus, focus, and unfocus
2523         https://bugs.webkit.org/show_bug.cgi?id=175896
2524
2525         Reviewed by Tim Horton.
2526
2527         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
2528         (-[UITestDelegate _showWebView:]):
2529         (TEST):
2530         (tabEvent):
2531         (synthesizeTab):
2532         (-[FocusDelegate _webView:takeFocus:]):
2533         (-[FocusDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2534         (-[UITestDelegate _webViewShow:]): Deleted.
2535
2536 2017-08-23  Eric Carlson  <eric.carlson@apple.com>
2537
2538         Platform code should be able to safely log in release builds
2539         https://bugs.webkit.org/show_bug.cgi?id=175854
2540         <rdar://problem/34022930>
2541
2542         Reviewed by Jer Noble.
2543
2544         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
2545         (TestWebKitAPI::TEST_F):
2546
2547 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
2548
2549         Access expectations path through apple_additions
2550         https://bugs.webkit.org/show_bug.cgi?id=174800
2551         <rdar://problem/33498899>
2552
2553         Unreviewed follow-up fix for r221087.
2554
2555         * Scripts/webkitpy/port/ios.py:
2556         (IOSPort._apple_additions_path): Use iOS mapping instead of Mac mapping.
2557
2558 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
2559
2560         Access expectations path through apple_additions
2561         https://bugs.webkit.org/show_bug.cgi?id=174800
2562         <rdar://problem/33498899>
2563
2564         Reviewed by David Kilzer.
2565
2566         Follow-up fix. Mapping of operating system names was done incorrectly.
2567
2568         * Scripts/webkitpy/port/ios.py:
2569         (IOSPort._apple_additions_path): Correctly find the operating system to be replaced.
2570         * Scripts/webkitpy/port/ios_device_unittest.py:
2571         (IOSDeviceTest.test_layout_test_searchpath_with_apple_additions): Add test for operating
2572         system name replacement.
2573         * Scripts/webkitpy/port/ios_simulator_unittest.py:
2574         (IOSSimulatorTest.test_layout_test_searchpath_with_apple_additions): Add test for operating
2575         system name replacement.
2576         * Scripts/webkitpy/port/mac.py: Correctly find the operating system to be replaced.
2577         (MacPort._apple_additions_path):
2578         * Scripts/webkitpy/port/mac_unittest.py:
2579         (MacTest.test_layout_test_searchpath_with_apple_additions): Add test for operating system
2580         name replacement.
2581         * Scripts/webkitpy/port/port_testcase.py:
2582         (bind_mock_apple_additions.MockAppleAdditions.ios_os_name): Change the passed name so that
2583         operating system name replacement can be tested.
2584         (bind_mock_apple_additions.MockAppleAdditions.mac_os_name): Ditto.
2585
2586 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
2587
2588         Access expectations path through apple_additions
2589         https://bugs.webkit.org/show_bug.cgi?id=174800
2590         <rdar://problem/33498899>
2591
2592         Reviewed by Alexey Proskuryakov.
2593
2594         When external test expectations are imported through additional-platform-directory, they will
2595         over-write any WebKit expectations. Access some expectations from apple_additions to correct
2596         these precedence issues.
2597
2598         * Scripts/webkitpy/port/ios.py:
2599         (IOSPort._apple_additions_path): Convert test expectation directory to a path
2600         coming from apple_additions.
2601         (IOSPort.default_baseline_search_path): Alternate between WebKit path and apple_additions
2602         path for layout test expectations.
2603         * Scripts/webkitpy/port/ios_device_unittest.py:
2604         (IOSDeviceTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
2605         * Scripts/webkitpy/port/ios_simulator_unittest.py:
2606         (IOSSimulatorTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
2607         * Scripts/webkitpy/port/mac.py:
2608         (MacPort._apple_additions_path): Convert test expectation directory to a path
2609         coming from apple_additions.
2610         (MacPort.default_baseline_search_path): Alternate between WebKit path and apple_additions
2611         path for layout test expectations.
2612         * Scripts/webkitpy/port/mac_unittest.py:
2613         (MacTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
2614         * Scripts/webkitpy/port/port_testcase.py:
2615         (bind_mock_apple_additions): Added to create mock apple_additions for a block.
2616         (bind_mock_apple_additions.MockAppleAdditions): Contains apple_addition stubs for testing.
2617         * Scripts/webkitpy/port/win.py:
2618         (WinPort.default_baseline_search_path): Include apple_additions test expectation for Windows.
2619
2620 2017-08-22  Zan Dobersek  <zdobersek@igalia.com>
2621
2622         Unreviewed. The WPE port should build TestWebKitAPI with the same
2623         compiler flags as the GTK+ port, disabling a few flags that are
2624         sprouting a lot of warning output.
2625
2626         * TestWebKitAPI/PlatformWPE.cmake:
2627
2628 2017-08-20  Wenson Hsieh  <wenson_hsieh@apple.com>
2629
2630         [iOS WK2] WKWebView schedules nonstop layout after pressing cmb+b,i,u inside a contenteditable div
2631         https://bugs.webkit.org/show_bug.cgi?id=175116
2632         <rdar://problem/28279301>
2633
2634         Reviewed by Darin Adler and Ryosuke Niwa.
2635
2636         Introduces new testing infrastructure and API tests to test EditorState updates in the UI process. The new
2637         EditorStateTests run on both iOS and Mac.
2638
2639         * TestWebKitAPI/EditingTestHarness.h: Added.
2640         * TestWebKitAPI/EditingTestHarness.mm: Added.
2641
2642         EditingTestHarness is a helper object that API tests may use to apply editing commands and store EditorState
2643         history. This test harness adds sugaring around various editing commands, and simplifies the process of checking
2644         the state of the latest observed EditorState.
2645
2646         (-[EditingTestHarness initWithWebView:]):
2647         (-[EditingTestHarness dealloc]):
2648         (-[EditingTestHarness webView]):
2649         (-[EditingTestHarness latestEditorState]):
2650         (-[EditingTestHarness editorStateHistory]):
2651         (-[EditingTestHarness insertText:andExpectEditorStateWith:]):
2652         (-[EditingTestHarness insertHTML:andExpectEditorStateWith:]):
2653         (-[EditingTestHarness selectAllAndExpectEditorStateWith:]):
2654         (-[EditingTestHarness moveBackwardAndExpectEditorStateWith:]):
2655         (-[EditingTestHarness moveWordBackwardAndExpectEditorStateWith:]):
2656         (-[EditingTestHarness toggleBold]):
2657         (-[EditingTestHarness toggleItalic]):
2658         (-[EditingTestHarness toggleUnderline]):
2659         (-[EditingTestHarness setForegroundColor:]):
2660         (-[EditingTestHarness alignJustifiedAndExpectEditorStateWith:]):
2661         (-[EditingTestHarness alignLeftAndExpectEditorStateWith:]):
2662         (-[EditingTestHarness alignCenterAndExpectEditorStateWith:]):
2663         (-[EditingTestHarness alignRightAndExpectEditorStateWith:]):
2664         (-[EditingTestHarness insertParagraphAndExpectEditorStateWith:]):
2665         (-[EditingTestHarness deleteBackwardAndExpectEditorStateWith:]):
2666         (-[EditingTestHarness _execCommand:argument:expectEntries:]):
2667
2668         Dispatches an editing command to the web process, and blocks until a response is received. If an expected
2669         entries dictionary is given, this will additionally verify that the latest EditorState contains all the expected
2670         keys and values.
2671
2672         (-[EditingTestHarness latestEditorStateContains:]):
2673         (-[EditingTestHarness _webView:editorStateDidChange:]):
2674         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2675         * TestWebKitAPI/Tests/WebKit2Cocoa/EditorStateTests.mm: Added.
2676         (TestWebKitAPI::setUpEditorStateTestHarness):
2677         (TestWebKitAPI::TEST):
2678         * TestWebKitAPI/Tests/WebKit2Cocoa/editor-state-test-harness.html: Added.
2679
2680 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
2681
2682         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
2683         https://bugs.webkit.org/show_bug.cgi?id=175370
2684         <rdar://problem/33799806>
2685
2686         Reviewed by Ryosuke Niwa.
2687
2688         Tweaks API tests that involve editing to wait for a presentation update before checking against UI process-side
2689         information sent via EditorState updates. This allows any EditorState update scheduled by the test to propagate
2690         to the UI process.
2691
2692         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
2693         (-[CandidateTestWebView typeString:inputMessage:]):
2694         (+[CandidateTestWebView setUpWithFrame:testPage:]):
2695         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewTextInput.mm:
2696         * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
2697         (TestWebKitAPI::AcceptsFirstMouse::runTest):
2698         * TestWebKitAPI/Tests/mac/WKWebViewMacEditingTests.mm:
2699         * TestWebKitAPI/cocoa/TestWKWebView.h:
2700         * TestWebKitAPI/cocoa/TestWKWebView.mm:
2701         (-[TestWKWebView waitForNextPresentationUpdate]):
2702
2703         Add a new helper method to spin until the next presentation update.
2704
2705         * TestWebKitAPI/mac/WebKitAgnosticTest.h:
2706         * TestWebKitAPI/mac/WebKitAgnosticTest.mm:
2707         (TestWebKitAPI::WebKitAgnosticTest::waitForNextPresentationUpdate):
2708
2709 2017-08-22  Alex Christensen  <achristensen@webkit.org>
2710
2711         Add UIDelegatePrivate SPI corresponding to WKPageUIClient.showPage
2712         https://bugs.webkit.org/show_bug.cgi?id=175797
2713         <rdar://problem/29270035>
2714
2715         Reviewed by Geoffrey Garen.
2716
2717         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2718         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Added.
2719         (-[UITestDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
2720         (-[UITestDelegate _showPage:]):
2721         (-[UITestDelegate webView:startURLSchemeTask:]):
2722         (-[UITestDelegate webView:stopURLSchemeTask:]):
2723         (TEST):
2724
2725 2017-08-22  Devin Rousso  <webkit@devinrousso.com>
2726
2727         Unreviewed, change my IRC nick.
2728
2729         * Scripts/webkitpy/common/config/contributors.json:
2730
2731 2017-08-22  Matt Lewis  <jlewis3@apple.com>
2732
2733         Unreviewed, rolling out r221026.
2734
2735         This caused a consistent API failure on iOS Simulator.
2736
2737         Reverted changeset:
2738
2739         "Add UIDelegatePrivate SPI corresponding to
2740         WKPageUIClient.showPage"
2741         https://bugs.webkit.org/show_bug.cgi?id=175797
2742         http://trac.webkit.org/changeset/221026
2743
2744 2017-08-22  Alex Christensen  <achristensen@webkit.org>
2745
2746         Add UIDelegatePrivate SPI corresponding to WKPageUIClient.showPage
2747         https://bugs.webkit.org/show_bug.cgi?id=175797
2748         <rdar://problem/29270035>
2749
2750         Reviewed by Geoffrey Garen.
2751
2752         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2753         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Added.
2754         (-[UITestDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
2755         (-[UITestDelegate _showPage:]):
2756         (-[UITestDelegate webView:startURLSchemeTask:]):
2757         (-[UITestDelegate webView:stopURLSchemeTask:]):
2758         (TEST):
2759
2760 2017-08-22  Jonathan Bedard  <jbedard@apple.com>
2761
2762         Fix leak-checking for iOS Simulators
2763         https://bugs.webkit.org/show_bug.cgi?id=175735
2764
2765         Reviewed by David Kilzer.
2766
2767         Follow-up fix to r220942. _proc may be undefined.
2768
2769         * Scripts/webkitpy/port/server_process.py:
2770         (ServerProcess._wait_for_stop): Handle case where _proc is undefined.
2771
2772 2017-08-22  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2773
2774         [GTK][WPE] install-dependencies should install the required gstreamer packages needed for production builds.
2775         https://bugs.webkit.org/show_bug.cgi?id=175822
2776
2777         Reviewed by Xabier Rodriguez-Calvar.
2778
2779         * gtk/install-dependencies: Add the bad plugins to the list.
2780         * wpe/install-dependencies: Add all the gst related packages (copied from GTK listing).
2781
2782 2017-08-21  Myles C. Maxfield  <mmaxfield@apple.com>
2783
2784         DataInteractionTests.ExternalSourceAttributedStringToContentEditable hits a debug assertion
2785         https://bugs.webkit.org/show_bug.cgi?id=175787
2786         <rdar://problem/33996612>
2787
2788         Reviewed by Wenson Hsieh.
2789
2790         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2791         (TestWebKitAPI::TEST):
2792
2793 2017-08-21  Myles C. Maxfield  <mmaxfield@apple.com>
2794
2795         Typo in "webkit-patch land"
2796         https://bugs.webkit.org/show_bug.cgi?id=175788
2797
2798         Reviewed by Tim Horton.
2799
2800         * Scripts/webkitpy/tool/steps/commit.py:
2801         (Commit._commit_warning):
2802
2803 2017-08-20  Sam Weinig  <sam@webkit.org>
2804
2805         StringView could use a function to strip leading/trailing characters without allocation
2806         https://bugs.webkit.org/show_bug.cgi?id=175757
2807
2808         Reviewed by Darin Adler.
2809
2810         * TestWebKitAPI/Tests/WTF/StringView.cpp:
2811         Add tests for StringView::stripLeadingAndTrailingMatchedCharacters().
2812
2813 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2814
2815         [PAL] Move spi/mac directory into PAL
2816         https://bugs.webkit.org/show_bug.cgi?id=175649
2817
2818         Reviewed by Myles C. Maxfield.
2819
2820         * TestWebKitAPI/Tests/mac/MenuTypesForMouseEvents.mm:
2821
2822 2017-08-21  Per Arne Vollan  <pvollan@apple.com>
2823
2824         [Win] DRT should only allow any https certificate for localhost.
2825         https://bugs.webkit.org/show_bug.cgi?id=175147
2826
2827         Reviewed by Brent Fulgham.
2828
2829         Add check to make sure only localhost requests allow any https certificate.
2830
2831         * DumpRenderTree/win/DumpRenderTree.cpp:
2832         (runTest):
2833
2834 2017-08-21  Eric Carlson  <eric.carlson@apple.com>
2835
2836         Add WTFLogChannel level to allow runtime log filtering
2837         https://bugs.webkit.org/show_bug.cgi?id=175731
2838         <rdar://problem/33967234>
2839
2840         Unreviewed build fix.
2841
2842         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
2843         (TestWebKitAPI::LoggingTest::output): Disable testing output by default because it 
2844         fails on some of the bots.
2845
2846 2017-08-21  Eric Carlson  <eric.carlson@apple.com>
2847
2848         Add WTFLogChannel level to allow runtime log filtering
2849         https://bugs.webkit.org/show_bug.cgi?id=175731
2850         <rdar://problem/33967234>
2851
2852         Reviewed by Jer Noble.
2853
2854         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2855         * TestWebKitAPI/Tests/WebCore/Logging.cpp: Added.
2856         (TestWebKitAPI::LoggingTest::output):
2857         (TestWebKitAPI::TEST_F):
2858
2859 2017-08-19  Wenson Hsieh  <wenson_hsieh@apple.com>
2860
2861         [iOS WK2] Add a version of DataInteractionTests.ExternalSourceAttributedStringToContentEditable that doesn't hit a debug assertion
2862         https://bugs.webkit.org/show_bug.cgi?id=175509
2863         <rdar://problem/33728169>
2864
2865         Reviewed by Ryosuke Niwa.
2866
2867         Removes ExternalSourceAttributedStringToContentEditable and adds
2868         ExternalSourceColoredAttributedStringToContentEditable, which tests dropping an attributed string with colored
2869         text instead of a bold attributed string of system font. Due to a recent change in behavior in UIKit, the
2870         original test (which this patch renames to ExternalSourceBoldSystemAttributedStringToContentEditable) hits a
2871         debug assertion when dropping text of system bold font. Since the original intent of this test was to verify
2872         that the attributed string UTI can be accepted in richly contenteditable areas, it suffices to check that some
2873         other style attribute, such as color, carries over from the NSAttributedString to the DOM.
2874
2875         Also marks ExternalSourceBoldSystemAttributedStringToContentEditable as disabled for the time being.
2876
2877         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2878         (TestWebKitAPI::TEST):
2879
2880 2017-08-18  Ryan Haddad  <ryanhaddad@apple.com>
2881
2882         Unreviewed, rolling out r220938.
2883
2884         The API tests added with this change are failing.
2885
2886         Reverted changeset:
2887
2888         "Add WTFLogChannel level to allow runtime log filtering"
2889         https://bugs.webkit.org/show_bug.cgi?id=175731
2890         http://trac.webkit.org/changeset/220938
2891
2892 2017-08-18  Devin Rousso  <webkit@devinrousso.com>
2893
2894         Unreviewed, change my email.
2895
2896         * Scripts/webkitpy/common/config/contributors.json:
2897
2898 2017-08-18  Jonathan Bedard  <jbedard@apple.com>
2899
2900         Fix leak-checking for iOS Simulators
2901         https://bugs.webkit.org/show_bug.cgi?id=175735
2902
2903         Reviewed by Darin Adler.
2904
2905         If the leak checking currently occurs in ServerProcess, we can’t check leaks on an iOS
2906         Simulator (or device) because the process will have already been killed by the time we
2907         check for leaks. Duplicate leak-checking code and share code waiting on a process to stop.
2908
2909         * Scripts/webkitpy/port/server_process.py:
2910         (ServerProcess.stop): Move code waiting for the process to close to _wait_for_stop(...).
2911         (ServerProcess._wait_for_stop): Share code shutting down a process between ServerProcess
2912         and SimulatorProcess.
2913         * Scripts/webkitpy/port/simulator_process.py:
2914         (SimulatorProcess.stop): Before closing the process, check for leaks.
2915
2916 2017-08-18  Eric Carlson  <eric.carlson@apple.com>
2917
2918         Add WTFLogChannel level to allow runtime log filtering
2919         https://bugs.webkit.org/show_bug.cgi?id=175731
2920         <rdar://problem/33967234>
2921
2922         Reviewed by Jer Noble.
2923
2924         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2925         * TestWebKitAPI/Tests/WebCore/Logging.cpp: Added.
2926         (TestWebKitAPI::LoggingTest::output):
2927         (TestWebKitAPI::TEST_F):
2928
2929 2017-08-18  Alexey Proskuryakov  <ap@apple.com>
2930
2931         Add Dean Johnson to contributors.json for Bugzilla autocomplete.
2932
2933         * Scripts/webkitpy/common/config/contributors.json:
2934
2935 2017-08-18  Ross Kirsling  <ross.kirsling@sony.com>
2936
2937         [Tools] Add script to download a GitHub release
2938         https://bugs.webkit.org/show_bug.cgi?id=175279
2939
2940         Reviewed by Brent Fulgham.
2941
2942         * Scripts/download-latest-github-release.py: Added.
2943
2944 2017-08-18  Commit Queue  <commit-queue@webkit.org>
2945
2946         Unreviewed, rolling out r220854.
2947         https://bugs.webkit.org/show_bug.cgi?id=175716
2948
2949         I'm not sure we really need this (Requested by KaL on
2950         #webkit).
2951
2952         Reverted changeset:
2953
2954         "[GTK][WPE] Add NTLM authentication enabled API"
2955         https://bugs.webkit.org/show_bug.cgi?id=122952
2956         http://trac.webkit.org/changeset/220854
2957
2958 2017-08-17  Michael Catanzaro  <mcatanzaro@igalia.com>
2959
2960         [GTK] Make TestContextMenu work on Fedora
2961         https://bugs.webkit.org/show_bug.cgi?id=175708
2962
2963         Reviewed by Carlos Garcia Campos.
2964
2965         TestContextMenu has been broken for as long as I remember, but not on the bots, only for me
2966         and my student last summer who was trying to work on a context menu API. It's trying to load
2967         an MPEG-2 video file and confirm that right-clicking on it shows media element context menu
2968         entries. Doesn't work on Fedora. Dunno why, since Fedora actually can play MPEG-2, but I
2969         don't care to investigate. Let's switch it to WebM so I can move on.
2970
2971         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
2972         (prepareContextMenuTestView):
2973         * TestWebKitAPI/Tests/WebKitGLib/resources/silence.mpg: Removed.
2974         * TestWebKitAPI/Tests/WebKitGLib/resources/silence.webm: Added.
2975
2976 2017-08-17  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2977
2978         check-webkit-style shouldn't check spacing in #elif preprocessor lines
2979         https://bugs.webkit.org/show_bug.cgi?id=175652
2980
2981         Reviewed by Alex Christensen.
2982
2983         * Scripts/webkitpy/style/checkers/cpp.py:
2984         (check_spacing):
2985         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2986         (CppStyleTest.test_spacing_for_binary_ops):
2987
2988 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2989
2990         Fix the build on other platforms after r220865
2991         https://bugs.webkit.org/show_bug.cgi?id=175683
2992
2993         Reviewed by Tim Horton.
2994
2995         Check __IPHONE_OS_VERSION_MAX_ALLOWED instead of __IPHONE_OS_VERSION_MIN_REQUIRED in an SPI header. SPI
2996         availability is determined by SDK version rather than deployment version.
2997
2998         * TestWebKitAPI/ios/UIKitSPI.h:
2999
3000 2017-08-17  Andreas Kling  <akling@apple.com>
3001
3002         Disable CSS regions at compile time
3003         https://bugs.webkit.org/show_bug.cgi?id=175630
3004
3005         Reviewed by Antti Koivisto.
3006
3007         * Scripts/webkitperl/FeatureList.pm:
3008         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3009
3010 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3011
3012         Unreviewed, try to fix the internal iOS 10 build after r220865.
3013
3014         * TestWebKitAPI/ios/UIKitSPI.h:
3015
3016         On the iOS 10 SDK, UIApplication_Private.h cannot be imported in the simulator. Simply fall back to using the
3017         extern declaration when building for pre-iOS 11; once the bots stop building for iOS 10, we can safely remove
3018         this compiler guard.
3019
3020 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3021
3022         [iOS] Respect type fidelities when copying image elements to the pasteboard
3023         https://bugs.webkit.org/show_bug.cgi?id=175638
3024         <rdar://problem/26556043>
3025
3026         Reviewed by Ryosuke Niwa.
3027
3028         Add API tests that simulate copying an image element using the action sheet, and verifying that the pasteboard
3029         contains UTIs in order of fidelity (image type before URL). Also pulls out UIKit SPI (UIApplicationInitialize)
3030         used in UIPasteboardTests and ActionSheetTests into a common UIKitSPI header.
3031
3032         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3033         * TestWebKitAPI/Tests/ios/ActionSheetTests.mm:
3034         (-[ActionSheetObserver _webView:actionsForElement:defaultActions:]):
3035         (TestWebKitAPI::TEST):
3036         (TestWebKitAPI::presentActionSheetAndChooseAction):
3037         (-[ActionSheetObserver waitForActionSheetAfterBlock:]): Deleted.
3038         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
3039         (checkEstimatedSize):
3040         (checkSuggestedNameAndEstimatedSize):
3041
3042         Replace -estimatedDisplayedSize with its non-deprecated counterpart, -preferredPresentationSize.
3043
3044         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
3045         (TestWebKitAPI::TEST):
3046         * TestWebKitAPI/ios/DataInteractionSimulator.h:
3047         * TestWebKitAPI/ios/UIKitSPI.h: Added.
3048
3049 2017-08-17  Jonathan Bedard  <jbedard@apple.com>
3050
3051         Recursively create resource load statistics folder for testing
3052         https://bugs.webkit.org/show_bug.cgi?id=175676
3053
3054         Reviewed by Brady Eidson.
3055
3056         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3057         (WTR::TestController::cocoaPlatformInitialize): Recursively create resourceLoadStatisticsFolder.
3058
3059 2017-08-17  Carlos Garcia Campos  <cgarcia@igalia.com>
3060
3061         [GTK][WPE] Add NTLM authentication enabled API
3062         https://bugs.webkit.org/show_bug.cgi?id=122952
3063
3064         Reviewed by Michael Catanzaro.
3065
3066         Add a test case to check we can enable/disable NTLM.
3067
3068         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
3069         (testWebViewAuthenticationNTLM):
3070         (beforeAll):
3071
3072 2017-08-16  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
3073
3074         [PAL] Move spi/ios and spi/win directories into PAL
3075         https://bugs.webkit.org/show_bug.cgi?id=175171
3076
3077         Reviewed by Antti Koivisto.
3078
3079         * DumpRenderTree/mac/EventSendingController.mm:
3080
3081 2017-08-16  Andy Estes  <aestes@apple.com>
3082
3083         [Payment Request] Add an ENABLE flag and an experimental feature preference
3084         https://bugs.webkit.org/show_bug.cgi?id=175622
3085
3086         Reviewed by Tim Horton.
3087
3088         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3089         * WebKitTestRunner/TestController.cpp:
3090         (WTR::TestController::resetPreferencesToConsistentValues):
3091
3092 2017-08-15  Aakash Jain  <aakash_jain@apple.com>
3093
3094         undefined URL in PopoverTracker for failed step
3095         https://bugs.webkit.org/show_bug.cgi?id=175593
3096         <rdar://problem/33898769>
3097
3098         Reviewed by Daniel Bates.
3099
3100         This fix is a workaround for Buildbot 0.9 bug <https://github.com/buildbot/buildbot/issues/3529> where it
3101         does not provide a URL to stdio for a build step. Buildbot 0.8 always included a URL to the stdio of the step.
3102
3103         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
3104         (BuildbotIteration.prototype._parseData): Pass the URL while instantiating BuildbotTestResults.
3105         (BuildbotIteration.prototype._urlForStep): Method to get the URL for a step.
3106         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
3107         (BuildbotTestResults): Accept URL in constructor.
3108
3109 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
3110
3111         Remove Proximity Events and related code
3112         https://bugs.webkit.org/show_bug.cgi?id=175545
3113
3114         Reviewed by Daniel Bates.
3115
3116         No platform enables Proximity Events, so remove code inside ENABLE(PROXIMITY_EVENTS)
3117         and other related code.
3118
3119         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3120
3121 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
3122
3123         Remove ENABLE(REQUEST_AUTOCOMPLETE) code, which was disabled everywhere
3124         https://bugs.webkit.org/show_bug.cgi?id=175504
3125
3126         Reviewed by Sam Weinig.
3127
3128         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3129
3130 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
3131
3132         Remove ENABLE_VIEW_MODE_CSS_MEDIA and related code
3133         https://bugs.webkit.org/show_bug.cgi?id=175557
3134
3135         Reviewed by Jon Lee.
3136         
3137         No port cares about the ENABLE(VIEW_MODE_CSS_MEDIA) feature, so remove it.
3138
3139         * DumpRenderTree/TestRunner.cpp:
3140         (TestRunner::staticFunctions):
3141         (setViewModeMediaFeatureCallback): Deleted.
3142         * DumpRenderTree/TestRunner.h:
3143         * DumpRenderTree/mac/TestRunnerMac.mm:
3144         (TestRunner::setViewModeMediaFeature): Deleted.
3145         * DumpRenderTree/win/TestRunnerWin.cpp:
3146         (TestRunner::setViewModeMediaFeature): Deleted.
3147         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3148
3149 2017-08-14  Andy Estes  <aestes@apple.com>
3150
3151         REGRESSION (r220456): Crash in PreviewLoader::shouldCreateForMIMEType() when a ResourceResponse has a null MIME type
3152         https://bugs.webkit.org/show_bug.cgi?id=175548
3153         <rdar://problem/33866206>
3154
3155         Reviewed by Brady Eidson.
3156
3157         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3158         * TestWebKitAPI/Tests/WebCore/ios/PreviewLoader.cpp: Added.
3159         (TestWebKitAPI::TEST): Added an API test for PreviewLoader::shouldCreateForMIMEType().
3160
3161 2017-08-14  Youenn Fablet  <youenn@apple.com>
3162
3163         WPT server should be able to do logging even if its output folder is not created at launch time
3164         https://bugs.webkit.org/show_bug.cgi?id=175543
3165
3166         Reviewed by Alexey Proskuryakov.
3167
3168         Removing no longer used stdout/stderr member variables.
3169         Creating if needed the output folder so that we can create WPT server output log folder at WPT server launch time.
3170
3171         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
3172         (WebPlatformTestServer.__init__):
3173         (WebPlatformTestServer._prepare_config):
3174         (WebPlatformTestServer._spawn_process):
3175         (WebPlatformTestServer._stop_running_server):
3176
3177 2017-08-14  Daniel Bates  <dabates@apple.com>
3178
3179         webkit-patch: Passing --no-review should submit patch to EWS by default
3180         https://bugs.webkit.org/show_bug.cgi?id=148899
3181
3182         Reviewed by David Kilzer.
3183
3184         Make "webkit-patch upload --no-review" and "webkit-patch post-commits --no-review" submit
3185         the patch(es) for EWS analysis by default. Add a new optional command line argument, --no-ews,
3186         to these commands to not submit a non-reviewed patch(es) for EWS analysis.
3187
3188         Frequently I want to post a draft of a patch without review to have the EWS bots process
3189         it to catch build and test breakage before I clean it up and post it for formal review.
3190         Currently this requires using "webkit-patch upload --no-review --open-bug" to upload the
3191         patch and open the bug in Safari so that I can click the Submit for EWS analysis button.
3192         We should teach "webkit-patch upload" and "webkit-patch post-commits" how to do this.
3193
3194         * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
3195         (Bugzilla._parse_attachment_id_from_add_patch_to_bug_response): Add helper function to
3196         parse the attachment id from the response page after adding an attachment to the bug.
3197         (Bugzilla.add_patch_to_bug): Modified to parse and return the attachment id from the
3198         HTTP response after uploading the patch.
3199         * Scripts/webkitpy/common/net/bugzilla/bugzilla_mock.py:
3200         (MockBugzilla.add_patch_to_bug): Return a dummy attachment id for testing purposes.
3201         * Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:
3202         (test__parse_attachment_id_from_add_patch_to_bug_response): Added.
3203         * Scripts/webkitpy/tool/commands/upload.py:
3204         (Upload): Add step SubmitToEWS to the list of steps when uploading a patch. 
3205         (PostCommits.__init__): Add --no-ews option to the list of applicable option flags for
3206         this command.
3207         (PostCommits.execute): Submit the patch to EWS, if applicable.
3208         * Scripts/webkitpy/tool/commands/upload_unittest.py:
3209         (test_upload): Set options.ews to False as the upload command expects this option
3210         to be specified.
3211         (test_upload_with_no_review_and_ews): Added.
3212         * Scripts/webkitpy/tool/steps/__init__.py: Import module SubmitToEWS.
3213         * Scripts/webkitpy/tool/steps/options.py:
3214         (Options): Added command line option --no-ews (defaults: False - submit to EWS).
3215         * Scripts/webkitpy/tool/steps/postdiff.py:
3216         (PostDiff.options): Add --no-ews option to the list of applicable option flags for
3217         this command.
3218         (PostDiff.run): Submit the patch to EWS, if applicable.
3219         * Scripts/webkitpy/tool/steps/submittoews.py: Added.
3220         (SubmitToEWS):
3221         (SubmitToEWS.options): Return an empty array as we this step does not have any command line options.
3222         (SubmitToEWS.run): Submit the specified attachment ids for EWS analysis.
3223
3224 2017-08-14  Ryan Haddad  <ryanhaddad@apple.com>
3225
3226         Disable two flaky VideoControlsManager API tests.
3227
3228         Unreviewed test gardening.
3229
3230         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
3231         (TestWebKitAPI::TEST):
3232
3233 2017-08-14  Tim Horton  <timothy_horton@apple.com>
3234
3235         Only create directory and sandbox extension handle for storage directories if they are set
3236         https://bugs.webkit.org/show_bug.cgi?id=175522
3237
3238         Reviewed by Brady Eidson.
3239
3240         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3241         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDoesNotLogDuringInitialization.mm: Added.
3242         (TEST):
3243         Add a test that making a WKWebView with an ephemeral WKWebsiteDataStore
3244         doesn't log anything to stderr.
3245
3246 2017-08-14  Jonathan Bedard  <jbedard@apple.com>
3247
3248         sub-categorize Sandbox violation logs
3249         https://bugs.webkit.org/show_bug.cgi?id=175536
3250         <rdar://problem/33834416>
3251
3252         Reviewed by David Kilzer.
3253
3254         * Scripts/webkitpy/common/system/crashlogs.py:
3255         (CrashLogs._parse_darwin_crash_log): Add 'Sandbox-' to the log name if the log is
3256         a Sandbox violation.
3257         (CrashLogs._find_all_logs_darwin): Update comment.
3258         * Scripts/webkitpy/common/system/crashlogs_unittest.py:
3259         (make_mock_sandbox_report_darwin): Create a Sandbox violation log for testing. 
3260         (CrashLogsTest.create_crash_logs_darwin): Add Sandbox violation to list of crashes.
3261         (CrashLogsTest.test_find_all_log_darwin): 8 logs in testing instead of 7.
3262         (CrashLogsTest.test_duplicate_log_darwin): Check for Sandbox violation log.
3263         * Scripts/webkitpy/port/darwin.py:
3264         (DarwinPort._merge_crash_logs): Handle Sandbox violation case.
3265
3266 2017-08-14  Daniel Bates  <dabates@apple.com>
3267
3268         Add Automator service to copy permalink to Clipboard
3269         https://bugs.webkit.org/show_bug.cgi?id=170978
3270
3271         Reviewed by Joseph Pecoraro.
3272
3273         It is helpful to reference using a hyperlink a particular line of code when having
3274         a discussion on IRC or in a bug. You can get such a link by navigating to the file
3275         in the Trac Browse Source viewer and selecting the line your are interested in.
3276         I found myself doing this often enough that I wrote an Automator service to do it
3277         for me.
3278
3279         This Automator service works with Xcode 8 and Xcode 9 beta 5 (9M202q) or later.
3280
3281         * CopyPermalink/Copy WebKit Permalink.workflow/Contents/Info.plist: Added.
3282         * CopyPermalink/Copy WebKit Permalink.workflow/Contents/document.wflow: Added.
3283         * CopyPermalink/README: Added.
3284
3285 2017-08-14  Chris Dumez  <cdumez@apple.com>
3286
3287         Address flakiness related to download tests
3288         https://bugs.webkit.org/show_bug.cgi?id=175338
3289         <rdar://problem/33865119>
3290
3291         Unreviewed, forgot in r220626 to reset m_shouldLogDownloadCallbacks to false
3292         between tests.
3293
3294         * WebKitTestRunner/TestController.cpp:
3295         (WTR::TestController::resetStateToConsistentValues):
3296
3297 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
3298
3299         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
3300         https://bugs.webkit.org/show_bug.cgi?id=175474
3301         <rdar://problem/33844628>
3302
3303         Reviewed by Wenson Hsieh.
3304
3305         Enable dataTransfer.items by default in DumpRenderTree and WebKitTestRunner for testing purposes.
3306
3307         * DumpRenderTree/mac/DumpRenderTree.mm:
3308         (resetWebPreferencesToConsistentValues):
3309         * WebKitTestRunner/TestController.cpp:
3310         (WTR::TestController::resetPreferencesToConsistentValues):
3311
3312 2017-08-12  Chris Dumez  <cdumez@apple.com>
3313
3314         Address flakiness related to download tests
3315         https://bugs.webkit.org/show_bug.cgi?id=175338
3316
3317         Reviewed by Ryosuke Niwa.
3318
3319         - Update WKTR so that the flag set by testRunner.waitUntilDownloadFinished()
3320           is actually queried when a download completes. Previously, this would be
3321           identical to a call to testRunner.waitUntilDone() because any download
3322           completion would call testRunner.notifyDone().
3323         - Disable logging of download callbacks by default and add a
3324           testRunner.setShouldLogDownloadCallbacks(true) API to allow tests to
3325           enable such logging.
3326
3327         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3328         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3329         (WTR::InjectedBundle::didReceiveMessageToPage):
3330         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3331         (WTR::TestRunner::setShouldLogDownloadCallbacks):
3332         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3333         * WebKitTestRunner/TestController.cpp:
3334         (WTR::TestController::downloadDidStart):
3335         (WTR::TestController::decideDestinationWithSuggestedFilename):
3336         (WTR::TestController::downloadDidFinish):
3337         (WTR::TestController::downloadDidFail):
3338         (WTR::TestController::downloadDidCancel):
3339         * WebKitTestRunner/TestController.h:
3340         (WTR::TestController::setShouldLogDownloadCallbacks):
3341         * WebKitTestRunner/TestInvocation.cpp:
3342         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
3343
3344 2017-08-11  Jonathan Bedard  <jbedard@apple.com>
3345
3346         Create mock ITP data in testing to prevent grandfathering
3347         https://bugs.webkit.org/show_bug.cgi?id=174720
3348
3349         Unreviewed follow-up fix for r220604.
3350
3351         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3352         (WTR::TestController::cocoaPlatformInitialize): Release resourceLogPlist.
3353
3354 2017-08-11  Jonathan Bedard  <jbedard@apple.com>
3355
3356         Create mock ITP data in testing to prevent grandfathering
3357         https://bugs.webkit.org/show_bug.cgi?id=174720
3358         <rdar://problem/33457779>
3359
3360         Reviewed by Brent Fulgham.
3361
3362         We don't need to be triggering grandfathering when each test runner starts. On Mac,
3363         this may launch plugins which can cause layout tests to fail later if the test
3364         runner does not shut-down before the plugins unload.
3365
3366         * WebKitTestRunner/TestController.h: Add declaration of cocoaPlatformInitialize.
3367         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3368         (WTR::TestController::cocoaPlatformInitialize): Write the minimum data required to
3369         prevent grandfathering from being triggered.
3370         * WebKitTestRunner/ios/TestControllerIOS.mm:
3371         (WTR::TestController::platformInitialize): Call cocoaPlatformInitialize.
3372         * WebKitTestRunner/mac/TestControllerMac.mm:
3373         (WTR::TestController::platformInitialize): Ditto.
3374
3375 2017-08-11  Sam Weinig  <sam@webkit.org>
3376
3377         WTF::Function does not allow for reference / non-default constructible return types
3378         https://bugs.webkit.org/show_bug.cgi?id=175244
3379         <rdar://problem/33801582>
3380
3381         Reviewed by Chris Dumez.
3382
3383         * TestWebKitAPI/Tests/WTF/Function.cpp:
3384         (TestWebKitAPI::TEST):
3385
3386 2017-08-11  Carlos Garcia Campos  <cgarcia@igalia.com>
3387
3388         [Soup] Cannot access HTTPS sites using a HTTP proxy that requires authentication
3389         https://bugs.webkit.org/show_bug.cgi?id=175378
3390
3391         Reviewed by Sergio Villar Senin.
3392
3393         Add two test cases to check proxy authentication.
3394
3395         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
3396         (Tunnel::Tunnel):
3397         (Tunnel::~Tunnel):
3398         (Tunnel::connect):
3399         (Tunnel::connected):
3400         (serverCallback):
3401         (ProxyAuthenticationTest::ProxyAuthenticationTest):
3402         (ProxyAuthenticationTest::~ProxyAuthenticationTest):
3403         (ProxyAuthenticationTest::proxyServerPortAsString):
3404         (testWebViewAuthenticationProxy):
3405         (testWebViewAuthenticationProxyHTTPS):
3406         (beforeAll):
3407
3408 2017-08-11  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3409
3410         [GStreamer][GTK][WPE] Unify GStreamer JHBuild moduleset for both GTK+ and WPE
3411         https://bugs.webkit.org/show_bug.cgi?id=175428
3412
3413         Both ports share the GStreamer code as multimedia backend and till
3414         not so long they were using different versions. Now they do use
3415         the same versions and it does not make any sense anymore (and
3416         neither had sense before) to have differences in the modulesets.
3417
3418         In this patch I created a GStreamer moduleset and referenced it
3419         from both GTK+'s and WPE's. GStreamer patches were also moved there.
3420
3421         Reviewed by Žan Doberšek.
3422
3423         * gstreamer/jhbuild.modules: Added.
3424         * gstreamer/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch.
3425         * gstreamer/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch.
3426         * gstreamer/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch.
3427         * gstreamer/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch.
3428         * gstreamer/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Renamed from Tools/gtk/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch.
3429         * gstreamer/patches/openh264-configure.patch: Renamed from Tools/gtk/patches/openh264-configure.patch.
3430         * gtk/jhbuild.modules:
3431         * wpe/jhbuild.modules:
3432         * wpe/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Removed.
3433         * wpe/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Removed.
3434         * wpe/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Removed.
3435         * wpe/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Removed.
3436         * wpe/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Removed.
3437
3438 2017-08-10  Don Olmstead  <don.olmstead@sony.com>
3439
3440         Unreviewed, adding Ross Kirsling to contributors.json
3441
3442         * Scripts/webkitpy/common/config/contributors.json:
3443
3444 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
3445
3446         Unreviewed, attempt to fix build failure with VC2017
3447
3448         * TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:
3449         (TEST):
3450
3451 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
3452
3453         Unreviewed, suppress warnings on GCC
3454
3455         * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
3456         (TestWebKitAPI::CheckedArithmeticTester::run):
3457
3458 2017-08-10  Dan Bernstein  <mitz@apple.com>
3459
3460         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
3461         https://bugs.webkit.org/show_bug.cgi?id=173223
3462
3463         Reviewed by Tim Horton.
3464
3465         The rebuilds were happening due to a difference in the compiler options that the IDE and
3466         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
3467         xcodebuild pass that option, too, set INDEX_ENABLE_DATA_STORE to YES and
3468         INDEX_DATA_STORE_DIR to the Index Datastore path specified in Xcode Locations preferences >
3469         Advanced when a Custom Absolute path is selected.
3470
3471         * Scripts/webkitdirs.pm:
3472         (determineBaseProductDir):
3473
3474 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
3475
3476         Run more WTF tests
3477         https://bugs.webkit.org/show_bug.cgi?id=174970
3478
3479         Reviewed by Michael Catanzaro.
3480
3481         Some of WTF tests are not executed in non Apple ports while they are generic ones.
3482         This patch adds these tests to non-Apple port TestWebKitAPI.
3483         Currently, we do not add Signals.cpp since it depends on signal functionality.
3484
3485         * TestWebKitAPI/CMakeLists.txt:
3486         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3487         * TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:
3488         (isHigherPriority):
3489         (TEST):
3490         * TestWebKitAPI/Tests/WTF/Signals.cpp: Copied from Tools/TestWebKitAPI/Tests/WTF/ThreadMessages.cpp.
3491         (TEST):
3492         * TestWebKitAPI/Tests/WTF/ThreadMessages.cpp:
3493         (TEST):
3494
3495 2017-08-10  obinna obike  <oobike@apple.com>
3496
3497         Remove obsolete link from webkit-queues status page
3498         https://bugs.webkit.org/show_bug.cgi?id=175337
3499
3500         Reviewed by Aakash Jain.
3501
3502         * QueueStatusServer/templates/recentstatus.html:
3503         Removed the link to the ews-watcher server.
3504
3505 2017-08-10  Brian Burg  <bburg@apple.com>
3506
3507         WKPreferences should conform to NSCopying
3508         https://bugs.webkit.org/show_bug.cgi?id=175303
3509         <rdar://problem/33764939>
3510
3511         Reviewed by Dan Bernstein.
3512
3513         Add unit test to make sure a WKPreference and its copy are
3514         not aliased to each other or affect each other's properties.
3515
3516         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3517         * TestWebKitAPI/Tests/WebKit2Cocoa/Copying.mm: Added.
3518         (TEST):
3519
3520 2017-08-10  Tim Horton  <timothy_horton@apple.com>
3521
3522         Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
3523         https://bugs.webkit.org/show_bug.cgi?id=175436
3524         <rdar://problem/33667497>
3525
3526         Reviewed by Simon Fraser.
3527
3528         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
3529         (TestWebKitAPI::TEST_F):