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