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