d7b9a7e4040fd37bb3b1d7bb585fd176bb969362
[WebKit-https.git] / Tools / ChangeLog
1 2017-08-30  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2
3         [GTK] install-dependencies script should install CUPS headers
4         https://bugs.webkit.org/show_bug.cgi?id=176129
5
6         Reviewed by Michael Catanzaro.
7         
8         When building GTK+ on the JHBuild, it will enable the CUPS print
9         backend if the CUPS headers are installed. Having a print backend
10         on GTK+ is needed for the print-related API tests.
11
12         * gtk/install-dependencies:
13
14 2017-08-30  Filip Pizlo  <fpizlo@apple.com>
15
16         Rename ArrayLang to WebGPU Shading Language, or WSL for short, pronounced "whistle"
17         https://bugs.webkit.org/show_bug.cgi?id=176117
18
19         Reviewed by Myles Maxfield.
20         
21         Renamed ArrayLangRI to WebGPUShadingLanguageRI.
22         
23         Renamed ALSyntaxError/ALTypeError to WSyntaxError/WTypeError.
24         
25         Renamed all references to "ArrayLang" in the code to "WSL".
26
27         * ArrayLangRI: Removed.
28         * ArrayLangRI/ALSyntaxError.js: Removed.
29         * ArrayLangRI/ALTypeError.js: Removed.
30         * ArrayLangRI/AddressSpace.js: Removed.
31         * ArrayLangRI/All.js: Removed.
32         * ArrayLangRI/ArrayRefType.js: Removed.
33         * ArrayLangRI/ArrayType.js: Removed.
34         * ArrayLangRI/Assignment.js: Removed.
35         * ArrayLangRI/Block.js: Removed.
36         * ArrayLangRI/CallAssignment.js: Removed.
37         * ArrayLangRI/CallExpression.js: Removed.
38         * ArrayLangRI/CallFunction.js: Removed.
39         * ArrayLangRI/Check.js: Removed.
40         * ArrayLangRI/Checker.js: Removed.
41         * ArrayLangRI/CommaExpression.js: Removed.
42         * ArrayLangRI/ConstexprTypeParameter.js: Removed.
43         * ArrayLangRI/EBuffer.js: Removed.
44         * ArrayLangRI/EBufferBuilder.js: Removed.
45         * ArrayLangRI/EFloat.js: Removed.
46         * ArrayLangRI/EInt.js: Removed.
47         * ArrayLangRI/EPtr.js: Removed.
48         * ArrayLangRI/EValue.js: Removed.
49         * ArrayLangRI/EvaluationCommon.js: Removed.
50         * ArrayLangRI/Evaluator.js: Removed.
51         * ArrayLangRI/Expression.js: Removed.
52         * ArrayLangRI/Field.js: Removed.
53         * ArrayLangRI/Func.js: Removed.
54         * ArrayLangRI/FuncDef.js: Removed.
55         * ArrayLangRI/FuncInstantiator.js: Removed.
56         * ArrayLangRI/FuncParameter.js: Removed.
57         * ArrayLangRI/FunctionLikeBlock.js: Removed.
58         * ArrayLangRI/Inline.js: Removed.
59         * ArrayLangRI/Inliner.js: Removed.
60         * ArrayLangRI/InstantiateImmediates.js: Removed.
61         * ArrayLangRI/IntLiteral.js: Removed.
62         * ArrayLangRI/Intrinsics.js: Removed.
63         * ArrayLangRI/Lexer.js: Removed.
64         * ArrayLangRI/LexerToken.js: Removed.
65         * ArrayLangRI/NameContext.js: Removed.
66         * ArrayLangRI/NameResolver.js: Removed.
67         * ArrayLangRI/NativeFunc.js: Removed.
68         * ArrayLangRI/NativeType.js: Removed.
69         * ArrayLangRI/NativeTypeInstance.js: Removed.
70         * ArrayLangRI/Node.js: Removed.
71         * ArrayLangRI/NullType.js: Removed.
72         * ArrayLangRI/Parse.js: Removed.
73         * ArrayLangRI/Prepare.js: Removed.
74         * ArrayLangRI/Program.js: Removed.
75         * ArrayLangRI/Protocol.js: Removed.
76         * ArrayLangRI/ProtocolDecl.js: Removed.
77         * ArrayLangRI/ProtocolRef.js: Removed.
78         * ArrayLangRI/PtrType.js: Removed.
79         * ArrayLangRI/ReferenceType.js: Removed.
80         * ArrayLangRI/ResolveNames.js: Removed.
81         * ArrayLangRI/ResolveOverloadImpl.js: Removed.
82         * ArrayLangRI/ResolveTypeDefs.js: Removed.
83         * ArrayLangRI/Return.js: Removed.
84         * ArrayLangRI/ReturnException.js: Removed.
85         * ArrayLangRI/Rewriter.js: Removed.
86         * ArrayLangRI/StandardLibrary.js: Removed.
87         * ArrayLangRI/StructType.js: Removed.
88         * ArrayLangRI/Substitution.js: Removed.
89         * ArrayLangRI/SuffixCallAssignment.js: Removed.
90         * ArrayLangRI/Test.js: Removed.
91         * ArrayLangRI/Type.js: Removed.
92         * ArrayLangRI/TypeDef.js: Removed.
93         * ArrayLangRI/TypeDefResolver.js: Removed.
94         * ArrayLangRI/TypeOrVariableRef.js: Removed.
95         * ArrayLangRI/TypeRef.js: Removed.
96         * ArrayLangRI/TypeVariable.js: Removed.
97         * ArrayLangRI/UnificationContext.js: Removed.
98         * ArrayLangRI/Value.js: Removed.
99         * ArrayLangRI/VariableDecl.js: Removed.
100         * ArrayLangRI/VariableRef.js: Removed.
101         * ArrayLangRI/VisitingSet.js: Removed.
102         * ArrayLangRI/Visitor.js: Removed.
103         * WebGPUShadingLanguageRI: Copied from Tools/ArrayLangRI.
104         * WebGPUShadingLanguageRI/ALSyntaxError.js: Removed.
105         * WebGPUShadingLanguageRI/ALTypeError.js: Removed.
106         * WebGPUShadingLanguageRI/All.js:
107         * WebGPUShadingLanguageRI/CallFunction.js:
108         (callFunctionByRef):
109         * WebGPUShadingLanguageRI/Checker.js:
110         (Checker.prototype.visitProtocolDecl.set throw):
111         * WebGPUShadingLanguageRI/Intrinsics.js:
112         (Intrinsics.prototype.add):
113         (Intrinsics):
114         * WebGPUShadingLanguageRI/Lexer.js:
115         (Lexer):
116         * WebGPUShadingLanguageRI/NameContext.js:
117         (NameContext.prototype.add):
118         * WebGPUShadingLanguageRI/NameResolver.js:
119         (NameResolver.prototype._resolveTypeArguments):
120         (NameResolver.prototype.visitTypeRef):
121         (NameResolver.prototype.visitVariableRef):
122         * WebGPUShadingLanguageRI/Parse.js:
123         * WebGPUShadingLanguageRI/StandardLibrary.js:
124         * WebGPUShadingLanguageRI/StructType.js:
125         (StructType.prototype.add):
126         (StructType.prototype.instantiate):
127         * WebGPUShadingLanguageRI/TypeDefResolver.js:
128         (TypeDefResolver.prototype.visitTypeRef):
129         (TypeDefResolver):
130         * WebGPUShadingLanguageRI/VisitingSet.js:
131         (VisitingSet.prototype.doVisit):
132         (VisitingSet):
133         * WebGPUShadingLanguageRI/WSyntaxError.js: Copied from Tools/ArrayLangRI/ALSyntaxError.js.
134         (ALSyntaxError): Deleted.
135         * WebGPUShadingLanguageRI/WTypeError.js: Copied from Tools/ArrayLangRI/ALTypeError.js.
136         (ALTypeError): Deleted.
137
138 2017-08-30  Eric Carlson  <eric.carlson@apple.com>
139
140         Add Logger observer and helper class
141         https://bugs.webkit.org/show_bug.cgi?id=176106
142
143         Reviewed by Andy Estes.
144
145         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
146         (TestWebKitAPI::LoggingTest::LoggingTest):
147         (TestWebKitAPI::LoggingTest::Logger::create):
148         (TestWebKitAPI::TEST_F):
149         (TestWebKitAPI::LogObserver::log):
150         (TestWebKitAPI::LogObserver::channel const):
151
152 2017-08-29  Filip Pizlo  <fpizlo@apple.com>
153
154         Initial reference implementation scaffolding for ArrayLang
155         https://bugs.webkit.org/show_bug.cgi?id=175925
156
157         Reviewed by Myles Maxfield.
158         
159         This introduces a very rough scaffolding for an AST walk interpreter and type checker for an
160         experimental shader language we are calling ArrayLang for now.
161         
162         The idea is to have a strong core type system that includes generics and memory-safe pointers
163         and array references. Everything has deterministic semantics right up to the limit of what is
164         portably possible.
165         
166         This language will support generics. This will be valid:
167         
168         protocol Addable { Addable operator+(Addable, Addable); }
169         T add<T:Addable>(T a, T b) { return a + b; }
170         
171         This language will support pointers and array references. This will be valid:
172         
173         thread int^ foo() { int x; return \x; }
174         
175         Each variable behaves as if it was declared "static", with one copy per type instantiation.
176         Functions cannot recurse and there is no stack.
177         
178         Currently, this just tests that the following function can be parsed, checked, and called:
179         
180         int foo(int x) { return x + 1; }
181
182         * ArrayLangRI: Added.
183         * ArrayLangRI/ALSyntaxError.js: Added.
184         (ALSyntaxError):
185         * ArrayLangRI/ALTypeError.js: Added.
186         (ALTypeError):
187         * ArrayLangRI/AddressSpace.js: Added.
188         (isAddressSpace):
189         (validateAddressSpace):
190         * ArrayLangRI/All.js: Added.
191         * ArrayLangRI/ArrayRefType.js: Added.
192         (ArrayRefType.prototype.unifyImpl):
193         (ArrayRefType.prototype.toString):
194         (ArrayRefType):
195         * ArrayLangRI/ArrayType.js: Added.
196         (ArrayType):
197         (ArrayType.prototype.get origin):
198         (ArrayType.prototype.get elementType):
199         (ArrayType.prototype.get numElements):
200         (ArrayType.prototype.get isPrimitive):
201         (ArrayType.prototype.toString):
202         (ArrayType.prototype.get size):
203         (ArrayType.prototype.unifyImpl):
204         * ArrayLangRI/Assignment.js: Added.
205         (Assignment):
206         (Assignment.prototype.get lhs):
207         (Assignment.prototype.get rhs):
208         (Assignment.prototype.toString):
209         * ArrayLangRI/Block.js: Added.
210         (Block):
211         (Block.prototype.get origin):
212         (Block.prototype.add):
213         (Block.prototype.get statements):
214         (Block.prototype.toString):
215         * ArrayLangRI/CallAssignment.js: Added.
216         (CallAssignment):
217         (CallAssignment.prototype.get name):
218         (CallAssignment.prototype.get lhs):
219         (CallAssignment.prototype.get rhs):
220         (CallAssignment.prototype.toString):
221         * ArrayLangRI/CallExpression.js: Added.
222         (CallExpression):
223         (CallExpression.prototype.get name):
224         (CallExpression.prototype.get typeArguments):
225         (CallExpression.prototype.get argumentList):
226         (CallExpression.prototype.toString):
227         * ArrayLangRI/CallFunction.js: Added.
228         (callFunctionByRef):
229         (callFunction):
230         * ArrayLangRI/Check.js: Added.
231         (check):
232         * ArrayLangRI/Checker.js: Added.
233         (Checker):
234         (Checker.prototype.visitProgram):
235         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable.prototype.visitTypeRef):
236         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable.prototype.visitVariableRef):
237         (Checker.prototype.visitProtocolDecl.NoticeTypeVariable):
238         (Checker.prototype.visitProtocolDecl.set throw):
239         * ArrayLangRI/CommaExpression.js: Added.
240         (CommaExpression):
241         (CommaExpression.prototype.get list):
242         (CommaExpression.prototype.toString):
243         * ArrayLangRI/ConstexprTypeParameter.js: Added.
244         (ConstexprTypeParameter):
245         (ConstexprTypeParameter.prototype.get name):
246         (ConstexprTypeParameter.prototype.get type):
247         (ConstexprTypeParameter.prototype.get isConstexpr):
248         (ConstexprTypeParameter.prototype.get isUnifiable):
249         (ConstexprTypeParameter.prototype.typeVariableUnify):
250         (ConstexprTypeParameter.prototype.unifyImpl):
251         (ConstexprTypeParameter.prototype.verifyAsArgument):
252         (ConstexprTypeParameter.prototype.verifyAsParameter):
253         (ConstexprTypeParameter.prototype.toString):
254         * ArrayLangRI/EBuffer.js: Added.
255         (EBuffer):
256         (EBuffer.get index):
257         * ArrayLangRI/EBufferBuilder.js: Added.
258         (EBufferBuilder):
259         (EBufferBuilder.prototype._createEPtr):
260         (EBufferBuilder.prototype.visitFuncParameter):
261         * ArrayLangRI/EFloat.js: Added.
262         (EFloat):
263         (EFloat.prototype.get value):
264         (EFloat.prototype.add):
265         (EFloat.prototype.toString):
266         * ArrayLangRI/EInt.js: Added.
267         (EInt):
268         (EInt.prototype.get value):
269         (EInt.prototype.add):
270         (EInt.prototype.toString):
271         * ArrayLangRI/EPtr.js: Added.
272         (EPtr):
273         (EPtr.box):
274         (EPtr.prototype.get buffer):
275         (EPtr.prototype.get offset):
276         (EPtr.prototype.loadValue):
277         (EPtr.prototype.copyFrom):
278         (EPtr.prototype.toString):
279         * ArrayLangRI/EValue.js: Added.
280         (EValue):
281         (EValue.prototype.get type):
282         * ArrayLangRI/EvaluationCommon.js: Added.
283         * ArrayLangRI/Evaluator.js: Added.
284         (Evaluator):
285         (Evaluator.prototype.visitFunctionBody):
286         (Evaluator.prototype.visitFunctionLikeBlock):
287         (Evaluator.prototype.visitReturn):
288         (Evaluator.prototype.visitCommaExpression):
289         (Evaluator.prototype.visitVariableRef):
290         (Evaluator.prototype.visitIntLiteral):
291         (Evaluator.prototype.visitCallExpression):
292         * ArrayLangRI/Expression.js: Added.
293         (Expression):
294         (Expression.prototype.get origin):
295         * ArrayLangRI/Field.js: Added.
296         (Field):
297         (Field.prototype.get origin):
298         (Field.prototype.get name):
299         (Field.prototype.get type):
300         (Field.prototype.toString):
301         * ArrayLangRI/Func.js: Added.
302         (Func):
303         (Func.prototype.get name):
304         (Func.prototype.get returnType):
305         (Func.prototype.get typeParameters):
306         (Func.prototype.get parameters):
307         (Func.prototype.get parameterTypes):
308         (Func.prototype.get kind):
309         (Func.prototype.toString):
310         * ArrayLangRI/FuncDef.js: Added.
311         (FuncDef):
312         (FuncDef.prototype.get origin):
313         (FuncDef.prototype.toString):
314         * ArrayLangRI/FuncInstantiator.js: Added.
315         (FuncInstantiator):
316         (FuncInstantiator.prototype.getUnique):
317         * ArrayLangRI/FuncParameter.js: Added.
318         (FuncParameter):
319         (FuncParameter.prototype.get origin):
320         (FuncParameter.prototype.get name):
321         (FuncParameter.prototype.get type):
322         (FuncParameter.prototype.toString):
323         * ArrayLangRI/FuncSignature.js: Added.
324         * ArrayLangRI/FunctionLikeBlock.js: Added.
325         (FunctionLikeBlock):
326         (FunctionLikeBlock.prototype.get origin):
327         (FunctionLikeBlock.prototype.get argumentList):
328         (FunctionLikeBlock.prototype.get parameters):
329         (FunctionLikeBlock.prototype.get body):
330         (FunctionLikeBlock.prototype.toString):
331         * ArrayLangRI/Inline.js: Added.
332         (inline):
333         (_inlineFunction):
334         (resolveInlinedFunction):
335         * ArrayLangRI/Inliner.js: Added.
336         (Inliner):
337         (Inliner.prototype.visitCallExpression):
338         * ArrayLangRI/InstantiateImmediates.js: Added.
339         (InstantiateImmediates.prototype.visitTypeRef):
340         (InstantiateImmediates.prototype.visitReferenceType):
341         (InstantiateImmediates.prototype.visitStructType):
342         (InstantiateImmediates.prototype.visitNativeType):
343         (InstantiateImmediates.prototype.visitTypeVariable):
344         (InstantiateImmediates):
345         * ArrayLangRI/IntLiteral.js: Added.
346         (IntLiteral):
347         (IntLiteral.prototype.get value):
348         (IntLiteral.prototype.get isConstexpr):
349         (IntLiteral.prototype.toString):
350         * ArrayLangRI/Intrinsics.js: Added.
351         (Intrinsics):
352         (Intrinsics.prototype.add):
353         * ArrayLangRI/Lexer.js: Added.
354         (Lexer):
355         (Lexer.prototype.get lineNumber):
356         (Lexer.prototype.get origin):
357         (Lexer.prototype.get originString):
358         (Lexer.prototype.lineNumberForIndex):
359         (Lexer.prototype.get state):
360         (Lexer.prototype.set state):
361         (Lexer.prototype.next):
362         * ArrayLangRI/LexerToken.js: Added.
363         (LexerToken):
364         (LexerToken.prototype.get kind):
365         (LexerToken.prototype.get text):
366         (LexerToken.prototype.get origin):
367         (LexerToken.prototype.get index):
368         (LexerToken.prototype.get lineNumber):
369         (LexerToken.prototype.get originString):
370         (LexerToken.prototype.toString):
371         * ArrayLangRI/NameContext.js: Added.
372         (isWildcardKind):
373         (NameContext):
374         (NameContext.prototype.mapFor):
375         (NameContext.prototype.add):
376         (NameContext.get currentStatement):
377         (NameContext.get intrinsics):
378         (NameContext.set program):
379         (NameContext.get program):
380         (NameContext.prototype.get let):
381         * ArrayLangRI/NameResolver.js: Added.
382         (NameResolver):
383         (NameResolver.prototype.visitProgram):
384         (NameResolver.prototype._visitTypeParametersAndBuildNameContext):
385         (NameResolver.prototype.visitFunc):
386         (NameResolver.prototype.visitFuncDef):
387         (NameResolver.prototype.visitBlock):
388         (NameResolver.prototype.visitProtocolDecl):
389         (NameResolver.prototype.visitTypeDef):
390         (NameResolver.prototype.visitStructType):
391         (NameResolver.prototype._resolveTypeArguments):
392         (NameResolver.prototype.visitTypeRef):
393         (NameResolver.prototype.visitReferenceType):
394         (NameResolver.prototype.visitVariableRef):
395         (NameResolver.prototype.visitReturn):
396         (NameResolver.prototype.visitCallExpression):
397         * ArrayLangRI/NativeFunc.js: Added.
398         (NativeFunc):
399         (NativeFunc.prototype.get origin):
400         (NativeFunc.prototype.get isNative):
401         (NativeFunc.prototype.toString):
402         * ArrayLangRI/NativeType.js: Added.
403         (NativeType):
404         (NativeType.prototype.get origin):
405         (NativeType.prototype.get name):
406         (NativeType.prototype.get isPrimitive):
407         (NativeType.prototype.get typeParameters):
408         (NativeType.prototype.get isNative):
409         (NativeType.prototype.instantiate):
410         (NativeType.prototype.toString):
411         * ArrayLangRI/NativeTypeInstance.js: Added.
412         (NativeTypeInstance):
413         (NativeTypeInstance.prototype.get type):
414         (NativeTypeInstance.prototype.get typeArguments):
415         (NativeTypeInstance.prototype.get isPrimitive):
416         (NativeTypeInstance.prototype.get isNative):
417         (NativeTypeInstance.prototype.unifyImpl):
418         (NativeTypeInstance.prototype.toString):
419         * ArrayLangRI/Node.js: Added.
420         (Node.prototype.visit):
421         (Node.unify):
422         (Node.prototype.unifyImpl):
423         (Node.prototype.typeVariableUnify):
424         (Node.prototype.get unifyNode):
425         (Node.prototype.get isUnifiable):
426         (Node.prototype.get isNative):
427         (Node.prototype.equals):
428         (Node.prototype.substitute):
429         (Node.prototype.substituteToUnification):
430         (Node):
431         * ArrayLangRI/NullType.js: Added.
432         (NullType):
433         * ArrayLangRI/Parse.js: Added.
434         (genericConsume):
435         (consume):
436         (genericTest):
437         (test):
438         (tryConsumeKind):
439         (parseProtocolRef):
440         (consumeEndOfTypeArgs):
441         (parseTypeParameters):
442         (parseTerm):
443         (parseConstexpr):
444         (parseTypeArguments):
445         (parseType.getAddressSpace):
446         (parseType):
447         (parseTypeDef):
448         (parseNative):
449         (genericParseLeft):
450         (parseLeftOperatorCall):
451         (parsePossibleSuffix):
452         (parsePossiblePrefix):
453         (parsePossibleProduct):
454         (parsePossibleSum):
455         (parsePossibleShift):
456         (parsePossibleRelationalInequality):
457         (parsePossibleRelationalEquality):
458         (parsePossibleBitwiseXor):
459         (parsePossibleBitwiseOr):
460         (parseLeftLogicalExpression):
461         (parsePossibleLogicalOr):
462         (parsePossibleTernaryConditional):
463         (parsePossibleAssignment):
464         (parseAssignment):
465         (parseEffectfulExpression):
466         (genericParseCommaExpression):
467         (parseCommaExpression):
468         (parseExpression):
469         (parseEffectfulStatement):
470         (parseReturn):
471         (parseVariableDecls):
472         (parseStatement):
473         (parseBlock):
474         (parseParameter):
475         (parseFuncName):
476         (parseFuncDef):
477         (parse):
478         * ArrayLangRI/Prepare.js: Added.
479         (prepare):
480         * ArrayLangRI/Program.js: Added.
481         (Program):
482         (Program.prototype.get topLevelStatements):
483         (Program.prototype.get functions):
484         (Program.prototype.get types):
485         (Program.prototype.get funcInstantiator):
486         (Program.prototype.add):
487         (Program.prototype.resolveFuncOverload):
488         (Program.prototype.get nameContext):
489         (Program.prototype.toString):
490         * ArrayLangRI/Protocol.js: Added.
491         (Protocol):
492         (Protocol.prototype.get origin):
493         (Protocol.prototype.get name):
494         (Protocol.prototype.get kind):
495         (Protocol.prototype.toString):
496         * ArrayLangRI/ProtocolDecl.js: Added.
497         (ProtocolDecl):
498         (ProtocolDecl.prototype.addSignature):
499         (ProtocolDecl.prototype.get signatures):
500         (ProtocolDecl.prototype.signaturesByName):
501         (ProtocolDecl.prototype.get typeVariable):
502         (ProtocolDecl.prototype.signaturesByNameWithTypeVariable):
503         (ProtocolDecl.prototype.inherits):
504         (ProtocolDecl.prototype.hasHeir):
505         (ProtocolDecl.prototype.toString):
506         * ArrayLangRI/ProtocolRef.js: Added.
507         (ProtocolRef):
508         (ProtocolRef.prototype.inherits):
509         (ProtocolRef.prototype.hasHeir):
510         * ArrayLangRI/PtrType.js: Added.
511         (PtrType.prototype.unifyImpl):
512         (PtrType.prototype.toString):
513         (PtrType):
514         * ArrayLangRI/ReferenceType.js: Added.
515         (ReferenceType):
516         (ReferenceType.prototype.get origin):
517         (ReferenceType.prototype.get addressSpace):
518         (ReferenceType.prototype.get elementType):
519         (ReferenceType.prototype.get isPrimitive):
520         (ReferenceType.prototype.get size):
521         * ArrayLangRI/ResolveNames.js: Added.
522         (resolveNames):
523         * ArrayLangRI/ResolveOverloadImpl.js: Added.
524         (resolveOverloadImpl):
525         * ArrayLangRI/ResolveTypeDefs.js: Added.
526         (resolveTypeDefs):
527         * ArrayLangRI/Return.js: Added.
528         (Return):
529         (Return.prototype.get origin):
530         (Return.prototype.get value):
531         (Return.prototype.toString):
532         * ArrayLangRI/ReturnException.js: Added.
533         (ReturnException):
534         (ReturnException.prototype.get value):
535         * ArrayLangRI/Rewriter.js: Added.
536         (Rewriter):
537         (Rewriter.prototype._map):
538         (Rewriter.prototype._getMapping):
539         (Rewriter.prototype.visitFunc):
540         (Rewriter.prototype.visitFuncParameter):
541         (Rewriter.prototype.visitBlock):
542         (Rewriter.prototype.visitCommaExpression):
543         (Rewriter.prototype.visitProtocolRef):
544         (Rewriter.prototype.visitTypeRef):
545         (Rewriter.prototype.visitTypeVariable):
546         (Rewriter.prototype.visitConstexprTypeParameter):
547         (Rewriter.prototype.visitField):
548         (Rewriter.prototype.visitReferenceType):
549         (Rewriter.visitPtrType):
550         (Rewriter.prototype.visitArrayRefType):
551         (Rewriter.prototype.visitArrayType):
552         (Rewriter.prototype.visitAssignment):
553         (Rewriter.prototype.visitVariableRef):
554         (Rewriter.prototype.visitReturn):
555         (Rewriter.prototype.visitIntLiteral):
556         (Rewriter.prototype.visitCallExpression):
557         (Rewriter.prototype.visitFunctionLikeBlock):
558         * ArrayLangRI/StandardLibrary.js: Added.
559         * ArrayLangRI/StructType.js: Added.
560         (StructType):
561         (StructType.prototype.add):
562         (StructType.prototype.get name):
563         (StructType.prototype.get typeParameters):
564         (StructType.prototype.get fieldNames):
565         (StructType.prototype.fieldByName):
566         (StructType.prototype.get fields):
567         (StructType.prototype.get fieldMap):
568         (StructType.prototype.get isPrimitive):
569         (StructType.prototype.instantiate):
570         (StructType.prototype.toString):
571         * ArrayLangRI/Substitution.js: Added.
572         (Substitution):
573         (Substitution.mapping):
574         (Substitution.prototype.visitTypeRef):
575         (Substitution.prototype.visitVariableRef):
576         * ArrayLangRI/SuffixCallAssignment.js: Added.
577         (SuffixCallAssignment):
578         (SuffixCallAssignment.prototype.get name):
579         (SuffixCallAssignment.prototype.get lhs):
580         (SuffixCallAssignment.prototype.toString):
581         * ArrayLangRI/Test.js: Added.
582         (load):
583         * ArrayLangRI/Type.js: Added.
584         (Type.prototype.get typeParameters):
585         (Type.prototype.get kind):
586         (Type.prototype.inherits):
587         (Type.prototype.get instantiatedType):
588         (Type):
589         * ArrayLangRI/TypeDef.js: Added.
590         (TypeDef):
591         (TypeDef.prototype.get origin):
592         (TypeDef.prototype.get name):
593         (TypeDef.prototype.get typeParameters):
594         (TypeDef.prototype.get type):
595         * ArrayLangRI/TypeDefResolver.js: Added.
596         (TypeDefResolver):
597         (TypeDefResolver.prototype.visitTypeRef):
598         * ArrayLangRI/TypeOrVariableRef.js: Added.
599         (TypeOrVariableRef):
600         (TypeOrVariableRef.prototype.get origin):
601         (TypeOrVariableRef.prototype.get name):
602         (TypeOrVariableRef.prototype.toString):
603         * ArrayLangRI/TypeRef.js: Added.
604         (TypeRef):
605         (TypeRef.wrap):
606         (TypeRef.prototype.get origin):
607         (TypeRef.prototype.get name):
608         (TypeRef.prototype.get typeArguments):
609         (TypeRef.prototype.get isPrimitive):
610         (TypeRef.prototype.get instantiatedType):
611         (TypeRef.prototype.get unifyNode):
612         (TypeRef.prototype.populateDefaultValue):
613         (TypeRef.prototype.get size):
614         (TypeRef.prototype.setTypeAndArguments):
615         (TypeRef.prototype.unifyImpl):
616         (TypeRef.prototype.toString):
617         * ArrayLangRI/TypeVariable.js: Added.
618         (TypeVariable):
619         (TypeVariable.prototype.get name):
620         (TypeVariable.prototype.get protocol):
621         (TypeVariable.prototype.get isPrimitive):
622         (TypeVariable.prototype.get isUnifiable):
623         (TypeVariable.prototype.inherits):
624         (TypeVariable.prototype.typeVariableUnify):
625         (TypeVariable.prototype.unifyImpl):
626         (TypeVariable.prototype.verifyAsArgument):
627         (TypeVariable.prototype.verifyAsParameter):
628         (TypeVariable.prototype.toString):
629         * ArrayLangRI/UnificationContext.js: Added.
630         (UnificationContext):
631         (UnificationContext.prototype.union):
632         (UnificationContext.prototype.find):
633         (UnificationContext.prototype.get nodes):
634         (UnificationContext.prototype.verify):
635         (UnificationContext.prototype.isUnunified):
636         * ArrayLangRI/Value.js: Added.
637         (Value.prototype.get kind):
638         (Value.prototype.get isConstexpr):
639         (Value):
640         * ArrayLangRI/VariableDecl.js: Added.
641         (VariableDecl):
642         (VariableDecl.prototype.get origin):
643         (VariableDecl.prototype.get name):
644         (VariableDecl.prototype.get type):
645         (VariableDecl.prototype.get initializer):
646         (VariableDecl.prototype.toString):
647         * ArrayLangRI/VariableRef.js: Added.
648         (VariableRef):
649         (VariableRef.prototype.get name):
650         (VariableRef.prototype.get isConstexpr):
651         (VariableRef.prototype.get unifyNode):
652         (VariableRef.prototype.toString):
653         * ArrayLangRI/VisitingSet.js: Added.
654         (VisitingSet):
655         (VisitingSet.prototype.doVisit):
656         * ArrayLangRI/Visitor.js: Added.
657         (Visitor.prototype.visitProgram):
658         (Visitor.prototype.visitFunc):
659         (Visitor.prototype.visitFuncParameter):
660         (Visitor.prototype.visitFuncDef):
661         (Visitor.prototype.visitNativeFunc):
662         (Visitor.prototype.visitBlock):
663         (Visitor.prototype.visitCommaExpression):
664         (Visitor.prototype.visitProtocolRef):
665         (Visitor.prototype.visitProtocolDecl):
666         (Visitor.prototype.visitTypeRef):
667         (Visitor.prototype.visitNativeType):
668         (Visitor.prototype.visitTypeDef):
669         (Visitor.prototype.visitStructType):
670         (Visitor.prototype.visitTypeVariable):
671         (Visitor.prototype.visitConstexprTypeParameter):
672         (Visitor.prototype.visitField):
673         (Visitor.prototype.visitElementalType):
674         (Visitor.prototype.visitPtrType):
675         (Visitor.prototype.visitArrayRefType):
676         (Visitor.prototype.visitArrayType):
677         (Visitor.prototype.visitAssignment):
678         (Visitor.prototype.visitVariableRef):
679         (Visitor.prototype.visitReturn):
680         (Visitor.prototype.visitIntLiteral):
681         (Visitor.prototype.visitCallExpression):
682         (Visitor.prototype.visitFunctionLikeBlock):
683         (Visitor):
684
685 2017-08-30  Stephan Szabo  <stephan.szabo@sony.com>
686
687         [Win][JSCOnly] Support running JSC tests for win-cairo from windows command prompt
688         https://bugs.webkit.org/show_bug.cgi?id=174985
689
690         Reviewed by Keith Miller.
691
692         * Scripts/run-javascriptcore-tests:
693         * Scripts/run-jsc-stress-tests:
694         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
695         * Scripts/webkitruby/jsc-stress-test-writer-ruby.rb: Added.
696
697 2017-08-30  Adrian Perez de Castro  <aperez@igalia.com>
698
699         [GTK] Do not use autogen whenever possible in JHBuild modules
700         https://bugs.webkit.org/show_bug.cgi?id=176098
701
702         Reviewed by Carlos Alberto Lopez Perez.
703
704         * gtk/jhbuild.modules: Added autogen-sh="configure" attributes for many Autootools modules.
705
706 2017-08-30  Tomas Popela  <tpopela@redhat.com>
707
708         [GTK] Avoid building fontconfig documentation in jhbuild
709         https://bugs.webkit.org/show_bug.cgi?id=176097
710
711         Reviewed by Carlos Alberto Lopez Perez.
712
713         Disable building fontconfig documentation in jhbuild as it needs the
714         docbook-utils-pdf package installed which depends on quite a few
715         packages (on Fedora it's 226 packages (mostly textlive) with installed
716         size of 274 MB). The documentation is not needed at all in jhbuild, so
717         disable it to save some bandwidth and disc space.
718
719         * gtk/install-dependencies: Pass --disable-docs to fontconfig.
720         * gtk/jhbuild.modules: Don't install docbook-utils-pdf on Fedora.
721
722 2017-08-30  Tomas Popela  <tpopela@redhat.com>
723
724         Unreviewed, remove trailing space
725
726         * gtk/jhbuildrc:
727
728 2017-08-29  Carlos Garcia Campos  <cgarcia@igalia.com>
729
730         REGRESSION(r221064): [GTK] Editor not correctly working after r221064
731         https://bugs.webkit.org/show_bug.cgi?id=176052
732
733         Reviewed by Michael Catanzaro.
734
735         Run the test inside a window to ensure display updates happen.
736
737         * TestWebKitAPI/Tests/WebKitGtk/TestWebViewEditor.cpp:
738         (testWebViewEditorEditorStateTypingAttributes):
739
740 2017-08-29  Don Olmstead  <don.olmstead@sony.com>
741
742         [CMake] Use find_package for zlib
743         https://bugs.webkit.org/show_bug.cgi?id=176075
744
745         Reviewed by Alex Christensen.
746
747         * TestWebKitAPI/PlatformWin.cmake:
748
749 2017-08-29  Brent Fulgham  <bfulgham@apple.com>
750
751         ResourceLoadStatistics logic does not understand custom WebsiteData stores
752         https://bugs.webkit.org/show_bug.cgi?id=176037
753         <rdar://problem/33338238>
754
755         Reviewed by Alex Christensen.
756
757         * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
758         (TEST): Update for ResourceLoadStatistics directories.
759
760 2017-08-29  Brady Eidson  <beidson@apple.com>
761
762         Rename "potentionally trustworthy" to "potentially trustworthy"
763         https://bugs.webkit.org/show_bug.cgi?id=176081
764
765         Reviewed by Daniel Bates.
766
767         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
768         (TestWebKitAPI::TEST_F):
769
770 2017-08-29  Stephan Szabo  <stephan.szabo@sony.com>
771
772         [Win][JSCOnly] Fix call for updating wincairo-libs in build-jsc
773         https://bugs.webkit.org/show_bug.cgi?id=176080
774
775         Reviewed by Brent Fulgham.
776
777         * Scripts/build-jsc:
778
779 2017-08-29  Adrian Perez de Castro  <aperez@igalia.com>
780
781         [WPE] Avoid using autogen for JHBuild modules, trying to fix the EWS
782
783         Unreviewed build fix.
784
785         This also makes the JHBuild process faster, because there are less
786         modules which will trigger slow, ancient Perl and M4 based tooling.
787
788         * wpe/jhbuild.modules:
789
790 2017-08-29  Don Olmstead  <don.olmstead@sony.com>
791
792         [CMake] Use find_package for libxml2 and libxstl
793         https://bugs.webkit.org/show_bug.cgi?id=176042
794
795         Reviewed by Konstantin Tokarev.
796
797         * TestWebKitAPI/PlatformWin.cmake:
798
799 2017-08-29  Per Arne Vollan  <pvollan@apple.com>
800
801         [Win] A WTF test is timing out in run-api-tests.
802         https://bugs.webkit.org/show_bug.cgi?id=176056
803
804         Reviewed by Brent Fulgham.
805
806         The test SynchronizedFixedQueue.ProduceOnly relies on that putting a thread to sleep for
807         1ms will wake it up before another thread which is put to sleep for 10ms. I believe this
808         is not neccessarily true on Windows where the thread scheduling does not have millisecond
809         accuracy. Fix the test timeout by adjusting the sleep time slightly.
810  
811         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
812         (TestWebKitAPI::ToUpperConverter::startProducing):
813
814 2017-08-29  Eric Carlson  <eric.carlson@apple.com>
815
816         Unreviewed, update my watchlist filters.
817
818         * Scripts/webkitpy/common/config/watchlist:
819
820 2017-08-29  Carlos Garcia Campos  <cgarcia@igalia.com>
821
822         Unreviewed. REGRESSION(r221219): Fix unit tests using resources from WebKit directory.
823
824         The WebKit2 directory was renamed as WebKit in r221219, but neither run-gtk-tests script nor
825         Test::getResourcesDir() were updated to use the new name.
826
827         * Scripts/run-gtk-tests:
828         (TestRunner._setup_testing_environment):
829         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
830         (Test::getResourcesDir):
831
832 2017-08-28  Eric Carlson  <eric.carlson@apple.com>
833
834         Logger should use makeString instead of String::format
835         https://bugs.webkit.org/show_bug.cgi?id=176035
836
837         Reviewed by Jer Noble.
838
839         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
840         (TestWebKitAPI::TEST_F): Update test.
841
842 2017-08-28  Michael Catanzaro  <mcatanzaro@igalia.com>
843
844         [GStreamer] The glvideoflip GStreamer element isn't available. Video mirroring and rotation functionalities are thus disabled.
845         https://bugs.webkit.org/show_bug.cgi?id=175576
846
847         Reviewed by Carlos Alberto Lopez Perez.
848
849         Build graphene to enable the glvideoflip element.
850
851         * gstreamer/jhbuild.modules:
852         * gtk/jhbuild.modules:
853         * jhbuild/jhbuild-wrapper:
854         * wpe/jhbuild.modules:
855
856 2017-08-28  Ms2ger  <Ms2ger@gmail.com>
857
858         Ensure that the alert function is called in TestWebExtensions.
859         https://bugs.webkit.org/show_bug.cgi?id=175880
860
861         Reviewed by Carlos Garcia Campos.
862
863         The test relied on a bug in the HTMLDocument JavaScript bindings: when calling
864         document.open() with three arguments, it would call any function set as the
865         "open" property on the window object, rather than just the real Window::open()
866         method. This bug was fixed by the removal of custom bindings for HTMLDocument
867         in r218437. As a result, the test no longer called alert(), which caused it to
868         fail.
869
870         Instead, call the window.open() function directly.
871
872         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
873         (testWebExtensionIsolatedWorld):
874
875 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
876
877         Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.
878         https://bugs.webkit.org/show_bug.cgi?id=170955
879         <rdar://problem/31697653>
880
881         Reviewed by Ryosuke Niwa.
882
883         Replace UIScriptController.insertText with UIScriptController.replaceTextAtRange, and implement
884         replaceTextAtRange in WebKit1. See corresponding layout tests (input-event-insert-replacement.html and
885         before-input-prevent-insert-replacement.html) for more detail.
886
887         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
888         * DumpRenderTree/mac/AppKitTestSPI.h: Added.
889
890         Introduce an SPI header for private AppKit headers needed to support DumpRenderTree.
891
892         * DumpRenderTree/mac/UIScriptControllerMac.mm:
893         (WTR::UIScriptController::replaceTextAtRange):
894         (WTR::UIScriptController::insertText): Deleted.
895         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
896         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
897         (WTR::UIScriptController::replaceTextAtRange):
898         (WTR::UIScriptController::insertText): Deleted.
899         * TestRunnerShared/UIScriptContext/UIScriptController.h:
900         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
901         (WTR::UIScriptController::replaceTextAtRange):
902         (WTR::UIScriptController::insertText): Deleted.
903
904         Replace UIScriptController.insertText with UIScriptController.replaceTextAtRange, which better describes the
905         behavior of this function.
906
907 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
908
909         [iOS WK2] Web process crashes after changing selection to the end of the document when speaking a selection
910         https://bugs.webkit.org/show_bug.cgi?id=176011
911         <rdar://problem/32614095>
912
913         Reviewed by Ryosuke Niwa.
914
915         Introduces AccessibilityTests, and adds three new tests that traverse selection-rect-finding codepaths when
916         speaking selected content. See WebKit and WebCore ChangeLogs for more detail.
917
918         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
919         * TestWebKitAPI/Tests/ios/AccessibilityTestsIOS.mm: Added.
920         (-[WKWebView rectsAtSelectionOffset:withText:]):
921         (checkCGRectValueAtIndex):
922         (TestWebKitAPI::TEST):
923
924 2017-08-25  Eric Carlson  <eric.carlson@apple.com>
925
926         Add Logger::logAlways
927         https://bugs.webkit.org/show_bug.cgi?id=175996
928
929         Reviewed by Jer Noble.
930
931         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
932         (TestWebKitAPI::TEST_F):
933
934 2017-08-25  Alex Christensen  <achristensen@webkit.org>
935
936         Disable saveDataToFile API test.
937         https://bugs.webkit.org/show_bug.cgi?id=176000
938
939         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
940         The test was only working on High Sierra.  It needs investigation on older operating systems.
941
942 2017-08-25  Alex Christensen  <achristensen@webkit.org>
943
944         Rename TestWebKitAPI/Tests/WebKit2* to WebKit* following Source directory rename.
945
946         Rubber-stamped by Brady Eidson.
947
948         * TestWebKitAPI/PlatformGTK.cmake:
949         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
950         * TestWebKitAPI/Tests/WebKit2Cocoa: Removed.
951         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLs.mm: Removed.
952         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLsPlugin.mm: Removed.
953         * TestWebKitAPI/Tests/WebKit2Cocoa/AdditionalReadAccessAllowedURLsProtocol.h: Removed.
954         * TestWebKitAPI/Tests/WebKit2Cocoa/AllAhem.svg: Removed.
955         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Removed.
956         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm: Removed.
957         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db: Removed.
958         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db-shm: Removed.
959         * TestWebKitAPI/Tests/WebKit2Cocoa/ApplicationCache.db-wal: Removed.
960         * TestWebKitAPI/Tests/WebKit2Cocoa/AutoLayoutIntegration.mm: Removed.
961         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm: Removed.
962         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm: Removed.
963         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Removed.
964         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleParameters.mm: Removed.
965         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleParametersPlugIn.mm: Removed.
966         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandle.mm: Removed.
967         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandlePlugIn.mm: Removed.
968         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandleProtocol.h: Removed.
969         * TestWebKitAPI/Tests/WebKit2Cocoa/CancelFontSubresource.mm: Removed.
970         * TestWebKitAPI/Tests/WebKit2Cocoa/CancelFontSubresourcePlugIn.mm: Removed.
971         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm: Removed.
972         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm: Removed.
973         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.h: Removed.
974         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.html: Removed.
975         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: Removed.
976         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm: Removed.
977         * TestWebKitAPI/Tests/WebKit2Cocoa/CookieAcceptPolicy.mm: Removed.
978         * TestWebKitAPI/Tests/WebKit2Cocoa/CookieMessage.html: Removed.
979         * TestWebKitAPI/Tests/WebKit2Cocoa/Copying.mm: Removed.
980         * TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm: Removed.
981         * TestWebKitAPI/Tests/WebKit2Cocoa/DecidePolicyForNavigationAction.mm: Removed.
982         * TestWebKitAPI/Tests/WebKit2Cocoa/DoAfterNextPresentationUpdateAfterCrash.mm: Removed.
983         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm: Removed.
984         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestBlobURL.html: Removed.
985         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURL.html: Removed.
986         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURL2.html: Removed.
987         * TestWebKitAPI/Tests/WebKit2Cocoa/DownloadRequestOriginalURLFrame.html: Removed.
988         * TestWebKitAPI/Tests/WebKit2Cocoa/DuplicateCompletionHandlerCalls.mm: Removed.
989         * TestWebKitAPI/Tests/WebKit2Cocoa/EditorStateTests.mm: Removed.
990         * TestWebKitAPI/Tests/WebKit2Cocoa/EmptyGrandfatheredResourceLoadStatistics.plist: Removed.
991         * TestWebKitAPI/Tests/WebKit2Cocoa/FindInPage.mm: Removed.
992         * TestWebKitAPI/Tests/WebKit2Cocoa/FixedLayoutSize.mm: Removed.
993         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.html: Removed.
994         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm: Removed.
995         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.html: Removed.
996         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.mm: Removed.
997         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.html: Removed.
998         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm: Removed.
999         * TestWebKitAPI/Tests/WebKit2Cocoa/Geolocation.mm: Removed.
1000         * TestWebKitAPI/Tests/WebKit2Cocoa/GeolocationGetCurrentPositionResult.html: Removed.
1001         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.html: Removed.
1002         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm: Removed.
1003         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3: Removed.
1004         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3-shm: Removed.
1005         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.sqlite3-wal: Removed.
1006         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.html: Removed.
1007         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm: Removed.
1008         * TestWebKitAPI/Tests/WebKit2Cocoa/IconLoadingDelegate.mm: Removed.
1009         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.blob: Removed.
1010         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.sqlite3: Removed.
1011         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill-1.html: Removed.
1012         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm: Removed.
1013         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-1.html: Removed.
1014         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-2.html: Removed.
1015         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess-3.html: Removed.
1016         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm: Removed.
1017         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-1.html: Removed.
1018         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-2.html: Removed.
1019         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm: Removed.
1020         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.mm: Removed.
1021         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3: Removed.
1022         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-shm: Removed.
1023         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal: Removed.
1024         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityRead.html: Removed.
1025         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityWrite.html: Removed.
1026         * TestWebKitAPI/Tests/WebKit2Cocoa/InitialWarmedProcessUsed.mm: Removed.
1027         * TestWebKitAPI/Tests/WebKit2Cocoa/InteractionDeadlockAfterCrash.mm: Removed.
1028         * TestWebKitAPI/Tests/WebKit2Cocoa/LineBreaking.html: Removed.
1029         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadAlternateHTMLString.mm: Removed.
1030         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Removed.
1031         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm: Removed.
1032         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.html: Removed.
1033         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm: Removed.
1034         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.html: Removed.
1035         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.localstorage: Removed.
1036         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.localstorage-shm: Removed.
1037         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.mm: Removed.
1038         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkEnabled.html: Removed.
1039         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkTest.mm: Removed.
1040         * TestWebKitAPI/Tests/WebKit2Cocoa/ModalAlerts.mm: Removed.
1041         * TestWebKitAPI/Tests/WebKit2Cocoa/NSFileManagerExtras.mm: Removed.
1042         * TestWebKitAPI/Tests/WebKit2Cocoa/Navigation.mm: Removed.
1043         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm: Removed.
1044         * TestWebKitAPI/Tests/WebKit2Cocoa/ObservedRenderingProgressEventsAfterCrash.mm: Removed.
1045         * TestWebKitAPI/Tests/WebKit2Cocoa/OpenAndCloseWindow.mm: Removed.
1046         * TestWebKitAPI/Tests/WebKit2Cocoa/OverrideContentSecurityPolicy.mm: Removed.
1047         * TestWebKitAPI/Tests/WebKit2Cocoa/PictureInPictureDelegate.html: Removed.
1048         * TestWebKitAPI/Tests/WebKit2Cocoa/PictureInPictureDelegate.mm: Removed.
1049         * TestWebKitAPI/Tests/WebKit2Cocoa/PluginLoadClientPolicies.mm: Removed.
1050         * TestWebKitAPI/Tests/WebKit2Cocoa/Preferences.mm: Removed.
1051         * TestWebKitAPI/Tests/WebKit2Cocoa/PrepareForMoveToWindow.mm: Removed.
1052         * TestWebKitAPI/Tests/WebKit2Cocoa/ProvisionalURLNotChange.mm: Removed.
1053         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm: Removed.
1054         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.h: Removed.
1055         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.mm: Removed.
1056         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistryPlugIn.mm: Removed.
1057         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptions.mm: Removed.
1058         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsPlugIn.mm: Removed.
1059         * TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsProtocol.h: Removed.
1060         * TestWebKitAPI/Tests/WebKit2Cocoa/RequiresUserActionForPlayback.mm: Removed.
1061         * TestWebKitAPI/Tests/WebKit2Cocoa/ResourceLoadStatistics.mm: Removed.
1062         * TestWebKitAPI/Tests/WebKit2Cocoa/RunOpenPanel.mm: Removed.
1063         * TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm: Removed.
1064         * TestWebKitAPI/Tests/WebKit2Cocoa/ShrinkToFit.mm: Removed.
1065         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm: Removed.
1066         * TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm: Removed.
1067         * TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobToBeDeleted.html: Removed.
1068         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Removed.
1069         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm: Removed.
1070         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorld.mm: Removed.
1071         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorldPlugIn.mm: Removed.
1072         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentWorldProtocol.h: Removed.
1073         * TestWebKitAPI/Tests/WebKit2Cocoa/UserInitiatedActionInNavigationAction.mm: Removed.
1074         * TestWebKitAPI/Tests/WebKit2Cocoa/UserMediaDisabled.mm: Removed.
1075         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm: Removed.
1076         * TestWebKitAPI/Tests/WebKit2Cocoa/VisibleContentRect.mm: Removed.
1077         * TestWebKitAPI/Tests/WebKit2Cocoa/WKContentExtensionStore.mm: Removed.
1078         * TestWebKitAPI/Tests/WebKit2Cocoa/WKContentViewEditingActions.mm: Removed.
1079         * TestWebKitAPI/Tests/WebKit2Cocoa/WKHTTPCookieStore.mm: Removed.
1080         * TestWebKitAPI/Tests/WebKit2Cocoa/WKNSNumber.mm: Removed.
1081         * TestWebKitAPI/Tests/WebKit2Cocoa/WKObject.mm: Removed.
1082         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFView.mm: Removed.
1083         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm: Removed.
1084         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewStablePresentationUpdateCallback.mm: Removed.
1085         * TestWebKitAPI/Tests/WebKit2Cocoa/WKRequestActivatedElementInfo.mm: Removed.
1086         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm: Removed.
1087         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-leaks.mm: Removed.
1088         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm: Removed.
1089         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDefaultNavigationDelegate.mm: Removed.
1090         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDiagnosticLogging.mm: Removed.
1091         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDoesNotLogDuringInitialization.mm: Removed.
1092         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm: Removed.
1093         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewGetContents.mm: Removed.
1094         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewSnapshot.mm: Removed.
1095         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewTextInput.mm: Removed.
1096         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup-1.html: Removed.
1097         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup-2.html: Removed.
1098         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm: Removed.
1099         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.html: Removed.
1100         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.mm: Removed.
1101         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm: Removed.
1102         * TestWebKitAPI/Tests/WebKit2Cocoa/_WKUserContentExtensionStore.mm: Removed.
1103         * TestWebKitAPI/Tests/WebKit2Cocoa/apple.gif: Removed.
1104         * TestWebKitAPI/Tests/WebKit2Cocoa/attachment-element.html: Removed.
1105         * TestWebKitAPI/Tests/WebKit2Cocoa/autofocus-contenteditable.html: Removed.
1106         * TestWebKitAPI/Tests/WebKit2Cocoa/autofocused-text-input.html: Removed.
1107         * TestWebKitAPI/Tests/WebKit2Cocoa/autoplaying-video-with-audio.html: Removed.
1108         * TestWebKitAPI/Tests/WebKit2Cocoa/background-image-link-and-input.html: Removed.
1109         * TestWebKitAPI/Tests/WebKit2Cocoa/blinking-div.html: Removed.
1110         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-click.html: Removed.
1111         * TestWebKitAPI/Tests/WebKit2Cocoa/change-video-source-on-end.html: Removed.
1112         * TestWebKitAPI/Tests/WebKit2Cocoa/compressed-files.zip: Removed.
1113         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-target.html: Removed.
1114         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-and-textarea.html: Removed.
1115         * TestWebKitAPI/Tests/WebKit2Cocoa/contenteditable-in-iframe.html: Removed.
1116         * TestWebKitAPI/Tests/WebKit2Cocoa/disableGetUserMedia.html: Removed.
1117         * TestWebKitAPI/Tests/WebKit2Cocoa/div-and-large-image.html: Removed.
1118         * TestWebKitAPI/Tests/WebKit2Cocoa/double-click-does-not-select-trailing-space.html: Removed.
1119         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-change-selection-offscreen.html: Removed.
1120         * TestWebKitAPI/Tests/WebKit2Cocoa/dragstart-clear-selection.html: Removed.
1121         * TestWebKitAPI/Tests/WebKit2Cocoa/duplicate-completion-handler-calls.html: Removed.
1122         * TestWebKitAPI/Tests/WebKit2Cocoa/editable-body.html: Removed.
1123         * TestWebKitAPI/Tests/WebKit2Cocoa/editor-state-test-harness.html: Removed.
1124         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous-video-with-sound.html: Removed.
1125         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous.svg: Removed.
1126         * TestWebKitAPI/Tests/WebKit2Cocoa/file-uploading.html: Removed.
1127         * TestWebKitAPI/Tests/WebKit2Cocoa/focus-inputs.html: Removed.
1128         * TestWebKitAPI/Tests/WebKit2Cocoa/full-size-autoplaying-video-with-audio.html: Removed.
1129         * TestWebKitAPI/Tests/WebKit2Cocoa/gif-and-file-input.html: Removed.
1130         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-contenteditable.html: Removed.
1131         * TestWebKitAPI/Tests/WebKit2Cocoa/image-and-textarea.html: Removed.
1132         * TestWebKitAPI/Tests/WebKit2Cocoa/image-in-link-and-input.html: Removed.
1133         * TestWebKitAPI/Tests/WebKit2Cocoa/image-map.html: Removed.
1134         * TestWebKitAPI/Tests/WebKit2Cocoa/input-field-in-scrollable-document.html: Removed.
1135         * TestWebKitAPI/Tests/WebKit2Cocoa/large-input-field-focus-onload.html: Removed.
1136         * TestWebKitAPI/Tests/WebKit2Cocoa/large-red-square.png: Removed.
1137         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-hides-controls-after-seek-to-end.html: Removed.
1138         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-mutes-onplaying.html: Removed.
1139         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-offscreen.html: Removed.
1140         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-playing-scroll-away.html: Removed.
1141         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-after-ending.html: Removed.
1142         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-seek-to-beginning-and-play-after-ending.html: Removed.
1143         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html: Removed.
1144         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.html: Removed.
1145         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-with-audio.mp4: Removed.
1146         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-without-audio.html: Removed.
1147         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-click-to-pause.html: Removed.
1148         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-autoplaying-scroll-to-video.html: Removed.
1149         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-paused-video-hides-controls.html: Removed.
1150         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-muted-video-hides-controls.html: Removed.
1151         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-playing-video-keeps-controls.html: Removed.
1152         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html: Removed.
1153         * TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio.html: Removed.
1154         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-input.html: Removed.
1155         * TestWebKitAPI/Tests/WebKit2Cocoa/link-and-target-div.html: Removed.
1156         * TestWebKitAPI/Tests/WebKit2Cocoa/offscreen-iframe-of-media-document.html: Removed.
1157         * TestWebKitAPI/Tests/WebKit2Cocoa/open-multiple-external-url.html: Removed.
1158         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp-iframe.html: Removed.
1159         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html: Removed.
1160         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp-iframe.html: Removed.
1161         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp.html: Removed.
1162         * TestWebKitAPI/Tests/WebKit2Cocoa/password-protected.pages: Removed.
1163         * TestWebKitAPI/Tests/WebKit2Cocoa/play-audio-on-click.html: Removed.
1164         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-operation.html: Removed.
1165         * TestWebKitAPI/Tests/WebKit2Cocoa/prevent-start.html: Removed.
1166         * TestWebKitAPI/Tests/WebKit2Cocoa/rendered-image-excluding-overflow.html: Removed.
1167         * TestWebKitAPI/Tests/WebKit2Cocoa/rich-and-plain-text.html: Removed.
1168         * TestWebKitAPI/Tests/WebKit2Cocoa/silence-long.m4a: Removed.
1169         * TestWebKitAPI/Tests/WebKit2Cocoa/skinny-autoplaying-video-with-audio.html: Removed.
1170         * TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html: Removed.
1171         * TestWebKitAPI/Tests/WebKit2Cocoa/textarea-to-input.html: Removed.
1172         * TestWebKitAPI/Tests/WebKit2Cocoa/two-paragraph-contenteditable.html: Removed.
1173         * TestWebKitAPI/Tests/WebKit2Cocoa/wide-autoplaying-video-with-audio.html: Removed.
1174         * TestWebKitAPI/Tests/WebKit2Gtk: Removed.
1175         * TestWebKitAPI/Tests/WebKit2Gtk/AccessibilityTestServer.cpp: Removed.
1176         * TestWebKitAPI/Tests/WebKit2Gtk/AutocleanupsTest.cpp: Removed.
1177         * TestWebKitAPI/Tests/WebKit2Gtk/DOMClientRectTest.cpp: Removed.
1178         * TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp: Removed.
1179         * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeFilterTest.cpp: Removed.
1180         * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeTest.cpp: Removed.
1181         * TestWebKitAPI/Tests/WebKit2Gtk/DOMXPathNSResolverTest.cpp: Removed.
1182         * TestWebKitAPI/Tests/WebKit2Gtk/EditorTest.cpp: Removed.
1183         * TestWebKitAPI/Tests/WebKit2Gtk/InspectorTestServer.cpp: Removed.
1184         * TestWebKitAPI/Tests/WebKit2Gtk/TestAutocleanups.cpp: Removed.
1185         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp: Removed.
1186         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMClientRect.cpp: Removed.
1187         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMDOMWindow.cpp: Removed.
1188         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNode.cpp: Removed.
1189         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNodeFilter.cpp: Removed.
1190         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMXPathNSResolver.cpp: Removed.
1191         * TestWebKitAPI/Tests/WebKit2Gtk/TestEditor.cpp: Removed.
1192         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspector.cpp: Removed.
1193         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp: Removed.
1194         * TestWebKitAPI/Tests/WebKit2Gtk/TestOptionMenu.cpp: Removed.
1195         * TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting.cpp: Removed.
1196         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp: Removed.
1197         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitVersion.cpp: Removed.
1198         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebViewEditor.cpp: Removed.
1199         * TestWebKitAPI/Tests/WebKit2ObjC: Removed.
1200         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm: Removed.
1201         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme_Bundle.cpp: Removed.
1202         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm: Removed.
1203         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm: Removed.
1204         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing_Bundle.cpp: Removed.
1205         * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm: Removed.
1206         * TestWebKitAPI/Tests/WebKit2ObjC/WKBrowsingContextGroupTest.mm: Removed.
1207         * TestWebKitAPI/Tests/WebKit2ObjC/WKBrowsingContextLoadDelegateTest.mm: Removed.
1208         * TestWebKitAPI/Tests/WebKitCocoa: Copied from TestWebKitAPI/Tests/WebKit2Cocoa.
1209         * TestWebKitAPI/Tests/WebKitGtk: Copied from TestWebKitAPI/Tests/WebKit2Gtk.
1210         * TestWebKitAPI/Tests/WebKitObjC: Copied from TestWebKitAPI/Tests/WebKit2ObjC.
1211         * TestWebKitAPI/glib/PlatformGTK.cmake:
1212
1213 2017-08-25  Alex Christensen  <achristensen@webkit.org>
1214
1215         Rename TestWebKitAPI/Tests/WebKit2 to WebKit following Source directory rename.
1216
1217         Rubber-stamped by Brady Eidson.
1218
1219         * TestWebKitAPI/CMakeLists.txt:
1220         * TestWebKitAPI/PlatformGTK.cmake:
1221         * TestWebKitAPI/PlatformWin.cmake:
1222         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1223         * TestWebKitAPI/Tests/WebKit: Copied from TestWebKitAPI/Tests/WebKit2.
1224         * TestWebKitAPI/Tests/WebKit2: Removed.
1225         * TestWebKitAPI/Tests/WebKit2/18-characters.html: Removed.
1226         * TestWebKitAPI/Tests/WebKit2/AboutBlankLoad.cpp: Removed.
1227         * TestWebKitAPI/Tests/WebKit2/Ahem.ttf: Removed.
1228         * TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp: Removed.
1229         * TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp: Removed.
1230         * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp: Removed.
1231         * TestWebKitAPI/Tests/WebKit2/CloseThenTerminate.cpp: Removed.
1232         * TestWebKitAPI/Tests/WebKit2/CookieManager.cpp: Removed.
1233         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp: Removed.
1234         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp: Removed.
1235         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp: Removed.
1236         * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp: Removed.
1237         * TestWebKitAPI/Tests/WebKit2/DeferredViewInWindowStateChange.mm: Removed.
1238         * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls.cpp: Removed.
1239         * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp: Removed.
1240         * TestWebKitAPI/Tests/WebKit2/DidNotHandleKeyDown.cpp: Removed.
1241         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache.cpp: Removed.
1242         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache_Bundle.cpp: Removed.
1243         * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp: Removed.
1244         * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp: Removed.
1245         * TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp: Removed.
1246         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp: Removed.
1247         * TestWebKitAPI/Tests/WebKit2/EnvironmentUtilitiesTest.cpp: Removed.
1248         * TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp: Removed.
1249         * TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp: Removed.
1250         * TestWebKitAPI/Tests/WebKit2/EventModifiers.cpp: Removed.
1251         * TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp: Removed.
1252         * TestWebKitAPI/Tests/WebKit2/Find.cpp: Removed.
1253         * TestWebKitAPI/Tests/WebKit2/FindMatches.mm: Removed.
1254         * TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp: Removed.
1255         * TestWebKitAPI/Tests/WebKit2/FrameHandle.cpp: Removed.
1256         * TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp: Removed.
1257         * TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp: Removed.
1258         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp: Removed.
1259         * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp: Removed.
1260         * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp: Removed.
1261         * TestWebKitAPI/Tests/WebKit2/GetUserMediaNavigation.mm: Removed.
1262         * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp: Removed.
1263         * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp: Removed.
1264         * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp: Removed.
1265         * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp: Removed.
1266         * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest.cpp: Removed.
1267         * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest_Bundle.cpp: Removed.
1268         * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp: Removed.
1269         * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp: Removed.
1270         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp: Removed.
1271         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen_Bundle.cpp: Removed.
1272         * TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp: Removed.
1273         * TestWebKitAPI/Tests/WebKit2/LimitTitleSize.cpp: Removed.
1274         * TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp: Removed.
1275         * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp: Removed.
1276         * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp: Removed.
1277         * TestWebKitAPI/Tests/WebKit2/LoadPageOnCrash.cpp: Removed.
1278         * TestWebKitAPI/Tests/WebKit2/MediaStreamTrackDetached.mm: Removed.
1279         * TestWebKitAPI/Tests/WebKit2/MenuTypesForMouseEvents.cpp: Removed.
1280         * TestWebKitAPI/Tests/WebKit2/ModalAlertsSPI.cpp: Removed.
1281         * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp: Removed.
1282         * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp: Removed.
1283         * TestWebKitAPI/Tests/WebKit2/NavigationClientDefaultCrypto.cpp: Removed.
1284         * TestWebKitAPI/Tests/WebKit2/NetworkProcessCrashWithPendingConnection.mm: Removed.
1285         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp: Removed.
1286         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp: Removed.
1287         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp: Removed.
1288         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp: Removed.
1289         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp: Removed.
1290         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp: Removed.
1291         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp: Removed.
1292         * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp: Removed.
1293         * TestWebKitAPI/Tests/WebKit2/PageGroup.cpp: Removed.
1294         * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp: Removed.
1295         * TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp: Removed.
1296         * TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp: Removed.
1297         * TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp: Removed.
1298         * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications.mm: Removed.
1299         * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications_Bundle.cpp: Removed.
1300         * TestWebKitAPI/Tests/WebKit2/PendingAPIRequestURL.cpp: Removed.
1301         * TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp: Removed.
1302         * TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp: Removed.
1303         * TestWebKitAPI/Tests/WebKit2/ProcessDidTerminate.cpp: Removed.
1304         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback.cpp: Removed.
1305         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp: Removed.
1306         * TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp: Removed.
1307         * TestWebKitAPI/Tests/WebKit2/ResizeReversePaginatedWebView.cpp: Removed.
1308         * TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp: Removed.
1309         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimer.cpp: Removed.
1310         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp: Removed.
1311         * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp: Removed.
1312         * TestWebKitAPI/Tests/WebKit2/RestoreSessionState.cpp: Removed.
1313         * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp: Removed.
1314         * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateWithoutNavigation.cpp: Removed.
1315         * TestWebKitAPI/Tests/WebKit2/ScrollPinningBehaviors.cpp: Removed.
1316         * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp: Removed.
1317         * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp: Removed.
1318         * TestWebKitAPI/Tests/WebKit2/ShouldKeepCurrentBackForwardListItemInList.cpp: Removed.
1319         * TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp: Removed.
1320         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp: Removed.
1321         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp: Removed.
1322         * TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp: Removed.
1323         * TestWebKitAPI/Tests/WebKit2/TextFieldDidBeginAndEndEditing.cpp: Removed.
1324         * TestWebKitAPI/Tests/WebKit2/TextFieldDidBeginAndEndEditing_Bundle.cpp: Removed.
1325         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp: Removed.
1326         * TestWebKitAPI/Tests/WebKit2/UserMessage.cpp: Removed.
1327         * TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp: Removed.
1328         * TestWebKitAPI/Tests/WebKit2/ViewportSizeForViewportUnits.mm: Removed.
1329         * TestWebKitAPI/Tests/WebKit2/WKBackForwardList.mm: Removed.
1330         * TestWebKitAPI/Tests/WebKit2/WKBundleFileHandle.cpp: Removed.
1331         * TestWebKitAPI/Tests/WebKit2/WKBundleFileHandle_Bundle.cpp: Removed.
1332         * TestWebKitAPI/Tests/WebKit2/WKImageCreateCGImageCrash.cpp: Removed.
1333         * TestWebKitAPI/Tests/WebKit2/WKPageConfiguration.cpp: Removed.
1334         * TestWebKitAPI/Tests/WebKit2/WKPageCopySessionStateWithFiltering.cpp: Removed.
1335         * TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp: Removed.
1336         * TestWebKitAPI/Tests/WebKit2/WKPageIsPlayingAudio.cpp: Removed.
1337         * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp: Removed.
1338         * TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp: Removed.
1339         * TestWebKitAPI/Tests/WebKit2/WKString.cpp: Removed.
1340         * TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp: Removed.
1341         * TestWebKitAPI/Tests/WebKit2/WKThumbnailView.mm: Removed.
1342         * TestWebKitAPI/Tests/WebKit2/WKURL.cpp: Removed.
1343         * TestWebKitAPI/Tests/WebKit2/WebArchive.cpp: Removed.
1344         * TestWebKitAPI/Tests/WebKit2/WebArchive_Bundle.cpp: Removed.
1345         * TestWebKitAPI/Tests/WebKit2/WebCoreStatisticsWithNoWebProcess.cpp: Removed.
1346         * TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: Removed.
1347         * TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp: Removed.
1348         * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp: Removed.
1349         * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp: Removed.
1350         * TestWebKitAPI/Tests/WebKit2/all-content-in-one-iframe.html: Removed.
1351         * TestWebKitAPI/Tests/WebKit2/associate-form-controls.html: Removed.
1352         * TestWebKitAPI/Tests/WebKit2/auto-submitting-form.html: Removed.
1353         * TestWebKitAPI/Tests/WebKit2/autoplay-check-frame.html: Removed.
1354         * TestWebKitAPI/Tests/WebKit2/autoplay-check-in-iframe.html: Removed.
1355         * TestWebKitAPI/Tests/WebKit2/autoplay-check.html: Removed.
1356         * TestWebKitAPI/Tests/WebKit2/autoplay-inherits-gesture-from-document.html: Removed.
1357         * TestWebKitAPI/Tests/WebKit2/autoplay-muted-with-controls.html: Removed.
1358         * TestWebKitAPI/Tests/WebKit2/autoplay-no-audio-check.html: Removed.
1359         * TestWebKitAPI/Tests/WebKit2/autoplay-with-controls.html: Removed.
1360         * TestWebKitAPI/Tests/WebKit2/autoplay-zero-volume-check.html: Removed.
1361         * TestWebKitAPI/Tests/WebKit2/bundle-file.html: Removed.
1362         * TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html: Removed.
1363         * TestWebKitAPI/Tests/WebKit2/close-from-within-create-page.html: Removed.
1364         * TestWebKitAPI/Tests/WebKit2/closed-shadow-tree-test.html: Removed.
1365         * TestWebKitAPI/Tests/WebKit2/cocoa: Removed.
1366         * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm: Removed.
1367         * TestWebKitAPI/Tests/WebKit2/contentBlockerCheck.html: Removed.
1368         * TestWebKitAPI/Tests/WebKit2/custom-protocol-sync-xhr.html: Removed.
1369         * TestWebKitAPI/Tests/WebKit2/encrypted.pdf: Removed.
1370         * TestWebKitAPI/Tests/WebKit2/enumerateMediaDevices.html: Removed.
1371         * TestWebKitAPI/Tests/WebKit2/execCopy.html: Removed.
1372         * TestWebKitAPI/Tests/WebKit2/file-with-anchor.html: Removed.
1373         * TestWebKitAPI/Tests/WebKit2/file-with-mse.html: Removed.
1374         * TestWebKitAPI/Tests/WebKit2/file-with-video.html: Removed.
1375         * TestWebKitAPI/Tests/WebKit2/find.html: Removed.
1376         * TestWebKitAPI/Tests/WebKit2/findRanges.html: Removed.
1377         * TestWebKitAPI/Tests/WebKit2/geolocationGetCurrentPosition.html: Removed.
1378         * TestWebKitAPI/Tests/WebKit2/geolocationGetCurrentPositionWithHighAccuracy.html: Removed.
1379         * TestWebKitAPI/Tests/WebKit2/geolocationWatchPosition.html: Removed.
1380         * TestWebKitAPI/Tests/WebKit2/geolocationWatchPositionWithHighAccuracy.html: Removed.
1381         * TestWebKitAPI/Tests/WebKit2/getUserMedia.html: Removed.
1382         * TestWebKitAPI/Tests/WebKit2/gtk: Removed.
1383         * TestWebKitAPI/Tests/WebKit2/gtk/InputMethodFilter.cpp: Removed.
1384         * TestWebKitAPI/Tests/WebKit2/icon.png: Removed.
1385         * TestWebKitAPI/Tests/WebKit2/input-focus-blur.html: Removed.
1386         * TestWebKitAPI/Tests/WebKit2/js-autoplay-audio.html: Removed.
1387         * TestWebKitAPI/Tests/WebKit2/js-play-with-controls.html: Removed.
1388         * TestWebKitAPI/Tests/WebKit2/large-red-square-image.html: Removed.
1389         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute-with-slashes.html: Removed.
1390         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html: Removed.
1391         * TestWebKitAPI/Tests/WebKit2/link-with-title.html: Removed.
1392         * TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html: Removed.
1393         * TestWebKitAPI/Tests/WebKit2/lots-of-images.html: Removed.
1394         * TestWebKitAPI/Tests/WebKit2/lots-of-text-vertical-lr.html: Removed.
1395         * TestWebKitAPI/Tests/WebKit2/lots-of-text.html: Removed.
1396         * TestWebKitAPI/Tests/WebKit2/mac: Removed.
1397         * TestWebKitAPI/Tests/WebKit2/mac/AttributedSubstringForProposedRangeWithImage.mm: Removed.
1398         * TestWebKitAPI/Tests/WebKit2/mac/ContextMenuDownload.mm: Removed.
1399         * TestWebKitAPI/Tests/WebKit2/mac/EditorCommands.mm: Removed.
1400         * TestWebKitAPI/Tests/WebKit2/mac/GetBackingScaleFactor.mm: Removed.
1401         * TestWebKitAPI/Tests/WebKit2/mac/GetBackingScaleFactor_Bundle.mm: Removed.
1402         * TestWebKitAPI/Tests/WebKit2/mac/GetPIDAfterAbortedProcessLaunch.cpp: Removed.
1403         * TestWebKitAPI/Tests/WebKit2/mac/InjectedBundleAppleEvent.cpp: Removed.
1404         * TestWebKitAPI/Tests/WebKit2/mac/InjectedBundleAppleEvent_Bundle.cpp: Removed.
1405         * TestWebKitAPI/Tests/WebKit2/mac/RestoreStateAfterTermination.mm: Removed.
1406         * TestWebKitAPI/Tests/WebKit2/many-iframes.html: Removed.
1407         * TestWebKitAPI/Tests/WebKit2/mediastreamtrack-detached.html: Removed.
1408         * TestWebKitAPI/Tests/WebKit2/modal-alerts-in-new-about-blank-window.html: Removed.
1409         * TestWebKitAPI/Tests/WebKit2/mouse-button-listener.html: Removed.
1410         * TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html: Removed.
1411         * TestWebKitAPI/Tests/WebKit2/navigation-client-default-crypto.html: Removed.
1412         * TestWebKitAPI/Tests/WebKit2/no-autoplay-with-controls.html: Removed.
1413         * TestWebKitAPI/Tests/WebKit2/open-and-close-window.html: Removed.
1414         * TestWebKitAPI/Tests/WebKit2/push-state.html: Removed.
1415         * TestWebKitAPI/Tests/WebKit2/set-long-title.html: Removed.
1416         * TestWebKitAPI/Tests/WebKit2/should-open-external-schemes.html: Removed.
1417         * TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html: Removed.
1418         * TestWebKitAPI/Tests/WebKit2/simple-form.html: Removed.
1419         * TestWebKitAPI/Tests/WebKit2/simple-iframe.html: Removed.
1420         * TestWebKitAPI/Tests/WebKit2/simple-tall.html: Removed.
1421         * TestWebKitAPI/Tests/WebKit2/simple.html: Removed.
1422         * TestWebKitAPI/Tests/WebKit2/simple2.html: Removed.
1423         * TestWebKitAPI/Tests/WebKit2/simple3.html: Removed.
1424         * TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html: Removed.
1425         * TestWebKitAPI/Tests/WebKit2/test-mse.mp4: Removed.
1426         * TestWebKitAPI/Tests/WebKit2/test-without-audio-track.mp4: Removed.
1427         * TestWebKitAPI/Tests/WebKit2/test.mp4: Removed.
1428         * TestWebKitAPI/Tests/WebKit2/test.pdf: Removed.
1429         * TestWebKitAPI/Tests/WebKit2/webfont.html: Removed.
1430
1431 2017-08-25  Alex Christensen  <achristensen@webkit.org>
1432
1433         Rename TestWebKitAPI/Tests/WebKit to WebKitLegacy following Source directory rename.
1434
1435         Rubber-stamped by Brady Eidson.
1436
1437         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1438         * TestWebKitAPI/Tests/WebKit: Removed.
1439         * TestWebKitAPI/Tests/WebKit/ios: Removed.
1440         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm: Removed.
1441         * TestWebKitAPI/Tests/WebKit/ios/SnapshotViaRenderInContext.mm: Removed.
1442         * TestWebKitAPI/Tests/WebKit/ios/audio-only.html: Removed.
1443         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.html: Removed.
1444         * TestWebKitAPI/Tests/WebKit/ios/video-with-audio.mp4: Removed.
1445         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio-and-webaudio.html: Removed.
1446         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio.html: Removed.
1447         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.html: Removed.
1448         * TestWebKitAPI/Tests/WebKit/ios/video-without-audio.mp4: Removed.
1449         * TestWebKitAPI/Tests/WebKit/win: Removed.
1450         * TestWebKitAPI/Tests/WebKit/win/ScaleWebView.cpp: Removed.
1451         * TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp: Removed.
1452         * TestWebKitAPI/Tests/WebKitLegacy: Copied from TestWebKitAPI/Tests/WebKit.
1453
1454 2017-08-25  Alex Christensen  <achristensen@webkit.org>
1455
1456         Add WKUIDelegatePrivate equivalent of WKPageUIClient's saveDataToFileInDownloadsFolder
1457         https://bugs.webkit.org/show_bug.cgi?id=176000
1458         <rdar://problem/29270035>
1459
1460         Reviewed by Andy Estes.
1461
1462         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
1463         (-[FocusDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1464         (TEST):
1465         (-[SaveDataToFileDelegate _webView:saveDataToFile:suggestedFilename:mimeType:originatingURL:]):
1466         (-[SaveDataToFileDelegate webView:didFinishNavigation:]):
1467
1468 2017-08-25  Youenn Fablet  <youenn@apple.com>
1469
1470         WPT server should not need to copy test harness files
1471         https://bugs.webkit.org/show_bug.cgi?id=175938
1472
1473         Reviewed by Alexey Proskuryakov.
1474
1475         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
1476         (WebPlatformTestServer.__init__): Stopping explicit resource files copy when launching the WPT server.
1477         Use aliases instead.
1478
1479 2017-08-25  Eric Carlson  <eric.carlson@apple.com>
1480
1481         Add String::format variant that takes va_args
1482         https://bugs.webkit.org/show_bug.cgi?id=175988
1483
1484         Reviewed by Jer Noble.
1485
1486         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
1487         (TestWebKitAPI::testWithFormatAndArguments):
1488         (TestWebKitAPI::TEST):
1489
1490 2017-08-25  Jonathan Bedard  <jbedard@apple.com>
1491
1492         Follow-up Internal build fix for r221187
1493         https://bugs.webkit.org/show_bug.cgi?id=175960
1494         <rdar://problem/34069264>
1495
1496         Unreviewed build fix.
1497
1498         * TestWebKitAPI/ios/DataInteractionSimulator.h: Move UIItemProvider declaration
1499         into #if block.
1500
1501 2017-08-25  Don Olmstead  <don.olmstead@sony.com>
1502
1503         [WinCairo] Use GitHub releases for WinCairoRequirements
1504         https://bugs.webkit.org/show_bug.cgi?id=175972
1505
1506         Reviewed by Brent Fulgham.
1507
1508         * Scripts/build-webkit:
1509         (cMakeArgsFromFeatures): Deleted.
1510         (writeCongrats): Deleted.
1511         * Scripts/download-latest-github-release.py:
1512         (Status):
1513         (parse_args):
1514         (main):
1515         * Scripts/update-webkit-wincairo-libs.py: Renamed from Tools/Scripts/update-webkit-wincairo-libs.
1516
1517 2017-08-25  Jonathan Bedard  <jbedard@apple.com>
1518
1519         Fix build breakage with Public iOS 11 SDK
1520         https://bugs.webkit.org/show_bug.cgi?id=175960
1521         <rdar://problem/34069264>
1522
1523         Reviewed by Wenson Hsieh.
1524
1525         * TestWebKitAPI/ios/DataInteractionSimulator.h: Add UIItemProvider declaration.
1526
1527 2017-08-24  Chris Dumez  <cdumez@apple.com>
1528
1529         [Directory Upload] Add basic support for input.webkitdirectory
1530         https://bugs.webkit.org/show_bug.cgi?id=175950
1531         <rdar://problem/33951915>
1532
1533         Reviewed by Geoffrey Garen.
1534
1535         * DumpRenderTree/mac/DumpRenderTree.mm:
1536         (resetWebPreferencesToConsistentValues):
1537         * WebKitTestRunner/TestController.cpp:
1538         (WTR::TestController::resetPreferencesToConsistentValues):
1539         Enable Directory Upload feature for testing, given that it is currently disabled by default.
1540
1541         (WTR::runOpenPanel):
1542         Print additional text when directories are allowed to extend testing coverage.
1543
1544 2017-08-24  Alex Christensen  <achristensen@webkit.org>
1545
1546         Add WKUIDelegatePrivate equivalent of WKPageUIClient's handleAutoplayEvent
1547         https://bugs.webkit.org/show_bug.cgi?id=175965
1548         <rdar://problem/29270035>
1549
1550         Reviewed by Tim Horton.
1551
1552         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
1553         (TEST):
1554         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1555         (-[AutoplayPoliciesDelegate _webView:handleAutoplayEvent:withFlags:]):
1556         (TEST):
1557         (handleAutoplayEvent): Deleted.
1558
1559 2017-08-24  Alex Christensen  <achristensen@webkit.org>
1560
1561         didNotHandleWheelEvent test times out
1562         https://bugs.webkit.org/show_bug.cgi?id=175967
1563
1564         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
1565         Skip the test until WebCore's wheel event handling is reliable enough to test.
1566
1567 2017-08-24  Jonathan Bedard  <jbedard@apple.com>
1568
1569         Update configure-xcode-for-ios-development for iOS 11
1570         https://bugs.webkit.org/show_bug.cgi?id=173937
1571         <rdar://problem/33038924>
1572
1573         Reviewed by Daniel Bates.
1574
1575         Xcode 9 has removed the following headers from the iOS 11 Simulator SDK:
1576                 /usr/include/crt_externs.h
1577                 /usr/include/mach/mach_types.defs
1578                 /usr/include/mach/machine/machine_types.defs
1579                 /usr/include/mach/std_types.defs
1580                 /usr/include/objc/objc-class.h
1581                 /usr/include/objc/objc-runtime.h
1582                 /usr/include/objc/Protocol.h
1583                 /usr/include/readline/history.h
1584                 /usr/include/readline/readline.h
1585         To solve this problem, configure-xcode-for-ios-development copies these headers
1586         from the active macOS SDK into the iOS Simulator SDK.
1587
1588         * Scripts/configure-xcode-for-ios-development:
1589         (copyMissingHeadersFromSDKToSDKIfNeeded): Copy all missing header from one SDK
1590         into another if those headers do not exist in the destination SDK.
1591         (copyMissingHeadersToIPhoneOSSDKIfNeeded): Deleted.
1592
1593 2017-08-24  Alex Christensen  <achristensen@webkit.org>
1594
1595         Add WKUIDelegatePrivate callback corresponding to PageUIClient's didNotHandleWheelEvent
1596         https://bugs.webkit.org/show_bug.cgi?id=175957
1597         <rdar://problem/29270035>
1598
1599         Reviewed by Geoffrey Garen.
1600
1601         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
1602         (synthesizeWheelEvents):
1603         (-[WheelDelegate _webView:didNotHandleWheelEvent:]):
1604         (-[WheelDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1605         (TEST):
1606
1607 2017-08-24  Tim Horton  <timothy_horton@apple.com>
1608
1609         Layout size override changes during in-flight animated resize are dropped on the floor forever
1610         https://bugs.webkit.org/show_bug.cgi?id=175916
1611         <rdar://problem/33887295>
1612
1613         Reviewed by Beth Dakin.
1614
1615         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm:
1616         (TEST):
1617         Add a test ensuring that override layout size changes
1618         during an animated resize actually take effect.
1619
1620 2017-08-23  Matt Lewis  <jlewis3@apple.com>
1621
1622         Disabled VideoControlsManagerMultipleVideosSwitchControlledVideoWhenScrolling.
1623         https://bugs.webkit.org/show_bug.cgi?id=175909
1624
1625         Unreviewed test gardening.
1626
1627         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1628         (TestWebKitAPI::TEST):
1629
1630 2017-08-24  Don Olmstead  <don.olmstead@sony.com>
1631
1632         [CMake] Use find_package for SQLite
1633         https://bugs.webkit.org/show_bug.cgi?id=175803
1634
1635         Reviewed by Konstantin Tokarev.
1636
1637         * TestWebKitAPI/PlatformWin.cmake:
1638
1639 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
1640
1641         Leaking CARenderServerBuffer in PlatformWebView::windowSnapshotImage()
1642         https://bugs.webkit.org/show_bug.cgi?id=175905
1643
1644         Reviewed by Tim Horton.
1645
1646         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1647         (WTR::PlatformWebView::windowSnapshotImage): Pass CARenderServerBuffer to CGDataProviderCreateWithData
1648         so that the buffer can be destroyed.
1649
1650 2017-08-23  Alex Christensen  <achristensen@webkit.org>
1651
1652         Add WKUIDelegatePrivate callbacks corresponding to WKPageUIClient's takeFocus, focus, and unfocus
1653         https://bugs.webkit.org/show_bug.cgi?id=175896
1654
1655         Reviewed by Tim Horton.
1656
1657         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm:
1658         (-[UITestDelegate _showWebView:]):
1659         (TEST):
1660         (tabEvent):
1661         (synthesizeTab):
1662         (-[FocusDelegate _webView:takeFocus:]):
1663         (-[FocusDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1664         (-[UITestDelegate _webViewShow:]): Deleted.
1665
1666 2017-08-23  Eric Carlson  <eric.carlson@apple.com>
1667
1668         Platform code should be able to safely log in release builds
1669         https://bugs.webkit.org/show_bug.cgi?id=175854
1670         <rdar://problem/34022930>
1671
1672         Reviewed by Jer Noble.
1673
1674         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
1675         (TestWebKitAPI::TEST_F):
1676
1677 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
1678
1679         Access expectations path through apple_additions
1680         https://bugs.webkit.org/show_bug.cgi?id=174800
1681         <rdar://problem/33498899>
1682
1683         Unreviewed follow-up fix for r221087.
1684
1685         * Scripts/webkitpy/port/ios.py:
1686         (IOSPort._apple_additions_path): Use iOS mapping instead of Mac mapping.
1687
1688 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
1689
1690         Access expectations path through apple_additions
1691         https://bugs.webkit.org/show_bug.cgi?id=174800
1692         <rdar://problem/33498899>
1693
1694         Reviewed by David Kilzer.
1695
1696         Follow-up fix. Mapping of operating system names was done incorrectly.
1697
1698         * Scripts/webkitpy/port/ios.py:
1699         (IOSPort._apple_additions_path): Correctly find the operating system to be replaced.
1700         * Scripts/webkitpy/port/ios_device_unittest.py:
1701         (IOSDeviceTest.test_layout_test_searchpath_with_apple_additions): Add test for operating
1702         system name replacement.
1703         * Scripts/webkitpy/port/ios_simulator_unittest.py:
1704         (IOSSimulatorTest.test_layout_test_searchpath_with_apple_additions): Add test for operating
1705         system name replacement.
1706         * Scripts/webkitpy/port/mac.py: Correctly find the operating system to be replaced.
1707         (MacPort._apple_additions_path):
1708         * Scripts/webkitpy/port/mac_unittest.py:
1709         (MacTest.test_layout_test_searchpath_with_apple_additions): Add test for operating system
1710         name replacement.
1711         * Scripts/webkitpy/port/port_testcase.py:
1712         (bind_mock_apple_additions.MockAppleAdditions.ios_os_name): Change the passed name so that
1713         operating system name replacement can be tested.
1714         (bind_mock_apple_additions.MockAppleAdditions.mac_os_name): Ditto.
1715
1716 2017-08-23  Jonathan Bedard  <jbedard@apple.com>
1717
1718         Access expectations path through apple_additions
1719         https://bugs.webkit.org/show_bug.cgi?id=174800
1720         <rdar://problem/33498899>
1721
1722         Reviewed by Alexey Proskuryakov.
1723
1724         When external test expectations are imported through additional-platform-directory, they will
1725         over-write any WebKit expectations. Access some expectations from apple_additions to correct
1726         these precedence issues.
1727
1728         * Scripts/webkitpy/port/ios.py:
1729         (IOSPort._apple_additions_path): Convert test expectation directory to a path
1730         coming from apple_additions.
1731         (IOSPort.default_baseline_search_path): Alternate between WebKit path and apple_additions
1732         path for layout test expectations.
1733         * Scripts/webkitpy/port/ios_device_unittest.py:
1734         (IOSDeviceTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
1735         * Scripts/webkitpy/port/ios_simulator_unittest.py:
1736         (IOSSimulatorTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
1737         * Scripts/webkitpy/port/mac.py:
1738         (MacPort._apple_additions_path): Convert test expectation directory to a path
1739         coming from apple_additions.
1740         (MacPort.default_baseline_search_path): Alternate between WebKit path and apple_additions
1741         path for layout test expectations.
1742         * Scripts/webkitpy/port/mac_unittest.py:
1743         (MacTest.test_layout_test_searchpath_with_apple_additions): Added to test layout-test search paths.
1744         * Scripts/webkitpy/port/port_testcase.py:
1745         (bind_mock_apple_additions): Added to create mock apple_additions for a block.
1746         (bind_mock_apple_additions.MockAppleAdditions): Contains apple_addition stubs for testing.
1747         * Scripts/webkitpy/port/win.py:
1748         (WinPort.default_baseline_search_path): Include apple_additions test expectation for Windows.
1749
1750 2017-08-22  Zan Dobersek  <zdobersek@igalia.com>
1751
1752         Unreviewed. The WPE port should build TestWebKitAPI with the same
1753         compiler flags as the GTK+ port, disabling a few flags that are
1754         sprouting a lot of warning output.
1755
1756         * TestWebKitAPI/PlatformWPE.cmake:
1757
1758 2017-08-20  Wenson Hsieh  <wenson_hsieh@apple.com>
1759
1760         [iOS WK2] WKWebView schedules nonstop layout after pressing cmb+b,i,u inside a contenteditable div
1761         https://bugs.webkit.org/show_bug.cgi?id=175116
1762         <rdar://problem/28279301>
1763
1764         Reviewed by Darin Adler and Ryosuke Niwa.
1765
1766         Introduces new testing infrastructure and API tests to test EditorState updates in the UI process. The new
1767         EditorStateTests run on both iOS and Mac.
1768
1769         * TestWebKitAPI/EditingTestHarness.h: Added.
1770         * TestWebKitAPI/EditingTestHarness.mm: Added.
1771
1772         EditingTestHarness is a helper object that API tests may use to apply editing commands and store EditorState
1773         history. This test harness adds sugaring around various editing commands, and simplifies the process of checking
1774         the state of the latest observed EditorState.
1775
1776         (-[EditingTestHarness initWithWebView:]):
1777         (-[EditingTestHarness dealloc]):
1778         (-[EditingTestHarness webView]):
1779         (-[EditingTestHarness latestEditorState]):
1780         (-[EditingTestHarness editorStateHistory]):
1781         (-[EditingTestHarness insertText:andExpectEditorStateWith:]):
1782         (-[EditingTestHarness insertHTML:andExpectEditorStateWith:]):
1783         (-[EditingTestHarness selectAllAndExpectEditorStateWith:]):
1784         (-[EditingTestHarness moveBackwardAndExpectEditorStateWith:]):
1785         (-[EditingTestHarness moveWordBackwardAndExpectEditorStateWith:]):
1786         (-[EditingTestHarness toggleBold]):
1787         (-[EditingTestHarness toggleItalic]):
1788         (-[EditingTestHarness toggleUnderline]):
1789         (-[EditingTestHarness setForegroundColor:]):
1790         (-[EditingTestHarness alignJustifiedAndExpectEditorStateWith:]):
1791         (-[EditingTestHarness alignLeftAndExpectEditorStateWith:]):
1792         (-[EditingTestHarness alignCenterAndExpectEditorStateWith:]):
1793         (-[EditingTestHarness alignRightAndExpectEditorStateWith:]):
1794         (-[EditingTestHarness insertParagraphAndExpectEditorStateWith:]):
1795         (-[EditingTestHarness deleteBackwardAndExpectEditorStateWith:]):
1796         (-[EditingTestHarness _execCommand:argument:expectEntries:]):
1797
1798         Dispatches an editing command to the web process, and blocks until a response is received. If an expected
1799         entries dictionary is given, this will additionally verify that the latest EditorState contains all the expected
1800         keys and values.
1801
1802         (-[EditingTestHarness latestEditorStateContains:]):
1803         (-[EditingTestHarness _webView:editorStateDidChange:]):
1804         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1805         * TestWebKitAPI/Tests/WebKit2Cocoa/EditorStateTests.mm: Added.
1806         (TestWebKitAPI::setUpEditorStateTestHarness):
1807         (TestWebKitAPI::TEST):
1808         * TestWebKitAPI/Tests/WebKit2Cocoa/editor-state-test-harness.html: Added.
1809
1810 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
1811
1812         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
1813         https://bugs.webkit.org/show_bug.cgi?id=175370
1814         <rdar://problem/33799806>
1815
1816         Reviewed by Ryosuke Niwa.
1817
1818         Tweaks API tests that involve editing to wait for a presentation update before checking against UI process-side
1819         information sent via EditorState updates. This allows any EditorState update scheduled by the test to propagate
1820         to the UI process.
1821
1822         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
1823         (-[CandidateTestWebView typeString:inputMessage:]):
1824         (+[CandidateTestWebView setUpWithFrame:testPage:]):
1825         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewTextInput.mm:
1826         * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
1827         (TestWebKitAPI::AcceptsFirstMouse::runTest):
1828         * TestWebKitAPI/Tests/mac/WKWebViewMacEditingTests.mm:
1829         * TestWebKitAPI/cocoa/TestWKWebView.h:
1830         * TestWebKitAPI/cocoa/TestWKWebView.mm:
1831         (-[TestWKWebView waitForNextPresentationUpdate]):
1832
1833         Add a new helper method to spin until the next presentation update.
1834
1835         * TestWebKitAPI/mac/WebKitAgnosticTest.h:
1836         * TestWebKitAPI/mac/WebKitAgnosticTest.mm:
1837         (TestWebKitAPI::WebKitAgnosticTest::waitForNextPresentationUpdate):
1838
1839 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1840
1841         Add UIDelegatePrivate SPI corresponding to WKPageUIClient.showPage
1842         https://bugs.webkit.org/show_bug.cgi?id=175797
1843         <rdar://problem/29270035>
1844
1845         Reviewed by Geoffrey Garen.
1846
1847         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1848         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Added.
1849         (-[UITestDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
1850         (-[UITestDelegate _showPage:]):
1851         (-[UITestDelegate webView:startURLSchemeTask:]):
1852         (-[UITestDelegate webView:stopURLSchemeTask:]):
1853         (TEST):
1854
1855 2017-08-22  Devin Rousso  <webkit@devinrousso.com>
1856
1857         Unreviewed, change my IRC nick.
1858
1859         * Scripts/webkitpy/common/config/contributors.json:
1860
1861 2017-08-22  Matt Lewis  <jlewis3@apple.com>
1862
1863         Unreviewed, rolling out r221026.
1864
1865         This caused a consistent API failure on iOS Simulator.
1866
1867         Reverted changeset:
1868
1869         "Add UIDelegatePrivate SPI corresponding to
1870         WKPageUIClient.showPage"
1871         https://bugs.webkit.org/show_bug.cgi?id=175797
1872         http://trac.webkit.org/changeset/221026
1873
1874 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1875
1876         Add UIDelegatePrivate SPI corresponding to WKPageUIClient.showPage
1877         https://bugs.webkit.org/show_bug.cgi?id=175797
1878         <rdar://problem/29270035>
1879
1880         Reviewed by Geoffrey Garen.
1881
1882         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1883         * TestWebKitAPI/Tests/WebKit2Cocoa/UIDelegate.mm: Added.
1884         (-[UITestDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
1885         (-[UITestDelegate _showPage:]):
1886         (-[UITestDelegate webView:startURLSchemeTask:]):
1887         (-[UITestDelegate webView:stopURLSchemeTask:]):
1888         (TEST):
1889
1890 2017-08-22  Jonathan Bedard  <jbedard@apple.com>
1891
1892         Fix leak-checking for iOS Simulators
1893         https://bugs.webkit.org/show_bug.cgi?id=175735
1894
1895         Reviewed by David Kilzer.
1896
1897         Follow-up fix to r220942. _proc may be undefined.
1898
1899         * Scripts/webkitpy/port/server_process.py:
1900         (ServerProcess._wait_for_stop): Handle case where _proc is undefined.
1901
1902 2017-08-22  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1903
1904         [GTK][WPE] install-dependencies should install the required gstreamer packages needed for production builds.
1905         https://bugs.webkit.org/show_bug.cgi?id=175822
1906
1907         Reviewed by Xabier Rodriguez-Calvar.
1908
1909         * gtk/install-dependencies: Add the bad plugins to the list.
1910         * wpe/install-dependencies: Add all the gst related packages (copied from GTK listing).
1911
1912 2017-08-21  Myles C. Maxfield  <mmaxfield@apple.com>
1913
1914         DataInteractionTests.ExternalSourceAttributedStringToContentEditable hits a debug assertion
1915         https://bugs.webkit.org/show_bug.cgi?id=175787
1916         <rdar://problem/33996612>
1917
1918         Reviewed by Wenson Hsieh.
1919
1920         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1921         (TestWebKitAPI::TEST):
1922
1923 2017-08-21  Myles C. Maxfield  <mmaxfield@apple.com>
1924
1925         Typo in "webkit-patch land"
1926         https://bugs.webkit.org/show_bug.cgi?id=175788
1927
1928         Reviewed by Tim Horton.
1929
1930         * Scripts/webkitpy/tool/steps/commit.py:
1931         (Commit._commit_warning):
1932
1933 2017-08-20  Sam Weinig  <sam@webkit.org>
1934
1935         StringView could use a function to strip leading/trailing characters without allocation
1936         https://bugs.webkit.org/show_bug.cgi?id=175757
1937
1938         Reviewed by Darin Adler.
1939
1940         * TestWebKitAPI/Tests/WTF/StringView.cpp:
1941         Add tests for StringView::stripLeadingAndTrailingMatchedCharacters().
1942
1943 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
1944
1945         [PAL] Move spi/mac directory into PAL
1946         https://bugs.webkit.org/show_bug.cgi?id=175649
1947
1948         Reviewed by Myles C. Maxfield.
1949
1950         * TestWebKitAPI/Tests/mac/MenuTypesForMouseEvents.mm:
1951
1952 2017-08-21  Per Arne Vollan  <pvollan@apple.com>
1953
1954         [Win] DRT should only allow any https certificate for localhost.
1955         https://bugs.webkit.org/show_bug.cgi?id=175147
1956
1957         Reviewed by Brent Fulgham.
1958
1959         Add check to make sure only localhost requests allow any https certificate.
1960
1961         * DumpRenderTree/win/DumpRenderTree.cpp:
1962         (runTest):
1963
1964 2017-08-21  Eric Carlson  <eric.carlson@apple.com>
1965
1966         Add WTFLogChannel level to allow runtime log filtering
1967         https://bugs.webkit.org/show_bug.cgi?id=175731
1968         <rdar://problem/33967234>
1969
1970         Unreviewed build fix.
1971
1972         * TestWebKitAPI/Tests/WebCore/Logging.cpp:
1973         (TestWebKitAPI::LoggingTest::output): Disable testing output by default because it 
1974         fails on some of the bots.
1975
1976 2017-08-21  Eric Carlson  <eric.carlson@apple.com>
1977
1978         Add WTFLogChannel level to allow runtime log filtering
1979         https://bugs.webkit.org/show_bug.cgi?id=175731
1980         <rdar://problem/33967234>
1981
1982         Reviewed by Jer Noble.
1983
1984         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1985         * TestWebKitAPI/Tests/WebCore/Logging.cpp: Added.
1986         (TestWebKitAPI::LoggingTest::output):
1987         (TestWebKitAPI::TEST_F):
1988
1989 2017-08-19  Wenson Hsieh  <wenson_hsieh@apple.com>
1990
1991         [iOS WK2] Add a version of DataInteractionTests.ExternalSourceAttributedStringToContentEditable that doesn't hit a debug assertion
1992         https://bugs.webkit.org/show_bug.cgi?id=175509
1993         <rdar://problem/33728169>
1994
1995         Reviewed by Ryosuke Niwa.
1996
1997         Removes ExternalSourceAttributedStringToContentEditable and adds
1998         ExternalSourceColoredAttributedStringToContentEditable, which tests dropping an attributed string with colored
1999         text instead of a bold attributed string of system font. Due to a recent change in behavior in UIKit, the
2000         original test (which this patch renames to ExternalSourceBoldSystemAttributedStringToContentEditable) hits a
2001         debug assertion when dropping text of system bold font. Since the original intent of this test was to verify
2002         that the attributed string UTI can be accepted in richly contenteditable areas, it suffices to check that some
2003         other style attribute, such as color, carries over from the NSAttributedString to the DOM.
2004
2005         Also marks ExternalSourceBoldSystemAttributedStringToContentEditable as disabled for the time being.
2006
2007         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2008         (TestWebKitAPI::TEST):
2009
2010 2017-08-18  Ryan Haddad  <ryanhaddad@apple.com>
2011
2012         Unreviewed, rolling out r220938.
2013
2014         The API tests added with this change are failing.
2015
2016         Reverted changeset:
2017
2018         "Add WTFLogChannel level to allow runtime log filtering"
2019         https://bugs.webkit.org/show_bug.cgi?id=175731
2020         http://trac.webkit.org/changeset/220938
2021
2022 2017-08-18  Devin Rousso  <webkit@devinrousso.com>
2023
2024         Unreviewed, change my email.
2025
2026         * Scripts/webkitpy/common/config/contributors.json:
2027
2028 2017-08-18  Jonathan Bedard  <jbedard@apple.com>
2029
2030         Fix leak-checking for iOS Simulators
2031         https://bugs.webkit.org/show_bug.cgi?id=175735
2032
2033         Reviewed by Darin Adler.
2034
2035         If the leak checking currently occurs in ServerProcess, we can’t check leaks on an iOS
2036         Simulator (or device) because the process will have already been killed by the time we
2037         check for leaks. Duplicate leak-checking code and share code waiting on a process to stop.
2038
2039         * Scripts/webkitpy/port/server_process.py:
2040         (ServerProcess.stop): Move code waiting for the process to close to _wait_for_stop(...).
2041         (ServerProcess._wait_for_stop): Share code shutting down a process between ServerProcess
2042         and SimulatorProcess.
2043         * Scripts/webkitpy/port/simulator_process.py:
2044         (SimulatorProcess.stop): Before closing the process, check for leaks.
2045
2046 2017-08-18  Eric Carlson  <eric.carlson@apple.com>
2047
2048         Add WTFLogChannel level to allow runtime log filtering
2049         https://bugs.webkit.org/show_bug.cgi?id=175731
2050         <rdar://problem/33967234>
2051
2052         Reviewed by Jer Noble.
2053
2054         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2055         * TestWebKitAPI/Tests/WebCore/Logging.cpp: Added.
2056         (TestWebKitAPI::LoggingTest::output):
2057         (TestWebKitAPI::TEST_F):
2058
2059 2017-08-18  Alexey Proskuryakov  <ap@apple.com>
2060
2061         Add Dean Johnson to contributors.json for Bugzilla autocomplete.
2062
2063         * Scripts/webkitpy/common/config/contributors.json:
2064
2065 2017-08-18  Ross Kirsling  <ross.kirsling@sony.com>
2066
2067         [Tools] Add script to download a GitHub release
2068         https://bugs.webkit.org/show_bug.cgi?id=175279
2069
2070         Reviewed by Brent Fulgham.
2071
2072         * Scripts/download-latest-github-release.py: Added.
2073
2074 2017-08-18  Commit Queue  <commit-queue@webkit.org>
2075
2076         Unreviewed, rolling out r220854.
2077         https://bugs.webkit.org/show_bug.cgi?id=175716
2078
2079         I'm not sure we really need this (Requested by KaL on
2080         #webkit).
2081
2082         Reverted changeset:
2083
2084         "[GTK][WPE] Add NTLM authentication enabled API"
2085         https://bugs.webkit.org/show_bug.cgi?id=122952
2086         http://trac.webkit.org/changeset/220854
2087
2088 2017-08-17  Michael Catanzaro  <mcatanzaro@igalia.com>
2089
2090         [GTK] Make TestContextMenu work on Fedora
2091         https://bugs.webkit.org/show_bug.cgi?id=175708
2092
2093         Reviewed by Carlos Garcia Campos.
2094
2095         TestContextMenu has been broken for as long as I remember, but not on the bots, only for me
2096         and my student last summer who was trying to work on a context menu API. It's trying to load
2097         an MPEG-2 video file and confirm that right-clicking on it shows media element context menu
2098         entries. Doesn't work on Fedora. Dunno why, since Fedora actually can play MPEG-2, but I
2099         don't care to investigate. Let's switch it to WebM so I can move on.
2100
2101         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
2102         (prepareContextMenuTestView):
2103         * TestWebKitAPI/Tests/WebKitGLib/resources/silence.mpg: Removed.
2104         * TestWebKitAPI/Tests/WebKitGLib/resources/silence.webm: Added.
2105
2106 2017-08-17  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2107
2108         check-webkit-style shouldn't check spacing in #elif preprocessor lines
2109         https://bugs.webkit.org/show_bug.cgi?id=175652
2110
2111         Reviewed by Alex Christensen.
2112
2113         * Scripts/webkitpy/style/checkers/cpp.py:
2114         (check_spacing):
2115         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2116         (CppStyleTest.test_spacing_for_binary_ops):
2117
2118 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2119
2120         Fix the build on other platforms after r220865
2121         https://bugs.webkit.org/show_bug.cgi?id=175683
2122
2123         Reviewed by Tim Horton.
2124
2125         Check __IPHONE_OS_VERSION_MAX_ALLOWED instead of __IPHONE_OS_VERSION_MIN_REQUIRED in an SPI header. SPI
2126         availability is determined by SDK version rather than deployment version.
2127
2128         * TestWebKitAPI/ios/UIKitSPI.h:
2129
2130 2017-08-17  Andreas Kling  <akling@apple.com>
2131
2132         Disable CSS regions at compile time
2133         https://bugs.webkit.org/show_bug.cgi?id=175630
2134
2135         Reviewed by Antti Koivisto.
2136
2137         * Scripts/webkitperl/FeatureList.pm:
2138         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2139
2140 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2141
2142         Unreviewed, try to fix the internal iOS 10 build after r220865.
2143
2144         * TestWebKitAPI/ios/UIKitSPI.h:
2145
2146         On the iOS 10 SDK, UIApplication_Private.h cannot be imported in the simulator. Simply fall back to using the
2147         extern declaration when building for pre-iOS 11; once the bots stop building for iOS 10, we can safely remove
2148         this compiler guard.
2149
2150 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2151
2152         [iOS] Respect type fidelities when copying image elements to the pasteboard
2153         https://bugs.webkit.org/show_bug.cgi?id=175638
2154         <rdar://problem/26556043>
2155
2156         Reviewed by Ryosuke Niwa.
2157
2158         Add API tests that simulate copying an image element using the action sheet, and verifying that the pasteboard
2159         contains UTIs in order of fidelity (image type before URL). Also pulls out UIKit SPI (UIApplicationInitialize)
2160         used in UIPasteboardTests and ActionSheetTests into a common UIKitSPI header.
2161
2162         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2163         * TestWebKitAPI/Tests/ios/ActionSheetTests.mm:
2164         (-[ActionSheetObserver _webView:actionsForElement:defaultActions:]):
2165         (TestWebKitAPI::TEST):
2166         (TestWebKitAPI::presentActionSheetAndChooseAction):
2167         (-[ActionSheetObserver waitForActionSheetAfterBlock:]): Deleted.
2168         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2169         (checkEstimatedSize):
2170         (checkSuggestedNameAndEstimatedSize):
2171
2172         Replace -estimatedDisplayedSize with its non-deprecated counterpart, -preferredPresentationSize.
2173
2174         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
2175         (TestWebKitAPI::TEST):
2176         * TestWebKitAPI/ios/DataInteractionSimulator.h:
2177         * TestWebKitAPI/ios/UIKitSPI.h: Added.
2178
2179 2017-08-17  Jonathan Bedard  <jbedard@apple.com>
2180
2181         Recursively create resource load statistics folder for testing
2182         https://bugs.webkit.org/show_bug.cgi?id=175676
2183
2184         Reviewed by Brady Eidson.
2185
2186         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2187         (WTR::TestController::cocoaPlatformInitialize): Recursively create resourceLoadStatisticsFolder.
2188
2189 2017-08-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2190
2191         [GTK][WPE] Add NTLM authentication enabled API
2192         https://bugs.webkit.org/show_bug.cgi?id=122952
2193
2194         Reviewed by Michael Catanzaro.
2195
2196         Add a test case to check we can enable/disable NTLM.
2197
2198         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
2199         (testWebViewAuthenticationNTLM):
2200         (beforeAll):
2201
2202 2017-08-16  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2203
2204         [PAL] Move spi/ios and spi/win directories into PAL
2205         https://bugs.webkit.org/show_bug.cgi?id=175171
2206
2207         Reviewed by Antti Koivisto.
2208
2209         * DumpRenderTree/mac/EventSendingController.mm:
2210
2211 2017-08-16  Andy Estes  <aestes@apple.com>
2212
2213         [Payment Request] Add an ENABLE flag and an experimental feature preference
2214         https://bugs.webkit.org/show_bug.cgi?id=175622
2215
2216         Reviewed by Tim Horton.
2217
2218         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2219         * WebKitTestRunner/TestController.cpp:
2220         (WTR::TestController::resetPreferencesToConsistentValues):
2221
2222 2017-08-15  Aakash Jain  <aakash_jain@apple.com>
2223
2224         undefined URL in PopoverTracker for failed step
2225         https://bugs.webkit.org/show_bug.cgi?id=175593
2226         <rdar://problem/33898769>
2227
2228         Reviewed by Daniel Bates.
2229
2230         This fix is a workaround for Buildbot 0.9 bug <https://github.com/buildbot/buildbot/issues/3529> where it
2231         does not provide a URL to stdio for a build step. Buildbot 0.8 always included a URL to the stdio of the step.
2232
2233         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
2234         (BuildbotIteration.prototype._parseData): Pass the URL while instantiating BuildbotTestResults.
2235         (BuildbotIteration.prototype._urlForStep): Method to get the URL for a step.
2236         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
2237         (BuildbotTestResults): Accept URL in constructor.
2238
2239 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
2240
2241         Remove Proximity Events and related code
2242         https://bugs.webkit.org/show_bug.cgi?id=175545
2243
2244         Reviewed by Daniel Bates.
2245
2246         No platform enables Proximity Events, so remove code inside ENABLE(PROXIMITY_EVENTS)
2247         and other related code.
2248
2249         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2250
2251 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
2252
2253         Remove ENABLE(REQUEST_AUTOCOMPLETE) code, which was disabled everywhere
2254         https://bugs.webkit.org/show_bug.cgi?id=175504
2255
2256         Reviewed by Sam Weinig.
2257
2258         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2259
2260 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
2261
2262         Remove ENABLE_VIEW_MODE_CSS_MEDIA and related code
2263         https://bugs.webkit.org/show_bug.cgi?id=175557
2264
2265         Reviewed by Jon Lee.
2266         
2267         No port cares about the ENABLE(VIEW_MODE_CSS_MEDIA) feature, so remove it.
2268
2269         * DumpRenderTree/TestRunner.cpp:
2270         (TestRunner::staticFunctions):
2271         (setViewModeMediaFeatureCallback): Deleted.
2272         * DumpRenderTree/TestRunner.h:
2273         * DumpRenderTree/mac/TestRunnerMac.mm:
2274         (TestRunner::setViewModeMediaFeature): Deleted.
2275         * DumpRenderTree/win/TestRunnerWin.cpp:
2276         (TestRunner::setViewModeMediaFeature): Deleted.
2277         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2278
2279 2017-08-14  Andy Estes  <aestes@apple.com>
2280
2281         REGRESSION (r220456): Crash in PreviewLoader::shouldCreateForMIMEType() when a ResourceResponse has a null MIME type
2282         https://bugs.webkit.org/show_bug.cgi?id=175548
2283         <rdar://problem/33866206>
2284
2285         Reviewed by Brady Eidson.
2286
2287         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2288         * TestWebKitAPI/Tests/WebCore/ios/PreviewLoader.cpp: Added.
2289         (TestWebKitAPI::TEST): Added an API test for PreviewLoader::shouldCreateForMIMEType().
2290
2291 2017-08-14  Youenn Fablet  <youenn@apple.com>
2292
2293         WPT server should be able to do logging even if its output folder is not created at launch time
2294         https://bugs.webkit.org/show_bug.cgi?id=175543
2295
2296         Reviewed by Alexey Proskuryakov.
2297
2298         Removing no longer used stdout/stderr member variables.
2299         Creating if needed the output folder so that we can create WPT server output log folder at WPT server launch time.
2300
2301         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2302         (WebPlatformTestServer.__init__):
2303         (WebPlatformTestServer._prepare_config):
2304         (WebPlatformTestServer._spawn_process):
2305         (WebPlatformTestServer._stop_running_server):
2306
2307 2017-08-14  Daniel Bates  <dabates@apple.com>
2308
2309         webkit-patch: Passing --no-review should submit patch to EWS by default
2310         https://bugs.webkit.org/show_bug.cgi?id=148899
2311
2312         Reviewed by David Kilzer.
2313
2314         Make "webkit-patch upload --no-review" and "webkit-patch post-commits --no-review" submit
2315         the patch(es) for EWS analysis by default. Add a new optional command line argument, --no-ews,
2316         to these commands to not submit a non-reviewed patch(es) for EWS analysis.
2317
2318         Frequently I want to post a draft of a patch without review to have the EWS bots process
2319         it to catch build and test breakage before I clean it up and post it for formal review.
2320         Currently this requires using "webkit-patch upload --no-review --open-bug" to upload the
2321         patch and open the bug in Safari so that I can click the Submit for EWS analysis button.
2322         We should teach "webkit-patch upload" and "webkit-patch post-commits" how to do this.
2323
2324         * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
2325         (Bugzilla._parse_attachment_id_from_add_patch_to_bug_response): Add helper function to
2326         parse the attachment id from the response page after adding an attachment to the bug.
2327         (Bugzilla.add_patch_to_bug): Modified to parse and return the attachment id from the
2328         HTTP response after uploading the patch.
2329         * Scripts/webkitpy/common/net/bugzilla/bugzilla_mock.py:
2330         (MockBugzilla.add_patch_to_bug): Return a dummy attachment id for testing purposes.
2331         * Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:
2332         (test__parse_attachment_id_from_add_patch_to_bug_response): Added.
2333         * Scripts/webkitpy/tool/commands/upload.py:
2334         (Upload): Add step SubmitToEWS to the list of steps when uploading a patch. 
2335         (PostCommits.__init__): Add --no-ews option to the list of applicable option flags for
2336         this command.
2337         (PostCommits.execute): Submit the patch to EWS, if applicable.
2338         * Scripts/webkitpy/tool/commands/upload_unittest.py:
2339         (test_upload): Set options.ews to False as the upload command expects this option
2340         to be specified.
2341         (test_upload_with_no_review_and_ews): Added.
2342         * Scripts/webkitpy/tool/steps/__init__.py: Import module SubmitToEWS.
2343         * Scripts/webkitpy/tool/steps/options.py:
2344         (Options): Added command line option --no-ews (defaults: False - submit to EWS).
2345         * Scripts/webkitpy/tool/steps/postdiff.py:
2346         (PostDiff.options): Add --no-ews option to the list of applicable option flags for
2347         this command.
2348         (PostDiff.run): Submit the patch to EWS, if applicable.
2349         * Scripts/webkitpy/tool/steps/submittoews.py: Added.
2350         (SubmitToEWS):
2351         (SubmitToEWS.options): Return an empty array as we this step does not have any command line options.
2352         (SubmitToEWS.run): Submit the specified attachment ids for EWS analysis.
2353
2354 2017-08-14  Ryan Haddad  <ryanhaddad@apple.com>
2355
2356         Disable two flaky VideoControlsManager API tests.
2357
2358         Unreviewed test gardening.
2359
2360         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2361         (TestWebKitAPI::TEST):
2362
2363 2017-08-14  Tim Horton  <timothy_horton@apple.com>
2364
2365         Only create directory and sandbox extension handle for storage directories if they are set
2366         https://bugs.webkit.org/show_bug.cgi?id=175522
2367
2368         Reviewed by Brady Eidson.
2369
2370         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2371         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewDoesNotLogDuringInitialization.mm: Added.
2372         (TEST):
2373         Add a test that making a WKWebView with an ephemeral WKWebsiteDataStore
2374         doesn't log anything to stderr.
2375
2376 2017-08-14  Jonathan Bedard  <jbedard@apple.com>
2377
2378         sub-categorize Sandbox violation logs
2379         https://bugs.webkit.org/show_bug.cgi?id=175536
2380         <rdar://problem/33834416>
2381
2382         Reviewed by David Kilzer.
2383
2384         * Scripts/webkitpy/common/system/crashlogs.py:
2385         (CrashLogs._parse_darwin_crash_log): Add 'Sandbox-' to the log name if the log is
2386         a Sandbox violation.
2387         (CrashLogs._find_all_logs_darwin): Update comment.
2388         * Scripts/webkitpy/common/system/crashlogs_unittest.py:
2389         (make_mock_sandbox_report_darwin): Create a Sandbox violation log for testing. 
2390         (CrashLogsTest.create_crash_logs_darwin): Add Sandbox violation to list of crashes.
2391         (CrashLogsTest.test_find_all_log_darwin): 8 logs in testing instead of 7.
2392         (CrashLogsTest.test_duplicate_log_darwin): Check for Sandbox violation log.
2393         * Scripts/webkitpy/port/darwin.py:
2394         (DarwinPort._merge_crash_logs): Handle Sandbox violation case.
2395
2396 2017-08-14  Daniel Bates  <dabates@apple.com>
2397
2398         Add Automator service to copy permalink to Clipboard
2399         https://bugs.webkit.org/show_bug.cgi?id=170978
2400
2401         Reviewed by Joseph Pecoraro.
2402
2403         It is helpful to reference using a hyperlink a particular line of code when having
2404         a discussion on IRC or in a bug. You can get such a link by navigating to the file
2405         in the Trac Browse Source viewer and selecting the line your are interested in.
2406         I found myself doing this often enough that I wrote an Automator service to do it
2407         for me.
2408
2409         This Automator service works with Xcode 8 and Xcode 9 beta 5 (9M202q) or later.
2410
2411         * CopyPermalink/Copy WebKit Permalink.workflow/Contents/Info.plist: Added.
2412         * CopyPermalink/Copy WebKit Permalink.workflow/Contents/document.wflow: Added.
2413         * CopyPermalink/README: Added.
2414
2415 2017-08-14  Chris Dumez  <cdumez@apple.com>
2416
2417         Address flakiness related to download tests
2418         https://bugs.webkit.org/show_bug.cgi?id=175338
2419         <rdar://problem/33865119>
2420
2421         Unreviewed, forgot in r220626 to reset m_shouldLogDownloadCallbacks to false
2422         between tests.
2423
2424         * WebKitTestRunner/TestController.cpp:
2425         (WTR::TestController::resetStateToConsistentValues):
2426
2427 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
2428
2429         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
2430         https://bugs.webkit.org/show_bug.cgi?id=175474
2431         <rdar://problem/33844628>
2432
2433         Reviewed by Wenson Hsieh.
2434
2435         Enable dataTransfer.items by default in DumpRenderTree and WebKitTestRunner for testing purposes.
2436
2437         * DumpRenderTree/mac/DumpRenderTree.mm:
2438         (resetWebPreferencesToConsistentValues):
2439         * WebKitTestRunner/TestController.cpp:
2440         (WTR::TestController::resetPreferencesToConsistentValues):
2441
2442 2017-08-12  Chris Dumez  <cdumez@apple.com>
2443
2444         Address flakiness related to download tests
2445         https://bugs.webkit.org/show_bug.cgi?id=175338
2446
2447         Reviewed by Ryosuke Niwa.
2448
2449         - Update WKTR so that the flag set by testRunner.waitUntilDownloadFinished()
2450           is actually queried when a download completes. Previously, this would be
2451           identical to a call to testRunner.waitUntilDone() because any download
2452           completion would call testRunner.notifyDone().
2453         - Disable logging of download callbacks by default and add a
2454           testRunner.setShouldLogDownloadCallbacks(true) API to allow tests to
2455           enable such logging.
2456
2457         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2458         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2459         (WTR::InjectedBundle::didReceiveMessageToPage):
2460         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2461         (WTR::TestRunner::setShouldLogDownloadCallbacks):
2462         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2463         * WebKitTestRunner/TestController.cpp:
2464         (WTR::TestController::downloadDidStart):
2465         (WTR::TestController::decideDestinationWithSuggestedFilename):
2466         (WTR::TestController::downloadDidFinish):
2467         (WTR::TestController::downloadDidFail):
2468         (WTR::TestController::downloadDidCancel):
2469         * WebKitTestRunner/TestController.h:
2470         (WTR::TestController::setShouldLogDownloadCallbacks):
2471         * WebKitTestRunner/TestInvocation.cpp:
2472         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2473
2474 2017-08-11  Jonathan Bedard  <jbedard@apple.com>
2475
2476         Create mock ITP data in testing to prevent grandfathering
2477         https://bugs.webkit.org/show_bug.cgi?id=174720
2478
2479         Unreviewed follow-up fix for r220604.
2480
2481         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2482         (WTR::TestController::cocoaPlatformInitialize): Release resourceLogPlist.
2483
2484 2017-08-11  Jonathan Bedard  <jbedard@apple.com>
2485
2486         Create mock ITP data in testing to prevent grandfathering
2487         https://bugs.webkit.org/show_bug.cgi?id=174720
2488         <rdar://problem/33457779>
2489
2490         Reviewed by Brent Fulgham.
2491
2492         We don't need to be triggering grandfathering when each test runner starts. On Mac,
2493         this may launch plugins which can cause layout tests to fail later if the test
2494         runner does not shut-down before the plugins unload.
2495
2496         * WebKitTestRunner/TestController.h: Add declaration of cocoaPlatformInitialize.
2497         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2498         (WTR::TestController::cocoaPlatformInitialize): Write the minimum data required to
2499         prevent grandfathering from being triggered.
2500         * WebKitTestRunner/ios/TestControllerIOS.mm:
2501         (WTR::TestController::platformInitialize): Call cocoaPlatformInitialize.
2502         * WebKitTestRunner/mac/TestControllerMac.mm:
2503         (WTR::TestController::platformInitialize): Ditto.
2504
2505 2017-08-11  Sam Weinig  <sam@webkit.org>
2506
2507         WTF::Function does not allow for reference / non-default constructible return types
2508         https://bugs.webkit.org/show_bug.cgi?id=175244
2509         <rdar://problem/33801582>
2510
2511         Reviewed by Chris Dumez.
2512
2513         * TestWebKitAPI/Tests/WTF/Function.cpp:
2514         (TestWebKitAPI::TEST):
2515
2516 2017-08-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2517
2518         [Soup] Cannot access HTTPS sites using a HTTP proxy that requires authentication
2519         https://bugs.webkit.org/show_bug.cgi?id=175378
2520
2521         Reviewed by Sergio Villar Senin.
2522
2523         Add two test cases to check proxy authentication.
2524
2525         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
2526         (Tunnel::Tunnel):
2527         (Tunnel::~Tunnel):
2528         (Tunnel::connect):
2529         (Tunnel::connected):
2530         (serverCallback):
2531         (ProxyAuthenticationTest::ProxyAuthenticationTest):
2532         (ProxyAuthenticationTest::~ProxyAuthenticationTest):
2533         (ProxyAuthenticationTest::proxyServerPortAsString):
2534         (testWebViewAuthenticationProxy):
2535         (testWebViewAuthenticationProxyHTTPS):
2536         (beforeAll):
2537
2538 2017-08-11  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2539
2540         [GStreamer][GTK][WPE] Unify GStreamer JHBuild moduleset for both GTK+ and WPE
2541         https://bugs.webkit.org/show_bug.cgi?id=175428
2542
2543         Both ports share the GStreamer code as multimedia backend and till
2544         not so long they were using different versions. Now they do use
2545         the same versions and it does not make any sense anymore (and
2546         neither had sense before) to have differences in the modulesets.
2547
2548         In this patch I created a GStreamer moduleset and referenced it
2549         from both GTK+'s and WPE's. GStreamer patches were also moved there.
2550
2551         Reviewed by Žan Doberšek.
2552
2553         * gstreamer/jhbuild.modules: Added.
2554         * 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.
2555         * 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.
2556         * 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.
2557         * 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.
2558         * 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.
2559         * gstreamer/patches/openh264-configure.patch: Renamed from Tools/gtk/patches/openh264-configure.patch.
2560         * gtk/jhbuild.modules:
2561         * wpe/jhbuild.modules:
2562         * wpe/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Removed.
2563         * wpe/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Removed.
2564         * wpe/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Removed.
2565         * wpe/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Removed.
2566         * wpe/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Removed.
2567
2568 2017-08-10  Don Olmstead  <don.olmstead@sony.com>
2569
2570         Unreviewed, adding Ross Kirsling to contributors.json
2571
2572         * Scripts/webkitpy/common/config/contributors.json:
2573
2574 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
2575
2576         Unreviewed, attempt to fix build failure with VC2017
2577
2578         * TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:
2579         (TEST):
2580
2581 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
2582
2583         Unreviewed, suppress warnings on GCC
2584
2585         * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
2586         (TestWebKitAPI::CheckedArithmeticTester::run):
2587
2588 2017-08-10  Dan Bernstein  <mitz@apple.com>
2589
2590         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
2591         https://bugs.webkit.org/show_bug.cgi?id=173223
2592
2593         Reviewed by Tim Horton.
2594
2595         The rebuilds were happening due to a difference in the compiler options that the IDE and
2596         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
2597         xcodebuild pass that option, too, set INDEX_ENABLE_DATA_STORE to YES and
2598         INDEX_DATA_STORE_DIR to the Index Datastore path specified in Xcode Locations preferences >
2599         Advanced when a Custom Absolute path is selected.
2600
2601         * Scripts/webkitdirs.pm:
2602         (determineBaseProductDir):
2603
2604 2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
2605
2606         Run more WTF tests
2607         https://bugs.webkit.org/show_bug.cgi?id=174970
2608
2609         Reviewed by Michael Catanzaro.
2610
2611         Some of WTF tests are not executed in non Apple ports while they are generic ones.
2612         This patch adds these tests to non-Apple port TestWebKitAPI.
2613         Currently, we do not add Signals.cpp since it depends on signal functionality.
2614
2615         * TestWebKitAPI/CMakeLists.txt:
2616         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2617         * TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:
2618         (isHigherPriority):
2619         (TEST):
2620         * TestWebKitAPI/Tests/WTF/Signals.cpp: Copied from Tools/TestWebKitAPI/Tests/WTF/ThreadMessages.cpp.
2621         (TEST):
2622         * TestWebKitAPI/Tests/WTF/ThreadMessages.cpp:
2623         (TEST):
2624
2625 2017-08-10  obinna obike  <oobike@apple.com>
2626
2627         Remove obsolete link from webkit-queues status page
2628         https://bugs.webkit.org/show_bug.cgi?id=175337
2629
2630         Reviewed by Aakash Jain.
2631
2632         * QueueStatusServer/templates/recentstatus.html:
2633         Removed the link to the ews-watcher server.
2634
2635 2017-08-10  Brian Burg  <bburg@apple.com>
2636
2637         WKPreferences should conform to NSCopying
2638         https://bugs.webkit.org/show_bug.cgi?id=175303
2639         <rdar://problem/33764939>
2640
2641         Reviewed by Dan Bernstein.
2642
2643         Add unit test to make sure a WKPreference and its copy are
2644         not aliased to each other or affect each other's properties.
2645
2646         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2647         * TestWebKitAPI/Tests/WebKit2Cocoa/Copying.mm: Added.
2648         (TEST):
2649
2650 2017-08-10  Tim Horton  <timothy_horton@apple.com>
2651
2652         Remove some unused lambda captures so that WebKit builds with -Wunused-lambda-capture
2653         https://bugs.webkit.org/show_bug.cgi?id=175436
2654         <rdar://problem/33667497>
2655
2656         Reviewed by Simon Fraser.
2657
2658         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
2659         (TestWebKitAPI::TEST_F):
2660
2661 2017-08-10  Lucas Forschler  <lforschler@apple.com>
2662
2663         Fix duplicated code in r220534.
2664
2665         Unreviewed cleanup.
2666
2667         * Scripts/bisect-builds:
2668
2669 2017-08-08  Jiewen Tan  <jiewen_tan@apple.com>
2670
2671         [WebCrypto] Enable SerializedCryptoKeyWrapTest in iOS
2672         https://bugs.webkit.org/show_bug.cgi?id=175344
2673         <rdar://problem/28507240>
2674
2675         Reviewed by Alexey Proskuryakov.
2676
2677         Add entitlements to TestWebKitAPI project for iOS. Then add Keychain Access entitlement to the project.
2678         Finally enable the existing tests for iOS.
2679
2680         * TestWebKitAPI/Configurations/TestWebKitAPI-iOS.entitlements: Added.
2681         * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig:
2682         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2683         * TestWebKitAPI/Tests/WebCore/cocoa/SerializedCryptoKeyWrap.mm:
2684
2685 2017-08-10  Lucas Forschler  <lforschler@apple.com>
2686
2687         Write a tool to bisect WebKit builds
2688         https://bugs.webkit.org/show_bug.cgi?id=174596
2689
2690         Reviewed by Dean Johnson and Kocsen Chung.
2691
2692         * Scripts/bisect-builds: Added.
2693         (bisect_builds): main bisection algorithm
2694         (download_archive):download an archive from S3 using existing tools
2695         (extract_archive):extract an archive using existing tools
2696         (find_le):Find rightmost value less than or equal to x
2697         (find_ge):Find leftmost item greater than or equal to x
2698         (get_api_url):generate url for the rest api/database
2699         (get_indices_from_revisions):convert revisions to list indexes for bisection
2700         (get_sorted_revisions):retrieve sorted revision list
2701         (get_s3_location_for_revision):calculate the S3 archive storage location
2702         (parse_args):parse command line arguments
2703         (pick_next_build):compute the next build to bisect
2704         (prompt_did_reproduce):prompt user for direction for bisection
2705         (set_webkit_output_dir):set the folder for bisected builds to avoid overwriting engineering build output
2706         (test_archive):Platform specific logic to test downloaded archive
2707         (minified_platforms):return a list of minified platforms in the database
2708         (unminified_platforms):return a list of full platforms in the database
2709         (is_supported_platform):check if platform is supported
2710         (validate_options):validate command line options
2711         (main):
2712
2713 2017-08-10  Lucas Forschler  <lforschler@apple.com>
2714
2715         Remove bisect-builds script.
2716         https://bugs.webkit.org/show_bug.cgi?id=175433
2717         
2718         Reviewed by Aakash Jain.
2719
2720         * Scripts/bisect-builds: Removed.
2721
2722 2017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
2723
2724         Remove ENABLE_GAMEPAD_DEPRECATED
2725         https://bugs.webkit.org/show_bug.cgi?id=175361
2726
2727         Reviewed by Carlos Garcia Campos.
2728
2729         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2730
2731 2017-08-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2732
2733         REGRESSION(r220515) [GTK][CMake] Build with ENABLE_GEOLOCATION fails on Debian Jessie
2734         https://bugs.webkit.org/show_bug.cgi?id=175426
2735
2736         Reviewed by Carlos Garcia Campos.
2737
2738         * gtk/install-dependencies: libgeoclue-dev packages not really needed on Debian/Ubuntu.
2739
2740 2017-08-10  Ms2ger  <Ms2ger@igalia.com>
2741
2742         Add Ms2ger as contributor.
2743         https://bugs.webkit.org/show_bug.cgi?id=175325
2744
2745         Reviewed by Carlos Alberto Lopez Perez.
2746
2747         * Scripts/webkitpy/common/config/contributors.json:
2748
2749 2017-08-09  Dewei Zhu  <dewei_zhu@apple.com>
2750
2751         Fix run-benchmark after r220483.
2752         https://bugs.webkit.org/show_bug.cgi?id=175415
2753         <rdar://problem/33803003>
2754
2755         Reviewed by Ryosuke Niwa.
2756
2757         Update run-benchmark script to adapt new Timeout implementation introduced in r220483.
2758
2759         * Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py:
2760         (WebServerBenchmarkRunner._run_one_test):
2761
2762 2017-08-09  Chris Dumez  <cdumez@apple.com>
2763
2764         Disable Beacon API on WK1 DRT and WK2 when not using NETWORK_SESSION
2765         https://bugs.webkit.org/show_bug.cgi?id=175401
2766
2767         Reviewed by Brady Eidson.
2768
2769         * DumpRenderTree/mac/DumpRenderTree.mm:
2770         (enableExperimentalFeatures):
2771
2772 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2773
2774         [PAL] Move spi/cocoa and spi/cg directories into PAL
2775         https://bugs.webkit.org/show_bug.cgi?id=175175
2776
2777         Reviewed by Myles C. Maxfield.
2778
2779         * DumpRenderTree/ios/PixelDumpSupportIOS.mm:
2780         * DumpRenderTree/mac/DumpRenderTree.mm:
2781         * TestWebKitAPI/Tests/WebKit2Cocoa/NSFileManagerExtras.mm:
2782         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2783
2784         * Scripts/webkitpy/style/checker.py:
2785         * Scripts/webkitpy/style/checker_unittest.py:
2786         (GlobalVariablesTest.test_path_rules_specifier):
2787
2788         Add path rules specifiers for PassKitSPI.h and DataDetectorsCoreSPI.h
2789
2790         * Scripts/webkitpy/style/checkers/cpp.py:
2791         (check_braces):
2792         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2793         (WebKitStyleTest.test_braces.CF_OPTIONS):
2794         (WebKitStyleTest.test_braces):
2795
2796         Prevent CF_OPTIONS() from being handled as funtion definition.
2797
2798 2017-08-09  Don Olmstead  <don.olmstead@sony.com>
2799
2800         [WTF] Move TextStream into WTF
2801         https://bugs.webkit.org/show_bug.cgi?id=175211
2802
2803         Reviewed by Myles C. Maxfield.
2804
2805         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
2806
2807 2017-08-09  Andy Estes  <aestes@apple.com>
2808
2809         Part 3 of: Rename DatabaseProcess to StorageProcess
2810         https://bugs.webkit.org/show_bug.cgi?id=175034
2811
2812         Reviewed by Brady Eidson.
2813
2814         * WebKitTestRunner/TestController.cpp:
2815         (WTR::TestController::databaseProcessName): Updated to return
2816         "com.apple.WebKit.Storage.Development" on macOS and iOS Simulator.
2817
2818 2017-08-09  Commit Queue  <commit-queue@webkit.org>
2819
2820         Unreviewed, rolling out r220466, r220477, and r220487.
2821         https://bugs.webkit.org/show_bug.cgi?id=175411
2822
2823         This change broke existing API tests and follow up fixes did
2824         not resolve all the issues. (Requested by ryanhaddad on
2825         #webkit).
2826
2827         Reverted changesets:
2828
2829         https://bugs.webkit.org/show_bug.cgi?id=175244
2830         http://trac.webkit.org/changeset/220466
2831
2832         "WTF::Function does not allow for reference / non-default
2833         constructible return types"
2834         https://bugs.webkit.org/show_bug.cgi?id=175244
2835         http://trac.webkit.org/changeset/220477
2836
2837         https://bugs.webkit.org/show_bug.cgi?id=175244
2838         http://trac.webkit.org/changeset/220487
2839
2840 2017-08-09  Sam Weinig  <sam@webkit.org>
2841
2842         Update for https://bugs.webkit.org/show_bug.cgi?id=175244.
2843
2844         Remove one addition of null Function test.
2845
2846 2017-08-09  Jonathan Bedard  <jbedard@apple.com>
2847
2848         Allow nested timeouts in webkitpy
2849         https://bugs.webkit.org/show_bug.cgi?id=175390
2850         <rdar://problem/33803003>
2851
2852         Reviewed by David Kilzer.
2853
2854         We need to be able to nest timeouts in webkitpy. In particular, we have a few cases where functions
2855         which use timeouts also call the executive. For on-device testing, we need to have timeouts inside
2856         the executive to detect and recover from any issues connecting with devices.
2857
2858         * Scripts/webkitpy/benchmark_runner/utils.py:
2859         (TimeoutError): Deleted.
2860         (timeout): Deleted.
2861         * Scripts/webkitpy/common/timeout_context.py: Added.
2862         (Timeout): A timeout context designed to be nested.
2863         (Timeout.TimeoutData): The data required to construct an alarm for a given timeout.
2864         (Timeout.TimeoutData.__init__):
2865         (Timeout.default_handler): Timeout handler used if none is specified.
2866         (Timeout.current): Access data about the most urgent timeout.
2867         (Timeout.__init__): Construct a Timeout object with seconds and an optional handler.
2868         (Timeout._bind_timeout_data_to_alarm): Given data about a timeout, initialize an alarm for that timeout.
2869         (Timeout.__enter__): Un-bind all alarms. Add data for this timeout to the ordered list and bind the most
2870         urgent timeout data.
2871         (Timeout.__exit__): Un-bind all alarms. Remove data for this timeout from the ordered list and bind the
2872         most urgent timeout data, if such data exists.
2873         * Scripts/webkitpy/common/timeout_context_unittest.py: Added.
2874         (TimeoutContextTests):
2875         (TimeoutContextTests.test_current_timeout): Test that accessing the nearest timeout works as expected.
2876         (TimeoutContextTests.test_invalid_timeout): Test a timeout of 0.
2877         (TimeoutContextTests.test_timeout_data): Confirm that timeouts are constructed correctly.
2878         (TimeoutContextTests.test_nested_inner_precedence): Check that a more urgent inner timeout takes precedence
2879         over a less urgent outer timeout.
2880         (TimeoutContextTests.test_nested_outer_precedence): Check that a more urgent outer timeout takes precedence
2881         over a less urgent inner timeout.
2882         (TimeoutContextTests.test_no_timeout): Test a block of code without a timeout.
2883         (TimeoutContextTests.test_basic_timeout): Test a block of code expected to timeout.
2884         (TimeoutContextTests.test_exception_constructor_timeout): Test a timeout where the handler is an exception.
2885         (TimeoutContextTests.test_nested_inner_timeout): Confirm that a more urgent inner timeout is triggered.
2886         (TimeoutContextTests.test_nested_outer_timeout): Confirm that a more urgent outer timeout is triggered.
2887         * Scripts/webkitpy/port/simulator_process.py:
2888         (SimulatorProcess._start): Use Timeout class.
2889         * Scripts/webkitpy/xcode/simulated_device.py:
2890         (SimulatedDevice.launch_app._log_debug_error): Use Timeout class.
2891         (SimulatedDevice.launch_app): Ditto.
2892         (SimulatedDevice.launch_app._install_timeout): Deleted.
2893         * Scripts/webkitpy/xcode/simulator.py:
2894         (Simulator.wait_until_device_is_booted):Use Timeout class.
2895         (Simulator.wait_until_device_is_in_state): Ditto.
2896
2897 2017-08-09  Wenson Hsieh  <wenson_hsieh@apple.com>
2898
2899         [iOS DnD] ENABLE_DRAG_SUPPORT should be turned off for iOS 10 and enabled by default
2900         https://bugs.webkit.org/show_bug.cgi?id=175392
2901         <rdar://problem/33783207>
2902
2903         Reviewed by Tim Horton and Megan Gardner.
2904
2905         Tweak FeatureDefines to enable drag and drop by default, and disable only on unsupported platforms (i.e. iOS 10).
2906
2907         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2908
2909 2017-08-09  Sam Weinig  <sam@webkit.org>
2910
2911         Update for https://bugs.webkit.org/show_bug.cgi?id=175244.
2912
2913         * TestWebKitAPI/Tests/WTF/Function.cpp:
2914         Remove tests of null Functions, as they are no longer supported.
2915
2916 2017-08-09  Daniel Bates  <dabates@apple.com>
2917
2918         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
2919         https://bugs.webkit.org/show_bug.cgi?id=175247
2920         <rdar://problem/33679804>
2921
2922         Reviewed by Brady Eidson.
2923
2924         Add tests for redirects.
2925
2926         * TestWebKitAPI/Tests/WebKit2Cocoa/DecidePolicyForNavigationAction.mm:
2927         (TEST):
2928         * TestWebKitAPI/cocoa/TestProtocol.mm:
2929         (createRedirectURL):
2930         (-[TestProtocol startLoading]):
2931
2932 2017-08-08  Wenson Hsieh  <wenson_hsieh@apple.com>
2933
2934         Unreviewed, rolling out r220393.
2935
2936         This patch regresses the performance of WebPage::editorState.
2937
2938         Reverted changeset:
2939
2940         "[iOS WK2] WKWebView schedules nonstop layout after pressing
2941         cmb+b,i,u inside a contenteditable div"
2942         https://bugs.webkit.org/show_bug.cgi?id=175116
2943         http://trac.webkit.org/changeset/220393
2944
2945 2017-08-08  obinna obike  <oobike@apple.com>
2946
2947         Created Individual EWS Pages
2948         https://bugs.webkit.org/show_bug.cgi?id=174477
2949
2950         Reviewed by Aakash Jain.
2951
2952         Created individual pages for each EWS. Changed the link within each status bubble
2953         to go directly to the individual EWS page. Also added a link to original status page showing all EWSes.
2954
2955         * QueueStatusServer/handlers/patch.py:
2956         (Patch.get): Handles the case for individual ews queue as well as for all EWS queues.
2957         * QueueStatusServer/handlers/statusbubble.py:
2958         (StatusBubble._build_bubble): Updated url for specific EWS.
2959         * QueueStatusServer/main.py: Added a link to the individual ews in the routes dictionary.
2960         * QueueStatusServer/templates/patch.html: Added a link to go directly to the page with
2961         all ews queues.
2962         * QueueStatusServer/templates/statusbubble.html: If you click on a statusbubble it
2963         takes you directly to the individual ews page.
2964
2965 2017-08-08  Stephan Szabo  <stephan.szabo@sony.com>
2966
2967         Separate jsc stress test script writer from run-jsc-stress-tests
2968         https://bugs.webkit.org/show_bug.cgi?id=175216
2969
2970         Reviewed by Mark Lam.
2971
2972         * Scripts/run-jsc-stress-tests:
2973         * Scripts/webkitruby/jsc-stress-test-writer-default.rb: Added.
2974
2975 2017-08-08  Michael Catanzaro  <mcatanzaro@igalia.com>
2976
2977         Unreviewed, fix Ubuntu LTS build
2978         https://bugs.webkit.org/show_bug.cgi?id=174490
2979
2980         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
2981
2982 2017-08-08  Wenson Hsieh  <wenson_hsieh@apple.com>
2983
2984         [Mac WK2] WebViewImpl should hold a weak pointer to its WKWebView or WKView
2985         https://bugs.webkit.org/show_bug.cgi?id=175302
2986         <rdar://problem/33762116>
2987
2988         Reviewed by Tim Horton.
2989
2990         Adds a new unit test checking that delayed event processing in text input context does not cause unwanted behaviors.
2991         See WebKit ChangeLog for more details.
2992
2993         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2994         * TestWebKitAPI/Tests/TestWebKitAPI/mac/AppKitSPI.h: Renamed from Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac/NSTextInputClientSPI.h.
2995         * TestWebKitAPI/Tests/mac/WKWebViewMacEditingTests.mm: Renamed from Tools/TestWebKitAPI/Tests/mac/WKWebViewSelectionTests.mm.
2996         (-[SlowTextInputContext handleEventByInputMethod:completionHandler:]):
2997         (-[SlowTextInputContext handleEvent:completionHandler:]):
2998         (-[SlowInputWebView inputContext]):
2999         (-[SlowInputWebView _web_superInputContext]):
3000         (TEST):
3001
3002 2017-08-08  John Wilander  <wilander@apple.com>
3003
3004         Resource Load Statistics: Clear web processes' state on history removal
3005         https://bugs.webkit.org/show_bug.cgi?id=175271
3006         <rdar://problem/33756560>
3007
3008         Reviewed by Chris Dumez.
3009
3010         Test infrastructure for asynchronous tests of website data
3011         removal for _WKWebsiteDataTypeResourceLoadStatistics.
3012
3013         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3014         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3015         (WTR::InjectedBundle::didReceiveMessageToPage):
3016         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3017         (WTR::TestRunner::statisticsClearThroughWebsiteDataRemoval):
3018         (WTR::TestRunner::statisticsCallClearThroughWebsiteDataRemovalCallback):
3019         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3020         * WebKitTestRunner/TestController.cpp:
3021         (WTR::TestController::statisticsClearThroughWebsiteDataRemoval):
3022         * WebKitTestRunner/TestController.h:
3023         * WebKitTestRunner/TestInvocation.cpp:
3024         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
3025         (WTR::TestInvocation::didClearStatisticsThroughWebsiteDataRemoval):
3026         * WebKitTestRunner/TestInvocation.h:
3027         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3028         (WTR::TestController::statisticsClearThroughWebsiteDataRemoval):
3029
3030 2017-08-08  Alicia Boya García  <aboya@igalia.com>
3031
3032         Add Alicia Boya García as contributor
3033         https://bugs.webkit.org/show_bug.cgi?id=175326
3034
3035         Reviewed by Michael Catanzaro.
3036
3037         * Scripts/webkitpy/common/config/contributors.json:
3038
3039 2017-08-08  Michael Catanzaro  <mcatanzaro@igalia.com>
3040
3041         [CMake] Properly test if compiler supports compiler flags
3042         https://bugs.webkit.org/show_bug.cgi?id=174490
3043
3044         Reviewed by Konstantin Tokarev.
3045
3046         * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
3047         * MiniBrowser/gtk/CMakeLists.txt:
3048         * TestRunnerShared/Bindings/JSWrapper.cpp:
3049         (WTR::JSWrapper::initialize):
3050         * TestWebKitAPI/CMakeLists.txt:
3051         * TestWebKitAPI/PlatformGTK.cmake:
3052         * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
3053         (TestWebKitAPI::CheckedArithmeticTester::run):
3054         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
3055         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
3056         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
3057         (formControlsAssociatedCallback):
3058         * TestWebKitAPI/glib/CMakeLists.txt:
3059         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
3060         (Test::getResourcesDir):
3061         * WebKitTestRunner/CMakeLists.txt:
3062         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3063         (WTR::menuItemClickCallback):
3064         (WTR::staticConvertMenuItemToType):
3065         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3066         (WTR::TestRunner::setUseDashboardCompatibilityMode):
3067         * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
3068         (WTR::AccessibilityNotificationHandler::disconnectAccessibilityCallbacks):
3069         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3070         (WTR::AccessibilityUIElement::helpText const):
3071         (WTR::AccessibilityUIElement::attributedStringForRange):
3072         * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
3073         (WTR::EventSenderProxy::updateTouchPoint):
3074         (WTR::EventSenderProxy::releaseTouchPoint):
3075
3076 2017-08-08  Wenson Hsieh  <wenson_hsieh@apple.com>
3077
3078         [iOS WK2] WKWebView schedules nonstop layout after pressing cmb+b,i,u inside a contenteditable div
3079         https://bugs.webkit.org/show_bug.cgi?id=175116
3080         <rdar://problem/28279301>
3081
3082         Reviewed by Darin Adler and Ryosuke Niwa.
3083
3084         Introduces new testing infrastructure and API tests to test EditorState updates in the UI process. The new
3085         EditorStateTests run on both iOS and Mac.
3086
3087         * TestWebKitAPI/EditingTestHarness.h: Added.
3088         * TestWebKitAPI/EditingTestHarness.mm: Added.
3089
3090         EditingTestHarness is a helper object that API tests may use to apply editing commands and store EditorState
3091         history. This test harness adds sugaring around various editing commands, and simplifies the process of checking
3092         the state of the latest observed EditorState.
3093
3094         (-[EditingTestHarness initWithWebView:]):
3095         (-[EditingTestHarness dealloc]):
3096         (-[EditingTestHarness webView]):
3097         (-[EditingTestHarness latestEditorState]):
3098         (-[EditingTestHarness editorStateHistory]):
3099         (-[EditingTestHarness insertText:andExpectEditorStateWith:]):
3100         (-[EditingTestHarness insertHTML:andExpectEditorStateWith:]):
3101         (-[EditingTestHarness selectAllAndExpectEditorStateWith:]):
3102         (-[EditingTestHarness moveBackwardAndExpectEditorStateWith:]):
3103         (-[EditingTestHarness moveWordBackwardAndExpectEditorStateWith:]):
3104         (-[EditingTestHarness toggleBold]):
3105         (-[EditingTestHarness toggleItalic]):
3106         (-[EditingTestHarness toggleUnderline]):
3107         (-[EditingTestHarness setForegroundColor:]):
3108         (-[EditingTestHarness alignJustifiedAndExpectEditorStateWith:]):
3109         (-[EditingTestHarness alignLeftAndExpectEditorStateWith:]):
3110         (-[EditingTestHarness alignCenterAndExpectEditorStateWith:]):
3111         (-[EditingTestHarness alignRightAndExpectEditorStateWith:]):
3112         (-[EditingTestHarness insertParagraphAndExpectEditorStateWith:]):
3113         (-[EditingTestHarness deleteBackwardAndExpectEditorStateWith:]):
3114         (-[EditingTestHarness _execCommand:argument:expectEntries:]):
3115
3116         Dispatches an editing command to the web process, and blocks until a response is received. If an expected
3117         entries dictionary is given, this will additionally verify that the latest EditorState contains all the expected
3118         keys and values.
3119
3120         (-[EditingTestHarness latestEditorStateContains:]):
3121         (-[EditingTestHarness _webView:editorStateDidChange:]):
3122         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3123         * TestWebKitAPI/Tests/WebKit2Cocoa/EditorStateTests.mm: Added.
3124         (TestWebKitAPI::setUpEditorStateTestHarness):
3125         (TestWebKitAPI::TEST):
3126         * TestWebKitAPI/Tests/WebKit2Cocoa/editor-state-test-harness.html: Added.
3127
3128 2017-08-04  Brent Fulgham  <bfulgham@apple.com>
3129
3130         Prevent domain from being set to a TLD
3131         https://bugs.webkit.org/show_bug.cgi?id=175226
3132         <rdar://problem/11079948>
3133
3134         Reviewed by Chris Dumez.
3135
3136         Extend the public suffix tests to include cases used by the
3137         Public Domain 'Public Suffix List'.
3138
3139         * TestWebKitAPI/Tests/mac/PublicSuffix.cpp: 
3140         (TestWebKitAPI::TEST):
3141
3142 2017-08-07  Stephan Szabo  <stephan.szabo@sony.com>
3143
3144         [XCode] webkit-patch should run sort-Xcode-project-file
3145         https://bugs.webkit.org/show_bug.cgi?id=174036
3146         <rdar://problem/33732709>
3147
3148         Reviewed by Simon Fraser.
3149
3150         * Scripts/webkitpy/common/config/ports.py:
3151         * Scripts/webkitpy/tool/commands/download.py:
3152         * Scripts/webkitpy/tool/commands/download_unittest.py:
3153         * Scripts/webkitpy/tool/commands/upload.py:
3154         * Scripts/webkitpy/tool/commands/upload_unittest.py:
3155         * Scripts/webkitpy/tool/steps/__init__.py:
3156         * Scripts/webkitpy/tool/steps/options.py:
3157         * Scripts/webkitpy/tool/steps/sortxcodeprojectfiles.py: Added.
3158
3159 2017-08-07  Devin Rousso  <drousso@apple.com>
3160
3161         Web Inspector: Preview Canvas path when viewing a recording
3162         https://bugs.webkit.org/show_bug.cgi?id=174967
3163
3164         Reviewed by Brian Burg.
3165
3166         * DumpRenderTree/TestOptions.h:
3167         * DumpRenderTree/TestOptions.mm:
3168         (TestOptions::TestOptions):
3169         * DumpRenderTree/mac/DumpRenderTree.mm:
3170         (setWebPreferencesForTestOptions):
3171         * WebKitTestRunner/TestController.cpp:
3172         (WTR::TestController::resetPreferencesToConsistentValues):
3173         (WTR::updateTestOptionsFromTestHeader):
3174         * WebKitTestRunner/TestOptions.h:
3175         (WTR::TestOptions::hasSameInitializationOptions const):
3176         Add plumbing for new InspectorAdditions runtime flag.
3177
3178 2017-08-07  obinna obike  <oobike@apple.com>
3179
3180         Sorted EWS Queues on Patch page
3181         https://bugs.webkit.org/show_bug.cgi?id=173667
3182
3183         Reviewed by Aakash Jain.
3184
3185         * QueueStatusServer/handlers/patch.py:
3186         (Patch.get): Sorted queue_status.
3187         * QueueStatusServer/templates/patch.html:
3188         Changed queue_status.items to queue_status because it's a list.
3189
3190 2017-08-07  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
3191
3192         check-webkit-style: NS_ERROR_ENUM and NS_OPTIONS should not be handled as function definitions.
3193         https://bugs.webkit.org/show_bug.cgi?id=175286
3194
3195         Reviewed by Myles C. Maxfield.
3196
3197         * Scripts/webkitpy/style/checkers/cpp.py:
3198         (check_braces):
3199         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
3200         (WebKitStyleTest.test_braces.NS_ERROR_ENUM):
3201         (WebKitStyleTest.test_braces):
3202         (WebKitStyleTest.test_braces.NS_OPTIONS):
3203
3204 2017-08-07  Brian Burg  <bburg@apple.com>
3205
3206         Remove CANVAS_PATH compilation guard
3207         https://bugs.webkit.org/show_bug.cgi?id=175207
3208
3209         Reviewed by Sam Weinig.
3210
3211         * Scripts/webkitperl/FeatureList.pm:
3212         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3213
3214 2017-08-07  Per Arne Vollan  <pvollan@apple.com>
3215
3216         [Win] Use Visual Studio 2017 if installed.
3217         https://bugs.webkit.org/show_bug.cgi?id=175188
3218
3219         Reviewed by Sam Weinig.
3220
3221         If installed, use VS2017 to build WebKit. If not, fall back to VS2015.
3222
3223         * Scripts/webkitdirs.pm:
3224         (visualStudioInstallDir):
3225         (msBuildInstallDir):
3226
3227 2017-08-05  Carlos Garcia Campos  <cgarcia@igalia.com>
3228
3229         [GTK][WPE] Add API to provide browser information required by automation
3230         https://bugs.webkit.org/show_bug.cgi?id=175130
3231
3232         Reviewed by Michael Catanzaro.
3233
3234         * MiniBrowser/gtk/main.c:
3235         (automationStartedCallback): Set browser information when a new automation session is started.
3236         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
3237         (testAutomationSessionApplicationInfo):
3238         (beforeAll):
3239
3240 2017-08-06  Ryan Haddad  <ryanhaddad@apple.com>
3241
3242         Unreviewed, rolling out r220295.
3243
3244         This change introduced 4 errors in webkitpy tests.
3245
3246         Reverted changeset:
3247
3248         "[XCode] webkit-patch should run sort-Xcode-project-file"
3249         https://bugs.webkit.org/show_bug.cgi?id=174036
3250         http://trac.webkit.org/changeset/220295
3251
3252 2017-08-04  Ryan Haddad  <ryanhaddad@apple.com>
3253
3254         Disable API test NowPlayingControlsTests.NowPlayingControlsIOS.
3255
3256         Unreviewed test gardening.
3257
3258         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
3259         (TestWebKitAPI::TEST):
3260
3261 2017-08-05  Filip Pizlo  <fpizlo@apple.com>
3262
3263         REGRESSION (r219895-219897): Number of leaks on Open Source went from 9240 to 235983 and is now at 302372
3264         https://bugs.webkit.org/show_bug.cgi?id=175083
3265
3266         Reviewed by Oliver Hunt.
3267         
3268         Leaks results are super confusing if leaks runs while some VMs are destructing. This calls a new SPI
3269         to wait for VM destructions to finish before running the next test. This makes it easier to 
3270         understand leaks results from workers tests, and leads to fewer reported leaks.
3271
3272         * DumpRenderTree/mac/DumpRenderTree.mm:
3273         (runTest):
3274
3275 2017-08-05  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
3276
3277         check-webkit-style: fix path-specific rules for WebKit2 rename
3278         https://bugs.webkit.org/show_bug.cgi?id=175182
3279
3280         Reviewed by David Kilzer.
3281
3282         * Scripts/webkitpy/style/checker.py:
3283
3284 2017-08-04  Youenn Fablet  <youenn@apple.com>
3285
3286         [Cache API] Add Cache and CacheStorage IDL definitions
3287         https://bugs.webkit.org/show_bug.cgi?id=175201
3288
3289         Reviewed by Brady Eidson.
3290
3291         * DumpRenderTree/mac/DumpRenderTree.mm:
3292         (enableExperimentalFeatures):
3293         (resetWebPreferencesToConsistentValues):
3294         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3295         (WTR::InjectedBundle::beginTesting):
3296         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3297         (WTR::TestRunner::setCacheAPIEnabled):
3298         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3299
3300 2017-08-04  John Wilander  <wilander@apple.com>
3301
3302         Resource Load Statistics: Report user interaction immediately, but only when needed
3303         https://bugs.webkit.org/show_bug.cgi?id=175090
3304         <rdar://problem/33685546>
3305
3306         Reviewed by Chris Dumez.
3307
3308         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3309         (WTR::InjectedBundle::beginTesting):
3310             Now calls WebCore::ResourceLoadObserver::clearState().
3311
3312 2017-08-04  Tim Horton  <timothy_horton@apple.com>
3313
3314         Add an API test for r220286
3315         https://bugs.webkit.org/show_bug.cgi?id=175206
3316
3317         Reviewed by Simon Fraser.
3318
3319         * TestWebKitAPI/Tests/WebKit2Cocoa/AnimatedResize.mm:
3320         (-[AnimatedResizeWebView _webView:didChangeSafeAreaShouldAffectObscuredInsets:]):
3321         (createAnimatedResizeWebView):
3322         (TEST):
3323         Add a test to ensure that we don't call
3324         _webView:didChangeSafeAreaShouldAffectObscuredInsets: during an
3325         animated resize.
3326
3327 2017-08-04  Stephan Szabo  <stephan.szabo@sony.com>
3328
3329         [XCode] webkit-patch should run sort-Xcode-project-file
3330         https://bugs.webkit.org/show_bug.cgi?id=174036
3331
3332         Reviewed by Simon Fraser.
3333
3334         * Scripts/webkitpy/common/config/ports.py:
3335         * Scripts/webkitpy/tool/commands/download.py:
3336         * Scripts/webkitpy/tool/commands/upload.py:
3337         * Scripts/webkitpy/tool/steps/__init__.py:
3338         * Scripts/webkitpy/tool/steps/options.py:
3339         * Scripts/webkitpy/tool/steps/sortxcodeprojectfiles.py: Added.
3340
3341 2017-08-04  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3342
3343         REGRESSION(r219857): run-benchmark --allplans broken
3344         https://bugs.webkit.org/show_bug.cgi?id=175186
3345
3346         Reviewed by Saam Barati.
3347
3348         r219857 forgot to update also the calls to BenchmarkRunner() that
3349         is done when the script is run with --allplans.
3350
3351         To fix this (and avoid future issues like this), let's factorize
3352         the calls to the benchhmark runner in a run_benchmark_plan()
3353         function.
3354
3355         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
3356         (run_benchmark_plan):
3357         (start):
3358
3359 2017-08-04  Aakash Jain  <aakash_jain@apple.com>
3360
3361         Dashboard bubbles sometimes show failure count instead of crash count
3362         https://bugs.webkit.org/show_bug.cgi?id=175157
3363         <rdar://problem/33709009>
3364
3365         Reviewed by Alexey Proskuryakov.
3366
3367         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
3368         (BuildbotTestResults.prototype.resultSummarizer): Use the regex for the precise match first.
3369
3370 2017-08-04  Joseph Pecoraro  <pecoraro@apple.com>
3371
3372         Add tests for NeverDestroyed
3373         https://bugs.webkit.org/show_bug.cgi?id=175146
3374
3375         Reviewed by Darin Adler.
3376
3377         * CMakeLists.txt:
3378         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3379         New files and sort.
3380
3381         * TestWebKitAPI/Tests/WTF/Logger.h:
3382         * TestWebKitAPI/Tests/WTF/Logger.cpp:
3383         (TestWebKitAPI::log):
3384         (TestWebKitAPI::takeLogStr):
3385         * TestWebKitAPI/Tests/WTF/RefLogger.h:
3386         * TestWebKitAPI/Tests/WTF/RefLogger.cpp:
3387         (TestWebKitAPI::log): Deleted.
3388         (TestWebKitAPI::takeLogStr): Deleted.
3389         Extract log() / takeLogStr() from RefLogger to a general Logger.h/cpp.
3390
3391         * TestWebKitAPI/Tests/WTF/LifecycleLogger.h:
3392         * TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp: Added.
3393         (TestWebKitAPI::LifecycleLogger::LifecycleLogger):
3394         (TestWebKitAPI::LifecycleLogger::operator=):
3395         (TestWebKitAPI::LifecycleLogger::~LifecycleLogger):
3396         (TestWebKitAPI::LifecycleLogger::setName):
3397         (TestWebKitAPI::TEST):
3398         Add a class that logs construction / assignment / modifications.
3399
3400         * TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp: Added.
3401         (TestWebKitAPI::TEST):
3402         (TestWebKitAPI::list):
3403         Test construction behavior is as expected both directly and using makeNeverDestroyed.
3404
3405 2017-08-04  Lucas Forschler  <lforschler@apple.com>
3406
3407         minification logic is not implemented for ios builds
3408         <rdar://problem/33726561>
3409
3410         Reviewed by Dean Johnson
3411
3412         * BuildSlaveSupport/built-product-archive:
3413         (minifyDirectory): refactor minifySource -> minifyDirectory
3414         (archiveBuiltProduct): add ios minification logic
3415         (minifySource): Deleted.
3416
3417 2017-08-04  Matt Lewis  <jlewis3@apple.com>
3418
3419         Unreviewed, rolling out r220271.
3420
3421         Rolling out due to Layout Test failing on iOS Simulator.
3422
3423         Reverted changeset:
3424
3425         "Remove STREAMS_API compilation guard"
3426         https://bugs.webkit.org/show_bug.cgi?id=175165
3427         http://trac.webkit.org/changeset/220271
3428
3429 2017-08-04  Ryan Haddad  <ryanhaddad@apple.com>
3430
3431         Unreviewed, rolling out r220268.
3432
3433         This change caused assertion failures on macOS and iOS Debug
3434         WK2.
3435
3436         Reverted changeset:
3437
3438         "Resource Load Statistics: Report user interaction
3439         immediately, but only when needed"
3440         https://bugs.webkit.org/show_bug.cgi?id=175090
3441         http://trac.webkit.org/changeset/220268
3442
3443 2017-08-04  Youenn Fablet  <youenn@apple.com>
3444
3445         Remove STREAMS_API compilation guard
3446         https://bugs.webkit.org/show_bug.cgi?id=175165
3447
3448         Reviewed by Darin Adler.
3449
3450         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3451
3452 2017-08-04  John Wilander  <wilander@apple.com>
3453
3454         Resource Load Statistics: Report user interaction immediately, but only when needed
3455         https://bugs.webkit.org/show_bug.cgi?id=175090
3456         <rdar://problem/33685546>
3457
3458         Reviewed by Chris Dumez.
3459
3460         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3461         (WTR::InjectedBundle::beginTesting):
3462             Now calls WebCore::ResourceLoadObserver::clearState().
3463
3464 2017-08-03  Brian Burg  <bburg@apple.com>
3465
3466         Remove ENABLE(WEB_SOCKET) guards
3467         https://bugs.webkit.org/show_bug.cgi?id=167044
3468
3469         Reviewed by Joseph Pecoraro.
3470
3471         * Scripts/webkitperl/FeatureList.pm:
3472         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3473
3474 2017-08-03  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3475
3476         REGRESSION(r219850): run-benchmark script broken on Linux
3477         https://bugs.webkit.org/show_bug.cgi?id=175126
3478
3479         Reviewed by Stephanie Lewis.
3480
3481         The run-benchmark script dynamically generates the list of supported
3482         browsers and platforms (currently Linux and OSX) by loading all
3483         python files from Tools/Scripts/webkitpy/benchmark_runner/browser_driver
3484         and getting the browser_name and platform variables from the
3485         classes defined there.
3486
3487         This means that this classes should not raise an exception when
3488         loaded on other platforms or otherwise they will broke the whole
3489         script. Its fine if they raise an exception when executing any of
3490         the methods they implement, but not when just loading/importing
3491         the class.
3492
3493         Move the argument variable definitions that call on the platform
3494         specific OSXBrowserDriver._screen_size() function from beeing
3495         variables that are evaluated when loading the file, to be functions
3496         that are only evaluated when the actual functionality needs to be
3497         executed.
3498
3499         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_chrome_driver.py:
3500         (OSXChromeDriver.launch_url):
3501         (OSXChromeCanaryDriver.launch_url):
3502         (create_args):
3503         (create_chrome_options):
3504         (create_window_size_arg):
3505         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_firefox_driver.py:
3506         (OSXFirefoxDriver.launch_url):
3507         (OSXFirefoxNightlyDriver.launch_url):
3508         (OSXFirefoxNightlyDriver.launch_driver):
3509         (create_args):
3510
3511 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
3512
3513         [PAL] Move spi/cf directory into PAL
3514         https://bugs.webkit.org/show_bug.cgi?id=175057
3515
3516         Reviewed by Antti Koivisto.
3517
3518         * Scripts/webkitpy/style/checker.py:
3519         * Scripts/webkitpy/style/checker_unittest.py:
3520         (GlobalVariablesTest.test_path_rules_specifier):
3521
3522         Ignore "readability/naming/underscores" style errors for sources
3523         under the WebCore/PAL/pal/spi directory.
3524
3525         * TestWebKitAPI/Tests/WebKit2Cocoa/CookieAcceptPolicy.mm:
3526
3527 2017-08-03  Youenn Fablet  <youenn@apple.com>
3528
3529         Remove FETCH_API compilation guard
3530         https://bugs.webkit.org/show_bug.cgi?id=175154
3531
3532         Reviewed by Chris Dumez.
3533
3534         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3535
3536 2017-08-03  Lucas Forschler  <lforschler@apple.com>
3537
3538         Enable archive minification on iOS builds
3539         https://bugs.webkit.org/show_bug.cgi?id=174718
3540         
3541         Reviewed by Aakash Jain.
3542
3543         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3544         (BuildFactory.__init__):
3545
3546 2017-08-03  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3547
3548         [GTK][WKE] Pass the --memory-limited option on the GTK and WPE buildbots for the JSC tests.
3549         https://bugs.webkit.org/show_bug.cgi?id=175140
3550
3551         Reviewed by Alexey Proskuryakov.
3552
3553         We are having lately issues with JSC tests causing problems on
3554         the GTK+ and WPE bots due to the high amount of memory some tests
3555         need to run.
3556
3557         The best thing we can do now is to workaround this by disabling
3558         all the tests marked as memoryLimited on the GTK and WPE bots.
3559         We may revise this on the future.
3560
3561         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3562         (RunJavaScriptCoreTests.start):
3563
3564 2017-08-03  Brady Eidson  <beidson@apple.com>
3565
3566         Add SW IDLs and stub out basic functionality.
3567         https://bugs.webkit.org/show_bug.cgi?id=175115
3568
3569         Reviewed by Chris Dumez.
3570
3571         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3572
3573         * Scripts/webkitpy/bindings/main.py:
3574
3575 2017-08-03  Per Arne Vollan  <pvollan@apple.com>
3576
3577         [Win] The test http/tests/security/contentSecurityPolicy/upgrade-insecure-requests/basic-upgrade.https.html is failing.
3578         https://bugs.webkit.org/show_bug.cgi?id=159510
3579
3580         Reviewed by Daniel Bates.
3581
3582         Allow any https certificate when running tests.
3583
3584         * DumpRenderTree/win/DumpRenderTree.cpp:
3585         (runTest):
3586
3587 2017-08-02  Youenn Fablet  <youenn@apple.com>
3588
3589         HTTP tests with 'https' suffix are only run over HTTPS for WK2, not WK1
3590         https://bugs.webkit.org/show_bug.cgi?id=175089
3591
3592         Reviewed by Chris Dumez.
3593
3594         * DumpRenderTree/TestOptions.mm:
3595         (TestOptions::TestOptions): Using absolutePath if available.
3596         * DumpRenderTree/mac/DumpRenderTree.mm:
3597         (computeTestURL): Removing http/tests/ specific URL computation.
3598         * Scripts/webkitpy/port/driver.py:
3599         (Driver._command_from_driver_input): Making webkitpy passing HTTP urls for HTTP served tests to all test runners, including WK1.
3600
3601 2017-08-02  Lucas Forschler  <lforschler@apple.com>
3602
3603         download-built-product should allow for a proxy option
3604         https://bugs.webkit.org/show_bug.cgi?id=174875
3605
3606         Reviewed by Aakash Jain, Alexey Proskuryakov, Dean Johnson
3607
3608         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3609         (DownloadBuiltProduct.start): Teach buildbot to pass along proxy for Apple bots
3610         
3611
3612 2017-08-02  Jonathan Bedard  <jbedard@apple.com>
3613
3614         check-webkit-style: deleting lines in a file runs the linter on the whole file
3615         https://bugs.webkit.org/show_bug.cgi?id=175078
3616
3617         Reviewed by David Kilzer.
3618
3619         Deleting lines in a file should not cause linter errors to be blamed on the patch.
3620         <https://bugs.webkit.org/show_bug.cgi?id=86142> is an example of this happening.
3621
3622         * Scripts/webkitpy/style/checkers/test_expectations.py:
3623         (TestExpectationsChecker._should_log_linter_warning): Do not log a linter error if the file it is associated with only has deleted lines
3624         * Scripts/webkitpy/style/main_unittest.py:
3625         (ExpectationLinterInStyleCheckerTest.test_linter_duplicate_line): Added files should have every line number in the file when processing.
3626         (ExpectationLinterInStyleCheckerTest.test_linter_duplicate_line_only_deletes): Test case where the file with the linter errors only contained deletes.
3627         (ExpectationLinterInStyleCheckerTest.test_linter_added_file_with_error): Added files should have every line number in the file when processing.
3628
3629 2017-08-02  Jonathan Bedard  <jbedard@apple.com>
3630
3631         webkitpy: Allow caller to specify response to unicode encode/decode error in filesystem
3632         https://bugs.webkit.org/show_bug.cgi?id=175075
3633
3634         Reviewed by David Kilzer.
3635
3636         We have no way of handling text files with illegal unicode characters. Allow the callers of
3637         filesystem.read_text_file to specify one of Python 2.7's supported responses ('strict', 'ignore', or
3638         'replace'). See https://docs.python.org/2/howto/unicode.html for details on these responses.
3639
3640         * Scripts/webkitpy/common/system/filesystem.py:
3641         (FileSystem.read_text_file): Allow caller to specify unicode error handling.
3642         (FileSystem.write_text_file): Ditto.
3643         * Scripts/webkitpy/common/system/filesystem_mock.py:
3644         (MockFileSystem.read_text_file): Allow caller to specify unicode error handling.
3645         (MockFileSystem.write_text_file): Ditto.
3646         * Scripts/webkitpy/common/system/filesystem_unittest.py:
3647         (RealFileSystemTest.test_read_text_file_unicode_decode_error): Test reading a file with illegal unicode content.
3648         (RealFileSystemTest.test_write_text_file_unicode_encode_error): Test writing illegal unicode content to a file.
3649
3650 2017-08-02  Aakash Jain  <aakash_jain@apple.com>
3651
3652         Intermittent exception in buildPageURLForIteration for Buildbot 0.9 dashboard
3653         https://bugs.webkit.org/show_bug.cgi?id=175072
3654
3655         Reviewed by Alexey Proskuryakov.
3656
3657         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Buildbot.js:
3658         (Buildbot): Make sure this._builderNameToIDMap is always defined for Buildbot 0.9.
3659
3660 2017-08-02  Michael Catanzaro  <mcatanzaro@igalia.com>
3661
3662         [CMake] Remove obsolete code in TestWebKitAPI/CMakeLists.txt
3663         https://bugs.webkit.org/show_bug.cgi?id=175019
3664
3665         Reviewed by Darin Adler.
3666
3667         * TestWebKitAPI/CMakeLists.txt:
3668
3669 2017-08-01  Csaba Osztrogonác  <ossy@webkit.org>
3670
3671         Enabling uploading archives to S3
3672         https://bugs.webkit.org/show_bug.cgi?id=174198
3673
3674         Unreviewed unit test fix after r219235.
3675
3676         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
3677
3678 2017-08-01  Csaba Osztrogonác  <ossy@webkit.org>
3679
3680         Fix JSCOnly ARM buildbots after r220047
3681         https://bugs.webkit.org/show_bug.cgi?id=174993
3682
3683         Unreviewed fix after r220087.
3684
3685         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3686         (BuildAndRemoteJSCTestsFactory.__init__):
3687
3688 2017-08-01  Chris Dumez  <cdumez@apple.com>
3689
3690         Add initial support for navigator.sendBeacon
3691         https://bugs.webkit.org/show_bug.cgi?id=175007
3692         <rdar://problem/33547728>
3693
3694         Reviewed by Sam Weinig.
3695
3696         Enable the Beacon API at runtime in the context of layout tests since the
3697         feature is currently disabled by default.
3698
3699         * DumpRenderTree/mac/DumpRenderTree.mm:
3700         (enableExperimentalFeatures):
3701         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3702         (WTR::InjectedBundle::beginTesting):
3703         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3704         (WTR::TestRunner::setModernMediaControlsEnabled):
3705         (WTR::TestRunner::setBeaconAPIEnabled):
3706         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3707
3708 2017-08-01  Aakash Jain  <aakash_jain@apple.com>
3709
3710         Update Bot Watcher's Dashboard for Buildbot 0.9
3711         https://bugs.webkit.org/show_bug.cgi?id=174777
3712
3713         Reviewed by Daniel Bates.
3714
3715         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Buildbot.js:
3716         (Buildbot): Check if USE_BUILDBOT_VERSION_LESS_THAN_09 is passed.
3717         (Buildbot.prototype._computeBuilderNameToIDMap): Fetch the builder name to ID mapping from buidbot and store
3718         in a dictionary.
3719         (Buildbot.prototype.buildPageURLForIteration): Updated URL as per Buildbot 0.9 format. Buildbot 0.9 currently does not support
3720         builder name in the build url. See <https://github.com/buildbot/buildbot/issues/3465>.
3721         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
3722         (isMultiCodebaseGotRevisionProperty): Adapting to new data format.
3723         (parseRevisionProperty): Ditto.
3724         (BuildbotIteration.prototype.failureLogURL): Return the URL to build page if precise failure url is not available. For
3725         Buildbot 0.9, build page URL would be appropriate in most cases as per the new UI.
3726         (BuildbotIteration.prototype._parseData): Parsing the data as per new data format. Many variable names and data types
3727         have changed in Buildbot 0.9.
3728         (BuildbotIteration.prototype._adjustBuildDataForBuildbot09): Adjust the Buildbot 0.8 data to new format.
3729         (BuildbotIteration.prototype._updateIfDataAvailable): Update method for Buildbot 0.9 data. We are performing two API calls, 
3730         one for build information, another for step information of that build. We need to wait until data from both REST API calls are available.
3731         (BuildbotIteration.prototype._deprecatedUpdateWithData): Renamed from _updateWithData, used for Buildbot 0.8 data.
3732         (BuildbotIteration.prototype.get buildURL): URL to fetch build information from Buildbot. Also fetches got_revision property.
3733         (BuildbotIteration.prototype.get buildStepsURL): URL to fetch the steps information from Buildbot.
3734         (BuildbotIteration.prototype.urlFailedToLoad): Callback method to be used when URL fails to load. Made it a separate function now.
3735         (BuildbotIteration.prototype.update): Modified to support both Buildbot 0.9 and 0.8 data format.
3736         (BuildbotIteration.prototype.actualUpdate): Update method for Buildbot 0.9 data.
3737         (BuildbotIteration.prototype.deprecatedUpdate): Update method for Buildbot 0.8 data.
3738         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
3739         (BuildbotQueue.prototype.get baseURL): Updated URL as per Buildbot 0.9 format.
3740         (BuildbotQueue.prototype.get allIterationsURL): Ditto.
3741         (BuildbotQueue.prototype.get overviewURL): Ditto.
3742         (BuildbotQueue.prototype.get buildsURL): URL to fetch builds data in Buildbot 0.9.
3743         (BuildbotQueue.prototype.get buildsInfoURL): Returns the appropriate URL to use to fetch builds information from
3744         Buildbot 0.8 or 0.9.
3745         (BuildbotQueue.prototype.getBuilds): Method compatible with both Buildbot 0.8 and 0.9 to get build information from data
3746         fetched from Buildbot. Also, reversing the Buildbot 0.8 data to make it similar to 0.9 data format.
3747         (BuildbotQueue.prototype.isBuildComplete): Method compatible with both Buildbot 0.8 and 0.9 to check if the build has completed.
3748         (BuildbotQueue.prototype.getIterationID):  Method compatible with both Buildbot 0.8 and 0.9 to get the Iteration ID.
3749         (BuildbotQueue.prototype.update): Supports both Buildbot 0.8 and 0.9. Buildbot 0.9 REST API doesn't have cachedBuilds and currentBuilds. 
3750         Therefore we are fetching information for fixed number of build. 
3751         Also iterating the loop incrementally since the build data is already reverse sorted.
3752         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
3753         (BuildbotTestResults.prototype._parseResults): Updated as per Buildbot 0.9 format. Note that we do not
3754         need to worry about 0.8 or 0.9 data format here, since the data is already converted to 0.9 format.
3755         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3756         (WebKitBuildbot): Pass the USE_BUILDBOT_VERSION_LESS_THAN_09 flag.
3757
3758 2017-08-01  Devin Rousso  <drousso@apple.com>
3759
3760         Web Inspector: simplify WebInspector with WI
3761         https://bugs.webkit.org/show_bug.cgi?id=175058
3762
3763         Reviewed by Joseph Pecoraro.
3764
3765         * Scripts/check-inspector-strings:
3766         (extract_ui_strings):
3767         * Scripts/extract-localizable-js-strings:
3768
3769 2017-08-01  Youenn Fablet  <youenn@apple.com>
3770
3771         Layout tests with 'https' suffix should be run over HTTPS
3772         https://bugs.webkit.org/show_bug.cgi?id=174992
3773
3774         Reviewed by Chris Dumez.
3775
3776         Updating the test-name <-> uri conversion routines to use https when test names contain ".https." in them.
3777         This covers WPT tests, WPT WebKit tests and HTTP layout tests.
3778         Covered by corresponding unit tests.
3779
3780         * Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py:
3781         (run_server):
3782         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
3783         (base_http_url):
3784         (base_https_url):
3785         (base_url): Deleted.
3786         * Scripts/webkitpy/port/base.py:
3787         (Port.to.web_platform_test_server_base_http_url):
3788         (Port.to):
3789         (Port.to.web_platform_test_server_base_https_url):
3790         (Port.to.web_platform_test_server_base_url): Deleted.
3791         * Scripts/webkitpy/port/driver.py:
3792         (Driver.__init__):
3793         (Driver.wpt_test_path_to_uri):
3794         (Driver):
3795         (Driver.http_test_path_to_uri):
3796         (Driver.test_to_uri):
3797         (Driver.uri_to_test):
3798         * Scripts/webkitpy/port/driver_unittest.py:
3799         (DriverTest.test_test_to_uri):
3800         (DriverTest.test_uri_to_test):
3801
3802 2017-07-26  Jiewen Tan  <jiewen_tan@apple.com>
3803
3804         Add tests to detect mistakes in backward compatibility when the structured clone algorithm is changed in the future
3805         https://bugs.webkit.org/show_bug.cgi?id=173998
3806
3807         Reviewed by Darin Adler.
3808
3809         Since the structured clone algorithm is used for data stored in persistent databases, we need tests to help us
3810         detect mistakes in backward compatibility in the future when we change it.
3811
3812         The way it works is to read from a pre-baked database and see if all the values are matched with the expectations.
3813         Surprisedly, some of structured clonable objects cannot be stored into the indexedDB. Those are FileList,
3814         ObjectReference, MessagePortReference, ArrayBufferView, ArrayBufferTransfer, NonMapProperties, NonSetProperties,
3815         SharedArrayBuffer, WasmModule, DOMPointReadOnly, DOMPoint, DOMRectReadOnly, DOMRect, DOMMatrixReadOnly, DOMMatrix,
3816         DOMQuad and Error. CryptoKey objects are not included as well as they need new API for encrypting/decrypting the
3817         internal key data slot.
3818
3819         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3820         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.mm: Added.
3821         (-[IndexedDBStructuredCloneBackwardCompatibilityMessageHandler userContentController:didReceiveScriptMessage:]):
3822         (getNextMessage):
3823         (TEST):
3824         Here is the API test that moves the pre-baked database to the location where TestWebKitAPI can read from.
3825         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3: Added.
3826         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-shm: Added.
3827         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal: Added.
3828         These are the pre-baked databases.
3829         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityRead.html: Added.
3830         This is the actual test that do all the reads and comparisons.
3831         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBStructuredCloneBackwardCompatibilityWrite.html: Added.
3832         This is the page that bakes the database. It never runs automatically. It is for someone who needs to teach
3833         IndexedDB new stuffs. Then it can be used to bake the database again.
3834
3835 2017-08-01  Brady Eidson  <beidson@apple.com>
3836
3837         API test URLSchemeHandler.Exceptions is Exiting out early on macOS Debug..
3838         https://bugs.webkit.org/show_bug.cgi?id=175030
3839
3840         Reviewed by Andy Estes.
3841
3842         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm:
3843         (-[TaskSchemeHandler webView:startURLSchemeTask:]): Stop calling an invalid NSError constructor.
3844
3845 2017-08-01  Brady Eidson  <beidson@apple.com>
3846
3847         Part 2 of: Rename DatabaseProcess to StorageProcess.
3848         https://bugs.webkit.org/show_bug.cgi?id=174880
3849
3850         Reviewed by Andy Estes.
3851
3852         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm:
3853         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm:
3854         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm:
3855         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
3856         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm:
3857         * TestWebKitAPI/Tests/WebKit2Cocoa/ResourceLoadStatistics.mm:
3858         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
3859         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.mm:
3860
3861 2017-07-31  Csaba Osztrogonác  <ossy@webkit.org>
3862
3863         Fix JSCOnly ARM buildbots after r220047
3864         https://bugs.webkit.org/show_bug.cgi?id=174993
3865
3866         Reviewed by Saam Barati.
3867
3868         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3869         (BuildAndRemoteJSCTestsFactory.__init__):
3870
3871 2017-07-30  Yusuke Suzuki  <utatane.tea@gmail.com>
3872
3873         [WTF] Introduce Private Symbols
3874         https://bugs.webkit.org/show_bug.cgi?id=174935
3875
3876         Reviewed by Darin Adler.
3877
3878         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
3879         (TestWebKitAPI::TEST):
3880
3881 2017-07-30  Darin Adler  <darin@apple.com>
3882
3883         Remove code in HTMLObjectElement attribute parsing that forces style resolution and layout
3884         https://bugs.webkit.org/show_bug.cgi?id=130653
3885
3886         Reviewed by Antti Koivisto.
3887
3888         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3889         (WTR::InjectedBundlePage::didFinishLoadForFrame): Omit now-unneeded "shouldDump" argument
3890         when calling frameDidChangeLocation.
3891         (WTR::InjectedBundlePage::frameDidChangeLocation): Removed "shouldDump" argument. This was
3892         causing WebKitTestRunner to not dump anything in cases where DumpRenderTree will dump, and
3893         thus causing mysterious failures of a couple of tests. There are two remaining issues:
3894         1) WebKitTestRunner won't run its dump code if there is no "page", and there is no such
3895         consideration in DumpRenderTree and 2) Both DumpRenderTree and WebKitTestRunner share the
3896         same logic flaw that causes "top loading frame" to get set to one of the subframes in
3897         tests where  the following sequence occurs: test calls waitUntilDone, main frame finishes
3898         loading, subframe starts loading. It would be good to clean that up some day, but for now
3899         this patch makes the two work identically rather than changing both.
3900         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: Updated for change above.
3901
3902 2017-07-30  Wenson Hsieh  <wenson_hsieh@apple.com>
3903
3904         [WK2] Replace RetainPtr<> with auto when adopting allocated ObjC objects in DataInteractionTests
3905         https://bugs.webkit.org/show_bug.cgi?id=174963
3906
3907         Reviewed by Darin Adler.
3908
3909         Replaces several uses of RetainPtr<>s with auto. Some test cases in this file use auto, while other test cases declare using
3910         RetainPtr<>. This patch changes them to all use auto.
3911
3912         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
3913         (TestWebKitAPI::TEST):
3914
3915 2017-07-30  Brady Eidson  <beidson@apple.com>
3916
3917         Add URLSchemeHandler API tests that verify the lack of URLSchemeTask object leaks.
3918         https://bugs.webkit.org/show_bug.cgi?id=174958
3919
3920         Reviewed by Darin Adler.
3921
3922         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3923         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-leaks.mm: Added.
3924         (-[LeakSchemeHandler webView:startURLSchemeTask:]):
3925         (-[LeakSchemeHandler webView:stopURLSchemeTask:]):
3926         (runUntilTasksInFlight):
3927         (TEST):
3928
3929 2017-07-28  Commit Queue  <commit-queue@webkit.org>
3930
3931         Unreviewed, rolling out r219990.
3932         https://bugs.webkit.org/show_bug.cgi?id=174961
3933
3934         "broke PLT on iOS (rdar://problem/33602751)" (Requested by
3935         estes on #webkit).
3936
3937         Reverted changeset:
3938
3939         "Part 2 of: Rename DatabaseProcess to StorageProcess."
3940         https://bugs.webkit.org/show_bug.cgi?id=174880
3941         http://trac.webkit.org/changeset/219990
3942
3943 2017-07-28  Brady Eidson  <beidson@apple.com>
3944
3945         API tests that use URLSchemeHandler are failing.
3946         https://bugs.webkit.org/show_bug.cgi?id=174950
3947
3948         Reviewed by Alex Christensen.
3949
3950         Fix the NoMIMEType test to be correct.
3951
3952         * TestWebKitAPI/Tests/WebKit2Cocoa/WKURLSchemeHandler-1.mm:
3953         (-[SchemeHandler initWithData:mimeType:]):
3954         (-[SchemeHandler webView:startURLSchemeTask:]):
3955         (TEST):
3956
3957 2017-07-28  Daniel Bates  <dabates@apple.com>
3958
3959         prepare-ChangeLog should not list added layout tests in PAL ChangeLog
3960         https://bugs.webkit.org/show_bug.cgi?id=174876
3961
3962         Reviewed by Alex Christensen.
3963
3964         Do not list added layout tests in the PAL ChangeLog as such tests are unlikely to be related
3965         to a PAL change. Unit tests are more appropriate for PAL changes than layout tests because
3966         they provide a more direct way to test the platform abstraction.
3967
3968         As a side effect of this change we no longer list added layout tests in WebCore/platform/gtk/po/ChangeLog.
3969
3970         * Scripts/prepare-ChangeLog:
3971         (generateNewChangeLogs): Only list added layout tests in the WebCore ChangeLog regardless
3972         of the current working directory.
3973
3974 2017-07-28  Jonathan Bedard  <jbedard@apple.com>
3975
3976         Using "auto <function()> -> returnType" breaks prepare-ChangeLog
3977         https://bugs.webkit.org/show_bug.cgi?id=174930
3978
3979         Unreviewed test fix.
3980
3981         We need to check parentheses before printing 'const' or 'volatile' in the ChangeLog. 
3982
3983         * Scripts/prepare-ChangeLog:
3984         (get_function_line_ranges_for_cpp):
3985
3986 2017-07-28  JF Bastien  <jfbastien@apple.com>
3987
3988         Using "auto <function()> -> returnType" breaks prepare-ChangeLog
3989         https://bugs.webkit.org/show_bug.cgi?id=174930
3990
3991         Reviewed by Daniel Bates.
3992
3993         Teach prepare-ChangeLog about C++ auto arrow return, and while I'm
3994         here also teach it about const and volatile overloads. I didn't do
3995         reference and rvalue reference overloads because we don't really
3996         use them, and the current parser throws away those characters and
3997         it doesn't seem worth making it more complex.
3998
3999         * Scripts/prepare-ChangeLog:
4000         (get_function_line_ranges_for_cpp):
4001         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/cpp_unittests-expected.txt:
4002         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/cpp_unittests.cpp:
4003         (Foo::Arrow::arrow):
4004         (Foo::Arrow::otherArrow):
4005         (Foo::Arrow::otherArrow const):
4006         (Foo::Arrow::otherArrow volatile):
4007         (Foo::Arrow::otherArrow const volatile):
4008
4009 2017-07-28  Adrian Perez de Castro  <aperez@igalia.com>
4010
4011         [GTK] Building with ENABLE_VIDEO=OFF fails
4012         https://bugs.webkit.org/show_bug.cgi?id=174940
4013
4014         Reviewed by Alex Christensen.
4015
4016         When GStreamer usage is completely disabled at build time, CMake does not query pkg-config for the GStreamer.
4017         This adds missing USE(GSTREAMER) guards in order to make testing code buildable when GStreamer usage is disabled.
4018
4019         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
4020         (methodCallCallback): Add missing USE(GSTREAMER) guard.
4021
4022 2017-07-28  Claudio Saavedra  <csaavedra@igalia.com>
4023
4024         [WPE] Implement EventSenderProxy in WTR
4025         https://bugs.webkit.org/show_bug.cgi?id=173419
4026
4027         Reviewed by Žan Doberšek.
4028
4029         Add the implementation of EventSenderProxy to the WTR. This
4030         allows us to extend the coverage of the test suite in WKWPE.
4031
4032         * WebKitTestRunner/EventSenderProxy.h:
4033         * WebKitTestRunner/PlatformWPE.cmake: Add dependency on
4034         libxkbcommon needed to deal with key events.
4035         * WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:
4036         (WTR::EventSenderProxy::EventSenderProxy):
4037         (WTR::senderButtonToWPEButton):
4038         (WTR::EventSenderProxy::mouseDown):
4039         (WTR::EventSenderProxy::mouseUp):
4040         (WTR::EventSenderProxy::mouseMoveTo):
4041         (WTR::EventSenderProxy::mouseScrollBy):
4042         (WTR::EventSenderProxy::mouseScrollByWithWheelAndMomentumPhases):
4043         (WTR::EventSenderProxy::leapForward):
4044         (WTR::wkEventModifiersToWPE):
4045         (WTR::getXKBKeySymForKeyRef):
4046         (WTR::EventSenderProxy::keyDown):
4047         (WTR::EventSenderProxy::addTouchPoint):
4048         (WTR::EventSenderProxy::updateTouchPoint):
4049         (WTR::EventSenderProxy::setTouchModifier):
4050         (WTR::EventSenderProxy::setTouchPointRadius):
4051         (WTR::EventSenderProxy::getUpdatedTouchEvents):
4052         (WTR::EventSenderProxy::removeUpdatedTouchEvents):
4053         (WTR::EventSenderProxy::prepareAndDispatchTouchEvent):
4054         (WTR::EventSenderProxy::touchStart):
4055         (WTR::EventSenderProxy::touchMove):
4056         (WTR::EventSenderProxy::touchEnd):
4057         (WTR::EventSenderProxy::touchCancel):
4058         (WTR::EventSenderProxy::clearTouchPoints):
4059         (WTR::EventSenderProxy::releaseTouchPoint):
4060         (WTR::EventSenderProxy::cancelTouchPoint):
4061
4062 2017-07-27  Brady Eidson  <beidson@apple.com>
4063
4064         Part 2 of: Rename DatabaseProcess to StorageProcess.
4065         https://bugs.webkit.org/show_bug.cgi?id=174880
4066
4067         Reviewed by Andy Estes.
4068
4069         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm:
4070         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm:
4071         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm:
4072         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
4073         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm:
4074         * TestWebKitAPI/Tests/WebKit2Cocoa/ResourceLoadStatistics.mm:
4075         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
4076         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsiteDataStoreCustomPaths.mm:
4077
4078 2017-07-26  Mark Lam  <mark.lam@apple.com>
4079
4080         Add ability to only run specific tests in run-javascriptcore-tests.
4081         https://bugs.webkit.org/show_bug.cgi?id=174884
4082
4083         Reviewed by Saam Barati.
4084
4085         For example, if we only want to run testapi, we can do so as follows:
4086             $ run-javascriptcore-tests --testapi
4087
4088         Previously, specifying --testapi effectively does nothing because we run all tests
4089         by default.  Only --no-testapi had the effect of disabling the test set.  This
4090         old behavior for --testapi is not very useful or meaningful.  We're now changing
4091         it to mean that we will only run that test.
4092
4093         With this change, we can also run more than one set of tests.  For example, if we
4094         only want to run testmasm and testair, we can do so as follows:
4095             $ run-javascriptcore-tests --testmasm --testair
4096
4097         By default, if no specific test option is specified, run-javascriptcore-tests will
4098         run all tests.
4099
4100         Note that the jsc stress tests (--jsc-stress) are a different set of tests than
4101         the mozilla tests (--mozilla-tests) even though both are run via the lower level
4102         run-jsc-stress-tests test harness.  Hence, if you only specify one of the tests,
4103         the other set will not run.  For example, the following only runs the mozilla tests:
4104             $ run-javascriptcore-tests --mozilla-tests
4105
4106         Note also that --jit-stress-tests is not for choosing a different set of tests.
4107         Instead, it is used for determining whether we run JIT'ed test configurations
4108         on the jsc stress tests and mozilla tests.  As a result, specifying
4109         --jit-stress-tests will not omit other tests.  For example, the following still
4110         runs all tests:
4111             $ run-javascriptcore-tests --jit-stress-tests
4112
4113         * Scripts/run-javascriptcore-tests:
4114         (defaultStringForTestState):
4115         (enableTestOrNot):
4116         (runJSCStressTests):
4117
4118 2017-07-26  Mark Lam  <mark.lam@apple.com>
4119
4120         Make run-javascriptcore-test run testair, testb3, and testmasm.
4121         https://bugs.webkit.org/show_bug.cgi?id=174837
4122         <rdar://problem/33522927>
4123
4124         Reviewed by Saam Barati and Filip Pizlo.
4125
4126         1. Refactors code for running testapi so that we can use it to run other tests.
4127         2. Added running of testmasm, testair, testb3.
4128
4129         Note: the existing testapi invocation code does not support remote invocation of
4130         the tests (e.g. on a ARM device).  Hence, the new additions of testmasm, testair,
4131         and testb3 also do not support remote invocation.  If we wish to add remote
4132         invocation support, we should do that in a separate patch.
4133
4134         * Scripts/run-javascriptcore-tests:
4135         (testPath):
4136         (runTest):
4137         (testapiPath): Deleted.
4138
4139 2017-07-26  Aakash Jain  <aakash_jain@apple.com>
4140
4141         Remove duplicate code from Buildbot.js in dashboard
4142         https://bugs.webkit.org/show_bug.cgi?id=174870
4143
4144         Reviewed by Daniel Bates.
4145
4146         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Buildbot.js:
4147         (Buildbot.prototype.javaScriptCoreTestFailuresURLForIteration): Remove duplicate code and reuse buildPageURLForIteration() to construct URL.
4148         (Buildbot.prototype.javaScriptCoreTestStdioUrlForIteration): Ditto.
4149         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbot.js:
4150         (MockBuildbot.prototype.javaScriptCoreTestStdioUrlForIteration): Ditto for tests.
4151
4152 2017-07-26  Brady Eidson  <beidson@apple.com>
4153
4154         Add test to verify certain child processes are not launched as a side effect of enabling ResourceLoadStatistics.
4155         https://bugs.webkit.org/show_bug.cgi?id=174851
4156
4157         Reviewed by Chris Dumez.
4158
4159         * TestWebKitAPI/Tests/WebKit2Cocoa/ResourceLoadStatistics.mm:
4160         (TEST):
4161
4162 2017-07-26  Brian Burg  <bburg@apple.com>
4163
4164         Remove WEB_TIMING feature flag
4165         https://bugs.webkit.org/show_bug.cgi?id=174795
4166
4167         Reviewed by Alex Christensen.
4168
4169         * Scripts/webkitperl/FeatureList.pm:
4170         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
4171
4172 2017-07-26  Chris Dumez  <cdumez@apple.com>
4173
4174         Pressing the Escape key should not be a valid user gesture to enter fullscreen
4175         https://bugs.webkit.org/show_bug.cgi?id=174864
4176         <rdar://problem/33009088>
4177
4178         Reviewed by Geoffrey Garen.