TestController should clear all fetch caches when resetting its state
[WebKit-https.git] / Tools / ChangeLog
1 2017-10-18  Youenn Fablet  <youenn@apple.com>
2
3         TestController should clear all fetch caches when resetting its state
4         https://bugs.webkit.org/show_bug.cgi?id=178486
5
6         Reviewed by Chris Dumez.
7
8         Adding clearDOMCaches test runner method.
9         Using that method when resetting state.
10
11         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
12         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
13         (WTR::TestRunner::clearDOMCaches):
14         * WebKitTestRunner/InjectedBundle/TestRunner.h:
15         * WebKitTestRunner/TestInvocation.cpp:
16         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
17
18 2017-10-18  Chelsea Pugh  <cpugh@apple.com>
19
20         [iOS] Use new class name from UIKit when checking UITextSuggestion type
21         https://bugs.webkit.org/show_bug.cgi?id=178416
22
23         Reviewed by Tim Horton.
24
25         This updates our test using/mocking out UITextAutofillSuggestion instead of UIKeyboardLoginCredentialsSuggestion.
26
27         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
28         (-[UITextAutofillSuggestion initWithUsername:password:]): Copied from UIKit's implementation. This will serve as
29         a mock of this method for builds not containingit.
30         (+[UITextAutofillSuggestion autofillSuggestionWithUsername:password:]): Ditto.
31         (TestWebKitAPI::TEST): Use +[UITextAutofillSuggestion autofillSuggestionWithUsername:password:] inline instead of
32         helper function for creating a new suggestion.
33         (newUIKeyboardLoginCredentialsSuggestion): Deleted.
34
35         * TestWebKitAPI/ios/UIKitSPI.h:
36
37 2017-10-18  Fujii Hironori  <Hironori.Fujii@sony.com>
38
39         update-webkit-auxiliary-libs can't download WebKitAuxiliaryLibrary.zip due to 403 Forbidden
40         https://bugs.webkit.org/show_bug.cgi?id=178381
41
42         Reviewed by Alexey Proskuryakov.
43
44         The web server developer.apple.com seems to reject HTTP requests
45         without Accept header field.
46
47         * Scripts/update-webkit-dependency: Add 'Accept' header field to requests.
48
49 2017-10-18  Aakash Jain  <aakash_jain@apple.com>
50
51         webkitpy tests should have --json-output option
52         https://bugs.webkit.org/show_bug.cgi?id=178481
53
54         Reviewed by Alexey Proskuryakov.
55
56         * Scripts/webkitpy/test/main.py:
57         (Tester._parse_args): Added json-output argument.
58         (Tester._run_tests): Write output to json file.
59
60 2017-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
61
62         Unreviewed, rolling out r223291.
63
64         See WebCore ChangeLog for more detail.
65
66         Reverted changeset:
67
68         "Remove Editor::simplifyMarkup"
69         https://bugs.webkit.org/show_bug.cgi?id=178271
70         https://trac.webkit.org/changeset/223291
71
72 2017-10-18  Chris Dumez  <cdumez@apple.com>
73
74         Add an efficient data structure for WebCore to query if there is a Service Worker registered for a given origin
75         https://bugs.webkit.org/show_bug.cgi?id=177876
76         <rdar://problem/34813129>
77
78         Reviewed by Ryosuke Niwa.
79
80         Clear service worker registrations between test runs to avoid flakiness.
81
82         * WebKitTestRunner/TestController.cpp:
83         (WTR::TestController::resetStateToConsistentValues):
84
85 2017-10-18  Zan Dobersek  <zdobersek@igalia.com>
86
87         Remove remnants of OpenWebRTC
88         https://bugs.webkit.org/show_bug.cgi?id=178437
89
90         Reviewed by Alejandro G. Castro.
91
92         Drop OpenWebRTC packages from the GTK's Jhbuild modules file. Relevant
93         patches are also removed.
94
95         * gtk/jhbuild.modules:
96         * gtk/patches/libnice-0001-TURN-allow-REALM-to-be-empty.patch: Removed.
97         * gtk/patches/libnice-0001-nicesrc-spin-the-agent-mainloop-in-a-separate-thread.patch: Removed.
98         * gtk/patches/rtspsrc-timeout-on-udpsrc-is-in-nanoseconds.patch: Removed.
99         * gtk/patches/udpsrc-improve-timeouts.patch: Removed.
100
101 2017-10-17  Jonathan Bedard  <jbedard@apple.com>
102
103         webkitpy: Hang when workers write to the same stack trace file
104         https://bugs.webkit.org/show_bug.cgi?id=178402
105         <rdar://problem/35033432>
106
107         Reviewed by Aakash Jain.
108
109         Workers can hang if they all write to the same stack trace file when receiving
110         a SIGTERM. Attach the pid to the stack trace file name so that each worker
111         writes to a different file.
112
113         * Scripts/webkitpy/common/interupt_debugging.py:
114         (log_stack_trace_on_term.handler): Name stack trace file path/<pid>-filename.
115         (log_stack_trace_on_cntrl_c.handler): Ditto.
116
117 2017-10-17  John Wilander  <wilander@apple.com>
118
119         Add and remove cookie partition accordingly in intermediary redirect requests
120         https://bugs.webkit.org/show_bug.cgi?id=178369
121         <rdar://problem/34467603>
122
123         Reviewed by Brent Fulgham.
124
125         Adds the function statisticsNotifyObserver().
126
127         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
128         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
129         (WTR::InjectedBundle::statisticsNotifyObserver):
130         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
131         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
132         (WTR::TestRunner::statisticsNotifyObserver):
133         * WebKitTestRunner/InjectedBundle/TestRunner.h:
134
135 2017-10-17  Youenn Fablet  <youenn@apple.com>
136
137         Cache API implementation should be able to compute storage size for WebKit client applications.
138         https://bugs.webkit.org/show_bug.cgi?id=178350
139
140         Reviewed by Chris Dumez.
141
142         Adding support for a domCacheSize getter.
143
144         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
145         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
146         (WTR::TestRunner::domCacheSize):
147         * WebKitTestRunner/InjectedBundle/TestRunner.h:
148         * WebKitTestRunner/TestController.cpp:
149         (WTR::FetchCacheSizeForOriginCallbackContext::FetchCacheSizeForOriginCallbackContext):
150         (WTR::fetchCacheSizeForOriginCallback):
151         (WTR::TestController::domCacheSize):
152         * WebKitTestRunner/TestController.h:
153         * WebKitTestRunner/TestInvocation.cpp:
154         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
155
156 2017-10-17  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
157
158         [GStreamer][GTK][WPE] update-webkit-libs-jhbuild fails to detect changes in included moduleset files
159         https://bugs.webkit.org/show_bug.cgi?id=178206
160
161         Reviewed by Michael Catanzaro.
162
163         The update-webkit-libs-jhbuild scripts computes MD5 sum of GTK/WPE jhbuild configuration files to check if it
164         needs to rebuild the dependencies libraries. This patch fixes a bug when main GTK/WPE jhbuild modules
165         configuration file includes additional files (for example GStreamer module). It parses jhbuild.modules file to
166         check if additional files are included. If any, it computes MD5 sum for each of these included files.
167
168         * Scripts/update-webkit-libs-jhbuild:
169         (getJhbuildIncludedFilePaths): New function that returns included files in jhbuild.modules
170         (jhbuildConfigurationCheckFile): New function to check if MD5 sum file changes.
171         (jhbuildConfigurationChanged): Add MD5 sum check for included files.
172         (saveMd5File): New function to save MD5 sum of a file.
173         (saveJhbuildMd5): Add saving included files MD5 sum.
174         (deleteJhbuildMd5): Delete included files MD5 sum
175         * gtk/install-dependencies: Add perl-libXML lib that is used to parse jhbuild file.
176         * wpe/install-dependencies: Ditto.
177
178 2017-10-17  Tomas Popela  <tpopela@redhat.com>
179
180         Undefined WK_API_ENABLED warning when compiling COCOA content on WebKitGTK+
181         https://bugs.webkit.org/show_bug.cgi?id=178208
182
183         Check whether we are on COCOA platform before checking for
184         WK_API_ENABLED.
185
186         Reviewed by Ryosuke Niwa.
187
188         * WebKitTestRunner/TestController.cpp:
189         (WTR::TestController::clearDOMCache):
190
191 2017-10-17  Keith Miller  <keith_miller@apple.com>
192
193         Change WebCore sources to work with unified source builds
194         https://bugs.webkit.org/show_bug.cgi?id=178229
195
196         Rubber stamped by Tim Horton.
197
198         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
199
200 2017-10-16  Christopher Reid  <chris.reid@sony.com>
201
202         [Win] Webkit should still be able to build when unable to check if libraries are up to date
203         https://bugs.webkit.org/show_bug.cgi?id=178367
204
205         Adding a option to skip the check to see if windows libraries are up to date.
206         This option is useful when testing modified libraries. This option also allows
207         building webkit when GitHub blocks requests to verify the latest library version.
208
209
210         Reviewed by Per Arne Vollan.
211
212         * Scripts/build-webkit:
213
214 2017-10-12  Matt Rajca  <mrajca@apple.com>
215
216         Add API support for quirk that lets an arbitrary click allow auto-play.
217         https://bugs.webkit.org/show_bug.cgi?id=178227
218
219         Reviewed by Alex Christensen.
220
221         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
222         (TEST): Added API test.
223
224 2017-10-16  Maureen Daum  <mdaum@apple.com>
225
226         If an origin doesn't have databases in the Databases table we should still remove its information from disk in DatabaseTracker::deleteOrigin()
227         https://bugs.webkit.org/show_bug.cgi?id=178281
228         <rdar://problem/34576132>
229
230         Reviewed by Brent Fulgham.
231
232         Verify that if there is an entry in the Origins table but no entries in the Databases
233         table that we still remove the directory for the origin, and that we remove the
234         entry from the Origins table.
235
236         * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm:
237         (TestWebKitAPI::TEST):
238
239 2017-10-15  Ryosuke Niwa  <rniwa@webkit.org>
240
241         Cannot access images included in the content pasted from Microsoft Word
242         https://bugs.webkit.org/show_bug.cgi?id=124391
243         <rdar://problem/26862741>
244
245         Reviewed by Antti Koivisto.
246
247         Added tests for sanitizing HTML contents for copy & paste and drag & drop.
248
249         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
250         * TestWebKitAPI/Tests/WebKitCocoa/CopyHTML.mm: Added.
251         (readHTMLFromPasteboard): Added.
252         (createWebViewWithCustomPasteboardDataEnabled): Added.
253         (CopyHTML.Sanitizes): Added.
254
255         * TestWebKitAPI/Tests/WebKitCocoa/CopyURL.mm:
256         (createWebViewWithCustomPasteboardDataEnabled): Added to enable more tests on bots.
257
258         * TestWebKitAPI/Tests/WebKitCocoa/PasteRTFD.mm:
259         (writeRTFToPasteboard): Added.
260         (createWebViewWithCustomPasteboardDataEnabled): Added.
261         (createHelloWorldString): Added.
262         (PasteRTF.ExposesHTMLTypeInDataTransfer): Added.
263         (PasteRTFD.ExposesHTMLTypeInDataTransfer): Added.
264         (PasteRTFD.ImageElementUsesBlobURLInHTML): Added.
265
266         * TestWebKitAPI/Tests/WebKitCocoa/copy-html.html: Added.
267         * TestWebKitAPI/Tests/WebKitCocoa/paste-rtfd.html: Store the clipboardData contents for
268         PasteRTF.ExposesHTMLTypeInDataTransfer and PasteRTFD.ExposesHTMLTypeInDataTransfer.
269
270         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
271         (DataInteractionTests.DataTransferSanitizeHTML):
272
273 2017-10-16  Youenn Fablet  <youenn@apple.com>
274
275         Activate Cache API by default
276         https://bugs.webkit.org/show_bug.cgi?id=178186
277
278         Reviewed by Chris Dumez.
279
280         Removing explicit activation of cache api.
281
282         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
283         (WTR::InjectedBundle::beginTesting):
284         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
285         (WTR::TestRunner::setCacheAPIEnabled): Deleted.
286         * WebKitTestRunner/InjectedBundle/TestRunner.h:
287
288 2017-10-16  Ross Kirsling  <ross.kirsling@sony.com>
289
290         run-webkit-tests help text should mention arguments too
291         https://bugs.webkit.org/show_bug.cgi?id=178352
292
293         Reviewed by Tim Horton.
294
295         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
296         (parse_args):
297
298 2017-10-16  Maureen Daum  <mdaum@apple.com>
299
300         If we fail to delete any database file, don't remove its information from the tracker database
301         <rdar://problem/34576132> and https://bugs.webkit.org/show_bug.cgi?id=178251
302
303         Reviewed by Brady Eidson.
304
305         Add tests that verify we correctly delete databases and remove their information from
306         the tracker database, even if the database doesn't exist. Verify that if we fail to
307         delete a database, we don't remove its information from the tracker database.
308
309         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
310         Move DatabaseTrackerTest.cpp to DatabaseTrackerTest.mm so that we can use the cocoa
311         method for creating a temporary directory in the tests.
312         * TestWebKitAPI/Tests/WebCore/DatabaseTrackerTest.cpp: Removed.
313         The existing test was copied to DatabaseTrackerTest.mm.
314         * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: Added.
315         (TestWebKitAPI::TEST):
316         (TestWebKitAPI::addToDatabasesTable):
317         (TestWebKitAPI::removeDirectoryAndAllContents):
318         (TestWebKitAPI::createFileAtPath):
319
320 2017-10-16  Ryan Haddad  <ryanhaddad@apple.com>
321
322         Unreviewed, rolling out r223422.
323
324         These tests are for a change that was rolled out in r223420
325
326         Reverted changeset:
327
328         "If we fail to delete any database file, don't remove its
329         information from the tracker database"
330         https://bugs.webkit.org/show_bug.cgi?id=178251
331         https://trac.webkit.org/changeset/223422
332
333 2017-10-16  Maureen Daum  <mdaum@apple.com>
334
335         If we fail to delete any database file, don't remove its information from the tracker database
336         <rdar://problem/34576132> and https://bugs.webkit.org/show_bug.cgi?id=178251
337
338         Reviewed by Brady Eidson.
339
340         Add tests that verify we correctly delete databases and remove their information from
341         the tracker database, even if the database doesn't exist. Verify that if we fail to
342         delete a database, we don't remove its information from the tracker database.
343
344         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
345         Move DatabaseTrackerTest.cpp to DatabaseTrackerTest.mm so that we can use the cocoa
346         method for creating a temporary directory in the tests.
347         * TestWebKitAPI/Tests/WebCore/DatabaseTrackerTest.cpp: Removed.
348         The existing test was copied to DatabaseTrackerTest.mm.
349         * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: Added.
350         (TestWebKitAPI::TEST):
351         (TestWebKitAPI::addToDatabasesTable):
352         (TestWebKitAPI::removeDirectoryAndAllContents):
353         (TestWebKitAPI::createFileAtPath):
354
355 2017-10-16  David Kilzer  <ddkilzer@apple.com>
356
357         Add RELEASE_ASSERT_WITH_SECURITY_IMPLICATION() macro
358         <https://webkit.org/b/178269>
359
360         Reviewed by Alex Christensen.
361
362         * Scripts/webkitpy/style/checkers/cpp.py:
363         (check_language): Add checker to warn about using
364         ASSERT_WITH_SECURITY_IMPLICATION().
365         (CppChecker.categories): Add 'security/assertion' to list of
366         enabled checkers.
367         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
368         (CppStyleTest.test_debug_security_assertion): Add tests for
369         new checker.
370
371 2017-10-16  Chris Dumez  <cdumez@apple.com>
372
373         Clicks on Link with download attribute causes all (other) links to trigger download when clicked
374         https://bugs.webkit.org/show_bug.cgi?id=178267
375         <rdar://problem/34985016>
376
377         Reviewed by Darin Adler.
378
379         Use PassThrough policy in WKTR's InjectedBundle's decidePolicyForNewWindowAction so that the
380         request is sent to the UIProcess. This gets WKTR's closer to Safari behavior and helps
381         reproduce the bug. Without this change, I would not be able to write a regression test for
382         this bug that is very easily reproducible in Safari.
383
384         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
385         (WTR::InjectedBundlePage::decidePolicyForNewWindowAction):
386
387 2017-10-16  Emilio Cobos Álvarez  <emilio@crisal.io>
388
389         Add Emilio Cobos Álvarez to the contributors list.
390         https://bugs.webkit.org/show_bug.cgi?id=178334
391
392         Reviewed by Antti Koivisto.
393
394         * Scripts/webkitpy/common/config/contributors.json:
395
396 2017-10-07  Maciej Stachowiak  <mjs@apple.com>
397
398         Improve --help documentation and add --list-plans to show available benchmarks.
399         https://bugs.webkit.org/show_bug.cgi?id=178059
400
401         Reviewed by Ryosuke Niwa.
402
403         * Scripts/webkitpy/benchmark_runner/benchmark_runner.py:
404         (BenchmarkRunner.available_plans): New function that returns the list of available plans.
405         (BenchmarkRunner.plan_directory): New method to centralize knowledge of where the plan files live.
406         (BenchmarkRunner._find_plan_file): Updated to use BenchmarkRunner.plan_directory
407
408         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
409         
410         (parse_args): Help cleanup: Reordered options to put more common
411         ones at the top. Fixed wording. Added help for each
412         option. Explained default for each option that has one.
413
414         New option: --list-plans which tells you the available benchmarks.
415         
416         Code cleanup: Removed use of dest where redundant, made variable
417         names conforming to Python coding style.
418         
419         (run_benchmark_plan): Adapted for new variable names.
420         (list_benchmark_plans): New helper for --list-plans option.
421         (start): Account for --list-plans. Also use
422         BechmarkRunner.available_plans and use
423         BenchmarkRunner.plan_directory instead of duplicating
424         code/knowledge here.
425
426 2017-10-16  Wenson Hsieh  <wenson_hsieh@apple.com>
427
428         On ToT, event.dataTransfer.getData("text/uri-list") returns an empty string when dragging an image
429         https://bugs.webkit.org/show_bug.cgi?id=178301
430         <rdar://problem/34990050>
431
432         Reviewed by Darin Adler.
433
434         Fixes issues in DumpRenderTree's LocalPasteboard to ensure that drag-drop-href-as-url.html exposes files, and
435         also adds a new iOS drag and drop API test.
436
437         * DumpRenderTree/mac/DumpRenderTreePasteboard.mm:
438         (-[LocalPasteboard addTypes:owner:]):
439         (-[LocalPasteboard setData:forType:]):
440
441         Fixes LocalPasteboard's implementation of changeCount to incremement when the pasteboard owner changes, rather
442         than every time data is changed. This is consistent with NSPasteboard behavior.
443
444         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
445         (TestWebKitAPI::TEST):
446
447         Adds a new API test to verify that an image and HTTP URL written by the platform is correctly web exposed.
448
449 2017-10-15  Darin Adler  <darin@apple.com>
450
451         UTF-8 decoding produces one replacement character per byte; Encoding standard requires one replacement character per illegal sequence instead
452         https://bugs.webkit.org/show_bug.cgi?id=178207
453
454         Reviewed by Sam Weinig.
455
456         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added test.
457         * TestWebKitAPI/Tests/WebCore/TextCodec.cpp: Added.
458         (TestWebKitAPI::decodeHexTestBytes): Decodes a string so we can write readable tests.
459         (TestWebKitAPI::escapeNonPrintableASCIICharacters): Encodes a string so we can write readable tests.
460         (TestWebKitAPI::TEST): Added some UTF-8 tests and UTF-8 invalid sequences tests.
461         Would be smart to add more tests for other cases, exercising the fast ASCII loop for example, and
462         other encodings.
463
464 2017-10-14  Adrian Perez de Castro  <aperez@igalia.com>
465
466         [WPE] JHBuild build directory DependenciesWPE/Build is not removed by update-webkit-libs-jhbuild
467         https://bugs.webkit.org/show_bug.cgi?id=178212
468
469         Reviewed by Michael Catanzaro.
470
471         * Scripts/update-webkit-libs-jhbuild:
472         (cleanJhbuild): The WPE JHBuild also uses a separate "Build" subdirectory, so do not skip
473         cleaning it when "--wpe" is passed to the script.
474
475 2017-10-13  Adrian Perez de Castro  <aperez@igalia.com>
476
477         [WPE] Fontconfig fails build in JHBuild with “error: conflicting types for ‘FcObjectTypeHash’”
478         https://bugs.webkit.org/show_bug.cgi?id=178283
479
480         Reviewed by Žan Doberšek.
481
482         * wpe/jhbuild.modules: Flag Fontconfig to be built inside the source directory, otherwise
483         compilation fails. While at it, pass "--disable-docs" to cut a bit on build time.
484
485 2017-10-13  Youenn Fablet  <youenn@apple.com>
486
487         Implement listing origins for which CacheStorage is storing data
488         https://bugs.webkit.org/show_bug.cgi?id=178236
489
490         Reviewed by Chris Dumez.
491
492         Adding hasDOMCache API for checking whether origin is storing data through Cache API.
493
494         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
495         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
496         (WTR::TestRunner::hasDOMCache):
497         * WebKitTestRunner/InjectedBundle/TestRunner.h:
498         * WebKitTestRunner/TestController.cpp:
499         (WTR::FetchCacheOriginsCallbackContext::FetchCacheOriginsCallbackContext):
500         (WTR::fetchCacheOriginsCallback):
501         (WTR::TestController::hasDOMCache):
502         * WebKitTestRunner/TestController.h:
503         * WebKitTestRunner/TestInvocation.cpp:
504         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
505
506 2017-10-13  Alex Christensen  <achristensen@webkit.org>
507
508         Remove Editor::simplifyMarkup
509         https://bugs.webkit.org/show_bug.cgi?id=178271
510
511         Reviewed by Wenson Hsieh.
512
513         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
514         * TestWebKitAPI/Tests/mac/SimplifyMarkup.mm: Removed.
515
516 2017-10-11  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
517
518         [GLib] WebKitNavigationAction should tell whether it is a redirect
519         https://bugs.webkit.org/show_bug.cgi?id=178178
520
521         Test that WebKitNavigationAction properly reports being a redirect.
522
523         Reviewed by Carlos Garcia Campos.
524
525         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp:
526         (testNavigationPolicy): test that loading /redirect leads to a redirect WebKitNavigationAction.
527         (serverCallback): add a /redirect path to the server, which causes a redirect.
528
529 2017-10-13  Chris Dumez  <cdumez@apple.com>
530
531         Unreviewed, fix webkitpy failure after r223273
532
533         * Scripts/webkitpy/w3c/test_importer_unittest.py:
534         (TestImporterTest.test_harnesslinks_conversion):
535
536 2017-10-12  Chris Dumez  <cdumez@apple.com>
537
538         import-w3c-tests modifies test sources and sometimes causes them to fail
539         https://bugs.webkit.org/show_bug.cgi?id=178234
540
541         Reviewed by Ryosuke Niwa.
542
543         Update import-w3c-tests to stop rewriting tests as this is causing some tests
544         to fail unexpectedly.
545
546         * Scripts/webkitpy/w3c/test_importer.py:
547         (TestImporter.import_tests):
548
549 2017-10-12  Youenn Fablet  <youenn@apple.com>
550
551         Layout Test http/tests/cache-storage/cache-clearing.https.html is failing
552         https://bugs.webkit.org/show_bug.cgi?id=178200
553
554         Reviewed by Chris Dumez.
555
556         Making clearDOMCache wait for removal completion to exit.
557         This removes the risk to interact with the cache while deleting it which will end up be racy in tests.
558
559         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
560         (WTR::TestRunner::clearDOMCache):
561         * WebKitTestRunner/TestController.cpp:
562         (WTR::ClearDOMCacheCallbackContext::ClearDOMCacheCallbackContext):
563         (WTR::clearDOMCacheCallback):
564         (WTR::TestController::clearDOMCache):
565         * WebKitTestRunner/TestInvocation.cpp:
566         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
567         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
568
569 2017-10-12  John Wilander  <wilander@apple.com>
570
571         ResourceLoadObserver::logFrameNavigation() should use redirectResponse.url()
572         https://bugs.webkit.org/show_bug.cgi?id=175257
573         <rdar://problem/33359866>
574
575         Reviewed by Brent Fulgham.
576
577         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
578         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
579         (WTR::TestRunner::isStatisticsRegisteredAsSubFrameUnder):
580         (WTR::TestRunner::isStatisticsRegisteredAsRedirectingTo):
581         * WebKitTestRunner/InjectedBundle/TestRunner.h:
582         * WebKitTestRunner/TestController.cpp:
583         (WTR::TestController::isStatisticsRegisteredAsSubFrameUnder):
584             Not implemented.
585         (WTR::TestController::isStatisticsRegisteredAsRedirectingTo):
586             Not implemented.
587         * WebKitTestRunner/TestController.h:
588         * WebKitTestRunner/TestInvocation.cpp:
589         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
590         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
591         (WTR::TestController::isStatisticsRegisteredAsSubFrameUnder):
592             Implemented platform-specific.
593         (WTR::TestController::isStatisticsRegisteredAsRedirectingTo):
594             Implemented platform-specific.
595
596 2017-10-12  Andy Estes  <aestes@apple.com>
597
598         [iOS] Conditionally rename DatabaseProcess to StorageProcess when building for iOS devices
599         https://bugs.webkit.org/show_bug.cgi?id=178181
600         <rdar://problem/33660282>
601
602         Reviewed by Dan Bernstein.
603
604         * WebKitTestRunner/TestController.cpp:
605         (WTR::TestController::databaseProcessName):
606
607 2017-10-12  Myles C. Maxfield  <mmaxfield@apple.com>
608
609         Emit SPIR-V from WSL compiler (Part 1)
610         https://bugs.webkit.org/show_bug.cgi?id=177998
611
612         Reviewed by Filip Pizlo.
613
614         This patch implements the first half of a SPIR-V codegen phase for WSL.
615         This includes all the operations which aren't actually emitting the contents
616         of functions themselves. For example, this includes things like representing
617         WSL types with SPIR-V types, and declaring shaders' inputs and outputs. A
618         future patch will actually emit the contents of functions.
619
620         There are two helper visitors here: SPIRVTypeAnalyzer which generates SPIR-V
621         types from WSL types, and SPIRVPrimitiveVariableAnalyzer which identifies
622         input and output variables from a shader (and assigns location values to
623         each one).
624
625         This patch is currently pursuing the "logical mode" detailed in
626         https://bugs.webkit.org/show_bug.cgi?id=176967. In this mode, each pointer and
627         array reference operation can be statically traced to the variable or array it
628         is operating on.
629
630         This has the interesting property where accessing a pointer inside an array is
631         forbidden, because the array index may be computed at runtime, so the compiler
632         can't know at compile time which variable the pointer operation will be
633         accessing. However, this isn't true for structs; the program must statically
634         state which struct member it is accessing. Therefore, pointers or array
635         references must not transitively appear within an array, but they may appear
636         within a struct. The same logic applies to array references; those get lowered
637         to just two indexes in SPIR-V (a lower bound and an upper bound).
638
639         So, outside of an array, SPIR-V types don't need to include any pointers because
640         any operation with the pointer doesn't need access to the runtime value of the
641         pointer. Inside of an array, pointers are forbidden. Therefore, SPIR-V types
642         will never include any pointers.
643
644         This means that, for example, WSL can represent a linked list in logical mode.
645         However, a WSL program cannot iterate across the list, because that would require
646         assigning to a pointer. So instead, a program using a linked list could only say
647         something like "list.ptr->ptr->ptr->value".
648
649         * WebGPUShadingLanguageRI/LateChecker.js:
650         (LateChecker.prototype._checkShaderType):
651         * WebGPUShadingLanguageRI/SPIR-V.js:
652         (SPIRV.OperandChecker.prototype._isStar):
653         (SPIRV.OperandChecker.prototype.nextComparisonType):
654         (SPIRV.OperandChecker.prototype.finalize):
655         (SPIRV.OperandChecker):
656         * WebGPUShadingLanguageRI/SPIRV.html:
657         * WebGPUShadingLanguageRI/SPIRVCodegen.js: Added.
658         (findEntryPoints):
659         (emitTypes.doEmitTypes):
660         (emitTypes):
661         (ConstantFinder.prototype.visitGenericLiteralType):
662         (ConstantFinder):
663         (generateSPIRV):
664         * WebGPUShadingLanguageRI/SPIRVTypeAnalyzer.js: Added.
665         (SPIRVTypeAnalyzer):
666         (SPIRVTypeAnalyzer.prototype.get program):
667         (SPIRVTypeAnalyzer.prototype.get typeMap):
668         (SPIRVTypeAnalyzer.prototype.get currentId):
669         (SPIRVTypeAnalyzer.prototype.get stack):
670         (SPIRVTypeAnalyzer.prototype.visitTypeRef):
671         (SPIRVTypeAnalyzer.prototype._encounterType):
672         (SPIRVTypeAnalyzer.prototype.visitNullType):
673         (SPIRVTypeAnalyzer.prototype.visitGenericLiteralType):
674         (SPIRVTypeAnalyzer.prototype.visitNativeType):
675         (SPIRVTypeAnalyzer.prototype.visitEnumType):
676         (SPIRVTypeAnalyzer.prototype.visitPtrType):
677         (SPIRVTypeAnalyzer.prototype.visitArrayRefType):
678         (SPIRVTypeAnalyzer.prototype.visitArrayType):
679         (SPIRVTypeAnalyzer.prototype.visitStructType):
680         * WebGPUShadingLanguageRI/SPIRVVariableAnalyzer.js: Added.
681         (SPIRVPrimitiveVariableAnalyzer):
682         (SPIRVPrimitiveVariableAnalyzer.prototype.get program):
683         (SPIRVPrimitiveVariableAnalyzer.prototype.get typeMap):
684         (SPIRVPrimitiveVariableAnalyzer.prototype.get currentId):
685         (SPIRVPrimitiveVariableAnalyzer.prototype.get currentLocation):
686         (SPIRVPrimitiveVariableAnalyzer.prototype.get nameComponents):
687         (SPIRVPrimitiveVariableAnalyzer.prototype.get result):
688         (SPIRVPrimitiveVariableAnalyzer.prototype.visitTypeRef):
689         (SPIRVPrimitiveVariableAnalyzer.prototype.visitNullType):
690         (SPIRVPrimitiveVariableAnalyzer.prototype.visitGenericLiteralType):
691         (SPIRVPrimitiveVariableAnalyzer.prototype.visitNativeType):
692         (SPIRVPrimitiveVariableAnalyzer.prototype.visitEnumType):
693         (SPIRVPrimitiveVariableAnalyzer.prototype.visitPtrType):
694         (SPIRVPrimitiveVariableAnalyzer.prototype.visitArrayRefType):
695         (SPIRVPrimitiveVariableAnalyzer.prototype.visitArrayType):
696         (SPIRVPrimitiveVariableAnalyzer.prototype.visitStructType):
697         * WebGPUShadingLanguageRI/WSL.md:
698         * WebGPUShadingLanguageRI/index.html:
699
700 2017-09-29  Filip Pizlo  <fpizlo@apple.com>
701
702         Enable gigacage on iOS
703         https://bugs.webkit.org/show_bug.cgi?id=177586
704
705         Reviewed by JF Bastien.
706         
707         Add a mode to test disabling Gigacage.
708
709         * Scripts/run-jsc-stress-tests:
710         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
711
712 2017-10-11  Sam Weinig  <sam@webkit.org>
713
714         Remove out-parameter variants of copyToVector
715         https://bugs.webkit.org/show_bug.cgi?id=178155
716
717         Reviewed by Tim Horton.
718
719         * DumpRenderTree/JavaScriptThreading.cpp:
720         (stopJavaScriptThreads):
721
722 2017-10-12  Sam Weinig  <sam@webkit.org>
723
724         It should be possible to iterate just the values (and not the counts) of a HashCountedSet
725         https://bugs.webkit.org/show_bug.cgi?id=178169
726
727         Reviewed by Daniel Bates.
728
729         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
730         (TestWebKitAPI::TEST):
731         Add test for HashCountedSet's new values() range.
732
733 2017-10-11  Frederic Wang  <fwang@igalia.com>
734
735         run-safari --ios-simulator is no longer working with Xcode 9
736         https://bugs.webkit.org/show_bug.cgi?id=177595
737
738         Reviewed by Daniel Bates.
739
740         In Xcode 9, the path of the simulator application is now in a new CoreSimulator subdirectory
741         of the iphoneOS SDK platform. This patch updates webkitdirs.pm to use the new path in
742         Xcode 9 or higher so that it is possible to run Safari on the iOS simulator again. It also
743         does some minor code refactoring to improve code reuse.
744
745         * Scripts/configure-xcode-for-ios-development: Move sdkDirectory() and sdkPlatformDirectory()
746         into webkitdirs.
747         (sdkDirectory): Deleted.
748         (sdkPlatformDirectory): Deleted.
749         * Scripts/webkitdirs.pm: Expose new sdkDirectory() and sdkPlatformDirectory().
750         (sdkDirectory): Moved from configure-xcode-for-ios-development.
751         (sdkPlatformDirectory): Ditto.
752         (XcodeSDKPath): Rely on sdkDirectory() to implement this function.
753         (iosSimulatorApplicationsPath): In Xcode 9 or higher use the new path. It is calculated
754         by relying on sdkPlatformDirectory().
755
756 2017-10-11  Dewei Zhu  <dewei_zhu@apple.com>
757
758         run-benchmark script should set '__XPC_DYLD_FRAMEWORK_PATH' while launching local-built Safari on Mac.
759         https://bugs.webkit.org/show_bug.cgi?id=178199
760
761         Reviewed by Saam Barati.
762
763         '__XPC_DYLD_FRAMEWORK_PATH' should be set while launching Safari on run-benchmark script.
764         'force_remove' function should support both file and directory.
765
766         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:
767         (OSXSafariDriver.launch_url):
768         * Scripts/webkitpy/benchmark_runner/utils.py:
769         (force_remove):
770
771 2017-10-11  Saam Barati  <sbarati@apple.com>
772
773         Runtime disable poly proto because it may be a 3-4% Speedometer regression
774         https://bugs.webkit.org/show_bug.cgi?id=178192
775
776         Reviewed by JF Bastien.
777
778         * Scripts/run-jsc-stress-tests:
779
780 2017-10-11  Youenn Fablet  <youenn@apple.com>
781
782         Add API to clean CacheStorage data
783         https://bugs.webkit.org/show_bug.cgi?id=178034
784
785         Reviewed by Chris Dumez.
786
787         Adding internals API to trigger deleting all or origin-persistent cache storage persistent data. 
788
789         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
790         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
791         (WTR::TestRunner::clearDOMCache):
792         * WebKitTestRunner/InjectedBundle/TestRunner.h:
793         * WebKitTestRunner/TestController.cpp:
794         (WTR::TestController::clearDOMCache):
795         * WebKitTestRunner/TestController.h:
796         * WebKitTestRunner/TestInvocation.cpp:
797         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
798
799 2017-10-11  Chris Dumez  <cdumez@apple.com>
800
801         [Geolocation] Expose Coordinates.floorLevel
802         https://bugs.webkit.org/show_bug.cgi?id=178173
803         <rdar://problem/34918936>
804
805         Reviewed by Ryosuke Niwa.
806
807         Add test infrastructure for testing Coordinates.floorLevel.
808
809         * DumpRenderTree/TestRunner.cpp:
810         (setMockGeolocationPositionCallback):
811         * DumpRenderTree/TestRunner.h:
812         * DumpRenderTree/mac/TestRunnerMac.mm:
813         (TestRunner::setMockGeolocationPosition):
814         * DumpRenderTree/win/TestRunnerWin.cpp:
815         (TestRunner::setMockGeolocationPosition):
816         * WebKitTestRunner/GeolocationProviderMock.cpp:
817         (WTR::GeolocationProviderMock::setPosition):
818         * WebKitTestRunner/GeolocationProviderMock.h:
819         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
820         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
821         (WTR::InjectedBundle::setMockGeolocationPosition):
822         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
823         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
824         (WTR::TestRunner::setMockGeolocationPosition):
825         * WebKitTestRunner/InjectedBundle/TestRunner.h:
826         * WebKitTestRunner/TestController.cpp:
827         (WTR::TestController::setMockGeolocationPosition):
828         * WebKitTestRunner/TestController.h:
829         * WebKitTestRunner/TestInvocation.cpp:
830         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
831
832 2017-10-11  Youenn Fablet  <youenn@apple.com>
833
834         Bump default cache storage quota to 20MB
835         https://bugs.webkit.org/show_bug.cgi?id=178132
836
837         Reviewed by Alex Christensen.
838
839         * WebKitTestRunner/TestController.cpp:
840         (WTR::TestController::generateContextConfiguration const):
841         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
842         (WTR::initializeWebViewConfiguration): Setting quota to 400kb
843
844 2017-10-11  Commit Queue  <commit-queue@webkit.org>
845
846         Unreviewed, rolling out r223113 and r223121.
847         https://bugs.webkit.org/show_bug.cgi?id=178182
848
849         Reintroduced 20% regression on Kraken (Requested by rniwa on
850         #webkit).
851
852         Reverted changesets:
853
854         "Enable gigacage on iOS"
855         https://bugs.webkit.org/show_bug.cgi?id=177586
856         https://trac.webkit.org/changeset/223113
857
858         "Use one virtual allocation for all gigacages and their
859         runways"
860         https://bugs.webkit.org/show_bug.cgi?id=178050
861         https://trac.webkit.org/changeset/223121
862
863 2017-10-11  Ryosuke Niwa  <rniwa@webkit.org>
864
865         Sanitize URL in pasteboard for other applications and cross origin content
866         https://bugs.webkit.org/show_bug.cgi?id=178060
867         <rdar://problem/34874518>
868
869         Reviewed by Wenson Hsieh.
870
871         Added API tests for sanitizing URLs copied from web content, and that the original URL is exposed to the web content.
872
873         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
874         * TestWebKitAPI/Tests/WebKitCocoa/CopyURL.mm: Added.
875         (readURLFromPasteboard): A helper function.
876         * TestWebKitAPI/Tests/WebKitCocoa/copy-url.html: Added.
877         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
878         (DataInteractionTests.DataTransferGetDataWhenDroppingCustomData): Rebaselined. https://www.apple.com is no longer
879         normalized to https://www.apple.com/ by NSURL / UIPasteboard as expected.
880         (DataInteractionTests.DataTransferSetDataValidURL): Added.
881         (DataInteractionTests.DataTransferSetDataUnescapedURL): Added.
882         (DataInteractionTests.qDataTransferSetDataInvalidURL): Added.
883
884 2017-10-11  Chris Dumez  <cdumez@apple.com>
885
886         Modernize Geolocation code
887         https://bugs.webkit.org/show_bug.cgi?id=178148
888
889         Reviewed by Ryosuke Niwa.
890
891         * DumpRenderTree/mac/TestRunnerMac.mm:
892         (TestRunner::setMockGeolocationPosition):
893
894 2017-10-11  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
895
896         [GStreamer] Many media source tests crashing with GStreamer-CRITICAL **: _gst_util_uint64_scale: assertion 'denom != 0' failed in gst_qtdemux_configure_stream()
897         https://bugs.webkit.org/show_bug.cgi?id=176804
898
899         Reviewed by Michael Catanzaro.
900
901         Add patch to fix assert in qtdemux.
902
903         * gstreamer/jhbuild.modules:
904         * gstreamer/patches/gst-plugins-good-0009-qtdemux-fix-assert-when-moof-contains-one-sample.patch: Added.
905
906 2017-10-11  Tomas Popela  <tpopela@redhat.com>
907
908         Use https for trac changeset and browser links
909         https://bugs.webkit.org/show_bug.cgi?id=178167
910
911         Reviewed by Alexey Proskuryakov.
912
913         Switch the http://trac.webkit.org/changeset and
914         http://trac.webkit.org/browser links that are printed by webkitpy to
915         https. Also update the test expectations.
916
917         * Scripts/webkitpy/common/checkout/checkout_unittest.py:
918         * Scripts/webkitpy/common/config/committervalidator_unittest.py:
919         (CommitterValidatorTest.test_flag_permission_rejection_message):
920         * Scripts/webkitpy/common/config/urls.py:
921         (view_source_url):
922         (view_revision_url):
923         * Scripts/webkitpy/common/net/bugzilla/bug_unittest.py:
924         (BugTest.test_commit_revision):
925         * Scripts/webkitpy/common/net/bugzilla/bugzilla_mock.py:
926         * Scripts/webkitpy/common/net/buildbot/buildbot_unittest.py:
927         * Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py:
928         (MainTest):
929         (MainTest.test_run_with_upload_json_should_generate_perf_webkit_json):
930         * Scripts/webkitpy/style/checkers/changelog_unittest.py:
931         (ChangeLogCheckerTest.test_missing_bug_number):
932         * Scripts/webkitpy/tool/bot/feeders_unittest.py:
933         * Scripts/webkitpy/tool/bot/flakytestreporter_unittest.py:
934         * Scripts/webkitpy/tool/bot/ircbot_unittest.py:
935         (IRCBotTest.test_rollout):
936         (IRCBotTest.test_revert):
937         (IRCBotTest.test_multi_rollout):
938         (IRCBotTest.test_rollout_with_r_in_svn_revision):
939         (IRCBotTest.test_multi_rollout_with_r_in_svn_revision):
940         (IRCBotTest.test_rollout_invalidate_reason):
941         (test_multi_rollout_invalidate_reason):
942         * Scripts/webkitpy/tool/bot/sheriff_unittest.py:
943         * Scripts/webkitpy/tool/commands/download_unittest.py:
944         * Scripts/webkitpy/tool/commands/newcommitbot_unittest.py:
945         * Scripts/webkitpy/tool/commands/queues_unittest.py:
946         * Scripts/webkitpy/tool/commands/suggestnominations.py:
947         (SuggestNominations._count_commit):
948         * Scripts/webkitpy/tool/commands/upload_unittest.py:
949         * Scripts/webkitpy/tool/servers/data/rebaselineserver/util.js:
950         (getTracUrl):
951         (getSortedKeys):
952         * Scripts/webkitpy/tool/steps/closebugforlanddiff_unittest.py:
953         (CloseBugForLandDiffTest.test_empty_state):
954         * Scripts/webkitpy/tool/steps/commit_unittest.py:
955         (CommitTest._test_check_test_expectations):
956         * Scripts/webkitpy/tool/steps/preparechangelogforrevert_unittest.py:
957         (UpdateChangeLogsForRevertTest):
958
959 2017-10-10  Ryosuke Niwa  <rniwa@webkit.org>
960
961         Enable custom pasteboard data in DumpRenderTree and WebKitTestRunner
962         https://bugs.webkit.org/show_bug.cgi?id=178154
963
964         Reviewed by Wenson Hsieh.
965
966         Fixed the bug that LocalPasteboard would fail to load the promise type if data is set after declaring types
967         by delaying the call to provideDataForType until when dataForType is called.
968
969         Without this fix, fast/events/dropzone-002.html would start failing after enabling custom pasteboard data.
970         With this fix, fast/events/dropzone-005.html also starts passing.
971
972         * DumpRenderTree/mac/DumpRenderTree.mm:
973         (resetWebPreferencesToConsistentValues):
974         * DumpRenderTree/mac/DumpRenderTreePasteboard.mm:
975         (-[LocalPasteboard addTypes:owner:]):
976         (-[LocalPasteboard dataForType:]):
977         * WebKitTestRunner/TestController.cpp:
978         (WTR::TestController::resetPreferencesToConsistentValues):
979
980 2017-10-10  Joanmarie Diggs  <jdiggs@igalia.com>
981
982         AX: [ATK] ARIA form role should be mapped to ATK_ROLE_LANDMARK; not ATK_ROLE_FORM
983         https://bugs.webkit.org/show_bug.cgi?id=178137
984
985         Reviewed by Chris Fleizach.
986
987         Add handling for ATK_ROLE_LANDMARK resulting from the ARIA form role.
988
989         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
990
991 2017-10-10  Jonathan Bedard  <jbedard@apple.com>
992
993         run-webkit-tests: upload test results to multiple servers
994         https://bugs.webkit.org/show_bug.cgi?id=178012
995         <rdar://problem/34856501>
996
997         Reviewed by Lucas Forschler.
998
999         Allowing uploading of results to multiple servers makes developing new results
1000         databases much easier, and does not complicate uploading logic.
1001
1002         * Scripts/webkitpy/layout_tests/controllers/manager.py:
1003         (Manager.upload_results): Iterate through the list of results server hosts and
1004         send results to each one.
1005         * Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py:
1006         (JSONLayoutResultsGenerator.__init__): Accept a list of test results servers.
1007         * Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py:
1008         (JSONResultsGenerator.__init__): Accept a list of test results servers.
1009         (JSONResultsGenerator.get_json): Pick which server to download from by index.
1010         (JSONResultsGenerator.upload_json_files): Upload the JSON to each results server.
1011         (JSONResultsGenerator._get_archived_json_results): Pick which server to download from.
1012         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1013         (parse_args): Allow multiple test-results-servers and results-server-hosts to be
1014         passed to run-webkit-tests. 
1015
1016 2017-10-09  Youenn Fablet  <youenn@apple.com>
1017
1018         Vector should be able to easily create from a list of movable only items
1019         https://bugs.webkit.org/show_bug.cgi?id=176432
1020
1021         Reviewed by Darin Adler.
1022
1023         * TestWebKitAPI/Tests/WTF/Vector.cpp:
1024         (TestWebKitAPI::TEST):
1025
1026 2017-09-29  Filip Pizlo  <fpizlo@apple.com>
1027
1028         Enable gigacage on iOS
1029         https://bugs.webkit.org/show_bug.cgi?id=177586
1030
1031         Reviewed by JF Bastien.
1032         
1033         Add a mode to test disabling Gigacage.
1034
1035         * Scripts/run-jsc-stress-tests:
1036         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
1037
1038 2017-10-09  Commit Queue  <commit-queue@webkit.org>
1039
1040         Unreviewed, rolling out r223015 and r223025.
1041         https://bugs.webkit.org/show_bug.cgi?id=178093
1042
1043         Regressed Kraken on iOS by 20% (Requested by keith_mi_ on
1044         #webkit).
1045
1046         Reverted changesets:
1047
1048         "Enable gigacage on iOS"
1049         https://bugs.webkit.org/show_bug.cgi?id=177586
1050         http://trac.webkit.org/changeset/223015
1051
1052         "Unreviewed, disable Gigacage on ARM64 Linux"
1053         https://bugs.webkit.org/show_bug.cgi?id=177586
1054         http://trac.webkit.org/changeset/223025
1055
1056 2017-10-09  Sam Weinig  <sam@webkit.org>
1057
1058         Make HashMap::keys() and HashMap::values() work with WTF::map/WTF::copyToVector
1059         https://bugs.webkit.org/show_bug.cgi?id=178072
1060
1061         Reviewed by Darin Adler.
1062
1063         * TestWebKitAPI/Tests/WTF/Vector.cpp:
1064         (TestWebKitAPI::TEST):
1065         
1066             Add tests for HashMap::keys() and HashMap::values() working with copyToVector.
1067
1068 2017-10-05  Frederic Wang  <fwang@igalia.com>
1069
1070         Remove WOFF2 from Source/ThirdParty.
1071         https://bugs.webkit.org/show_bug.cgi?id=177862
1072
1073         Reviewed by Michael Catanzaro.
1074
1075         * Scripts/webkitpy/style/checker.py: Remove woff2.
1076         * gtk/jhbuild.modules: Add new jhbuild module for woff2.
1077
1078 2017-10-08  Sam Weinig  <sam@webkit.org>
1079
1080         It should be possible to create a ListHashSet with a std::initializer_list.
1081         https://bugs.webkit.org/show_bug.cgi?id=178070
1082
1083         Reviewed by Darin Adler.
1084
1085         * TestWebKitAPI/Tests/WTF/ListHashSet.cpp:
1086         (TestWebKitAPI::TEST):
1087         Add a test for using std::initializer_list with ListHashSet.
1088
1089 2017-10-08  Sam Weinig  <sam@webkit.org>
1090
1091         There should be a version of copyToVector that returns a Vector, rather than using an out parameter
1092         https://bugs.webkit.org/show_bug.cgi?id=177732
1093
1094         Reviewed by Saam Barati.
1095
1096         * TestWebKitAPI/Tests/WTF/Vector.cpp:
1097         (TestWebKitAPI::TEST):
1098         Add tests for the new copyToVector and copyToVectorOf functions.
1099
1100 2017-10-08  Darin Adler  <darin@apple.com>
1101
1102         Fix bugs related to setting reflected floating point DOM attributes
1103         https://bugs.webkit.org/show_bug.cgi?id=178061
1104
1105         Reviewed by Sam Weinig.
1106
1107         * TestWebKitAPI/Tests/WTF/AtomicString.cpp: Added a test of the
1108         AtomicString::number function, based on the test cases we already
1109         had for String::numberToStringECMAScript, and with some additional
1110         cases with powers of 10 that check handling of trailng zeroes.
1111
1112         * TestWebKitAPI/Tests/WTF/WTFString.cpp: Added test cases to the
1113         existing tests of the String::numberToStringECMAScript function
1114         as above. Also added tests for String::number and for
1115         String::numberToStringFixedWidth. Also changed the tests to all use
1116         EXPECT instead of ASSERT macros since these are all non-fatal.
1117
1118         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1119         (WTR::dumpFrameScrollPosition): Use StringBuilder::appendECMAScriptNumber
1120         instead of String::number.
1121
1122 2017-10-08  Dean Jackson  <dino@apple.com>
1123
1124         Make sort-Xcode-project file handle UnifiedSources
1125         https://bugs.webkit.org/show_bug.cgi?id=178042
1126
1127         Reviewed by Sam Weinig.
1128
1129         Sort the UnifiedSource(\d+) files by number rather
1130         than alphabetically.
1131
1132         * Scripts/sort-Xcode-project-file:
1133         (sortChildrenByFileName):
1134         (sortFilesByFileName):
1135
1136 2017-09-29  Filip Pizlo  <fpizlo@apple.com>
1137
1138         Enable gigacage on iOS
1139         https://bugs.webkit.org/show_bug.cgi?id=177586
1140
1141         Reviewed by JF Bastien.
1142         
1143         Add a mode to test disabling Gigacage.
1144
1145         * Scripts/run-jsc-stress-tests:
1146         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
1147
1148 2017-10-06  Aishwarya Nirmal  <anirmal@apple.com>
1149
1150         [iOS] Respect the "caret-color" CSS property when editing
1151         https://bugs.webkit.org/show_bug.cgi?id=177489
1152         <rdar://problem/34600419>
1153
1154         Reviewed by Tim Horton.
1155
1156         Adds test for iOS caret color support.
1157
1158         * TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm:
1159         (TestWebKitAPI::TEST):
1160         * TestWebKitAPI/ios/UIKitSPI.h:
1161
1162 2017-10-06  Alex Christensen  <achristensen@webkit.org>
1163
1164         Add more infrastructure to apply custom header fields to same-origin requests
1165         https://bugs.webkit.org/show_bug.cgi?id=177629
1166
1167         Reviewed by Ryosuke Niwa.
1168
1169         * TestWebKitAPI/Tests/WebCore/HTTPHeaderField.cpp:
1170         (canonicalizeHTTPHeader):
1171         (shouldRemainUnchanged):
1172         (shouldBeInvalid):
1173         (shouldBecome):
1174         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
1175         (TEST):
1176         (expectHeaders):
1177         (-[CustomHeaderFieldsDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
1178         (-[CustomHeaderFieldsDelegate webView:startURLSchemeTask:]):
1179         (-[CustomHeaderFieldsDelegate webView:stopURLSchemeTask:]):
1180
1181         Test main resource requests, subresource requests, and cross-origin requests.
1182
1183 2017-10-06  Wenson Hsieh  <wenson_hsieh@apple.com>
1184
1185         [iOS] Tweak support for classifying form controls (followup to r222487)
1186         https://bugs.webkit.org/show_bug.cgi?id=177917
1187         <rdar://problem/34820122>
1188
1189         Reviewed by Dean Jackson.
1190
1191         Minor cleanup around autofill API tests added in r222487. Additionally, augments some of these API tests to
1192         verify that after blurring the focused element, the content view no longer accepts autofill credentials (see
1193         WebKit ChangeLog for more details). Also augments tests to verify that the URL in the autofill context matches
1194         the document URL.
1195
1196         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
1197
1198         Remove the USE(APPLE_INTERNAL_SDK) guard for these API tests.
1199
1200         (newUIKeyboardLoginCredentialsSuggestion):
1201
1202         Add a stub implementation of UIKeyboardLoginCredentialsSuggestion. This allows
1203         [UIKeyboardLoginCredentialsSuggestion new] to return a nonnull object, which allows these API tests to verify
1204         that the credential filling codepath works as intended without any additional UIKit changes. Currently, tests
1205         for the value of username and password fields are passing even though the fields are not being populated because
1206         the expected string values are null, and the observed value is an empty string. We instead check the literal
1207         string values here instead of credentialSuggestion's properties, so that tests verifying the behavior of
1208         -insertTextSuggestion: will require username and password inputs to be populated.
1209
1210         (-[TestInputDelegate _webView:focusShouldStartInputSession:]):
1211         (-[AutofillTestView initWithFrame:]):
1212         (-[AutofillTestView _autofillInputView]):
1213         (-[AutofillTestView textInputHasAutofillContext]):
1214         (TestWebKitAPI::TEST):
1215
1216         Add an additional API test to verify that programmatic focus without user interaction (and also without testing
1217         overrides) does not activate autofill.
1218
1219         (createUIKeyboardLoginCredentialsSuggestion): Deleted.
1220         (-[WKWebView _privateTextInput]): Deleted.
1221         * TestWebKitAPI/ios/UIKitSPI.h:
1222
1223         Minor gardening to remove iOS version >= 11 guards that are now unnecessary. Additionally, add some more private
1224         header imports (with corresponding interface definitions for building and running with the public SDK).
1225
1226 2017-10-06  Antti Koivisto  <antti@apple.com>
1227
1228         Minor WeakPtr improvements
1229         https://bugs.webkit.org/show_bug.cgi?id=177958
1230
1231         Reviewed by Sam Weinig.
1232
1233         * TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
1234         (TestWebKitAPI::TEST):
1235         (TestWebKitAPI::Base::createWeakPtr): Deleted.
1236
1237 2017-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1238
1239         Unreviewed. Fix parsing of GTK unit tests output in bot configuration.
1240
1241         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1242         (RunGtkAPITests.commandComplete): Remove trailing ':' from the regular expression.
1243
1244 2017-10-06  Charles Turner  <cturner@igalia.com>
1245
1246         Disable bmalloc when running Valgrind
1247         https://bugs.webkit.org/show_bug.cgi?id=177923
1248
1249         Reviewed by Carlos Alberto Lopez Perez.
1250
1251         * Scripts/webkitpy/port/gtk.py:
1252         (GtkPort.setup_environ_for_server):
1253
1254 2017-10-06  Zan Dobersek  <zdobersek@igalia.com>
1255
1256         Implement TestController::platformContext() for WPE, returning the
1257         m_context pointer as the GTK+ port does. This fixes the crashes on
1258         the WPE testers.
1259
1260         Rubber-stamped by Carlos Garcia Campos.
1261
1262         * WebKitTestRunner/wpe/TestControllerWPE.cpp:
1263         (WTR::TestController::platformContext):
1264
1265 2017-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1266
1267         [GTK][WPE] Add API to configure and enable resource load statistics
1268         https://bugs.webkit.org/show_bug.cgi?id=177943
1269
1270         Reviewed by Michael Catanzaro.
1271
1272         Add a command line option to enable intelligent tracking prevention to MiniBrowser and tests cases to check the
1273         new API.
1274
1275         * MiniBrowser/gtk/main.c:
1276         (main):
1277         * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:
1278         (serverCallback):
1279         (testWebsiteDataConfiguration):
1280         (testWebsiteDataEphemeral):
1281         (testWebsiteDataResourceLoadStats):
1282         (beforeAll):
1283         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
1284         (Test::Test):
1285         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
1286         (directoryChangedCallback):
1287         (WebViewTest::waitUntilFileExists):
1288         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.h:
1289
1290 2017-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1291
1292         [GTK][WPE] All resource load statistics tests added in r212183 crash in GTK bots, timeout in GTK and WPE bots since r219049
1293         https://bugs.webkit.org/show_bug.cgi?id=168171
1294
1295         Reviewed by Chris Dumez.
1296
1297         Implement all resource load statistics functions in TestController using the C API. Also enable the FileMonitor
1298         unit test. This test requires a platform implementation of Util::run(), so I've added UtilitiesGLib.cpp with an
1299         iplementation common to glib based ports using WTF RunLoop abstraction.
1300
1301         * TestWebKitAPI/PlatformGTK.cmake:
1302         * TestWebKitAPI/PlatformWPE.cmake:
1303         * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
1304         * TestWebKitAPI/glib/UtilitiesGLib.cpp: Copied from Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h.
1305         (TestWebKitAPI::Util::run):
1306         (TestWebKitAPI::Util::spinRunLoop):
1307         (TestWebKitAPI::Util::sleep):
1308         * TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp:
1309         * TestWebKitAPI/wpe/PlatformUtilitiesWPE.cpp:
1310         * WebKitTestRunner/TestController.cpp:
1311         (WTR::TestController::platformAdjustContext):
1312         (WTR::TestController::setStatisticsLastSeen):
1313         (WTR::TestController::setStatisticsPrevalentResource):
1314         (WTR::ResourceStatisticsCallbackContext::ResourceStatisticsCallbackContext):
1315         (WTR::resourceStatisticsCallback):
1316         (WTR::TestController::isStatisticsPrevalentResource):
1317         (WTR::TestController::setStatisticsHasHadUserInteraction):
1318         (WTR::TestController::isStatisticsHasHadUserInteraction):
1319         (WTR::TestController::setStatisticsGrandfathered):
1320         (WTR::TestController::isStatisticsGrandfathered):
1321         (WTR::TestController::setStatisticsSubframeUnderTopFrameOrigin):
1322         (WTR::TestController::setStatisticsSubresourceUnderTopFrameOrigin):
1323         (WTR::TestController::setStatisticsSubresourceUniqueRedirectTo):
1324         (WTR::TestController::setStatisticsTimeToLiveUserInteraction):
1325         (WTR::TestController::setStatisticsTimeToLiveCookiePartitionFree):
1326         (WTR::TestController::statisticsProcessStatisticsAndDataRecords):
1327         (WTR::TestController::statisticsUpdateCookiePartitioning):
1328         (WTR::TestController::statisticsSetShouldPartitionCookiesForHost):
1329         (WTR::TestController::statisticsSubmitTelemetry):
1330         (WTR::TestController::setStatisticsNotifyPagesWhenDataRecordsWereScanned):
1331         (WTR::TestController::setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval):
1332         (WTR::TestController::setStatisticsNotifyPagesWhenTelemetryWasCaptured):
1333         (WTR::TestController::setStatisticsMinimumTimeBetweenDataRecordsRemoval):
1334         (WTR::TestController::setStatisticsGrandfatheringTime):
1335         (WTR::TestController::setStatisticsMaxStatisticsEntries):
1336         (WTR::TestController::setStatisticsPruneEntriesDownTo):
1337         (WTR::TestController::statisticsClearInMemoryAndPersistentStore):
1338         (WTR::TestController::statisticsClearInMemoryAndPersistentStoreModifiedSinceHours):
1339         (WTR::TestController::statisticsClearThroughWebsiteDataRemovalCallback):
1340         (WTR::TestController::statisticsClearThroughWebsiteDataRemoval):
1341         (WTR::TestController::statisticsResetToConsistentState):
1342         * WebKitTestRunner/TestController.h:
1343
1344 2017-10-05  Jer Noble  <jer.noble@apple.com>
1345
1346         [Cocoa] Enable ENABLE_ENCRYPTED_MEDIA build-time setting
1347         https://bugs.webkit.org/show_bug.cgi?id=177261
1348
1349         Reviewed by Eric Carlson.
1350
1351         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1352
1353 2017-10-05  Alex Christensen  <achristensen@webkit.org>
1354
1355         Add ObjC equivalent of WKPageNavigationClient.didChangeBackForwardList
1356         https://bugs.webkit.org/show_bug.cgi?id=177966
1357         <rdar://problem/22387135>
1358
1359         Reviewed by Tim Horton.
1360
1361         * TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
1362         (-[ListItemDelegate _webView:backForwardListItemAdded:removed:]):
1363         (-[ListItemDelegate webView:didFinishNavigation:]):
1364         (TEST):
1365
1366 2017-10-04  Megan Gardner  <megan_gardner@apple.com>
1367
1368         check-webkit-style erroneously requires a space between the carrot and brace in obj-c blocks.
1369         https://bugs.webkit.org/show_bug.cgi?id=177897
1370
1371         Reviewed by Dan Bernstein and Jonathan Bedard.
1372
1373         Remove the check for a space between ^ and {, 
1374         as this is valid and expected Obj-C. Now check to make sure there is
1375         no space at all between ^ and {, and also that there is a space between
1376         the end of an argument list and the {.
1377
1378         * Scripts/webkitpy/style/checkers/cpp.py:
1379         (regex_for_lambdas_and_blocks):
1380
1381 2017-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1382
1383         Unreviewed. Run WebKit2 C API tests in GTK+ bots again after the last WebKit2 -> WebKit rename.
1384
1385         * Scripts/run-gtk-tests:
1386         (TestRunner):
1387         (TestRunner._run_test):
1388
1389 2017-10-05  Darin Adler  <darin@apple.com>
1390
1391         Remove additional WebKitSystemInterface remnants
1392         https://bugs.webkit.org/show_bug.cgi?id=177948
1393
1394         Reviewed by Andy Estes.
1395
1396         * DumpRenderTree/PlatformMac.cmake: Removed code to link the
1397         WebKitSystemInterface library. Left in code that points to
1398         the WebKitLibraries directory, but maybe that can be removed by
1399         someone who is more certain it's no longer needed.
1400
1401         * Scripts/copy-webkitlibraries-to-product-directory: Removed code
1402         to copy and delete WebKitSystemInterface libraries and headers.
1403
1404         * WebKitTestRunner/PlatformMac.cmake: Removed code to link the
1405         WebKitSystemInterface library. Left in code that points to
1406         the WebKitLibraries directory, but maybe that can be removed by
1407         someone who is more certain it's no longer needed.
1408
1409 2017-10-05  Saam Barati  <sbarati@apple.com>
1410
1411         Unreviewed. Try to make debug type profiler tests stop timing out.
1412
1413         * Scripts/run-jsc-stress-tests:
1414
1415 2017-10-03  Frederic Wang  <fwang@igalia.com>
1416
1417         Remove Brotli from Source/ThirdParty
1418         https://bugs.webkit.org/show_bug.cgi?id=177804
1419
1420         Reviewed by Michael Catanzaro.
1421
1422         * gtk/jhbuild.modules: Build brotli 1.0.1 from the official github repository.
1423         * Scripts/webkitpy/style/checker.py: Remove brotli.
1424
1425 2017-10-04  Alex Christensen  <achristensen@webkit.org>
1426
1427         Stop linking with WebKitSystemInterface
1428         https://bugs.webkit.org/show_bug.cgi?id=177915
1429
1430         Reviewed by Antti Koivisto.
1431
1432         * DumpRenderTree/mac/Configurations/Base.xcconfig:
1433         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1434         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig:
1435         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig:
1436         * WebKitTestRunner/Configurations/Base.xcconfig:
1437         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1438         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig:
1439         * WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig:
1440         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig:
1441
1442 2017-10-04  Alex Christensen  <achristensen@webkit.org>
1443
1444         Remove unnecessary includes of WebKitSystemInterface on Cocoa platforms
1445         https://bugs.webkit.org/show_bug.cgi?id=177912
1446
1447         Reviewed by Saam Barati.
1448
1449         * DumpRenderTree/mac/DumpRenderTree.mm:
1450
1451 2017-10-04  Megan Gardner  <megan_gardner@apple.com>
1452
1453         Break out new touch debugging code into seperate file
1454         https://bugs.webkit.org/show_bug.cgi?id=177796
1455
1456         Reviewed by Simon Fraser.
1457
1458         Encapsulate the new debug touch code into it's own file.
1459         This allows for cleaner code and a better way to show the touches
1460         in a completely separate window, which should also be in screen
1461         coordinates, and not subject to any transforms that get put on the
1462         WebViews.
1463
1464         * TestRunnerShared/spi/UIKitTestSPI.h:
1465         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
1466         * WebKitTestRunner/ios/HIDDebugTouchWindow.h: Added.
1467         * WebKitTestRunner/ios/HIDDebugTouchWindow.mm: Added.
1468         (+[HIDDebugTouchWindow sharedHIDDebugTouchWindow]):
1469         (-[HIDDebugTouchWindow init]):
1470         (-[HIDDebugTouchWindow dealloc]):
1471         (-[HIDDebugTouchWindow updateDebugIndicatorForTouch:withPointInWindowCoordinates:isTouching:]):
1472         (-[HIDDebugTouchWindow initDebugViewsIfNeeded]):
1473         * WebKitTestRunner/ios/HIDEventGenerator.h:
1474         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1475         (-[HIDEventGenerator init]):
1476         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
1477         (-[HIDEventGenerator _createIOHIDEventType:]):
1478         (-[HIDEventGenerator _updateTouchPoints:count:]):
1479         (-[HIDEventGenerator touchDownAtPoints:touchCount:]):
1480         (-[HIDEventGenerator touchDown:touchCount:]):
1481         (-[HIDEventGenerator liftUpAtPoints:touchCount:]):
1482         (-[HIDEventGenerator liftUp:touchCount:]):
1483         (-[HIDEventGenerator moveToPoints:touchCount:duration:]):
1484         (-[HIDEventGenerator initDebugViewsIfNeeded]): Deleted.
1485         (-[HIDEventGenerator updateDebugIndicatorForTouch:withPoint:isTouching:]): Deleted.
1486         * WebKitTestRunner/ios/TestControllerIOS.mm:
1487         (WTR::TestController::updatePlatformSpecificTestOptionsForTest const):
1488
1489 2017-10-04  JF Bastien  <jfbastien@apple.com>
1490
1491         WTF: Update std::expected to match current proposal
1492         https://bugs.webkit.org/show_bug.cgi?id=177881
1493
1494         Reviewed by Mark Lam.
1495
1496         The proposal is likely to be in C++20 and I've been asked to help co-champion
1497         it. I'm therefore updating our implementation to more closely match the current
1498         proposal, and to make sure it'll work for us if standardized.
1499
1500          - Rename UnexpectedType to Unexpected to match the proposal.
1501          - Remove relational operators, only equality / inequality remains.
1502          - Fix minor type signatures.
1503          - Add UnexpectedType typedef.
1504          - Uncomment rebind implementation.
1505          - Add in-place construction tag, as well as explicit error construction tag.
1506          - Add template unexpected constructor.
1507          - Note that make_unexpected isn't in the proposal anymore, but we keep it because we don't have C++17 deduction guides.
1508          - Remove hashing, which isn't in the proposal anymore.
1509
1510         * TestWebKitAPI/Tests/WTF/Expected.cpp:
1511         (WTF::operator<<):
1512         (TestWebKitAPI::TEST):
1513
1514 2017-10-04  Lucas Forschler  <lforschler@apple.com>
1515
1516         https://bugs.webkit.org/show_bug.cgi?id=177888
1517         WebKitArchiveSupport - add API Gateway to source control
1518         This is a swagger configuration export via AWS API Gateway console.
1519
1520         Rubber-stamped by Alexey Proskuryakov.
1521
1522         * WebKitArchiveSupport/AWS-APIGateway: Added.
1523         * WebKitArchiveSupport/AWS-APIGateway/stage-v2.json: Added.
1524
1525 2017-10-04  Mark Lam  <mark.lam@apple.com>
1526
1527         Add support for using Probe DFG OSR Exit behind a runtime flag.
1528         https://bugs.webkit.org/show_bug.cgi?id=177844
1529         <rdar://problem/34801425>
1530
1531         Reviewed by Saam Barati.
1532
1533         Enable --useProbeOSrExit=true for dfg-eager and ftl-no-cjit-validate-sampling-profiler
1534         test configurations.
1535
1536         * Scripts/run-jsc-stress-tests:
1537
1538 2017-10-04  Jonathan Bedard  <jbedard@apple.com>
1539
1540         webkitpy.tool.steps.steps_unittest.StepsTest.test_runtests_api is flakey
1541         https://bugs.webkit.org/show_bug.cgi?id=177751
1542         <rdar://problem/34769470>
1543
1544         Reviewed by Daniel Bates.
1545
1546         Port._build_path() calls Tools/Scripts/webkit-build-directory and caches this
1547         result. When capturing output from the MockExecutive, the first invocation of
1548         Port._build_path() will log the running of Tools/Scripts/webkit-build-directory
1549         but subsequent invocations will not.
1550
1551         * Scripts/webkitpy/tool/steps/steps_unittest.py:
1552         (StepsTest):
1553         (StepsTest.setUp): Cache the build path before running tests.
1554
1555 2017-10-04  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1556
1557         [JHBuild][GTK][WKE] Circular dependency between harfbuzz and freetype6
1558         https://bugs.webkit.org/show_bug.cgi?id=177865
1559
1560         Reviewed by Michael Catanzaro.
1561
1562         Build freetype6 without harfbuzz support.
1563         This seems to be what distros like Fedora, Debian or OpenEmbedded do.
1564         Also explicitly enable support for freetype and fontconfig on harfbuzz.
1565
1566         * gtk/jhbuild.modules: Enable also support for icu.
1567         * wpe/jhbuild.modules:
1568
1569 2017-10-04  Yusuke Suzuki  <utatane.tea@gmail.com>
1570
1571         [Test262] Update Test262 to Oct 4 version
1572         https://bugs.webkit.org/show_bug.cgi?id=177859
1573
1574         Reviewed by Sam Weinig.
1575
1576         * Scripts/import-test262-tests:
1577
1578 2017-10-04  Ryosuke Niwa  <rniwa@webkit.org>
1579
1580         Use blob URL when pasting RTFD instead of overriding DocumentLoader
1581         https://bugs.webkit.org/show_bug.cgi?id=177801
1582         <rdar://problem/34542270>
1583
1584         Reviewed by Wenson Hsieh.
1585
1586         Added a regression test for an assertion failure when pasting an empty RTFD as well as a test for pasting
1587         RTFD with an image, which should result in an image element with a blob URL.
1588
1589         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1590         * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm:
1591         * TestWebKitAPI/Tests/WebKitCocoa/PasteRTFD.mm:
1592         * TestWebKitAPI/Tests/WebKitCocoa/paste-rtfd.html:
1593
1594 2017-10-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1595
1596         [GLib] Let WebCore know of low power situations
1597         https://bugs.webkit.org/show_bug.cgi?id=177810
1598
1599         Reviewed by Carlos Garcia Campos.
1600
1601         * gtk/install-dependencies: add upower-glib dev packages for Debian, Arch and Fedora.
1602
1603 2017-10-03  Saam Barati  <sbarati@apple.com>
1604
1605         Implement polymorphic prototypes
1606         https://bugs.webkit.org/show_bug.cgi?id=176391
1607
1608         Reviewed by Filip Pizlo.
1609
1610         * Scripts/run-jsc-stress-tests:
1611
1612 2017-10-03  Myles C. Maxfield  <mmaxfield@apple.com> 
1613
1614         Create a SPIR-V assembler 
1615         https://bugs.webkit.org/show_bug.cgi?id=177726 
1616
1617         Reviewed by Filip Pizlo. 
1618
1619         Khronos has released a json file containing every SPIR-V opcode and operand at 
1620         https://github.com/KhronosGroup/SPIRV-Headers/blob/master/include/spirv/1.2/spirv.core.grammar.json 
1621         This patch creates a function which loads this file (via the fetch API), parses it, and creates
1622         an object which holds two things: 
1623         - For each opcode, a class which accepts the appropriate operands 
1624         - For each enum type, an object which holds each enum value 
1625         The constructor for each opcode is smart enough to do some basic type-checking of the argument, 
1626         according to the types listed in Khronos's json file. 
1627
1628         This patch also includes an example .html file which outputs a dummy SPIR-V program, 
1629         which happens to be compatible with the SPIR-V demo at 
1630         https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/demos/cube.cpp 
1631         If you modify this demo to use the generated SPIR-V program, you can see the result in 
1632         action.
1633
1634         This patch also commits a copy of Khronos's json file mentioned above. This isn't the first 
1635         Khronos file we've committed into our repository with this license, so there shouldn't be any 
1636         problems there. 
1637
1638         * WebGPUShadingLanguageRI/SPIR-V.js: Added. 
1639         (SPIRV.): 
1640         (SPIRVAssembler): 
1641         (SPIRVAssembler.prototype.append): 
1642         (SPIRVAssembler.prototype.get size): 
1643         (SPIRVAssembler.prototype.get storage): 
1644         (SPIRVAssembler.prototype.get result): 
1645         * WebGPUShadingLanguageRI/SPIRV.html: Added. 
1646         * WebGPUShadingLanguageRI/spirv.core.grammar.json: Added. 
1647
1648 2017-10-03  Chris Dumez  <cdumez@apple.com>
1649
1650         SharedStringHashStore should support removing hashes
1651         https://bugs.webkit.org/show_bug.cgi?id=177770
1652
1653         Reviewed by Alex Christensen.
1654
1655         Add API test coverage.
1656
1657         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1658         * TestWebKitAPI/Tests/WebKitCocoa/VisitedLinkStore.mm: Added.
1659         (TestWebKitAPI::TEST):
1660
1661 2017-10-03  Dewei Zhu  <dewei_zhu@apple.com>
1662
1663         Fix missing import for BenchmarkRunner.
1664         https://bugs.webkit.org/show_bug.cgi?id=177842
1665
1666         Reviewed by Ryosuke Niwa.
1667
1668         'show_results' requires BenchmarkRunner.
1669
1670         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
1671
1672 2017-10-03  Olivier Blin  <olivier.blin@softathome.com>
1673
1674         [WPE] Bump deps to add support for xdg-shell-unstable-v6 protocol
1675         https://bugs.webkit.org/show_bug.cgi?id=177820
1676
1677         Reviewed by Žan Doberšek.
1678
1679         gnome-shell does not advertize the xdg-shell protocol anymore, but xdg-shell-unstable-v6 instead.
1680         Support has been added in WPEBackend-mesa, we need to update the requirements.
1681         wayland-1.10 is needed for wl_proxy_get_version(), used in the generated headers.
1682
1683         * wpe/jhbuild.modules:
1684
1685 2017-10-03  Alex Christensen  <achristensen@webkit.org>
1686
1687         Add ObjC SPI equivalent to WKPageLoaderClient.willGoToBackForwardListItem
1688         https://bugs.webkit.org/show_bug.cgi?id=177825
1689         <rdar://problem/22387505>
1690
1691         Reviewed by Tim Horton.
1692
1693         * TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
1694         (-[BackForwardDelegate _webView:willGoToBackForwardListItem:inPageCache:]):
1695         (-[BackForwardDelegate webView:didFinishNavigation:]):
1696         (TEST):
1697
1698 2017-10-03  Antti Koivisto  <antti@apple.com>
1699
1700         Allow assigning WeakPtr<Derived> to WeakPtr<Base>
1701         https://bugs.webkit.org/show_bug.cgi?id=177817
1702
1703         Reviewed by Geoff Garen.
1704
1705         * TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
1706         (TestWebKitAPI::Base::weakPtrFactory):
1707         (TestWebKitAPI::TEST):
1708
1709 2017-10-03  Youenn Fablet  <youenn@apple.com>
1710
1711         Remove no longer needed WebRTC build infrastructure
1712         https://bugs.webkit.org/show_bug.cgi?id=177756
1713
1714         Reviewed by Alejandro G. Castro.
1715
1716         * Scripts/generate-libwebrtc-cmake: Removed.
1717         * Scripts/webkitpy/libwebrtc/__init__.py: Removed.
1718         * Scripts/webkitpy/libwebrtc/generate_cmake.py: Removed.
1719
1720 2017-10-03  Joanmarie Diggs  <jdiggs@igalia.com>
1721
1722         AX: [ATK] ARIA drag-and-drop attribute values should be exposed via AtkObject attributes
1723         https://bugs.webkit.org/show_bug.cgi?id=177763
1724
1725         Reviewed by Chris Fleizach.
1726
1727         Implement ariaIsGrabbed() and ariaDropEffects() for ATK.
1728
1729         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
1730         (WTR::AccessibilityUIElement::ariaIsGrabbed const):
1731         (WTR::AccessibilityUIElement::ariaDropEffects const):
1732
1733 2017-10-02  Myles C. Maxfield  <mmaxfield@apple.com>
1734
1735         Make WSL demo compatible with Microsoft Edge
1736         https://bugs.webkit.org/show_bug.cgi?id=177643
1737
1738         Reviewed by Saam Barati.
1739
1740         This patch does two things. The first is it migrates a loop over ParentNode.children to a legacy style loop
1741         because Microsoft Edge throws an exception when trying to use a for...of loop with it. This patch also hides
1742         the compilation behind a setTimeout(0) so there is some indication that something is happening during a
1743         compile.
1744
1745
1746         * Tools/WebGPUShadingLanguageRI/index.html:
1747
1748 2017-10-02  Joanmarie Diggs  <jdiggs@igalia.com>
1749
1750         AX: [ATK] The value of aria-level is not exposed on non-heading roles
1751         https://bugs.webkit.org/show_bug.cgi?id=177775
1752
1753         Reviewed by Chris Fleizach.
1754
1755         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
1756         (WTR::AccessibilityUIElement::hierarchicalLevel const):
1757
1758 2017-10-02  Geoffrey Garen  <ggaren@apple.com>
1759
1760         WeakPtr should have a move constructor
1761         https://bugs.webkit.org/show_bug.cgi?id=177789
1762
1763         Reviewed by Chris Dumez.
1764
1765         Chris made me write an API test. It wasn't that painful.
1766
1767         * TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
1768         (TestWebKitAPI::TEST):
1769
1770 2017-10-02  Filip Pizlo  <fpizlo@apple.com>
1771
1772         WSL ^ should be *
1773         https://bugs.webkit.org/show_bug.cgi?id=177705
1774
1775         Rubber stamped by Keith Miller.
1776         
1777         When I first wrote the prototype, I thought it would be cool to use ^ for pointers. Nobody agrees. I've
1778         gotten so much feedback to use *. This changes pointers to use *.
1779
1780         * WebGPUShadingLanguageRI/DereferenceExpression.js:
1781         (DereferenceExpression.prototype.toString):
1782         (DereferenceExpression):
1783         * WebGPUShadingLanguageRI/Intrinsics.js:
1784         (Intrinsics):
1785         * WebGPUShadingLanguageRI/Parse.js:
1786         (parseType):
1787         (parsePossiblePrefix):
1788         * WebGPUShadingLanguageRI/PtrType.js:
1789         (PtrType.prototype.toString):
1790         (PtrType):
1791         * WebGPUShadingLanguageRI/StandardLibrary.js:
1792         * WebGPUShadingLanguageRI/Test.js:
1793         (tests.simpleDereference):
1794         (tests.dereferenceStore):
1795         (tests.simpleMakePtr):
1796         (tests.loadNull):
1797         (tests.storeNull):
1798         (tests.returnNull):
1799         (tests.dereferenceDefaultNull):
1800         (tests.defaultInitializedNull):
1801         (tests.passNullToPtrMonomorphic):
1802         (tests.passNullToPtrPolymorphic):
1803         (tests.passNullAndNotNull):
1804         (tests.passNullAndNotNullFullPoly):
1805         (tests.passNullAndNotNullFullPolyReverse):
1806         (tests.chainGeneric):
1807         (tests.chainStruct):
1808         (tests.chainStructNewlyValid):
1809         (tests.chainStructDevice):
1810         (tests.paramChainStructDevice):
1811         (tests.simpleProtocolExtends):
1812         (tests.protocolExtendsTwo):
1813         (tests.overrideSubscriptStruct):
1814         (tests.overrideSubscriptStructAndDoStores):
1815         (tests.overrideSubscriptStructAndUsePointers):
1816         (tests.overrideSubscriptStructAndUsePointersIncorrectly):
1817         (tests.makeArrayRefFromPointer):
1818         (tests.nonArrayRefArrayLengthFail):
1819         (tests.constexprIsNotLValuePtr):
1820         (tests.genericAccessors):
1821         (tests.nestedSubscriptLValueEmulationSimple):
1822         (tests.nestedSubscriptLValueEmulationGeneric):
1823         (tests.shaderTypes):
1824         (tests.enumPtrBase):
1825         (tests.mutuallyRecursiveStructWithPointersBroken):
1826         (tests.mutuallyRecursiveStructWithPointers):
1827         (tests.linkedList):
1828         (tests.pointerToPointer):
1829         (tests.pointerGetter):
1830         (tests.operatorCastWithTypeVariableInferredFromReturnType):
1831         (tests.loneSetterPointer):
1832         (tests.anderWithNothingWrong):
1833         (tests.anderWithWrongNumberOfArguments):
1834         (tests.anderDoesntReturnPointer):
1835         (tests.anderDoesntTakeReference):
1836         (tests.anderWithArrayRef):
1837         (tests.pointerIndexGetter):
1838         (tests.loneIndexSetterPointer):
1839         (tests.indexAnderWithNothingWrong):
1840         (tests.indexAnderWithWrongNumberOfArguments):
1841         (tests.indexAnderDoesntReturnPointer):
1842         (tests.indexAnderDoesntTakeReference):
1843         (tests.indexAnderWithArrayRef):
1844         (tests.devicePtrPtr):
1845         (tests.threadgroupPtrPtr):
1846         (tests.constantPtrPtr):
1847         (tests.pointerIndexGetterInProtocol):
1848         (tests.loneIndexSetterPointerInProtocol):
1849         (tests.indexAnderWithNothingWrongInProtocol):
1850         (tests.indexAnderWithWrongNumberOfArgumentsInProtocol):
1851         (tests.indexAnderDoesntReturnPointerInProtocol):
1852         (tests.indexAnderDoesntTakeReferenceInProtocol):
1853         (tests.indexAnderWithArrayRefInProtocol):
1854         (tests.andReturnedArrayRef):
1855
1856 2017-10-02  Filip Pizlo  <fpizlo@apple.com>
1857
1858         WSL should be fine with &foo()[i] if foo() returns a []
1859         https://bugs.webkit.org/show_bug.cgi?id=177704
1860
1861         Reviewed by Saam Barati.
1862         
1863         Previously, we'd determine if a property access expression (base.field or base[index]) was an lvalue by
1864         asking if its base was an lvalue. This is right in all cases except if the base is of type []. Then, the
1865         property access expression is an lvalue so long as there is a setter or ander.
1866         
1867         This fixes the issue and adds a test.
1868         
1869         Also, this makes error messages in the case that something is not an lvalue a lot better. If something
1870         is not an lvalue because we could not find anders or setters, then we will tell you why we could not
1871         find them.
1872
1873         * WebGPUShadingLanguageRI/Checker.js:
1874         (Checker.prototype.visitAssignment):
1875         (Checker.prototype.visitReadModifyWriteExpression):
1876         (Checker.prototype.visitMakePtrExpression):
1877         (Checker.prototype._finishVisitingPropertyAccess):
1878         * WebGPUShadingLanguageRI/DotExpression.js:
1879         (DotExpression.prototype.get fieldName):
1880         (DotExpression.prototype.get isLValue): Deleted.
1881         (DotExpression.prototype.get addressSpace): Deleted.
1882         * WebGPUShadingLanguageRI/IndexExpression.js:
1883         (IndexExpression.prototype.get index):
1884         (IndexExpression.prototype.get isLValue): Deleted.
1885         (IndexExpression.prototype.get addressSpace): Deleted.
1886         * WebGPUShadingLanguageRI/PropertyAccessExpression.js:
1887         (PropertyAccessExpression):
1888         (PropertyAccessExpression.prototype.get isLValue):
1889         (PropertyAccessExpression.prototype.set isLValue):
1890         * WebGPUShadingLanguageRI/PropertyResolver.js:
1891         (PropertyResolver.prototype._visitRValuesWithinLValue.RValueFinder.prototype.visitMakeArrayRefExpression):
1892         (PropertyResolver.prototype._visitRValuesWithinLValue.RValueFinder):
1893         (PropertyResolver.prototype._visitRValuesWithinLValue):
1894         * WebGPUShadingLanguageRI/Test.js:
1895         (tests.storeNullArrayRef):
1896         (tests.andReturnedArrayRef):
1897
1898 2017-10-02  Wenson Hsieh  <wenson_hsieh@apple.com>
1899
1900         Guard iOS webkitGetAsEntry API tests on older iOS versions
1901
1902         Unreviewed test gardening. After r222688, these tests require custom pasteboard data to be enabled by default,
1903         so don't run them against shipping iOS.
1904
1905         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
1906
1907 2017-10-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1908
1909         [WPE][GTK] Crash in webkit_web_resource_get_data_finish()
1910         https://bugs.webkit.org/show_bug.cgi?id=177107
1911
1912         Reviewed by Michael Catanzaro.
1913
1914         Add a test case to check we handle errors when webkit_web_resource_get_data() fails.
1915
1916         * TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp:
1917         (webViewloadChanged):
1918         (testWebResourceGetDataError):
1919         (beforeAll):
1920
1921 2017-10-02  Alex Christensen  <achristensen@webkit.org>
1922
1923         Fix build after r222715
1924         https://bugs.webkit.org/show_bug.cgi?id=177697
1925
1926         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
1927         (TEST):
1928         Use the public API instead of the removed SPI.
1929
1930 2017-10-02  Alex Christensen  <achristensen@webkit.org>
1931
1932         REGRESSION(r214201): WebProcess hangs during policy decisions
1933         https://bugs.webkit.org/show_bug.cgi?id=177590
1934         <rdar://problem/33362929>
1935
1936         Reviewed by Andy Estes.
1937
1938         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1939         * TestWebKitAPI/Tests/WebKitCocoa/JavaScriptDuringNavigation.mm: Added.
1940         (-[JSNavigationDelegate webView:didFinishNavigation:]):
1941         (-[JSNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
1942         (-[JSNavigationDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
1943         (-[JSNavigationDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1944         (TEST):
1945
1946 2017-10-02  Jonathan Bedard  <jbedard@apple.com>
1947
1948         Log stack-trace for run-webkit-tests when interrupted
1949         https://bugs.webkit.org/show_bug.cgi?id=176393
1950         <rdar://problem/34262310>
1951
1952         Reviewed by Darin Adler.
1953
1954         When run-webkit-tests is stuck, it is difficult to immediately tell
1955         why. Saving a stack-trace when run-webkit-tests is terminated
1956         or stopped with CNTRL-C will make such issues easier to debug.
1957
1958         * Scripts/webkitpy/common/interupt_debugging.py: Added.
1959         (log_stack_trace): Given a Python frame object, log a stack trace to
1960         the provided file.
1961         (log_stack_trace_on_term): Attach a listener to SIGTERM so that a
1962         stack-trace can be logged when a program is terminated.
1963         (log_stack_trace_on_cntrl_c): Attach a listener to SIGINT so that a
1964         stack-trace can be logged when a program is CNTRL-Ced. 
1965         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1966         (main): Set handlers to log stack trace on interruption.
1967
1968 2017-10-02  Michael Catanzaro  <mcatanzaro@igalia.com>
1969
1970         Remove ENABLE_CSS_REGIONS
1971         https://bugs.webkit.org/show_bug.cgi?id=177689
1972
1973         Reviewed by Darin Adler.
1974
1975         * Scripts/webkitperl/FeatureList.pm:
1976
1977 2017-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1978
1979         Unreviewed. Upgrade webkitgtk-test-fonts to version 0.0.7.
1980
1981         This version upgrades liberation fonts to version 2, that has a wider glyph coverage.
1982
1983         * gtk/jhbuild.modules:
1984
1985 2017-09-29  Alex Christensen  <achristensen@webkit.org>
1986
1987         Expose WebPreferences::webGLEnabled through WKPreferences
1988         https://bugs.webkit.org/show_bug.cgi?id=177692
1989         <rdar://problem/24110556>
1990
1991         Reviewed by Andy Estes.
1992
1993         * TestWebKitAPI/Tests/WebKitCocoa/Preferences.mm:
1994         (-[AlertSaver alert]):
1995         (-[AlertSaver webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1996         (TEST):
1997
1998 2017-09-29  Alex Christensen  <achristensen@webkit.org>
1999
2000         Fix WKWebViewConfigurationPrivate after r222663
2001         https://bugs.webkit.org/show_bug.cgi?id=177644
2002
2003         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2004         * TestWebKitAPI/Tests/WebKitCocoa/Configuration.mm: Added.
2005         (TEST):
2006
2007 2017-09-28  Ryosuke Niwa  <rniwa@webkit.org>
2008
2009         Image pasting is not working on tineye.com / gmail.com / GitHub.com due to lack of support for DataTransfer.items
2010         https://bugs.webkit.org/show_bug.cgi?id=170449
2011         <rdar://problem/31432525>
2012
2013         Reviewed by Wenson Hsieh.
2014
2015         Added an API test to paste an image from pasteboard. The test is shared between iOS and macOS.
2016
2017         The tests to paste image files are only enabled on macOS since putting files into pasteboard isn't a thing on iOS.
2018
2019         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2020         * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: Added.
2021         (writeImageDataToPasteboard):
2022         (writeBundleFileToPasteboard):
2023         * TestWebKitAPI/Tests/WebKitCocoa/paste-image.html: Added.
2024         * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-100px.tiff: Added.
2025         * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-200px.png: Added.
2026         * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-400px.gif: Added.
2027         * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-600px.jpg: Added.
2028         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm: Rebaselined the test now that types contain "Files".
2029
2030 2017-09-29  Wenson Hsieh  <wenson_hsieh@apple.com>
2031
2032         [iOS WK2] Implement -[WKContentView hasText] for compatibility with the UITextInput protocol
2033         https://bugs.webkit.org/show_bug.cgi?id=177662
2034         <rdar://problem/33410373>
2035
2036         Reviewed by Tim Horton.
2037
2038         Add EditorState API tests to check that the value of -[WKContentView hasText] is correct when editing both plain
2039         and rich text areas.
2040
2041         * TestWebKitAPI/EditingTestHarness.h:
2042         * TestWebKitAPI/EditingTestHarness.mm:
2043         (-[EditingTestHarness insertParagraph]):
2044         (-[EditingTestHarness insertText:]):
2045         (-[EditingTestHarness insertHTML:]):
2046         (-[EditingTestHarness selectAll]):
2047         (-[EditingTestHarness deleteBackwards]):
2048         * TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm:
2049
2050         Add versions of EditingTestHarness helpers that don't require us to expect any editor state after executing the
2051         edit command.
2052
2053         (TestWebKitAPI::checkContentViewHasTextWithFailureDescription):
2054         (TestWebKitAPI::TEST):
2055         * TestWebKitAPI/cocoa/TestWKWebView.h:
2056         * TestWebKitAPI/cocoa/TestWKWebView.mm:
2057         (-[TestWKWebView textInputContentView]):
2058
2059 2017-09-29  Charles Turner  <cturner@igalia.com>
2060
2061         Update my status.
2062
2063         Unreviewed.
2064
2065         * Scripts/webkitpy/common/config/contributors.json:
2066
2067 2017-09-28  Commit Queue  <commit-queue@webkit.org>
2068
2069         Unreviewed, rolling out r222639.
2070         https://bugs.webkit.org/show_bug.cgi?id=177630
2071
2072         Breaks AppleWin build (Requested by dolmstead on #webkit).
2073
2074         Reverted changeset:
2075
2076         "[WinCairo][MiniBrowser] Add ca-bundle to display secure
2077         pages."
2078         https://bugs.webkit.org/show_bug.cgi?id=168486
2079         http://trac.webkit.org/changeset/222639
2080
2081 2017-09-28  Joanmarie Diggs  <jdiggs@igalia.com>
2082
2083         AX: [ATK] object:state-changed notifications missing for multiple ARIA attributes
2084         https://bugs.webkit.org/show_bug.cgi?id=177542
2085
2086         Add platform support for the notifications. Also add support for getting the
2087         boolean argument indicating whether the state has been set or unset.
2088
2089         Reviewed by Chris Fleizach.
2090
2091         * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
2092
2093 2017-09-28  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2094
2095         [WinCairo][MiniBrowser] Add ca-bundle to display secure pages.
2096         Copy cacert.pem file into bundle directory.
2097         https://bugs.webkit.org/show_bug.cgi?id=168486
2098
2099         Reviewed by Brent Fulgham.
2100
2101         * MiniBrowser/win/CMakeLists.txt:
2102
2103 2017-09-28  Lucas Forschler  <lforschler@apple.com>
2104
2105         check in AWS Lambda code used for WebKitArchiveSupport
2106         https://bugs.webkit.org/show_bug.cgi?id=177614
2107         
2108         Rubber-stamped by Alexey Proskuryakov.
2109
2110         * WebKitArchiveSupport/lambda: Added.
2111         * WebKitArchiveSupport/lambda/delete-minified-s3-archive-from-dynamodb.py: Added.
2112         (lambda_handler):
2113         * WebKitArchiveSupport/lambda/delete-s3-archive-from-dynamodb.py: Added.
2114         (lambda_handler):
2115         * WebKitArchiveSupport/lambda/register-archive-in-dynamodb.py: Added.
2116         (lambda_handler):
2117         * WebKitArchiveSupport/lambda/register-minified-s3-archive-in-dynamodb.py: Added.
2118         (lambda_handler):
2119
2120 2017-09-28  Jiewen Tan  <jiewen_tan@apple.com>
2121
2122         WeakPtrFactory should allow downcasting
2123         https://bugs.webkit.org/show_bug.cgi?id=177389
2124         <rdar://problem/34604174>
2125
2126         Reviewed by Geoffrey Garen.
2127
2128         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2129         * TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
2130         (TestWebKitAPI::Base::foo):
2131         (TestWebKitAPI::Base::createWeakPtr):
2132         (TestWebKitAPI::Derived::foo):
2133         (TestWebKitAPI::TEST):
2134
2135 2017-09-28  Megan Gardner  <megan_gardner@apple.com>
2136
2137         Add debug flag to WebKitTestRunner to show where touches are being generated
2138         https://bugs.webkit.org/show_bug.cgi?id=177583
2139
2140         Reviewed by Tim Horton and Wenson Hsieh.
2141
2142         Add a flag, and the ability to paint a dot where the HIDEventGenerator is creating fake touches to
2143         send through UIKit. This will help in debugging touch tests, because it will be easier to see if
2144         one is actually sending the touches at the locations that they expect. This will help differentiate between
2145         problems in the locations of the touches, and other problems that can come up when writing tests.
2146
2147         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
2148         (parse_args):
2149         * Scripts/webkitpy/port/driver.py:
2150         (Driver.cmd_line):
2151         * WebKitTestRunner/Options.cpp:
2152         (WTR::Options::Options):
2153         (WTR::handleOptionShowTouches):
2154         (WTR::OptionsHandler::OptionsHandler):
2155         * WebKitTestRunner/Options.h:
2156         * WebKitTestRunner/TestController.cpp:
2157         (WTR::TestController::initialize):
2158         * WebKitTestRunner/TestController.h:
2159         (WTR::TestController::shouldShowTouches const):
2160         * WebKitTestRunner/TestOptions.h:
2161         * WebKitTestRunner/ios/HIDEventGenerator.h:
2162         * WebKitTestRunner/ios/HIDEventGenerator.mm:
2163         (-[DebugTouchView pointInside:withEvent:]):
2164         (-[HIDEventGenerator setShouldShowTouches:]):
2165         (-[HIDEventGenerator initDebugViews]):
2166         (-[HIDEventGenerator updateDebugUI:withPoint:isTouching:]):
2167         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
2168         (-[HIDEventGenerator _createIOHIDEventType:]):
2169         (-[HIDEventGenerator _updateTouchPoints:count:]):
2170         (-[HIDEventGenerator touchDownAtPoints:touchCount:]):
2171         (-[HIDEventGenerator liftUpAtPoints:touchCount:]):
2172         (-[HIDEventGenerator moveToPoints:touchCount:duration:]):
2173         (-[HIDEventGenerator markerEventReceived:]):
2174         * WebKitTestRunner/ios/TestControllerIOS.mm:
2175         (WTR::TestController::updatePlatformSpecificTestOptionsForTest const):
2176         * WebKitTestRunner/ios/mainIOS.mm:
2177         (-[WebKitTestRunnerApp _runTestController]):
2178
2179 2017-09-28  Mark Lam  <mark.lam@apple.com>
2180
2181         [Re-landing] Turn on exception scope verification for JSC tests.
2182         https://bugs.webkit.org/show_bug.cgi?id=162351
2183         <rdar://problem/29563911>
2184
2185         Reviewed by Saam Barati.
2186
2187         Update: I'm re-landing this patch now that test262 exception check validation
2188         failures have been fixed in r222617.  testapi still has some validation failures,
2189         but this patch does not affect testapi.
2190
2191         Added the option to --validateExceptionChecks=true option to BASE_OPTIONS in
2192         run-jsc-stress-tests.  This turns on exception scope verification on JSC test
2193         runs (which currently does not include testapi).
2194
2195         Some stats on time to run JSC stress and mozilla tests:
2196         1. Release build w/o --validateExceptionChecks=true: real 16m22.544s, user 156m24.080s, sys 123m3.649s
2197         2. Debug build w/o --validateExceptionChecks=true: real 78m34.206s, user 1661m57.008s, sys 73m21.177s
2198         3. Debug build w/ --validateExceptionChecks=true: real 77m41.106s, user 1656m13.924s, sys 73m42.309s
2199         4. Debug build w/ --validateExceptionChecks=true --dumpSimulatedThrows=true: real 92m56.918s, user 2012m56.441s, sys 75m14.174s
2200
2201         The stats shows that (2) and (3) has effectively no time difference.  Hence, the
2202         cost of enabling --validateExceptionChecks=true is not significant.
2203
2204         It would be nice to enable --dumpSimulatedThrows=true as well, but (4) is about
2205         21% slower than (3).  To avoid making debug test runs a lot slower, we'll leave
2206         --dumpSimulatedThrows=true off.  We can manually add that when we see a regression
2207         and need to debug the issue.  Otherwise, we wont pay the price for it.
2208
2209         * Scripts/run-jsc-stress-tests:
2210
2211 2017-09-27  Alex Christensen  <achristensen@webkit.org>
2212
2213         Add WKContentRuleList notify action type
2214         https://bugs.webkit.org/show_bug.cgi?id=177013
2215         <rdar://problem/31073936>
2216
2217         Reviewed by Darin Adler.
2218
2219         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2220         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2221         (WebCore::ContentExtensions::operator<<):
2222         (TestWebKitAPI::InMemoryCompiledContentExtension::create):
2223         (TestWebKitAPI::InMemoryCompiledContentExtension::data):
2224         (TestWebKitAPI::InMemoryCompiledContentExtension::InMemoryCompiledContentExtension):
2225         (TestWebKitAPI::makeBackend):
2226         (TestWebKitAPI::TEST_F):
2227         (TestWebKitAPI::actionsEqual):
2228         (TestWebKitAPI::sequenceInstances):
2229         (TestWebKitAPI::InMemoryCompiledContentExtension::createFromFilter): Deleted.
2230         (TestWebKitAPI::InMemoryCompiledContentExtension::~InMemoryCompiledContentExtension): Deleted.
2231         * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: Added.
2232         (-[ContentRuleListNotificationDelegate _webView:URL:contentRuleListIdentifiers:notifications:]):
2233         (-[ContentRuleListNotificationDelegate webView:startURLSchemeTask:]):
2234         (-[ContentRuleListNotificationDelegate webView:stopURLSchemeTask:]):
2235         (-[ContentRuleListNotificationDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2236         (makeWarnContentRuleList):
2237         (TEST):
2238
2239 2017-09-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2240
2241         Drag event DataTransfer has unexpected types "dyn.ah62d4..."
2242         https://bugs.webkit.org/show_bug.cgi?id=172526
2243         <rdar://problem/32396081>
2244
2245         Reviewed by Ryosuke Niwa.
2246
2247         Adds new API tests on iOS to cover various cases of using DataTransfer.setData, DataTransfer.getData, and
2248         DataTransfer.types, as well as their interaction with platform objects (source NSItemProviders in the case of
2249         drag and drop, and the general UIPasteboard for copy and paste).
2250
2251         * TestWebKitAPI/PlatformUtilities.h:
2252         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2253         * TestWebKitAPI/Tests/WebKitCocoa/dump-datatransfer-types.html: Added.
2254
2255         Introduce a new API test harness that both drag-and-drop and copy-and-paste tests use to dump DataTransfer's
2256         web-exposed types and values.
2257
2258         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2259         (checkFirstTypeIsPresentAndSecondTypeIsMissing):
2260         (checkJSONWithLogging):
2261         (TestWebKitAPI::TEST):
2262         (checkTypeIdentifierAndIsNotOtherTypeIdentifier): Deleted.
2263         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
2264         (TestWebKitAPI::checkJSONWithLogging):
2265         (TestWebKitAPI::setUpWebViewForPasteboardTests):
2266         (TestWebKitAPI::TEST):
2267         * TestWebKitAPI/cocoa/PlatformUtilitiesCocoa.mm:
2268         (TestWebKitAPI::Util::jsonMatchesExpectedValues):
2269
2270 2017-09-27  Lucas Forschler  <lforschler@apple.com>
2271
2272         Add macOS High Sierra and iOS Simulator 11 support to bisect-builds.
2273         https://bugs.webkit.org/show_bug.cgi?id=177578
2274
2275         Reviewed by Alexey Proskuryakov.
2276
2277         * Scripts/bisect-builds:
2278         (minified_platforms):
2279         (unminified_platforms):
2280
2281 2017-09-27  Ryan Haddad  <ryanhaddad@apple.com>
2282
2283         Update TestResultsServer for High Sierra queues.
2284         https://bugs.webkit.org/show_bug.cgi?id=177500
2285
2286         Reviewed by Alexey Proskuryakov.
2287
2288         * TestResultServer/static-dashboards/builders.jsonp:
2289
2290 2017-09-27  Lucas Forschler  <lforschler@apple.com>
2291
2292         bisect-builds:add a README to the archive.
2293         https://bugs.webkit.org/show_bug.cgi?id=177376
2294
2295         Reviewed by Alexey Proskuryakov & Jon Davis.
2296
2297         * BuildSlaveSupport/built-product-archive:
2298         (addFilesToArchive): refactor function (was previously addLauncherToArchive)
2299         (createZip): Teach function to add the README
2300         (addLauncherToArchive): Deleted. (refactored to addFilesToArchive)
2301         * BuildSlaveSupport/run-webkit-archive: Deleted. (Moved to WebKitArchiveSupport)
2302         * WebKitArchiveSupport: Added.
2303         * WebKitArchiveSupport/README: Added. README which will be packaged up with the archive.
2304         * WebKitArchiveSupport/run-webkit-archive: Added. (Moved from BuildSlaveSupport)
2305
2306 2017-09-26  Tim Horton  <timothy_horton@apple.com>
2307
2308         Mac CMake bot should provide verbose build output
2309         https://bugs.webkit.org/show_bug.cgi?id=177512
2310
2311         Reviewed by Alexey Proskuryakov.
2312
2313         * BuildSlaveSupport/build.webkit.org-config/config.json:
2314         It's hard to diagnose weird bot-only build problems without the
2315         full verbose build output, so turn that on. The Xcode builders
2316         do it too, so why not CMake!
2317
2318 2017-09-26  Tim Horton  <timothy_horton@apple.com>
2319
2320         Make it possible to easily get verbose ninja output from build-webkit
2321         https://bugs.webkit.org/show_bug.cgi?id=177511
2322
2323         Reviewed by Sam Weinig.
2324
2325         * Scripts/build-webkit:
2326         Add a -v/--verbose argument to build-webkit, which sets the environment
2327         variable VERBOSE=1, which buildCMakeGeneratedProject already checks.
2328
2329         * Scripts/webkitdirs.pm:
2330         (buildCMakeGeneratedProject):
2331         Add ninja verbosity arguments to @makeArgs, which are appended
2332         after the -- and thus handed to ninja; the previous implementation
2333         (appending to @args) would only work if @makeArgs was non-empty and thus
2334         the -- was included.
2335
2336 2017-09-26  Said Abou-Hallawa  <sabouhallawa@apple.com>
2337
2338         Followup (r222427): SynchronizedFixedQueue should not have a public constructor
2339         https://bugs.webkit.org/show_bug.cgi?id=177458
2340
2341         Reviewed by Tim Horton.
2342
2343         Fix the definition and the creation of SynchronizedFixedQueue.
2344
2345         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
2346         (TestWebKitAPI::ToUpperConverter::ToUpperConverter):
2347         (TestWebKitAPI::ToUpperConverter::startProducing):
2348         (TestWebKitAPI::ToUpperConverter::startConsuming):
2349         (TestWebKitAPI::ToUpperConverter::stopProducing):
2350         (TestWebKitAPI::ToUpperConverter::stopConsuming):
2351         (TestWebKitAPI::ToUpperConverter::enqueueLower):
2352
2353 2017-09-26  Wenson Hsieh  <wenson_hsieh@apple.com>
2354
2355         [ios-simulator] API test DataInteractionTests.ExternalSourceDataTransferItemGetFolderAsEntry is failing
2356         https://bugs.webkit.org/show_bug.cgi?id=177271
2357
2358         Reviewed by Tim Horton and Megan Gardner.
2359
2360         Rebaseline a failing API test.
2361
2362         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2363         (TestWebKitAPI::TEST):
2364
2365 2017-09-26  Per Arne Vollan  <pvollan@apple.com>
2366
2367         Set LF eol-style on Windows shell script, because the script failed on one of the EWS
2368         bots, when it had the 'native' style.
2369
2370         Unreviewed Windows EWS fix. 
2371
2372         * EWSTools/start-queue-win.sh: Modified property svn:eol-style.
2373
2374 2017-09-26  Jonathan Bedard  <jbedard@apple.com>
2375
2376         webkitpy: Notify parent process when a worker is spawned
2377         https://bugs.webkit.org/show_bug.cgi?id=177467
2378         <rdar://problem/34660194>
2379
2380         Reviewed by Daniel Bates.
2381
2382         When we fork the parent process, there may be resources in that process
2383         which workers will take ownership of. Notify ports when a new worker is created
2384         so that these resources can be correctly managed.
2385
2386         * Scripts/webkitpy/common/message_pool.py:
2387         (_MessagePool._start_workers): After all workers are started, notify the caller
2388         that a worker has been created, unless we are running inline, in which case the
2389         parent process is still the worker.
2390         * Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py:
2391         (LayoutTestRunner._handle_did_spawn_worker): Notify the port that a worker process
2392         has been created.
2393         * Scripts/webkitpy/port/base.py:
2394         (Port.did_spawn_worker): Add function so that ports may manage any
2395         resources created on the parent process but managed by the provided worker.
2396         * Scripts/webkitpy/port/device.py:
2397         (Device.release_worker_resources): Call release_worker_resources on the
2398         platform_device if such a function is defined.
2399         * Scripts/webkitpy/port/ios.py:
2400         (IOSPort.did_spawn_worker): Release any worker resources on the iOS
2401         device object associated with the spawned worker.
2402         * Scripts/webkitpy/test/runner.py:
2403         (Runner.handle): Ignore the did_spawn_worker message during testing.
2404
2405 2017-09-26  Jer Noble  <jer.noble@apple.com>
2406
2407         Thrown ObjC exception when right clicking on <img> containing mp4 link
2408         https://bugs.webkit.org/show_bug.cgi?id=177370
2409
2410         Reviewed by Darin Adler.
2411
2412         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2413         * TestWebKitAPI/Tests/WebKit/mac/ContextMenuImgWithVideo.html: Added.
2414         * TestWebKitAPI/Tests/WebKit/mac/ContextMenuImgWithVideo.mm: Added.
2415         (-[ContextMenuImgWithVideoDelegate _webView:contextMenu:forElement:]):
2416         (TestWebKitAPI::TEST):
2417
2418 2017-09-26  Per Arne Vollan  <pvollan@apple.com>
2419
2420         [Win] 'webkit-patch clean' is failing on bot.
2421         https://bugs.webkit.org/show_bug.cgi?id=177488
2422
2423         Reviewed by Brent Fulgham.
2424
2425         If 'os.remove' throws an exception, catch it.
2426
2427         * Scripts/webkitpy/common/checkout/scm/svn.py:
2428         (SVN.discard_working_directory_changes):
2429
2430 2017-09-25  Frederik Riedel  <riedel@apple.com>
2431
2432         Expose way to set values of classified form controls as {Legacy WebKit, WebKit} SPI
2433         https://bugs.webkit.org/show_bug.cgi?id=174394
2434         <rdar://problem/33183504>
2435
2436         Reviewed by Ryosuke Niwa.
2437
2438         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2439         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm: Added.
2440         (-[WKWebView _privateTextInput]): Testing helpers.
2441         (TestWebKitAPI::TEST): Added test cases to test AutoFill for web views.
2442         * TestWebKitAPI/ios/UIKitSPI.h:
2443
2444 2017-09-25  Frederic Wang  <fwang@igalia.com>
2445
2446         Change my status to reviewer and reformat with validate-committer-lists
2447
2448         Unreviewed.
2449
2450         * Scripts/webkitpy/common/config/contributors.json:
2451
2452 2017-09-25  Ryan Haddad  <ryanhaddad@apple.com>
2453
2454         Add High Sierra bots to buildbot and dashboard.
2455         https://bugs.webkit.org/show_bug.cgi?id=177437
2456
2457         Reviewed by Alexey Proskuryakov.
2458
2459         * BuildSlaveSupport/build.webkit.org-config/config.json: Add High Sierra queues, move Leaks and JSC queues over from Sierra.
2460         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: Update expected results.
2461         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js: Add High Sierra.
2462         (WebKitBuildbot):
2463
2464 2017-09-25  Chris Dumez  <cdumez@apple.com>
2465
2466         [WK2] Add API to query if a download was user-initiated
2467         https://bugs.webkit.org/show_bug.cgi?id=177435
2468         <rdar://problem/34498422>
2469
2470         Reviewed by Alex Christensen.
2471
2472         Add API test coverage.
2473
2474         * TestWebKitAPI/Tests/WebKit/mac/ContextMenuDownload.mm:
2475         (TestWebKitAPI::decideDestinationWithSuggestedFilename):
2476         * TestWebKitAPI/Tests/WebKitCocoa/Download.mm:
2477         (-[DownloadDelegate _downloadDidStart:]):
2478         (-[DownloadDelegate _downloadDidFinish:]):
2479         (runTest):
2480         (TEST):
2481         (-[BlobDownloadDelegate _downloadDidStart:]):
2482         (-[BlobDownloadDelegate _downloadDidFinish:]):
2483         (-[RedirectedDownloadDelegate _downloadDidStart:]):
2484         (-[RedirectedDownloadDelegate _downloadDidFinish:]):
2485
2486 2017-09-25  Commit Queue  <commit-queue@webkit.org>
2487
2488         Unreviewed, rolling out r222455.
2489         https://bugs.webkit.org/show_bug.cgi?id=177460
2490
2491         broke iOS build (Requested by alexchristensen on #webkit).
2492
2493         Reverted changeset:
2494
2495         "Add WKContentRuleList notify action type"
2496         https://bugs.webkit.org/show_bug.cgi?id=177013
2497         http://trac.webkit.org/changeset/222455
2498
2499 2017-09-25  Per Arne Vollan  <pvollan@apple.com>
2500
2501         [Win] run-api-tests is failing.
2502         https://bugs.webkit.org/show_bug.cgi?id=177454
2503
2504         Reviewed by Brent Fulgham.
2505
2506         TestWebKit.exe has changed name to TestWebKitLegacy.exe.
2507
2508         * Scripts/run-api-tests:
2509         (testToolPaths):
2510
2511 2017-09-25  Per Arne Vollan  <pvollan@apple.com>
2512
2513         [Win] Cygwin 64-bit EWS process cannot find Visual Studio installation.
2514         https://bugs.webkit.org/show_bug.cgi?id=177244
2515
2516         Reviewed by Alex Christensen.
2517
2518         The 64-bit EWS shell process should try to find Visual Studio in the 32-bit program files folder.
2519
2520         * EWSTools/start-queue-win.sh:
2521
2522 2017-09-25  Alex Christensen  <achristensen@webkit.org>
2523
2524         Add WKContentRuleList notify action type
2525         https://bugs.webkit.org/show_bug.cgi?id=177013
2526         <rdar://problem/31073936>
2527
2528         Reviewed by Darin Adler.
2529
2530         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2531         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2532         (WebCore::ContentExtensions::operator<<):
2533         (TestWebKitAPI::InMemoryCompiledContentExtension::create):
2534         (TestWebKitAPI::InMemoryCompiledContentExtension::data):
2535         (TestWebKitAPI::InMemoryCompiledContentExtension::InMemoryCompiledContentExtension):
2536         (TestWebKitAPI::makeBackend):
2537         (TestWebKitAPI::TEST_F):
2538         (TestWebKitAPI::actionsEqual):
2539         (TestWebKitAPI::sequenceInstances):
2540         (TestWebKitAPI::InMemoryCompiledContentExtension::createFromFilter): Deleted.
2541         (TestWebKitAPI::InMemoryCompiledContentExtension::~InMemoryCompiledContentExtension): Deleted.
2542         * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: Added.
2543         (-[ContentRuleListNotificationDelegate _webView:URL:contentRuleListIdentifiers:notifications:]):
2544         (-[ContentRuleListNotificationDelegate webView:startURLSchemeTask:]):
2545         (-[ContentRuleListNotificationDelegate webView:stopURLSchemeTask:]):
2546         (-[ContentRuleListNotificationDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2547         (makeWarnContentRuleList):
2548         (TEST):
2549
2550 2017-09-25  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2551
2552         REGRESSION(r222160) [GTK] [Debug] Internal compiler error on the buildbot (huge memory usage by GCC)
2553         https://bugs.webkit.org/show_bug.cgi?id=177223
2554
2555         Reviewed by Carlos Garcia Campos.
2556
2557         When the user environment sets the variable NUMBER_OF_PROCESSORS
2558         this should be passed down to the build system (ninja or make) always.
2559
2560         Playing with the number of this variable is needed when using icecc
2561         (as you usually want to launch more parallel build process than your
2562         number of cores), or when you want to limit the number of parallel
2563         build process for hardware capacity reasons.
2564
2565         * Scripts/build-webkit:
2566
2567 2017-09-24  Fujii Hironori  <Hironori.Fujii@sony.com>
2568
2569         [GTK] Incremental builds fail every time Web Inspector icons are removed
2570         https://bugs.webkit.org/show_bug.cgi?id=177349
2571
2572         Reviewed by Carlos Garcia Campos.
2573
2574         Removing GTK WebInspector image files always breaks the GTK and
2575         WPE ports incremental builds.
2576
2577         * Scripts/webkitdirs.pm:
2578         (shouldRemoveCMakeCache): Check the timestamp of
2579         Source/WebInspectorUI/UserInterface/Images/gtk directory if
2580         isGtk() or isWPE().
2581
2582 2017-09-24  Joanmarie Diggs  <jdiggs@igalia.com>
2583
2584         [ATK] Object attributes are missing for ARIA live region roles
2585         https://bugs.webkit.org/show_bug.cgi?id=171174
2586
2587         Reviewed by Chris Fleizach.
2588
2589         Add support for testing property values for AXARIALive, AXARIAAtomic, and
2590         AXARIARelevant. Also add handling for testing whether AXElementBusy is
2591         "supported" (in ATK, busy is a state and is supported on all elements
2592         regardless of whether the state is present or absent from the state set).
2593
2594         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2595         (WTR::AccessibilityUIElement::boolAttributeValue):
2596         (WTR::AccessibilityUIElement::isAttributeSupported):
2597
2598 2017-09-23  Michael Catanzaro  <mcatanzaro@igalia.com>
2599
2600         Unreviewed Mac CMake build fixup after r222194
2601
2602         * DumpRenderTree/PlatformMac.cmake:
2603
2604 2017-09-22  Zalan Bujtas  <zalan@apple.com>
2605
2606         WeakPtrFactory should populate m_ref lazily.
2607         https://bugs.webkit.org/show_bug.cgi?id=177375
2608
2609         Reviewed by Geoffrey Garen.
2610
2611         * TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
2612         (TestWebKitAPI::TEST):
2613
2614 2017-09-22  Filip Pizlo  <fpizlo@apple.com>
2615
2616         WSL should report an error if you try to create an operator overload that will never be called
2617         https://bugs.webkit.org/show_bug.cgi?id=177092
2618
2619         Reviewed by JF Bastien.
2620         
2621         This adds all kinds of checks to ensure that your operator overloads make sense. This adds all
2622         kinds of tests for those checks.
2623         
2624         In the process of writing those tests, I hit an awesome bug: function instantiation was
2625         instantiating all types, which meant that if that instantiated function needed to resolve calls
2626         to protocol functions, we'd fail because we would have cloned top-level struct types. We need
2627         to preserve the uninstantiated argument types, type arguments, and return type (for casts) in
2628         order to be able to resolve protocol calls. But we also need the instantiated version of the
2629         type arguments for execution. So, this adds some more stuff to the CallExpression class.
2630         
2631         * WebGPUShadingLanguageRI/All.js:
2632         * WebGPUShadingLanguageRI/ArrayRefType.js:
2633         (ArrayRefType.prototype.unifyImpl):
2634         * WebGPUShadingLanguageRI/ArrayType.js:
2635         (ArrayType.prototype.get isArray):
2636         * WebGPUShadingLanguageRI/CallExpression.js:
2637         (CallExpression.resolve):
2638         (CallExpression.prototype.resolve):
2639         (CallExpression.prototype.resolveToOverload):
2640         * WebGPUShadingLanguageRI/Checker.js:
2641         (Checker.prototype._checkOperatorOverload):
2642         (Checker.prototype.visitFuncDef):
2643         (Checker.prototype.visitProtocolDecl):
2644         (Checker.prototype.visitMakeArrayRefExpression):
2645         * WebGPUShadingLanguageRI/EBufferBuilder.js:
2646         (EBufferBuilder.prototype._createEPtr):
2647         * WebGPUShadingLanguageRI/EPtr.js:
2648         (EPtr):
2649         * WebGPUShadingLanguageRI/Evaluator.js:
2650         (Evaluator.prototype._snapshot):
2651         (Evaluator.prototype._runBody):
2652         (Evaluator.prototype.visitFunctionLikeBlock):
2653         (Evaluator.prototype.visitCallExpression):
2654         (Evaluator):
2655         (Evaluator.prototype.runFunc): Deleted.
2656         * WebGPUShadingLanguageRI/ExternalOrigin.js: Added.
2657         * WebGPUShadingLanguageRI/Func.js:
2658         (Func.prototype.toDeclString):
2659         * WebGPUShadingLanguageRI/FuncInstantiator.js:
2660         (FuncInstantiator.prototype.getUnique.InstantiationSubstitution.prototype.visitCallExpression):
2661         (FuncInstantiator.prototype.getUnique.InstantiationSubstitution):
2662         (FuncInstantiator.prototype.getUnique.InstantiationInstantiateImmediates.prototype.visitCallExpression):
2663         (FuncInstantiator.prototype.getUnique.InstantiationInstantiateImmediates):
2664         (FuncInstantiator.prototype.getUnique.Instantiate.prototype.visitFuncDef):
2665         * WebGPUShadingLanguageRI/Intrinsics.js:
2666         (Intrinsics):
2667         * WebGPUShadingLanguageRI/LateChecker.js:
2668         (LateChecker.prototype.visitReferenceType):
2669         (LateChecker.prototype._checkShaderType):
2670         * WebGPUShadingLanguageRI/Lexer.js:
2671         (Lexer._textIsIdentifierImpl):
2672         (Lexer.textIsIdentifier):
2673         (Lexer.prototype.next):
2674         (Lexer):
2675         * WebGPUShadingLanguageRI/NameResolver.js:
2676         (NameResolver.prototype.visitProtocolDecl):
2677         * WebGPUShadingLanguageRI/Parse.js:
2678         (parseType.getAddressSpace):
2679         (parseType):
2680         * WebGPUShadingLanguageRI/Prepare.js:
2681         (let.prepare):
2682         * WebGPUShadingLanguageRI/PtrType.js:
2683         (PtrType.prototype.unifyImpl):
2684         * WebGPUShadingLanguageRI/ReferenceType.js:
2685         (ReferenceType):
2686         * WebGPUShadingLanguageRI/Rewriter.js:
2687         (Rewriter.prototype.visitReferenceType):
2688         (Rewriter.prototype.processDerivedCallData):
2689         * WebGPUShadingLanguageRI/StandardLibrary.js:
2690         (intToString):
2691         * WebGPUShadingLanguageRI/StatementCloner.js:
2692         (StatementCloner.prototype.visitFuncDef):
2693         * WebGPUShadingLanguageRI/StructLayoutBuilder.js:
2694         (StructLayoutBuilder.prototype.visitCallExpression):
2695         (StructLayoutBuilder):
2696         * WebGPUShadingLanguageRI/Substitution.js:
2697         (Substitution.prototype.visitTypeRef):
2698         * WebGPUShadingLanguageRI/Test.html:
2699         * WebGPUShadingLanguageRI/Test.js:
2700         (checkNumber):
2701         (set target):
2702         (tests.literalBool):
2703         (tests.identityBool):
2704         (tests.intSimpleMath):
2705         (tests.uintSimpleMath):
2706         (tests.uint8SimpleMath):
2707         (tests.equality):
2708         (tests.logicalNegation):
2709         (tests.notEquality):
2710         (tests.equalityTypeFailure):
2711         (tests.generalNegation):
2712         (tests.add1):
2713         (tests.simpleGeneric):
2714         (tests.nameResolutionFailure):
2715         (tests.simpleVariable):
2716         (tests.simpleAssignment):
2717         (tests.simpleDefault):
2718         (tests.simpleDereference):
2719         (tests.dereferenceStore):
2720         (tests.simpleMakePtr):
2721         (tests.threadArrayLoad):
2722         (tests.threadArrayLoadIntLiteral):
2723         (tests.deviceArrayLoad):
2724         (tests.threadArrayStore):
2725         (tests.deviceArrayStore):
2726         (tests.deviceArrayStoreIntLiteral):
2727         (tests.simpleProtocol):
2728         (tests.typeMismatchReturn):
2729         (tests.typeMismatchVariableDecl):
2730         (tests.typeMismatchAssignment):
2731         (tests.typeMismatchReturnParam):
2732         (tests.badAdd):
2733         (tests.lexerKeyword):
2734         (tests.simpleNoReturn):
2735         (tests.simpleUnreachableCode):
2736         (tests.simpleStruct):
2737         (tests.genericStructInstance):
2738         (tests.doubleGenericCallsDoubleGeneric):
2739         (tests.doubleGenericCallsSingleGeneric):
2740         (tests.loadNull):
2741         (tests.storeNull):
2742         (tests.returnNull):
2743         (tests.dereferenceDefaultNull):
2744         (tests.defaultInitializedNull):
2745         (tests.passNullToPtrMonomorphic):
2746         (tests.passNullToPtrPolymorphic):
2747         (tests.passNullToPolymorphic):
2748         (tests.loadNullArrayRef):
2749         (tests.storeNullArrayRef):
2750         (tests.returnNullArrayRef):
2751         (tests.dereferenceDefaultNullArrayRef):
2752         (tests.defaultInitializedNullArrayRef):
2753         (tests.defaultInitializedNullArrayRefIntLiteral):
2754         (tests.passNullToPtrMonomorphicArrayRef):
2755         (tests.passNullToPtrPolymorphicArrayRef):
2756         (tests.returnIntLiteralUint):
2757         (tests.returnIntLiteralDouble):
2758         (tests.badIntLiteralForInt):
2759         (tests.badIntLiteralForUint):
2760         (tests.badIntLiteralForDouble):
2761         (tests.passNullAndNotNull):
2762         (tests.passNullAndNotNullFullPoly):
2763         (tests.passNullAndNotNullFullPolyReverse):
2764         (tests.nullTypeVariableUnify):
2765         (tests.doubleNot):
2766         (tests.simpleRecursion):
2767         (tests.protocolMonoSigPolyDef):
2768         (tests.protocolPolySigPolyDef):
2769         (tests.protocolDoublePolySigDoublePolyDef):
2770         (tests.protocolDoublePolySigDoublePolyDefExplicit):
2771         (tests.variableShadowing):
2772         (tests.ifStatement):
2773         (tests.ifElseStatement):
2774         (tests.ifElseIfStatement):
2775         (tests.ifElseIfElseStatement):
2776         (tests.returnIf):
2777         (tests.simpleWhile):
2778         (tests.protocolMonoPolySigDoublePolyDefExplicit):
2779         (tests.ambiguousOverloadSimple):
2780         (tests.ambiguousOverloadOverlapping):
2781         (tests.ambiguousOverloadTieBreak):
2782         (tests.intOverloadResolution):
2783         (tests.intOverloadResolutionReverseOrder):
2784         (tests.intOverloadResolutionGeneric):
2785         (tests.intLiteralGeneric):
2786         (tests.intLiteralGenericWithProtocols):
2787         (tests.uintLiteralGeneric):
2788         (tests.uintLiteralGenericWithProtocols):
2789         (tests.intLiteralGenericSpecific):
2790         (tests.simpleConstexpr):
2791         (tests.break):
2792         (tests.continue):
2793         (tests.doWhile):
2794         (tests.forLoop):
2795         (tests.chainConstexpr):
2796         (tests.chainGeneric):
2797         (tests.chainStruct):
2798         (tests.chainStructNewlyValid):
2799         (tests.chainStructDevice):
2800         (tests.paramChainStructDevice):
2801         (tests.simpleProtocolExtends):
2802         (tests.protocolExtendsTwo):
2803         (tests.prefixPlusPlus):
2804         (tests.prefixPlusPlusResult):
2805         (tests.postfixPlusPlus):
2806         (tests.postfixPlusPlusResult):
2807         (tests.prefixMinusMinus):
2808         (tests.prefixMinusMinusResult):
2809         (tests.postfixMinusMinus):
2810         (tests.postfixMinusMinusResult):
2811         (tests.plusEquals):
2812         (tests.plusEqualsResult):
2813         (tests.minusEquals):
2814         (tests.minusEqualsResult):
2815         (tests.timesEquals):
2816         (tests.timesEqualsResult):
2817         (tests.divideEquals):
2818         (tests.divideEqualsResult):
2819         (tests.twoIntLiterals):
2820         (tests.unifyDifferentLiterals):
2821         (tests.unifyDifferentLiteralsBackwards):
2822         (tests.unifyVeryDifferentLiterals):
2823         (tests.unifyVeryDifferentLiteralsBackwards):
2824         (tests.assignUintToInt):
2825         (tests.buildArrayThenSumIt):
2826         (tests.buildArrayThenSumItUsingArrayReference):
2827         (tests.overrideSubscriptStruct):
2828         (tests.overrideSubscriptStructAndDoStores):
2829         (tests.overrideSubscriptStructAndUsePointers):
2830         (tests.overrideSubscriptStructAndUsePointersIncorrectly):
2831         (tests.makeArrayRefFromLocal):
2832         (tests.makeArrayRefFromPointer):
2833         (tests.makeArrayRefFromArrayRef):
2834         (tests.simpleLength):
2835         (tests.nonArrayRefArrayLengthSucceed):
2836         (tests.nonArrayRefArrayLengthFail):
2837         (tests.constexprIsNotLValuePtr):
2838         (tests.constexprIsNotLValueAssign):
2839         (tests.constexprIsNotLValueRMW):
2840         (tests.assignLength):
2841         (tests.assignLengthHelper):
2842         (tests.simpleGetter):
2843         (tests.simpleSetter):
2844         (tests.genericAccessors):
2845         (tests.bitSubscriptAccessor):
2846         (tests.nestedSubscriptLValueEmulationSimple):
2847         (tests.nestedSubscriptLValueEmulationGeneric):
2848         (tests.boolBitAnd):
2849         (tests.boolBitOr):
2850         (tests.boolBitXor):
2851         (tests.boolBitNot):
2852         (tests.intBitAnd):
2853         (tests.intBitOr):
2854         (tests.intBitXor):
2855         (tests.intBitNot):
2856         (tests.intLShift):
2857         (tests.intRShift):
2858         (tests.uintBitAnd):
2859         (tests.uintBitOr):
2860         (tests.uintBitXor):
2861         (tests.uintBitNot):
2862         (tests.uintLShift):
2863         (tests.uintRShift):
2864         (tests.uint8BitAnd):
2865         (tests.uint8BitOr):
2866         (tests.uint8BitXor):
2867         (tests.uint8BitNot):
2868         (tests.uint8LShift):
2869         (tests.uint8RShift):
2870         (tests.floatMath):
2871         (tests.genericCastInfer):
2872         (tests.booleanMath):
2873         (tests.typedefArray):
2874         (tests.shaderTypes):
2875         (tests.builtinVectors):
2876         (tests.instantiateStructInStruct):
2877         (tests.instantiateStructInStructWithInt2):
2878         (tests.simpleEnum):
2879         (tests.enumWithManualValues):
2880         (tests.enumWithoutZero):
2881         (tests.enumDuplicates):
2882         (tests.enumWithSomeManualValues):
2883         (tests.enumConstexprGenericFunction):
2884         (tests.enumConstexprGenericStruct):
2885         (tests.trap):
2886         (tests.swizzle):
2887         (tests.enumWithExplicitIntBase):
2888         (tests.enumWithUintBase):
2889         (tests.enumFloatBase):
2890         (tests.enumPtrBase):
2891         (tests.enumArrayRefBase):
2892         (tests.emptyStruct):
2893         (tests.enumStructBase):
2894         (tests.enumNoMembers):
2895         (tests.simpleSwitch):
2896         (tests.exhaustiveUint8Switch):
2897         (tests.notQuiteExhaustiveUint8Switch):
2898         (tests.notQuiteExhaustiveUint8SwitchWithDefault):
2899         (tests.switchFallThrough):
2900         (tests.switchBreak):
2901         (tests.enumSwitchBreakExhaustive):
2902         (tests.enumSwitchBreakNotQuiteExhaustive):
2903         (tests.enumSwitchBreakNotQuiteExhaustiveWithDefault):
2904         (tests.simpleRecursiveStruct):
2905         (tests.mutuallyRecursiveStruct):
2906         (tests.mutuallyRecursiveStructWithPointersBroken):
2907         (tests.mutuallyRecursiveStructWithPointers):
2908         (tests.linkedList):
2909         (tests.pointerToPointer):
2910         (tests.arrayRefToArrayRef):
2911         (tests.pointerGetter):
2912         (tests.loneSetter):
2913         (tests.setterWithMismatchedType):
2914         (tests.setterWithMatchedType):
2915         (tests.operatorWithUninferrableTypeVariable):
2916         (tests.operatorWithoutUninferrableTypeVariable):
2917         (tests.operatorCastWithUninferrableTypeVariable):
2918         (tests.operatorCastWithTypeVariableInferredFromReturnType):
2919         (tests.incWrongArgumentLength):
2920         (tests.decWrongArgumentLength):
2921         (tests.incWrongTypes):
2922         (tests.decWrongTypes):
2923         (tests.plusWrongArgumentLength):
2924         (tests.minusWrongArgumentLength):
2925         (tests.timesWrongArgumentLength):
2926         (tests.divideWrongArgumentLength):
2927         (tests.moduloWrongArgumentLength):
2928         (tests.bitAndWrongArgumentLength):
2929         (tests.bitOrWrongArgumentLength):
2930         (tests.bitXorWrongArgumentLength):
2931         (tests.lShiftWrongArgumentLength):
2932         (tests.rShiftWrongArgumentLength):
2933         (tests.bitNotWrongArgumentLength):
2934         (tests.equalsWrongArgumentLength):
2935         (tests.lessThanWrongArgumentLength):
2936         (tests.lessEqualWrongArgumentLength):
2937         (tests.greaterWrongArgumentLength):
2938         (tests.greaterEqualWrongArgumentLength):
2939         (tests.equalsWrongReturnType):
2940         (tests.notEqualsOverload):
2941         (tests.lessThanWrongReturnType):
2942         (tests.lessEqualWrongReturnType):
2943         (tests.greaterThanWrongReturnType):
2944         (tests.greaterEqualWrongReturnType):
2945         (tests.dotOperatorWrongArgumentLength):
2946         (tests.dotOperatorSetterWrongArgumentLength):
2947         (tests.loneSetterPointer):
2948         (tests.setterWithNoGetterOverload):
2949         (tests.setterWithNoGetterOverloadFixed):
2950         (tests.anderWithNothingWrong):
2951         (tests.anderWithWrongNumberOfArguments):
2952         (tests.anderDoesntReturnPointer):
2953         (tests.anderDoesntTakeReference):
2954         (tests.anderWithArrayRef):
2955         (tests.pointerIndexGetter):
2956         (tests.loneIndexSetter):
2957         (tests.notLoneIndexSetter):
2958         (tests.indexSetterWithMismatchedType):
2959         (tests.indexOperatorWrongArgumentLength):
2960         (tests.indexOperatorSetterWrongArgumentLength):
2961         (tests.loneIndexSetterPointer):
2962         (tests.indexSetterWithNoGetterOverload):
2963         (tests.indexSetterWithNoGetterOverloadFixed):
2964         (tests.indexAnderWithNothingWrong):
2965         (tests.indexAnderWithWrongNumberOfArguments):
2966         (tests.indexAnderDoesntReturnPointer):
2967         (tests.indexAnderDoesntTakeReference):
2968         (tests.indexAnderWithArrayRef):
2969         (tests.devicePtrPtr):
2970         (tests.threadgroupPtrPtr):
2971         (tests.constantPtrPtr):
2972         (tests.pointerIndexGetterInProtocol):
2973         (tests.loneIndexSetterInProtocol):
2974         (tests.notLoneIndexSetterInProtocol):
2975         (tests.indexSetterWithMismatchedTypeInProtocol):
2976         (tests.indexOperatorWrongArgumentLengthInProtocol):
2977         (tests.indexOperatorSetterWrongArgumentLengthInProtocol):
2978         (tests.loneIndexSetterPointerInProtocol):
2979         (tests.indexSetterWithNoGetterOverloadInProtocol):
2980         (tests.indexSetterWithNoGetterOverloadFixedInProtocol):
2981         (tests.indexAnderWithNothingWrongInProtocol):
2982         (tests.indexAnderWithWrongNumberOfArgumentsInProtocol):
2983         (tests.indexAnderDoesntReturnPointerInProtocol):
2984         (tests.indexAnderDoesntTakeReferenceInProtocol):
2985         (tests.indexAnderWithArrayRefInProtocol):
2986         (doTest):
2987         (this.window.let._.of.doTest):
2988         (TEST_literalBool): Deleted.
2989         (TEST_identityBool): Deleted.
2990         (TEST_intSimpleMath): Deleted.
2991         (TEST_uintSimpleMath): Deleted.
2992         (TEST_uint8SimpleMath): Deleted.
2993         (TEST_equality): Deleted.
2994         (TEST_logicalNegation): Deleted.
2995         (TEST_notEquality): Deleted.
2996         (TEST_equalityTypeFailure): Deleted.
2997         (): Deleted.
2998         (TEST_add1): Deleted.
2999         (TEST_simpleGeneric): Deleted.
3000         (TEST_nameResolutionFailure): Deleted.
3001         (TEST_simpleAssignment): Deleted.
3002         (TEST_simpleDefault): Deleted.
3003         (TEST_simpleDereference): Deleted.
3004         (TEST_dereferenceStore): Deleted.
3005         (TEST_simpleMakePtr): Deleted.
3006         (TEST_threadArrayLoad): Deleted.
3007         (TEST_threadArrayLoadIntLiteral): Deleted.
3008         (TEST_deviceArrayLoad): Deleted.
3009         (TEST_threadArrayStore): Deleted.
3010         (TEST_deviceArrayStore): Deleted.
3011         (TEST_deviceArrayStoreIntLiteral): Deleted.
3012         (TEST_simpleProtocol): Deleted.
3013         (TEST_typeMismatchReturn): Deleted.
3014         (TEST_simpleNoReturn): Deleted.
3015         (TEST_genericStructInstance): Deleted.
3016         (TEST_doubleGenericCallsDoubleGeneric): Deleted.
3017         (TEST_doubleGenericCallsSingleGeneric): Deleted.
3018         (TEST_dereferenceDefaultNull): Deleted.
3019         (TEST_dereferenceDefaultNullArrayRef): Deleted.
3020         (TEST_returnIntLiteralDouble): Deleted.
3021         (TEST_badIntLiteralForInt): Deleted.
3022         (TEST_passNullAndNotNullFullPoly): Deleted.
3023         (TEST_passNullAndNotNullFullPolyReverse): Deleted.
3024         (TEST_nullTypeVariableUnify.recurse): Deleted.
3025         (TEST_nullTypeVariableUnify.everyOrder): Deleted.
3026         (TEST_nullTypeVariableUnify.everyPair): Deleted.
3027         (TEST_nullTypeVariableUnify): Deleted.
3028         (TEST_simpleRecursion): Deleted.
3029         (TEST_protocolPolySigPolyDef): Deleted.
3030         (TEST_protocolDoublePolySigDoublePolyDef): Deleted.
3031         (TEST_protocolDoublePolySigDoublePolyDefExplicit): Deleted.
3032         (TEST_variableShadowing): Deleted.
3033         (TEST_ifStatement): Deleted.
3034         (TEST_ifElseStatement): Deleted.
3035         (TEST_ifElseIfStatement): Deleted.
3036         (TEST_ifElseIfElseStatement): Deleted.
3037         (TEST_returnIf): Deleted.
3038         (TEST_simpleWhile): Deleted.
3039         (TEST_protocolMonoPolySigDoublePolyDefExplicit): Deleted.
3040         (TEST_intOverloadResolution): Deleted.
3041         (TEST_intOverloadResolutionReverseOrder): Deleted.
3042         (TEST_intOverloadResolutionGeneric): Deleted.
3043         (TEST_intLiteralGeneric): Deleted.
3044         (TEST_intLiteralGenericWithProtocols): Deleted.
3045         (TEST_uintLiteralGeneric): Deleted.
3046         (TEST_uintLiteralGenericWithProtocols): Deleted.
3047         (TEST_intLiteralGenericSpecific): Deleted.
3048         (TEST_simpleConstexpr): Deleted.
3049         (TEST_break): Deleted.
3050         (TEST_forLoop): Deleted.
3051         (TEST_chainConstexpr): Deleted.
3052         (TEST_chainGeneric): Deleted.
3053         (TEST_chainStruct): Deleted.
3054         (TEST_chainStructNewlyValid): Deleted.
3055         (TEST_chainStructDevice): Deleted.
3056         (TEST_paramChainStructDevice): Deleted.
3057         (TEST_simpleProtocolExtends): Deleted.
3058         (TEST_protocolExtendsTwo): Deleted.
3059         (TEST_prefixPlusPlus): Deleted.
3060         (TEST_prefixPlusPlusResult): Deleted.
3061         (TEST_postfixPlusPlus): Deleted.
3062         (TEST_postfixPlusPlusResult): Deleted.
3063         (TEST_prefixMinusMinus): Deleted.
3064         (TEST_prefixMinusMinusResult): Deleted.
3065         (TEST_postfixMinusMinus): Deleted.
3066         (TEST_postfixMinusMinusResult): Deleted.
3067         (TEST_plusEquals): Deleted.
3068         (TEST_plusEqualsResult): Deleted.
3069         (TEST_minusEquals): Deleted.
3070         (TEST_minusEqualsResult): Deleted.
3071         (TEST_timesEquals): Deleted.
3072         (TEST_timesEqualsResult): Deleted.
3073         (TEST_divideEquals): Deleted.
3074         (TEST_divideEqualsResult): Deleted.
3075         (TEST_twoIntLiterals): Deleted.
3076         (TEST_unifyDifferentLiterals): Deleted.
3077         (TEST_buildArrayThenSumItUsingArrayReference): Deleted.
3078         (TEST_overrideSubscriptStruct): Deleted.
3079         (TEST_overrideSubscriptStructAndDoStores): Deleted.
3080         (TEST_overrideSubscriptStructAndUsePointers): Deleted.
3081         (TEST_overrideSubscriptStructAndUsePointersIncorrectly): Deleted.
3082         (TEST_makeArrayRefFromPointer): Deleted.
3083         (TEST_makeArrayRefFromArrayRef): Deleted.
3084         (TEST_nonArrayRefArrayLengthSucceed): Deleted.
3085         (TEST_nonArrayRefArrayLengthFail): Deleted.
3086         (TEST_simpleSetter): Deleted.
3087         (TEST_genericAccessors): Deleted.
3088         (TEST_bitSubscriptAccessor): Deleted.
3089         (TEST_nestedSubscriptLValueEmulationSimple): Deleted.
3090         (TEST_nestedSubscriptLValueEmulationGeneric): Deleted.
3091         (TEST_boolBitAnd): Deleted.
3092         (TEST_boolBitOr): Deleted.
3093         (TEST_boolBitXor): Deleted.
3094         (TEST_boolBitNot): Deleted.
3095         (TEST_intBitAnd): Deleted.
3096         (TEST_intBitOr): Deleted.
3097         (TEST_intBitXor): Deleted.
3098         (TEST_intBitNot): Deleted.
3099         (TEST_intLShift): Deleted.
3100         (TEST_intRShift): Deleted.
3101         (TEST_uintBitAnd): Deleted.
3102         (TEST_uintBitOr): Deleted.
3103         (TEST_uintBitXor): Deleted.
3104         (TEST_uintBitNot): Deleted.
3105         (TEST_uintLShift): Deleted.
3106         (TEST_uintRShift): Deleted.
3107         (TEST_uint8BitAnd): Deleted.
3108         (TEST_uint8BitOr): Deleted.
3109         (TEST_uint8BitXor): Deleted.
3110         (TEST_uint8BitNot): Deleted.
3111         (TEST_uint8LShift): Deleted.
3112         (TEST_uint8RShift): Deleted.
3113         (TEST_floatMath): Deleted.
3114         (TEST_booleanMath): Deleted.
3115         (TEST_typedefArray): Deleted.
3116         (TEST_shaderTypes): Deleted.
3117         (TEST_instantiateStructInStruct): Deleted.
3118         (TEST_instantiateStructInStructWithInt2): Deleted.
3119         (TEST_simpleEnum): Deleted.
3120         (TEST_enumWithManualValues): Deleted.
3121         (TEST_enumWithoutZero): Deleted.
3122         (TEST_enumConstexprGenericFunction): Deleted.
3123         (TEST_enumConstexprGenericStruct): Deleted.
3124         (TEST_trap): Deleted.
3125         (TEST_enumWithExplicitIntBase): Deleted.
3126         (TEST_enumWithUintBase): Deleted.
3127         (TEST_enumFloatBase): Deleted.
3128         (TEST_enumStructBase): Deleted.
3129         (TEST_simpleSwitch): Deleted.
3130         (TEST_exhaustiveUint8Switch): Deleted.
3131         (TEST_notQuiteExhaustiveUint8Switch): Deleted.
3132         (TEST_switchFallThrough): Deleted.
3133         (TEST_switchBreak): Deleted.
3134         (TEST_enumSwitchBreakExhaustive): Deleted.
3135         (TEST_enumSwitchBreakNotQuiteExhaustive): Deleted.
3136         (TEST_simpleRecursiveStruct): Deleted.
3137         (TEST_linkedList): Deleted.
3138         * WebGPUShadingLanguageRI/Type.js:
3139         (Type.prototype.get isArray):
3140         * WebGPUShadingLanguageRI/TypeRef.js:
3141         (TypeRef.wrap):
3142         * WebGPUShadingLanguageRI/TypeVariableTracker.js:
3143         (TypeVariableTracker.prototype.set get return):
3144         (TypeVariableTracker.prototype.visitVariableRef):
3145         (TypeVariableTracker):
3146         * WebGPUShadingLanguageRI/Visitor.js:
3147         (Visitor.prototype.visitProtocolDecl):
3148         * WebGPUShadingLanguageRI/index.html:
3149
3150 2017-09-22  Matt Lewis  <jlewis3@apple.com>
3151
3152         Unreviewed, rolling out r222394.
3153
3154         This broke the Windows Debug Build.
3155
3156         Reverted changeset:
3157
3158         "Remove build-webkit's notion of feature flags having a
3159         default value"
3160         https://bugs.webkit.org/show_bug.cgi?id=177338
3161         http://trac.webkit.org/changeset/222394
3162
3163 2017-09-22  Tim Horton <timothy_horton@apple.com> and Michael Catanzaro <mcatanzaro@igalia.com>
3164
3165         Remove build-webkit's notion of feature flags having a default value
3166         https://bugs.webkit.org/show_bug.cgi?id=177338
3167
3168         Reviewed by Alex Christensen.
3169
3170         Delegate feature flag default values to the build system.
3171         (FeatureDefines.xcconfig for Xcode, WebKitFeatures.cmake and Options*.cmake for CMake, and FeatureDefines.h for everyone)
3172
3173         * BuildSlaveSupport/build.webkit.org-config/config.json:
3174         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
3175         (Factory.__init__):
3176         Update GTK and WPE buildbot configuration to use --no-experimental-features on old stable
3177         bots instead of --default-cmake-features.
3178
3179         * Scripts/build-webkit:
3180         (cMakeArgsFromFeatures):
3181         Default feature values to 'undef'.
3182         Remove the --default-cmake-features argument; it is now the default.
3183         Add --no-experimental-features to replace it.
3184         Stop printing the default feature flag value in the help.
3185         Avoid propagating undefined values to the build system;
3186         only mention flags that are overridden on the command line.
3187
3188         This has the nice side effect of using the default CMake features
3189         for CMake builds, but still allowing toggling of them using the
3190         prettier --FEATURE and --no-FEATURE arguments.
3191
3192         * Scripts/webkitdirs.pm:
3193         (generateBuildSystemFromCMakeProject):
3194         No longer need to suppress CMake warnings about unused arguments.
3195
3196         * Scripts/webkitperl/FeatureList.pm:
3197         Remove the default values from the feature list.
3198
3199 2017-09-21  Joseph Pecoraro  <pecoraro@apple.com>
3200
3201         Unreviewed, add the ability to skip a test262 test.
3202
3203         * Scripts/run-jsc-stress-tests:
3204         Other handlers have :skip but a few didn't.
3205
3206 2017-09-21  Ryan Haddad  <ryanhaddad@apple.com>
3207
3208         Change architecture for ios-ews queue to arm64.
3209         https://bugs.webkit.org/show_bug.cgi?id=177332
3210
3211         Reviewed by Alexey Proskuryakov.
3212
3213         * Scripts/webkitpy/common/config/ews.json:
3214
3215 2017-09-21  Tim Horton  <timothy_horton@apple.com>
3216
3217         Use 'ninja' from the SDK if it exists
3218         https://bugs.webkit.org/show_bug.cgi?id=177330
3219
3220         Reviewed by Alex Christensen.
3221
3222         * Scripts/webkitdirs.pm:
3223         (canUseNinja):
3224         Check for ninja with xcrun in addition to commandExists() for Cocoa platforms.
3225
3226         (generateBuildSystemFromCMakeProject):
3227         (canUseNinjaGenerator): Deleted.
3228         Remove canUseNinjaGenerator; as noted in bug 177057, the Ninja generator
3229         is available in all versions of CMake supported by WebKit.
3230
3231 2017-09-21  Chris Dumez  <cdumez@apple.com>
3232
3233         Regression(r222308): new API tests are failing for !NETWORK_SESSION
3234         https://bugs.webkit.org/show_bug.cgi?id=177321
3235
3236         Reviewed by Alex Christensen.
3237
3238         Unskip API tests now that they pass everywhere.
3239
3240         * TestWebKitAPI/Tests/WebKitCocoa/Download.mm:
3241         (TEST):
3242
3243 2017-09-21  Filip Pizlo  <fpizlo@apple.com>
3244
3245         Unreviewed, fix ability to run tests in browser.
3246
3247         * WebGPUShadingLanguageRI/Test.html:
3248         * WebGPUShadingLanguageRI/index.html:
3249
3250 2017-09-21  Jonathan Bedard  <jbedard@apple.com>
3251
3252         webkitpy: Ignore failure to get updated selenium version
3253         https://bugs.webkit.org/show_bug.cgi?id=177205
3254         <rdar://problem/34531669>
3255
3256         Reviewed by Lucas Forschler.
3257
3258         Sometime asking PyPI for the latest version of Selenium fails. We should try and
3259         fallback to, at a minimum, version 3.5.0 or a newer installed version.
3260
3261         * Scripts/webkitpy/thirdparty/__init__.py:
3262         (AutoinstallImportHook.greater_than_equal_to_version): Return true if the second
3263         version string is greater than or equal to the first version string.
3264         (AutoinstallImportHook._install_selenium): If we can't get the latest PyPI url,
3265         fallback to version 3.5.0 or a newer installed version.
3266
3267 2017-09-21  Filip Pizlo  <fpizlo@apple.com>
3268
3269         WSL should have some post-instantiation type checking
3270         https://bugs.webkit.org/show_bug.cgi?id=177303
3271
3272         Reviewed by Keith Miller.
3273         
3274         This patch removes the Primitive protocol! Yay!
3275         
3276         The Primitive protocol was an attempt to handle the fact that Metal wouldn't allow us to point a
3277         non-thread pointer at data structures that have pointers. This type checking rule interacts badly with
3278         generics. I was able to get it to mostly work by making Primitive into a dynamic protocol - a type
3279         belongs to it if it happens to be isPrimitive.
3280         
3281         But that was a mistake, since it makes it hard to create pointers that are generic over address space.
3282         Also, it's not an appropriate rule for targeting SPIR-V logical mode. That rule will be different, and
3283         possibly more complicated.
3284         
3285         All of these kinds of rules are easier to implement of we run them after instantiation, since then they
3286         don't get in the way of generics. That's what this patch does.
3287         
3288         This means that we get all of the same type checking power as before, and we still can catch the errors
3289         that Metal requires us to check for. It's easier to do those checks now.
3290         
3291         Finally, this removes the shader type checker's incomplete reimplementation of isPrimitive (which was
3292         called NonNumericSearcher). The shader type checker calls isPrimitive now.
3293
3294         * WebGPUShadingLanguageRI/AddressSpace.js:
3295         (needsPrimitiveProtocol): Deleted.
3296         (protocolSuffix): Deleted.
3297         * WebGPUShadingLanguageRI/All.js:
3298         * WebGPUShadingLanguageRI/Checker.js:
3299         (Checker.prototype._checkShaderType):
3300         (Checker.prototype._checkShaderType.NonNumericSearcher): Deleted.
3301         (Checker.prototype._checkShaderType.NonNumericSearcher.prototype.visitArrayRefType): Deleted.
3302         (Checker.prototype._checkShaderType.NonNumericSearcher.prototype.visitPtrType): Deleted.
3303         (Checker.prototype.visitReferenceType): Deleted.
3304         * WebGPUShadingLanguageRI/FuncInstantiator.js:
3305         (FuncInstantiator.prototype.getUnique.Instantiate.prototype.visitFuncDef):
3306         * WebGPUShadingLanguageRI/Inline.js:
3307         (_inlineFunction):
3308         * WebGPUShadingLanguageRI/Intrinsics.js:
3309         (Intrinsics):
3310         * WebGPUShadingLanguageRI/LateChecker.js: Added.
3311         (LateChecker):
3312         (LateChecker.prototype.visitReferenceType):
3313         (LateChecker.prototype._checkShaderType):
3314         (LateChecker.prototype.visitFuncDef):
3315         * WebGPUShadingLanguageRI/LexerToken.js:
3316         (LexerToken.prototype.get isInternal): Deleted.
3317         * WebGPUShadingLanguageRI/NativeType.js:
3318         (NativeType):
3319         (NativeType.prototype.get name):
3320         (NativeType.prototype.get isPrimitive):
3321         (NativeType.prototype.set isPrimitive):
3322         (NativeType.prototype.toString):
3323         * WebGPUShadingLanguageRI/Parse.js:
3324         (parseNative):
3325         * WebGPUShadingLanguageRI/ProgramWithUnnecessaryThingsRemoved.js:
3326         (programWithUnnecessaryThingsRemoved):
3327         * WebGPUShadingLanguageRI/ProtocolDecl.js:
3328         * WebGPUShadingLanguageRI/ReferenceType.js:
3329         (ReferenceType.prototype.get elementType):
3330         (ReferenceType.prototype.get isPrimitive): Deleted.
3331         * WebGPUShadingLanguageRI/StandardLibrary.js:
3332         * WebGPUShadingLanguageRI/StatementCloner.js:
3333         (StatementCloner.prototype.visitNativeType):
3334         * WebGPUShadingLanguageRI/SynthesizeStructAccessors.js:
3335         (synthesizeStructAccessors):
3336         * WebGPUShadingLanguageRI/Test.js:
3337         (TEST_passNullAndNotNullFullPoly):
3338         (TEST_passNullAndNotNullFullPolyReverse):
3339         (TEST_nullTypeVariableUnify):
3340         (TEST_chainStructNewlyValid):
3341         (TEST_chainStructDevice):
3342         (TEST_chainStructInvalid): Deleted.
3343         * WebGPUShadingLanguageRI/Type.js:
3344         (Type.prototype.get isPrimitive):
3345
3346 2017-09-21  Chris Dumez  <cdumez@apple.com>
3347
3348         Unreviewed, temporarily disable new API tests introduced in r222308 until they pass on El Capitan
3349
3350         * TestWebKitAPI/Tests/WebKitCocoa/Download.mm:
3351         (TEST):
3352
3353 2017-09-21  Commit Queue  <commit-queue@webkit.org>
3354
3355         Unreviewed, rolling out r222272.
3356         https://bugs.webkit.org/show_bug.cgi?id=177316
3357
3358         This patch broke builds on some Win EWS bots. (Requested by
3359         perarne on #webkit).
3360
3361         Reverted changeset:
3362
3363         "[Win] Cygwin 64-bit EWS process cannot find Visual Studio
3364         installation."
3365         https://bugs.webkit.org/show_bug.cgi?id=177244
3366         http://trac.webkit.org/changeset/222272
3367
3368 2017-09-21  Filip Pizlo  <fpizlo@apple.com>
3369
3370         Unreviewed, fix a bug in the interactive app that was introduced by bad merging.
3371
3372         * WebGPUShadingLanguageRI/FlattenedStructOffsetGatherer.js:
3373         (FlattenedStructOffsetGatherer.prototype.visitTypeRef):
3374         (FlattenedStructOffsetGatherer):
3375         * WebGPUShadingLanguageRI/index.html:
3376
3377 2017-09-20  Filip Pizlo  <fpizlo@apple.com>
3378
3379         WSL should support switch
3380         https://bugs.webkit.org/show_bug.cgi?id=176978
3381
3382         Reviewed by Keith Miller.
3383         
3384         This adds fairly complete support for switch statements. This includes things like verifying
3385         whether or not a default statement is needed. This even works when the programmer lists all of
3386         the values of an integer type.
3387         
3388         To test that last part, this patch adds uint8 support. It's easy add it, but of course it
3389         meant adding a lot of tests.
3390         
3391         This also fixes enum bugs, since switch does things to enums that we previously didn't test.
3392
3393         * WebGPUShadingLanguageRI/All.js:
3394         * WebGPUShadingLanguageRI/Checker.js:
3395         (Checker.prototype.visitSwitchStatement):
3396         * WebGPUShadingLanguageRI/EnumLiteral.js:
3397         (EnumLiteral.prototype.get valueForSelectedType):
3398         * WebGPUShadingLanguageRI/EnumType.js:
3399         (EnumType.prototype.allValues):
3400         (EnumType.prototype.valuesEqual):
3401         * WebGPUShadingLanguageRI/Evaluator.js:
3402         (Evaluator.prototype.visitSwitchStatement):
3403         * WebGPUShadingLanguageRI/Inliner.js:
3404         (Inliner.prototype.visitCallExpression):
3405         (Inliner):
3406         (Inliner.prototype.visitCastExpression): Deleted.
3407         * WebGPUShadingLanguageRI/Intrinsics.js:
3408         (Intrinsics.):
3409         (Intrinsics):
3410         * WebGPUShadingLanguageRI/LoopChecker.js:
3411         (LoopChecker):
3412         (LoopChecker.prototype.visitFuncDef):
3413         (LoopChecker.prototype.visitWhileLoop):
3414         (LoopChecker.prototype.visitDoWhileLoop):
3415         (LoopChecker.prototype.visitForLoop):
3416         (LoopChecker.prototype.visitSwitchStatement):
3417         (LoopChecker.prototype.visitBreak):
3418         (LoopChecker.prototype.visitContinue):
3419         * WebGPUShadingLanguageRI/Node.js:
3420         (Node.prototype.commit):
3421         * WebGPUShadingLanguageRI/Parse.js:
3422         (parseSwitchCase):
3423         (parseSwitchStatement):
3424         (parseStatement):
3425         (parseBlockBody):
3426         (parseBlock):
3427         * WebGPUShadingLanguageRI/Prepare.js:
3428         (let.prepare):
3429         * WebGPUShadingLanguageRI/ReturnChecker.js:
3430         (ReturnChecker.prototype._mergeReturnStyle):
3431         (ReturnChecker.prototype.visitIfStatement):
3432         (ReturnChecker.prototype.visitWhileLoop):
3433         (ReturnChecker.prototype.visitDoWhileLoop):
3434         (ReturnChecker.prototype.visitForLoop):
3435         (ReturnChecker.prototype.visitSwitchStatement):
3436         (ReturnChecker.prototype.visitContinue):
3437         (ReturnChecker):
3438         * WebGPUShadingLanguageRI/Rewriter.js:
3439         (Rewriter.prototype.visitSwitchStatement):
3440         (Rewriter.prototype.visitSwitchCase):
3441         * WebGPUShadingLanguageRI/StandardLibrary.js:
3442         (uint8.operator):
3443         (bool.operator):
3444         (_generateSwizzle):
3445         * WebGPUShadingLanguageRI/SwitchCase.js: Added.
3446         (SwitchCase):
3447         (SwitchCase.prototype.get origin):
3448         (SwitchCase.prototype.get isDefault):
3449         (SwitchCase.prototype.get value):
3450         (SwitchCase.prototype.get body):
3451         (SwitchCase.prototype.toString):
3452         * WebGPUShadingLanguageRI/SwitchStatement.js: Added.
3453         (SwitchStatement):
3454         (SwitchStatement.prototype.get origin):
3455         (SwitchStatement.prototype.get value):
3456         (SwitchStatement.prototype.add):
3457         (SwitchStatement.prototype.get switchCases):
3458         (SwitchStatement.prototype.toString):
3459         * WebGPUShadingLanguageRI/Test.html:
3460         * WebGPUShadingLanguageRI/Test.js:
3461         (makeUint8):
3462         (makeEnum):
3463         (checkUint8):
3464         (TEST_uint8SimpleMath):
3465         (TEST_equality):
3466         (TEST_notEquality):
3467         (TEST_uint8BitAnd):
3468         (TEST_uint8BitOr):
3469         (TEST_uint8BitXor):
3470         (TEST_uint8BitNot):
3471         (TEST_uint8LShift):
3472         (TEST_uint8RShift):
3473         (TEST_enumWithExplicitIntBase):
3474         (TEST_enumWithUintBase):
3475         (TEST_enumFloatBase):
3476         (TEST_enumStructBase):
3477         (TEST_simpleSwitch):
3478         (TEST_exhaustiveUint8Switch):
3479         (TEST_notQuiteExhaustiveUint8Switch):
3480         (TEST_switchFallThrough):
3481         (TEST_switchBreak):
3482         (TEST_enumSwitchBreakExhaustive):
3483         (TEST_enumSwitchBreakNotQuiteExhaustive):
3484         (doTest):
3485         * WebGPUShadingLanguageRI/UnificationContext.js:
3486         (UnificationContext):
3487         (UnificationContext.prototype.addExtraNode):
3488         (UnificationContext.prototype.get nodes):
3489         * WebGPUShadingLanguageRI/Visitor.js:
3490         (Visitor.prototype.visitProtocolDecl):
3491         * WebGPUShadingLanguageRI/index.html:
3492
3493 2017-09-20  Filip Pizlo  <fpizlo@apple.com>
3494
3495         WSL needs a way to verify that structs are not cyclic
3496         https://bugs.webkit.org/show_bug.cgi?id=177044
3497
3498         Reviewed by Myles Maxfield.
3499         
3500         This adds a recursive type checking phase. Even before adding this phase, the compiler would
3501         successfully detect recursive types - but at the cost of also rejecting programs that had
3502         recursive types indirectly through pointers. To make both things work, I had to change Visitor
3503         to no longer visit TypeRef.type by default. This resulted in some other changes in a few other
3504         parts of the code that previously relied on that behavior.
3505
3506         * WebGPUShadingLanguageRI/All.js:
3507         * WebGPUShadingLanguageRI/CheckRecursiveTypes.js: Added.
3508         (checkRecursiveTypes):
3509         * WebGPUShadingLanguageRI/Checker.js:
3510         (Checker.prototype._checkShaderType.NonNumericSearcher.prototype.visitArrayRefType):
3511         (Checker.prototype._checkShaderType.NonNumericSearcher.prototype.visitPtrType):
3512         (Checker.prototype._checkShaderType.NonNumericSearcher.prototype.visitTypeRef):
3513         (Checker.prototype._checkShaderType.NonNumericSearcher):
3514         (Checker.prototype._checkShaderType):
3515         (Checker.prototype.visitTypeRef):
3516         * WebGPUShadingLanguageRI/NameResolver.js:
3517         (NameResolver.prototype.visitProtocolDecl):
3518         * WebGPUShadingLanguageRI/Prepare.js:
3519         (let.prepare):
3520         * WebGPUShadingLanguageRI/RecursiveTypeChecker.js: Added.
3521         (RecursiveTypeChecker):
3522         (RecursiveTypeChecker.prototype.visitFuncDef):
3523         (RecursiveTypeChecker.prototype.visitNativeFunc):
3524         (RecursiveTypeChecker.prototype.visitStructType):
3525         (RecursiveTypeChecker.prototype.visitReferenceType):
3526         (RecursiveTypeChecker.prototype.visitTypeRef):
3527         * WebGPUShadingLanguageRI/StructLayoutBuilder.js:
3528         (StructLayoutBuilder.prototype.visitTypeRef):
3529         (StructLayoutBuilder):
3530         * WebGPUShadingLanguageRI/Test.html:
3531         * WebGPUShadingLanguageRI/Test.js:
3532         (TEST_simpleRecursiveStruct):
3533         * WebGPUShadingLanguageRI/TypeDefResolver.js:
3534         (TypeDefResolver.prototype.visitTypeRef):
3535         (TypeDefResolver):
3536         * WebGPUShadingLanguageRI/Visitor.js:
3537         (Visitor.prototype.visitProtocolDecl):
3538         * WebGPUShadingLanguageRI/index.html:
3539
3540 2017-09-21  Ryan Haddad  <ryanhaddad@apple.com>
3541
3542         Update TestResultsServer for iOS 11 queues.
3543         https://bugs.webkit.org/show_bug.cgi?id=177285
3544
3545         Reviewed by Alexey Proskuryakov.
3546
3547         * TestResultServer/static-dashboards/builders.jsonp:
3548
3549 2017-09-21  Alex Christensen  <achristensen@webkit.org>
3550
3551         REGRESSION(r221465) WKWebViews without WebGL delegate callbacks crash when WebGL contexts are created
3552         https://bugs.webkit.org/show_bug.cgi?id=177306
3553         <rdar://problem/34351988>
3554
3555         Reviewed by Chris Dumez.
3556
3557         * TestWebKitAPI/Tests/WebKitCocoa/WebGLPolicy.mm:
3558         (-[WebGLTestDelegate webView:startURLSchemeTask:]):
3559         (-[DelegateWithoutWebGL webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
3560         (TEST):
3561
3562 2017-09-20  Joseph Pecoraro  <pecoraro@apple.com>
3563
3564         Update test262 tests
3565         https://bugs.webkit.org/show_bug.cgi?id=177220
3566
3567         Reviewed by Saam Barati and Yusuke Suzuki.
3568
3569         * Scripts/import-test262-tests:
3570         - better detect upstream git repository url from import location
3571         - update JSTest test262 resources when importing from repository
3572         - take seconds instead of 20+ minutes to write yaml with --failures
3573         - update "negative" command to only include just the exception type
3574
3575 2017-09-20  Chris Dumez  <cdumez@apple.com>
3576
3577         [WK2] Add API to get the redirect chain of a WKDownload
3578         https://bugs.webkit.org/show_bug.cgi?id=176628
3579         <rdar://problem/34338279>
3580
3581         Reviewed by Alex Christensen.
3582
3583         Add API test coverage for the 2 cases:
3584         1. Download started as a download and is redirected while
3585            downloading.
3586         2. Download started as a load and was redirected during the
3587            initial load.
3588
3589         * TestWebKitAPI/Tests/WebKitCocoa/Download.mm:
3590         (-[RedirectedDownloadDelegate _download:didReceiveServerRedirectToURL:]):
3591         (-[RedirectedDownloadDelegate _downloadDidFinish:]):
3592         (TEST):
3593
3594 2017-09-20  Alex Christensen  <achristensen@webkit.org>
3595
3596         Add infrastructure for adding custom headers to requests per website
3597         https://bugs.webkit.org/show_bug.cgi?id=177255
3598
3599         Reviewed by Geoffrey Garen.
3600
3601         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3602         * TestWebKitAPI/Tests/WebCore/HTTPHeaderField.cpp: Added.
3603         (shouldRemainUnchanged):
3604         (shouldBeInvalid):
3605         (shouldBecome):
3606         (TEST):
3607         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
3608         (TEST):
3609
3610 2017-09-20  Daniel Bates  <dabates@apple.com>
3611
3612         Spelling and grammar dots should not overlap
3613         https://bugs.webkit.org/show_bug.cgi?id=177265