b30d9172f9433206ff2d0fd520be88526288c8ce
[WebKit-https.git] / Tools / ChangeLog
1 2018-05-14  Brady Eidson  <beidson@apple.com>
2
3         Add an API test to guard against regressions while re-entering setDefersLoading:.
4         <rdar://problem/37033737> and https://bugs.webkit.org/show_bug.cgi?id=185630
5
6         Reviewed by Chris Dumez.
7
8         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
9         * TestWebKitAPI/Tests/WebKitCocoa/DoubleDefersLoading.mm: Added.
10         (-[DoubleDefersNavigationDelegate _webView:navigation:didSameDocumentNavigation:]):
11         (-[DoubleDefersNavigationDelegate webView:didFinishNavigation:]):
12         (-[DefersScheme initWithBytes:]):
13         (-[DefersScheme webView:startURLSchemeTask:]):
14         (-[DefersScheme webView:stopURLSchemeTask:]):
15         * TestWebKitAPI/Tests/WebKitCocoa/DoubleDefersLoadingPlugin.mm: Added.
16         (-[DoubleDefersLoadingPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
17         (-[DoubleDefersLoadingPlugIn webProcessPlugInBrowserContextController:didSameDocumentNavigation:forFrame:]):
18         (-[DoubleDefersLoadingPlugIn dealloc]):
19
20 2018-05-14  Daniel Bates  <dabates@apple.com>
21
22         [iOS] Add a test to ensure that setTimeout() does not fire more than expected when using UIWebView
23         https://bugs.webkit.org/show_bug.cgi?id=185599
24         <rdar://problem/22493890>
25
26         Reviewed by Simon Fraser.
27
28         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
29         * TestWebKitAPI/Tests/ios/SetTimeoutFunction.mm: Added.
30         (-[SetTimeoutFunctionWebViewDelegate webViewDidFinishLoad:]):
31         (-[SetTimeoutFunctionWebViewDelegate webView:didFailLoadWithError:]):
32         (-[SetTimeoutFunctionWebViewDelegate webView:shouldStartLoadWithRequest:navigationType:]):
33         (TestWebKitAPI::TEST):
34         * TestWebKitAPI/ios/set-timeout-function.html: Added.
35
36 2018-05-14  Valerie R Young  <valerie@bocoup.com>
37
38         test262/Runner.pm: small bugs in CLI and error codes
39         https://bugs.webkit.org/show_bug.cgi?id=185629
40
41         Reviewed by Michael Saboff.
42
43         Fix two commandline args with use '-f', correct
44         error code of failures.
45
46         * Scripts/test262/Runner.pm:
47         (processCLI):
48         (main):
49
50 2018-05-14  Ryan Haddad  <ryanhaddad@apple.com>
51
52         Disable API tests that time out after pointer poisioning was disabled.
53         https://bugs.webkit.org/show_bug.cgi?id=185586
54
55         Unreviewed test gardening.
56
57         * TestWebKitAPI/Tests/WTF/Poisoned.cpp:
58         (TestWebKitAPI::TEST):
59         * TestWebKitAPI/Tests/WTF/PoisonedUniquePtr.cpp:
60         (TestWebKitAPI::TEST):
61         * TestWebKitAPI/Tests/WTF/PoisonedUniquePtrForNonTriviallyDestructibleArrays.cpp:
62         (TestWebKitAPI::TEST):
63         * TestWebKitAPI/Tests/WTF/PoisonedUniquePtrForTriviallyDestructibleArrays.cpp:
64         (TestWebKitAPI::TEST):
65
66 2018-05-14  Leo Balter  <leonardo.balter@gmail.com>
67
68         Test262-Runner: Fix RegExp for capturing tests metadata"
69         https://bugs.webkit.org/show_bug.cgi?id=185622
70
71         Reviewed by Michael Saboff.
72
73         This patch fixes the RegExp used to capture each test metadata regarding their EOL characters for
74         both LF and CRLF forms.
75
76         The fix also allows the runner to capture the proper results from two specific files using CR and
77         CRLF line terminators. They are updated in the expectations file.
78         * Scripts/test262/Runner.pm:
79         (parseData):
80
81 2018-05-14  Jeremy Jones  <jeremyj@apple.com>
82
83         NSEvent event trackers don't work from WebKitTestRunner
84         https://bugs.webkit.org/show_bug.cgi?id=185383
85         rdar://problem/40025045
86
87         Reviewed by Simon Fraser.
88
89         Post simulated wheel events to _sendEventToObservers: so they can be handled by NSEvent observers.
90         NSEvent swipe tracking is used for webkit swipe navigation.
91
92         * WebKitTestRunner/mac/EventSenderProxy.mm:
93         (WTR::EventSenderProxy::mouseScrollByWithWheelAndMomentumPhases):
94
95 2018-05-11  Leo Balter  <leonardo.balter@gmail.com>
96
97         Test262 Runner should search for the Debug JSC by default
98         https://bugs.webkit.org/show_bug.cgi?id=185562
99
100         Reviewed by Michael Saboff.
101
102         The Test262 Runner is now searching for the Debug build of JSC by
103         default, not the Release build.
104
105         This fix allows a similar call from the previous runner, making
106         it compatible with the current build bot configuration parameters.
107
108         This patch also adds some minor improvements the verbose mode output.
109
110         * Scripts/test262/Runner.pm:
111         (processCLI):
112         (main):
113         (getBuildPath):
114         (processResult):
115
116 2018-05-11  Charles Vazac  <cvazac@gmail.com>
117
118         Runtime feature flag for Server-Timing
119         https://bugs.webkit.org/show_bug.cgi?id=184758
120
121         Reviewed by Youenn Fablet.
122
123         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: added ENABLE_SERVER_TIMING.
124         * DumpRenderTree/win/DumpRenderTree.cpp: enable Server Timing
125
126 2018-05-11  Fujii Hironori  <Hironori.Fujii@sony.com>
127
128         [Win][MiniBrowser] Move WK1 related code into MiniBrowser
129         https://bugs.webkit.org/show_bug.cgi?id=185418
130
131         Reviewed by Alex Christensen.
132
133         All WK1 related code should be moved into MiniBrowser for the preparation
134         of Bug 184770.
135
136         This change moves the initilization code of MiniBrowse into MiniBrowser::init().
137
138         * MiniBrowser/win/Common.cpp:
139         (getAppDataFolder): Removed `static` keyword to be called from MiniBrowser.cpp.
140         (setCacheFolder): This is only for WK1. Moved into MiniBrowser.cpp.
141         * MiniBrowser/win/Common.h: Added.
142         * MiniBrowser/win/MiniBrowser.cpp:
143         (MiniBrowser::init): Moved the initilization code from wWinMain.
144         (MiniBrowser::setCacheFolder): Moved from Common.cpp and made it a method.
145         * MiniBrowser/win/MiniBrowser.h:
146         (MiniBrowser::setCacheFolder): Changed to a private method.
147         (MiniBrowser::subclassForLayeredWindow): Changed to a private method.
148         * MiniBrowser/win/WinMain.cpp:
149         (wWinMain): Moved MiniBrowse initilization code into MiniBrowser.cpp.
150
151 2018-05-11  Brady Eidson  <beidson@apple.com>
152
153         Make sure history navigations reuse the existing process when necessary.
154         <rdar://problem/39746516> and https://bugs.webkit.org/show_bug.cgi?id=185532
155
156         Reviewed by Ryosuke Niwa.
157
158         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
159
160 2018-05-10  Carlos Garcia Campos  <cgarcia@igalia.com>
161
162         [JSC][GLIB] Add introspectable alternatives to functions using vargars
163         https://bugs.webkit.org/show_bug.cgi?id=185508
164
165         Reviewed by Michael Catanzaro.
166
167         Add test cases for the new API.
168
169         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
170         (testJSCFunction):
171         (testJSCObject):
172
173 2018-05-10  Leo Balter  <leonardo.balter@gmail.com>
174
175         [Build Bot] Restore configuration options to the Test262 Runner
176
177         During the switch from the previous Test262 runner to the new one,
178         a call for an extra configurations options got removed.
179
180         This call is important to inform the script to find the debug or
181         release build of JSC. It's being restored in this patch.
182
183         https://bugs.webkit.org/show_bug.cgi?id=185513
184
185         Reviewed by Yusuke Suzuki.
186
187         * BuildSlaveSupport/build.webkit.org-config/steps.py:
188         (RunTest262Tests):
189
190 2018-05-10  Jonathan Bedard  <jbedard@apple.com>
191
192         REGRESSION (r230998): Cannot stream API test output
193         https://bugs.webkit.org/show_bug.cgi?id=185090
194
195         Reviewed by Ryosuke Niwa.
196
197         Change run-api-tests so that the stdout and stderr of a test will be printed
198         before it's result. If -v is passed, the output of single test runs will be
199         streamed. 
200
201         * Scripts/webkitpy/api_tests/run_api_tests.py:
202         (run): Use print_timestamps flag.
203         (parse_args): Add timestamps option to print timestamps in the log.
204         * Scripts/webkitpy/api_tests/runner.py:
205         (Runner): Add running status.
206         (Runner.__init__): Add number of workers and a flag to detect if a newline
207         is needed at the beginning of a log line.
208         (Runner.run): Turn off most logging coming from server process since it is
209         not constructive for API tests.
210         (Runner.handle): Add new log message to stream stdout and stderr instead of
211         caching values until the test run finished.
212         (_Worker._run_single_test): Log stdout and stderr in real time.
213         (_Worker._run_shard_with_binary): Log stderr and stdout buffer before ending
214         the test.
215         (_Worker.post): Provide a post with explicitly enumerated argument names.
216         * Scripts/webkitpy/layout_tests/views/metered_stream.py:
217         (MeteredStream.__init__): Differentiate verbose logging and logging with timestamps.
218         (MeteredStream.write): Allow for verbose logging without timestamps.
219         * Scripts/webkitpy/layout_tests/views/metered_stream_unittest.py:
220         (RegularTest): Add print_timestamps flag.
221         (RegularTest.setUp):
222         (RegularTest.test_logging_not_included):
223         (VerboseTest.test_log_args):
224         (VerboseWithOutTimestamp):
225         (VerboseWithOutTimestamp.test_basic): Add test for verbose logging without timestamps.
226
227 2018-05-10  Ryosuke Niwa  <rniwa@webkit.org>
228
229         build-webkit can erroneously warn about Xcode being too old
230         https://bugs.webkit.org/show_bug.cgi?id=185533
231
232         Reviewed by Dan Bernstein.
233
234         Don't assume the version number is always a single digit.
235
236         * Scripts/webkitdirs.pm:
237         (determineXcodeVersion):
238
239 2018-05-10  Ross Kirsling  <ross.kirsling@sony.com>
240
241         [WinCairo][Buildbot] Test bots need to acquire WinCairoRequirements.
242         https://bugs.webkit.org/show_bug.cgi?id=185528
243
244         Reviewed by Lucas Forschler.
245
246         * BuildSlaveSupport/build.webkit.org-config/factories.py:
247         (TestFactory.__init__):
248         * BuildSlaveSupport/build.webkit.org-config/steps.py:
249         (InstallWinCairoDependencies):
250
251 2018-05-10  Michael Catanzaro  <mcatanzaro@igalia.com>
252
253         Fix some -Wstring-op-truncation warnings
254         https://bugs.webkit.org/show_bug.cgi?id=185496
255
256         Reviewed by Alex Christensen.
257
258         We have an off-by-one in the use of strncpy. The strings would not be null-terminated if
259         the input was too long. Ensure the buffers are zero-initialized so we don't need to manually
260         set the last bucket to NUL.
261
262         * TestWebKitAPI/Tests/WTF/AtomicString.cpp:
263         (TestWebKitAPI::testAtomicStringNumber):
264         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
265         (TestWebKitAPI::testStringNumberFixedPrecision):
266         (TestWebKitAPI::testStringNumberFixedWidth):
267         (TestWebKitAPI::testStringNumber):
268
269 2018-05-10  Fujii Hironori  <Hironori.Fujii@sony.com>
270
271         [Win][MiniBrowser] Add a separate WndProc for the layered window
272         https://bugs.webkit.org/show_bug.cgi?id=185460
273
274         Reviewed by Brent Fulgham.
275
276         All WK1 related code should be moved into MiniBrowser for the
277         preparation of Bug 184770.
278
279         The layered window was using WndProc of the main window. The
280         layered window is specific only for WK1. the main window will be
281         shared among WK1 and WK2.
282
283         This change add a new WndProc for the layer window.
284
285         * MiniBrowser/win/Common.cpp:
286         (WndProc): Removed code for the layered windows.
287         (subclassForLayeredWindow): Moved into MiniBrowser.cpp.
288         * MiniBrowser/win/MiniBrowser.cpp:
289         (MiniBrowser::prepareViews): Removed the fourth argument `viewHwnd`.
290         (viewWndProc): New WndProc for the layered windows.
291         (MiniBrowser::subclassForLayeredWindow): Moved from Common.cpp.
292         * MiniBrowser/win/MiniBrowser.h:
293         (MiniBrowser::hwnd):
294         * MiniBrowser/win/WinMain.cpp:
295         (wWinMain): Added m_viewWnd.
296
297 2018-05-10  Stephan Szabo  <stephan.szabo@sony.com>
298
299         Support --verbose in run-javascriptcore-tests
300         https://bugs.webkit.org/show_bug.cgi?id=185492
301
302         Reviewed by Daniel Bates.
303
304         * Scripts/run-javascriptcore-tests:
305         (runJSCStressTests):
306
307 2018-05-10  Valerie R Young  <valerie@bocoup.com>
308
309         test262/Runner.pm: --failing-files uses results file not expectations
310         https://bugs.webkit.org/show_bug.cgi?id=185395
311
312         Reviewed by Michael Saboff.
313
314         --failing-files arg now uses results file to find failing tests
315         to rerun. It will look in the test262-results directory from whereever
316         the script is run, or a results.yaml file can be supplied via command
317         line argument.
318         --expectations arg added for suppling expectation file.
319
320         * Scripts/test262/Runner.pm:
321         (processCLI):
322         (main):
323         (loadImportFile):
324         (findAllFailing):
325
326 2018-05-10  Carlos Garcia Campos  <cgarcia@igalia.com>
327
328         [GTK] Add support for settings cookies policy and storage type in MiniBrowser
329         https://bugs.webkit.org/show_bug.cgi?id=185506
330
331         Reviewed by Philippe Normand.
332
333         Useful for testing and debugging.
334
335         * MiniBrowser/gtk/main.c:
336         (main):
337
338 2018-05-09  Chris Dumez  <cdumez@apple.com>
339
340         Unreviewed Windows build fix after r231622.
341
342         * DumpRenderTree/win/DumpRenderTree.cpp:
343         (enableExperimentalFeatures):
344
345 2018-05-09  Sihui Liu  <sihui_liu@apple.com>
346
347         Update WebKit.WebsiteDataStoreCustomPaths after r231536
348         https://bugs.webkit.org/show_bug.cgi?id=185486
349         <rdar://problem/37214391>
350
351         Reviewed by Chris Dumez.
352
353         Update WebKit.WebsiteDataStoreCustomPaths as _syncNetworkProcessCookies is async now.
354
355         * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
356         (TEST):
357
358 2018-05-09  Leo Balter  <leonardo.balter@gmail.com>
359
360         Test262-Runner: Improve the verbose output
361         https://bugs.webkit.org/show_bug.cgi?id=185491
362
363         Reviewed by Michael Saboff.
364
365         * Scripts/test262/Import.pm:
366         (transferFiles):
367         * Scripts/test262/Runner.pm:
368         (processResult):
369
370 2018-05-09  Leo Balter  <leonardo.balter@gmail.com>
371
372         Fix Test262 Runner to have DYLD_FRAMEWORK_PATH always set
373         https://bugs.webkit.org/show_bug.cgi?id=185488
374
375         Reviewed by Michael Saboff.
376
377         * Scripts/test262/Runner.pm:
378         (processCLI):
379         (getBuildPath):
380         (runTest):
381
382 2018-05-09  Richard Houle  <rhoule@apple.com>
383
384         [Cocoa] Some fields are not identified as [WKWebProcessPlugInNodeHandle isTextField]
385         https://bugs.webkit.org/show_bug.cgi?id=185260
386         <rdar://problem/39290394>
387
388         Reviewed by Tim Horton.
389
390         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
391         * TestWebKitAPI/Tests/WebKitCocoa/InjectedBundleNodeHandleIsTextField.mm: Added.
392         (-[InjectedBundleNodeHandleIsTextField isTextFieldForHTMLInputType:document:jsContext:]):
393         (-[InjectedBundleNodeHandleIsTextField webProcessPlugIn:didCreateBrowserContextController:]):
394         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
395         (-[InjectedBundleNodeHandleIsTextFieldDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
396
397 2018-05-09  Thibault Saunier  <tsaunier@igalia.com>
398
399         [tests][GStreamer]: Pass USE_PLAYBIN3 to the tests subprocess
400         https://bugs.webkit.org/show_bug.cgi?id=185481
401
402         Reviewed by Philippe Normand.
403
404         [tests][GStreamer]: Pass USE_PLAYBIN3 to the tests subprocess
405
406         * Scripts/webkitpy/port/gtk.py:
407         (GtkPort.setup_environ_for_server):
408
409 2018-05-09  Leo Balter  <leonardo.balter@gmail.com>
410
411         Set build.webkit.org to use the new Test262-runner
412         https://bugs.webkit.org/show_bug.cgi?id=184933
413
414         Reviewed by Aakash Jain.
415
416         * BuildSlaveSupport/build.webkit.org-config/steps.py:
417         (RunTest262Tests):
418         (RunTest262Tests.countFailures):
419         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
420
421 2018-05-09  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
422
423         [GTK][JHBuild] LLVM 3.7.0 build is broken with GCC 8.1
424         https://bugs.webkit.org/show_bug.cgi?id=185461
425
426         Reviewed by Michael Catanzaro.
427
428         JHBuild now compiles LLVM 6 and Mesa 18.0.3.
429
430         * gtk/jhbuild.modules:
431
432 2018-05-09  Michael Catanzaro  <mcatanzaro@igalia.com>
433
434         Unreviewed. Update OptionsWPE.cmake and NEWS for 2.21.1 release.
435
436         * wpe/manifest.txt.in: Distribute the NEWS.
437
438 2018-05-09  Michael Catanzaro  <mcatanzaro@igalia.com>
439
440         [WPE] Build cleanly with GCC 8 and ICU 60
441         https://bugs.webkit.org/show_bug.cgi?id=185462
442
443         Reviewed by Carlos Alberto Lopez Perez.
444
445         * TestWebKitAPI/CMakeLists.txt: Fix weird build failure, we were missing a directory. Not
446         sure why this was never noticed until now or why the bots are OK.
447         * gtk/jhbuild.modules: Add upstream patch to avoid warnings inside G_DEFINE_TYPE.
448         * gtk/patches/glib-cast-function-type.patch: Added.
449         * wpe/jhbuild.modules: Add upstream patch to avoid warnings inside G_DEFINE_TYPE.
450         * wpe/patches/glib-cast-function-type.patch: Added.
451
452 2018-05-06  Yusuke Suzuki  <utatane.tea@gmail.com>
453
454         [JSC][GTK][JSCONLY] Use capstone disassembler
455         https://bugs.webkit.org/show_bug.cgi?id=185283
456
457         Reviewed by Michael Catanzaro.
458
459         * gtk/manifest.txt.in:
460         * wpe/manifest.txt.in:
461
462 2018-05-09  Antti Koivisto  <antti@apple.com>
463
464         Add OptionSet::operator& and operator bool
465         https://bugs.webkit.org/show_bug.cgi?id=185306
466
467         Reviewed by Anders Carlsson.
468
469         * TestWebKitAPI/Tests/WTF/OptionSet.cpp:
470         (TestWebKitAPI::TEST):
471
472 2018-05-08  Wenson Hsieh  <wenson_hsieh@apple.com>
473
474         Consolidate WebContentReaderIOS and WebContentReaderMac into WebContentReaderCocoa
475         https://bugs.webkit.org/show_bug.cgi?id=185340
476
477         Reviewed by Tim Horton.
478
479         Adds a new API test to verify that URLs written using -[NSPasteboard writeObjects:] are pasted as anchors with
480         non-empty text in a contenteditable.
481
482         * TestWebKitAPI/Tests/WebKitCocoa/PasteMixedContent.mm:
483         (TestWebKitAPI::TEST):
484
485 2018-05-08  Valerie R Young  <valerie@bocoup.com>
486
487         test262/Runner.pm: create results dir for results of test262 run
488         https://bugs.webkit.org/show_bug.cgi?id=185392
489
490         Reviewed by Michael Saboff.
491
492         New directory test262-results created from where ever script is
493         called.
494
495         * Scripts/test262/Runner.pm:
496         (processCLI):
497
498 2018-05-08  Valerie R Young  <valerie@bocoup.com>
499
500         test262/Runner.pm: lower number of processes per core
501         https://bugs.webkit.org/show_bug.cgi?id=185426
502
503         Reviewed by Michael Saboff.
504
505         * Scripts/test262/Runner.pm:
506         (getProcesses):
507
508 2018-05-08  Leo Balter  <leonardo.balter@gmail.com>
509
510         Test262-Runner: Add base Perl UnicodeData
511         https://bugs.webkit.org/show_bug.cgi?id=185444
512
513         Reviewed by Michael Saboff.
514
515         * Scripts/test262/local/lib/perl5/unicore/lib/gc_sc/SpacePer.pl: Added.
516         * Scripts/test262/local/lib/perl5/unicore/lib/gc_sc/Word.pl: Added.
517
518 2018-05-08  Daniel Bates  <dabates@apple.com>
519
520         Add tests to ensure that the Strong Password appearance is removed on form reset
521         https://bugs.webkit.org/show_bug.cgi?id=185440
522
523         Reviewed by Ryosuke Niwa.
524
525         * TestWebKitAPI/Tests/WebKitCocoa/DidResignInputElementStrongPasswordAppearance.mm:
526         (-[DidResignInputElementStrongPasswordAppearance webProcessPlugIn:didCreateBrowserContextController:]):
527         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
528         (TEST):
529
530 2018-05-08  Daniel Bates  <dabates@apple.com>
531
532         Resign Strong Password appearance when text field value changes
533         https://bugs.webkit.org/show_bug.cgi?id=185433
534         <rdar://problem/39958508>
535
536         Reviewed by Ryosuke Niwa.
537
538         Add a unit test to ensure the injected bundle API and WebKit UI delegate SPI is invoked
539         when the field has the Strong Password button and its value changes.
540
541         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
542         (testDidResignInputElementStrongPasswordAppearanceAfterEvaluatingJavaScript):
543         (TEST):
544
545 2018-05-06  Filip Pizlo  <fpizlo@apple.com>
546
547         InPlaceAbstractState::beginBasicBlock shouldn't have to clear any abstract values
548         https://bugs.webkit.org/show_bug.cgi?id=185365
549
550         Reviewed by Saam Barati.
551         
552         Make it possible to measure compile times.
553         
554         Rolling back in after fixing cloop builds.
555
556         * Scripts/run-jsc-benchmarks:
557
558 2018-05-08  Wenson Hsieh  <wenson_hsieh@apple.com>
559
560         [iOS] WKAttachmentTestsIOS.InsertDroppedItemProvidersInOrder fails after r231396
561         https://bugs.webkit.org/show_bug.cgi?id=185414
562
563         Reviewed by Tim Horton.
564
565         Adjust a test expectation to check that the resulting DOM contains an attachment element,
566         anchor element, and another attachment element in that order. This ensures that the test
567         still passes, even after the anchor element is followed by a line break.
568
569         * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
570         (TestWebKitAPI::TEST):
571
572 2018-05-08  Commit Queue  <commit-queue@webkit.org>
573
574         Unreviewed, rolling out r231491.
575         https://bugs.webkit.org/show_bug.cgi?id=185434
576
577         Setting the Created key on a cookie does not work yet, due a
578         bug in CFNetwork (Requested by ggaren on #webkit).
579
580         Reverted changeset:
581
582         "[WKHTTPCookieStore getAllCookies] returns inconsistent
583         creation time"
584         https://bugs.webkit.org/show_bug.cgi?id=185041
585         https://trac.webkit.org/changeset/231491
586
587 2018-05-08  Valerie R Young  <valerie@bocoup.com>
588
589         test262/Runner.pm: move input files to JSTests/test262
590         https://bugs.webkit.org/show_bug.cgi?id=185389
591
592         Reviewed by Michael Saboff.
593
594         * Scripts/test262/Runner.pm:
595         (processCLI):
596
597 2018-05-08  Chris Dumez  <cdumez@apple.com>
598
599         Unreviewed, simplify Speedometer fixes landed in r231489, r231483 & r231474.
600
601         * Scripts/webkitpy/performance_tests/perftest.py:
602         (PerfTest):
603
604 2018-05-08  Ryan Haddad  <ryanhaddad@apple.com>
605
606         Unreviewed, rolling out r231468.
607
608         Broke the CLoop build
609
610         Reverted changeset:
611
612         "InPlaceAbstractState::beginBasicBlock shouldn't have to clear
613         any abstract values"
614         https://bugs.webkit.org/show_bug.cgi?id=185365
615         https://trac.webkit.org/changeset/231468
616
617 2018-05-08  Sihui Liu  <sihui_liu@apple.com>
618
619         [WKHTTPCookieStore getAllCookies] returns inconsistent creation time
620         https://bugs.webkit.org/show_bug.cgi?id=185041
621         <rdar://problem/34684214>
622
623         Reviewed by Geoffrey Garen.
624
625         Add API test Coverage.
626
627         * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
628         (TEST):
629
630 2018-05-08  Chris Dumez  <cdumez@apple.com>
631
632         Unreviewed, fix issue with running Speedometer PerfTest after r231450.
633
634         * Scripts/webkitpy/performance_tests/perftest.py:
635         (PerfTest):
636
637 2018-05-08  Chris Dumez  <cdumez@apple.com>
638
639         Unreviewed, fix issue with running Speedometer PerfTest after r231450.
640
641         * Scripts/webkitpy/performance_tests/perftest.py:
642         (PerfTest):
643
644 2018-05-07  Chris Dumez  <cdumez@apple.com>
645
646         Unreviewed, fix issue with running Speedometer PerfTest after r231450.
647
648         * Scripts/webkitpy/performance_tests/perftest.py:
649         (PerfTest):
650
651 2018-05-06  Filip Pizlo  <fpizlo@apple.com>
652
653         InPlaceAbstractState::beginBasicBlock shouldn't have to clear any abstract values
654         https://bugs.webkit.org/show_bug.cgi?id=185365
655
656         Reviewed by Saam Barati.
657         
658         Make it possible to measure compile times.
659
660         * Scripts/run-jsc-benchmarks:
661
662 2018-05-07  Leo Balter  <leonardo.balter@gmail.com>
663
664         Test262-Runner: Add base module to the local deps - unicore/Exact.pl
665         https://bugs.webkit.org/show_bug.cgi?id=185390
666
667         Reviewed by Michael Saboff.
668
669         * Scripts/test262/local/lib/perl5/unicore/Exact.pl: Added.
670
671 2018-05-07  Jonathan Bedard  <jbedard@apple.com>
672
673         Check for com.apple.datamigrator before declaring simulators booted
674         https://bugs.webkit.org/show_bug.cgi?id=185315
675         <rdar://problem/39986261>
676
677         Reviewed by David Kilzer.
678
679         * Scripts/webkitdirs.pm:
680         (waitUntilProcessNotRunning): Wait until a process is not found.
681         (relaunchIOSSimulator): Wait until com.apple.datamigrator stops running to declare
682         a simulator booted.
683         * Scripts/webkitpy/common/system/executive_mock.py:
684         (MockExecutive2.__init__): Define _running_pids.
685         * Scripts/webkitpy/xcode/simulated_device.py:
686         (SimulatedDeviceManager.initialize_devices): Call wait_until_data_migration_is_done before
687         declaring that devices have been booted, increase the timeout since data migration will frequently
688         take longer than 60 seconds, especially with multiple simulators booting.
689         (SimulatedDeviceManager.swap): Ditto.
690         (SimulatedDeviceManager):
691         (SimulatedDeviceManager.wait_until_data_migration_is_done): Wait until there are no com.apple.datamigrator
692         processes running.
693
694 2018-05-07  Daniel Bates  <dabates@apple.com>
695
696         REGRESSION (r229955): run-webkit-tests runs tests in skipped directories and subdirectories of directory given on command line
697         https://bugs.webkit.org/show_bug.cgi?id=185054
698         <rdar://problem/39773209>
699
700         Reviewed by Ryosuke Niwa.
701
702         Fallback to MacPort.CURRENT_VERSION if we are not using a known named macOS and do not have Apple Additions.
703
704         Darwin-based ports have OS version-specific test expectations and are certified to support running tests using
705         the currently shipping OS by way of a hardcoded class variable CURRENT_VERSION. The run-webkit-tests script
706         depends on the OS version to find the applicable TestExpectations files to parse to compute the list of skipped
707         tests for the port.
708
709         * Scripts/webkitpy/port/mac.py:
710         (MacPort.__init__): Fall back to MacPort.CURRENT_VERSION if we are not using a known named macOS and do not
711         have Apple Additions.
712         * Scripts/webkitpy/port/mac_unittest.py:
713         (MacTest.test_factory_with_future_version): Added.
714         (MacTest.test_factory_with_future_version_and_apple_additions): Renamed from MacTest.test_factory_with_future_version()
715         and added code to use the mock Apple Additions so that running this code with- and without- the real Apple Additions
716         produces consistent results now that the Mac port's OS version falls back to MacPort.CURRENT_VERSION when Apple Additions
717         is absent.
718
719 2018-05-07  Brian Burg  <bburg@apple.com>
720
721         Web Inspector: opt out of process swap on navigation if a Web Inspector frontend is connected
722         https://bugs.webkit.org/show_bug.cgi?id=184861
723         <rdar://problem/39153768>
724
725         Reviewed by Timothy Hatcher.
726
727         Add a new test that checks whether a new process is used for navigation when
728         an Inspector is shown. Also check that the behavior reverts to normal after
729         the Inspector has been closed.
730
731         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
732
733 2018-05-04  Wenson Hsieh  <wenson_hsieh@apple.com>
734
735         [iOS] Multiple links in Mail are dropped in a single line, and are difficult to tell apart
736         https://bugs.webkit.org/show_bug.cgi?id=185289
737         <rdar://problem/35756912>
738
739         Reviewed by Tim Horton and Darin Adler.
740
741         Augment and rebaseline some iOS drag-and-drop API tests that handle dropping URLs as a part of multi-item drop
742         sessions.
743
744         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
745         (TestWebKitAPI::TEST):
746
747 2018-05-04  Timothy Hatcher  <timothy@apple.com>
748
749         Deprecate legacy WebView and friends
750         https://bugs.webkit.org/show_bug.cgi?id=185279
751         rdar://problem/33268700
752
753         Reviewed by Tim Horton.
754
755         * MiniBrowser/Configurations/Base.xcconfig: Added GCC_PREPROCESSOR_DEFINITIONS
756         to define DISABLE_LEGACY_WEBKIT_DEPRECATIONS.
757
758 2018-05-04  Leo Balter  <leonardo.balter@gmail.com>
759
760         Test262-Runner: Add base module to the local deps - unicore/PVA.pl
761         https://bugs.webkit.org/show_bug.cgi?id=185314
762
763         Reviewed by Michael Saboff.
764
765         * Scripts/test262/local/lib/perl5/unicore/PVA.pl: Added.
766
767 2018-05-04  Wenson Hsieh  <whsieh@berkeley.edu>
768
769         REGRESSION: [ios-simulator] 3 WKWebViewAutofillTests API test failures seen with 11.3 SDK
770         https://bugs.webkit.org/show_bug.cgi?id=184196
771         <rdar://problem/39054481>
772
773         Reviewed by Tim Horton.
774
775         Removes some unnecessary workarounds to enable running app autofill tests against iOS versions
776         earlier than 11.3. Also re-enables these tests.
777
778         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
779         (TestWebKitAPI::TEST):
780         (-[UITextAutofillSuggestion initWithUsername:password:]): Deleted.
781         (+[UITextAutofillSuggestion autofillSuggestionWithUsername:password:]): Deleted.
782
783 2018-05-04  Myles C. Maxfield  <mmaxfield@apple.com>
784
785         Text shaping in the simple path is flipped in the y direction
786         https://bugs.webkit.org/show_bug.cgi?id=185062
787         <rdar://problem/39778678>
788
789         Reviewed by Simon Fraser.
790
791         Huge thanks to Ulrike Rausch of LiebeFonts for contributing the test fonts!!!
792
793         * Scripts/webkitpy/common/config/contributors.json:
794
795 2018-05-04  Leo Balter  <leonardo.balter@gmail.com>
796
797         Test262-Runner: place the processCLI inside the main call
798         https://bugs.webkit.org/show_bug.cgi?id=185304
799
800         Reviewed by Michael Saboff.
801
802         * Scripts/test262/Runner.pm:
803         (main):
804
805 2018-05-04  Carlos Garcia Campos  <cgarcia@igalia.com>
806
807         [GTK] Epiphany (GNOME Web) says "Error downloading: Service Unavailable." when trying to download an image from discogs.com
808         https://bugs.webkit.org/show_bug.cgi?id=174730
809
810         Reviewed by Michael Catanzaro.
811
812         Update unit tests to check that User-Agent header is included in HTTP download requests.
813
814         * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp:
815         (testDownloadRemoteFile):
816         (testWebViewDownloadURI):
817         (testPolicyResponseDownload):
818         (testPolicyResponseDownloadCancel):
819         (testDownloadMIMEType):
820         (testContextMenuDownloadActions):
821
822 2018-05-03  Ross Kirsling  <ross.kirsling@sony.com>
823
824         [WinCairo] Test archive must use Python zipfile, just like build product.
825         https://bugs.webkit.org/show_bug.cgi?id=185265
826
827         Reviewed by Per Arne Vollan.
828
829         * BuildSlaveSupport/test-result-archive:
830         (archive_test_results):
831         Copy over Win32-oriented archiving logic from built-product-archive.
832
833 2018-05-03  Leo Balter  <leonardo.balter@gmail.com>
834
835         cleanup modules usage for the Test262-Runner
836         https://bugs.webkit.org/show_bug.cgi?id=185263
837
838         Reviewed by Michael Saboff.
839
840         * Scripts/test262-runner:
841         * Scripts/test262/Runner.pm:
842         (processCLI):
843
844 2018-05-03  Valerie R Young  <valerie@bocoup.com>
845
846         test262/Runner.pm: minor fixes
847         https://bugs.webkit.org/show_bug.cgi?id=185250
848
849         Reviewed by Michael Saboff.
850
851         Add comments, change output and fix bug: unintended interpolation
852         of filename when running jsc.
853
854         * Scripts/test262/Runner.pm:
855         (processCLI):
856         (main):
857         (runTest):
858
859 2018-05-03  Chris Dumez  <cdumez@apple.com>
860
861         Load hangs if the WebProcess fails to launch
862         https://bugs.webkit.org/show_bug.cgi?id=185225
863         <rdar://problem/38249058>
864
865         Reviewed by Geoff Garen.
866
867         Add API test coverage.
868
869         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
870         * TestWebKitAPI/Tests/WebKitCocoa/WebContentProcessDidTerminate.mm: Added.
871         (-[CrashOnStartNavigationDelegate _webView:webContentProcessDidTerminateWithReason:]):
872         (-[CrashOnStartNavigationDelegate webView:didFinishNavigation:]):
873         (-[CrashRecoveryScriptMessageHandler userContentController:didReceiveScriptMessage:]):
874         (TEST):
875
876 2018-05-03  Don Olmstead  <don.olmstead@sony.com>
877
878         [WinCairo] Add JSC test bots
879         https://bugs.webkit.org/show_bug.cgi?id=185234
880
881         Reviewed by Per Arne Vollan.
882
883         * BuildSlaveSupport/build.webkit.org-config/config.json:
884         * BuildSlaveSupport/build.webkit.org-config/steps.py:
885         (RunJavaScriptCoreTests.start):
886
887 2018-05-03  Michael Catanzaro  <mcatanzaro@igalia.com>
888
889         WebKit should send fake macOS user agent to docs.google.com
890         https://bugs.webkit.org/show_bug.cgi?id=185165
891
892         Reviewed by Carlos Garcia Campos.
893
894         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
895         (TestWebKitAPI::TEST):
896
897 2018-05-03  Valerie R Young  <valerie@bocoup.com>
898
899         test262/Runner.pm: performance improvements
900         https://bugs.webkit.org/show_bug.cgi?id=185202
901
902         Reviewed by Michael Saboff.
903
904         Batch the tests by the number of processes, and give each process
905         a file to save results to to avoid threading. Do not parallelize
906         when running small sets of tests.
907
908         * Scripts/test262/Runner.pm:
909         (processCLI):
910         (main):
911         (processFile):
912         (processResult):
913
914 2018-05-03  Ryan Haddad  <ryanhaddad@apple.com>
915
916         Unreviewed, rolling out r231253.
917
918         The API test added with this change is crashing on the bots.
919
920         Reverted changeset:
921
922         "Web Inspector: opt out of process swap on navigation if a Web
923         Inspector frontend is connected"
924         https://bugs.webkit.org/show_bug.cgi?id=184861
925         https://trac.webkit.org/changeset/231253
926
927 2018-05-03  Carlos Garcia Campos  <cgarcia@igalia.com>
928
929         REGRESSION(r222772): [GTK][WPE] WebProcess from WebKitGtk+ 2.19.9x SIGSEVs in WebKit::WebProcess::ensureNetworkProcessConnection() at Source/WebKit/WebProcess/WebProcess.cpp:1127
930         https://bugs.webkit.org/show_bug.cgi?id=183348
931
932         Reviewed by Michael Catanzaro.
933
934         Add a test case to reproduce the crash.
935
936         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
937         (testWebViewCloseQuickly):
938         (beforeAll):
939
940 2018-05-02  Aditya Keerthi  <akeerthi@apple.com>
941
942         Can't copy and paste URLs that have no title into Mail (macOS)
943         https://bugs.webkit.org/show_bug.cgi?id=185205
944         <rdar://problem/36352406>
945
946         Reviewed by Tim Horton.
947
948         Added test to verify behavior when copying and pasting a URL without a title.
949
950         * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.html:
951         * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm:
952         (TestWebKitAPI::TEST):
953
954 2018-05-02  Carlos Alberto Lopez Perez  <clopez@igalia.com>
955
956         [GTK] Generate a JSC bundle on the 64 and 32 bit release bots and upload it to webkitgtk.org (follow-up fix)
957         https://bugs.webkit.org/show_bug.cgi?id=184699
958
959         Unreviewed follow-up fix after r231230.
960
961         * Scripts/generate-jsc-bundle:
962         (generate_wrapper_script): Quote the arguments passed to jsc.
963
964 2018-05-02  Brian Burg  <bburg@apple.com>
965
966         Web Inspector: opt out of process swap on navigation if a Web Inspector frontend is connected
967         https://bugs.webkit.org/show_bug.cgi?id=184861
968         <rdar://problem/39153768>
969
970         Reviewed by Ryosuke Niwa.
971
972         Add a new test that checks whether a new process is used for navigation when
973         an Inspector is shown. Also check that the behavior reverts to normal after
974         the Inspector has been closed.
975
976         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
977
978 2018-05-02  Valerie R Young  <valerie@bocoup.com>
979
980         test262/Runner.pm: save summary to file
981         https://bugs.webkit.org/show_bug.cgi?id=185200
982
983         Reviewed by Michael Saboff.
984
985         * Scripts/test262/Runner.pm:
986         (processCLI):
987         (main):
988         (summarizeResults):
989
990 2018-05-02  Carlos Alberto Lopez Perez  <clopez@igalia.com>
991
992         [GTK] Generate a JSC bundle on the 64 and 32 bit release bots and upload it to webkitgtk.org
993         https://bugs.webkit.org/show_bug.cgi?id=184699
994
995         Reviewed by Gustavo Noronha Silva.
996
997         This adds a new step for the GTK 64-bit release build bot and the
998         GTK 32-bit release build&test bot.
999
1000         This step will be run as one of the lasts ones (after the product
1001         is built) and will execute the script generate-jsc-bundle.
1002         This script will take care of creating a JSC bundle and uploading
1003         it to a server defined on a configuration file that has to be
1004         deployed on the bots with the required server data and credentials
1005         for this upload.
1006
1007         In this case, the built products should then be accessible at
1008         <https://webkitgtk.org/jsc-built-products>. But the implementation
1009         is not tied to any specific server. All the details about where
1010         to upload the file is done in configuration file that is kept
1011         private on each bot outside of the WebKit source tree.
1012
1013         The script also supports generating a JSC bundle locally and not
1014         uploading it anywhere. This is the default mode of running.
1015         The remote upload will only be activated if a --remote-config-file
1016         parameter is passed (which is done from the buildbot config)
1017
1018         * BuildSlaveSupport/build.webkit.org-config/config.json:
1019         * BuildSlaveSupport/build.webkit.org-config/factories.py:
1020         (BuildFactory):
1021         (BuildFactory.__init__):
1022         (TestFactory):
1023         (TestFactory.__init__):
1024         (BuildAndGenerateJSCBundleFactory):
1025         (BuildAndNonLayoutTestAndGenerateJSCBundleFactory):
1026         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1027         (GenerateJSCBundle):
1028         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
1029         * Scripts/generate-jsc-bundle: Added.
1030         (ldd_get_libs_and_interpreter):
1031         (generate_readme):
1032         (generate_wrapper_script):
1033         (copy_and_remove_rpath):
1034         (createJSCBundle):
1035         (sha256sum):
1036         (uploadJSCBundle):
1037         (main):
1038
1039 2018-05-01  Ryosuke Niwa  <rniwa@webkit.org>
1040
1041         PSON: Make WebKitTestRunner work with process swap on navigation turned on
1042         https://bugs.webkit.org/show_bug.cgi?id=185111
1043
1044         Reviewed by Chris Dumez.
1045
1046         Add the basic support for running layout tests with process-swap-on-navigation turned on.
1047
1048         First, move m_whatToDump, m_dumpPixels, m_waitToDump, and m_dumpFrameLoadCallbacks from WebContent process
1049         to UI process so that calls to waitUntilDone, dumpAsText, etc... persist across process swaps.
1050
1051         In addition, initialize the injected bundle inside a new WebContent process when the first page is created.
1052         This instantiates objects such as TestRunner, GCController, etc... in the new process. The initialization
1053         can't be done in InjectedBundle::beginTesting because some steps in InjectedBundle::initialize require
1054         the current PageGroup and Page objects. We avoid clearing databases and app cache in this case.
1055
1056         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1057         (WTR::InjectedBundle::didCreatePage): Send "Initialization" message to UI process. This message returns
1058         all the dictionary values usually present in "BeginTest" message from UI process as well as "ResumeTesting"
1059         boolean which is set when this process was created as a result of a process swap on navgation. Invoke
1060         beginTesting with BegingTestingMode::Resume when this boolean is set.
1061         (WTR::InjectedBundle::didReceiveMessageToPage):
1062         (WTR::InjectedBundle::beginTesting): Don't clear database, app cache, etc... when initializing an injected
1063         bundle after a process swap on navigation.
1064         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1065         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1066         (WTR::InjectedBundlePage::dump):
1067         (WTR::InjectedBundlePage::frameDidChangeLocation):
1068         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1069         (WTR::TestRunner::TestRunner):
1070         (WTR::TestRunner::shouldDumpPixels const): Added.
1071         (WTR::TestRunner::setDumpPixels): Added.
1072         (WTR::TestRunner::dumpAsText):
1073         (WTR::TestRunner::whatToDump const): Added.
1074         (WTR::TestRunner::setWhatToDump): Added.
1075         (WTR::TestRunner::waitUntilDone):
1076         (WTR::TestRunner::setWaitUntilDone): Added.
1077         (WTR::TestRunner::shouldWaitUntilDone): Added.
1078         (WTR::TestRunner::notifyDone):
1079         (WTR::TestRunner::forceImmediateCompletion):
1080         (WTR::TestRunner::setShouldDumpFrameLoadCallbacks): Added.
1081         (WTR::TestRunner::shouldDumpFrameLoadCallbacks): Added.
1082         (WTR::TestRunner::setAudioResult):
1083         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1084         (WTR::TestRunner::dumpChildFramesAsText):
1085         (WTR::TestRunner::dumpDOMAsWebArchive):
1086         (WTR::TestRunner::setShouldDumpFrameLoadCallbacks): Moved to cpp.
1087         (WTR::TestRunner::whatToDump const): Moved to cpp.
1088         (WTR::TestRunner::shouldDumpMainFrameScrollPosition const):
1089         (WTR::TestRunner::shouldDumpPixels const): Moved to cpp.
1090         (WTR::TestRunner::shouldDumpFrameLoadCallbacks const): Moved to cpp.
1091         (WTR::TestRunner::waitToDump const): Renamed to shouldWaitUntilDone and moved to cpp.
1092         * WebKitTestRunner/TestInvocation.cpp:
1093         (WTR::TestInvocation::TestInvocation): Initialize m_dumpFrameLoadCallbacks here.
1094         (WTR::TestInvocation::shouldLogFrameLoadDelegates const): Deleted.
1095         (WTR::TestInvocation::createTestSettingsDictionary): Extracted from invoke().
1096         (WTR::TestInvocation::invoke): Sets m_startedTesting to true immediately afte sending "BeginTest" message.
1097         m_startedTesting is later used in didReceiveSynchronousMessageFromInjectedBundle to detect whether a given
1098         "Initialization" message is sent from a regular WebContent process (m_startedTesting is false) or the one
1099         started as a result of a process swap on navigation (m_startedTesting is true).
1100         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle): Added a bunch of new messgaes to
1101         support initializing the injected bundle in a process swapped after navigation and set/get messages for
1102         the states which must persist across process swaps within a test.
1103         * WebKitTestRunner/TestInvocation.h:
1104         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
1105         * Tools/WebKitTestRunner/WhatToDump.h:
1106         (WTR::WhatToDump): Added.
1107
1108 2018-05-01  Leo Balter  <leonardo.balter@gmail.com>
1109
1110         Auto save the results for Test262
1111         https://bugs.webkit.org/show_bug.cgi?id=184926
1112
1113         Reviewed by Michael Saboff.
1114
1115         * Scripts/test262/Runner.pm:
1116         (processCLI):
1117         (main):
1118         (parseError):
1119         (processResult):
1120         (summarizeResults):
1121         * Scripts/test262/config.yaml: Renamed from Tools/Scripts/test262/test262-config.yaml.
1122
1123 2018-05-01  Jonathan Bedard  <jbedard@apple.com>
1124
1125         webkitpy: SIGKILL right after SIGTERM causes orphaned processes with 'xcrun simctl spawn'
1126         https://bugs.webkit.org/show_bug.cgi?id=185164
1127
1128         Reviewed by David Kilzer.
1129
1130         * Scripts/webkitpy/common/system/executive.py:
1131         (Executive.kill_process): First attempt will always send a SIGTERM, all subsequent attempts will
1132         send a SIGKILL. A SIGKILL with not be sent if the process is not running to avoid orphaning childen.
1133
1134 2018-05-01  Chris Dumez  <cdumez@apple.com>
1135
1136         REGRESSION (r230919): API test WebKit.AutoLayoutIntegration is a flaky failure
1137         https://bugs.webkit.org/show_bug.cgi?id=184918
1138         <rdar://problem/39705516>
1139
1140         Reviewed by Wenson Hsieh.
1141
1142         Make sure provisional load has started before calling beginLayoutAtMinimumWidth
1143         on the AutoLayoutWKWebView to restore pre-r230919 behavior. The load now starts
1144         asynchronously because we ask the client if it is OK to do the load and the policy
1145         delegates are asynchronous nowadays.
1146
1147         * TestWebKitAPI/Tests/WebKitCocoa/AutoLayoutIntegration.mm:
1148         (-[AutoLayoutWKWebView load:withWidth:expectingContentSize:resettingWidth:]):
1149         * TestWebKitAPI/cocoa/TestNavigationDelegate.h:
1150         * TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
1151         (-[TestNavigationDelegate webView:didStartProvisionalNavigation:]):
1152         (-[TestNavigationDelegate waitForDidStartProvisionalNavigation]):
1153         (-[WKWebView _test_waitForDidStartProvisionalNavigation]):
1154
1155 2018-05-01  Ross Kirsling  <ross.kirsling@sony.com>
1156
1157         [WinCairo] Align buildbot test stages with AppleWin.
1158         https://bugs.webkit.org/show_bug.cgi?id=185094
1159
1160         Reviewed by Brent Fulgham.
1161
1162         * BuildSlaveSupport/build.webkit.org-config/factories.py:
1163         (TestFactory.__init__):
1164         Do run API tests, don't run dashboard tests.
1165
1166         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1167         (RunUnitTests):
1168         Call run-api-tests with Python, not Perl (bugfix for r230998).
1169
1170         * Scripts/webkitpy/port/win.py:
1171         (WinPort.environment_for_api_tests):
1172         Retrieve necessary Windows environment variables.
1173
1174 2018-05-01  Eric Carlson  <eric.carlson@apple.com>
1175
1176         [MediaStream] remove WK1 support
1177         https://bugs.webkit.org/show_bug.cgi?id=185136
1178
1179         Reviewed by Youenn Fablet.
1180
1181         * DumpRenderTree/mac/UIDelegate.mm:
1182         (-[UIDelegate webView:decidePolicyForUserMediaRequestFromOrigin:listener:]): Deleted.
1183
1184 2018-05-01  Chris Dumez  <cdumez@apple.com>
1185
1186         [WKTR] Move navigation policy for response decision from InjectedBundle to UIProcess
1187         https://bugs.webkit.org/show_bug.cgi?id=185157
1188
1189         Reviewed by Geoffrey Garen.
1190
1191         Move navigation policy for response decision from InjectedBundle to UIProcess. This is a more
1192         common configuration and should therefore be the configuration we test by default.
1193
1194         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1195         (WTR::InjectedBundlePage::decidePolicyForResponse):
1196
1197 2018-05-01  Oleksandr Skachkov  <gskachkov@gmail.com>
1198
1199         WebAssembly: add support for stream APIs - JavaScript API
1200         https://bugs.webkit.org/show_bug.cgi?id=183442
1201
1202         Reviewed by Yusuke Suzuki and JF Bastien.
1203
1204         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1205
1206 2018-04-30  Mark Lam  <mark.lam@apple.com>
1207
1208         Apply PtrTags to the MetaAllocator and friends.
1209         https://bugs.webkit.org/show_bug.cgi?id=185110
1210         <rdar://problem/39533895>
1211
1212         Reviewed by Saam Barati.
1213
1214         Update the test to match MetaAllocator changes in WTF.
1215
1216         * TestWebKitAPI/Tests/WTF/MetaAllocator.cpp:
1217         (TestWebKitAPI::TEST_F):
1218         (WTF::tagForPtr):
1219         (WTF::ptrTagName):
1220
1221 2018-04-30  Alex Christensen  <achristensen@webkit.org>
1222
1223         Add WKUIDelegatePrivate equivalent of WKPageContextMenuClient getContextMenuFromProposedMenuAsync
1224         https://bugs.webkit.org/show_bug.cgi?id=180955
1225
1226         Reviewed by Andy Estes.
1227
1228         * TestWebKitAPI/Tests/WebKit/mac/ContextMenuImgWithVideo.mm:
1229         (-[ContextMenuImgWithVideoDelegate _webView:contextMenu:forElement:]):
1230         (-[ContextMenuImgWithVideoDelegate _webView:getContextMenuFromProposedMenu:forElement:userInfo:completionHandler:]):
1231
1232 2018-04-30  JF Bastien  <jfbastien@apple.com>
1233
1234         Use some C++17 features
1235         https://bugs.webkit.org/show_bug.cgi?id=185135
1236
1237         Reviewed by Alex Christensen.
1238
1239         * DumpRenderTree/PlatformMac.cmake:
1240         * gtk/ycm_extra_conf.py:
1241         (FlagsForFile):
1242
1243 2018-04-30  Yusuke Suzuki  <utatane.tea@gmail.com>
1244
1245         Use WordLock instead of std::mutex for Threading
1246         https://bugs.webkit.org/show_bug.cgi?id=185121
1247
1248         Reviewed by Geoffrey Garen.
1249
1250         * TestWebKitAPI/Tests/WTF/Signals.cpp:
1251         (TEST):
1252
1253 2018-04-30  Michael Catanzaro  <mcatanzaro@igalia.com>
1254
1255         [GTK] Webkit should spoof as Safari on a Mac when on Chase.com
1256         https://bugs.webkit.org/show_bug.cgi?id=185103
1257
1258         Reviewed by Carlos Garcia Campos.
1259
1260         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
1261         (TestWebKitAPI::TEST):
1262
1263 2018-04-28  Sihui Liu  <sihui_liu@apple.com>
1264
1265         [Cocoa] Set HTTPOnly flag when converting Cookie to NSHTTPCookie
1266         https://bugs.webkit.org/show_bug.cgi?id=185052
1267
1268         Reviewed by Geoffrey Garen.
1269
1270         Modified API test to provide correct test cases for HTTPOnly flag.
1271
1272         * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
1273         (TEST):
1274
1275 2018-04-28  Rick Waldron  <waldron.rick@gmail.com>
1276
1277         Token misspelled "tocken" in error message string
1278         https://bugs.webkit.org/show_bug.cgi?id=185030
1279
1280         Reviewed by Saam Barati.
1281
1282         * Scripts/test262/test262-expectations.yaml: Fix typo "tocken" => "token"
1283
1284 2018-04-27  Stephan Szabo  <stephan.szabo@sony.com>
1285
1286         [WinCairo] Support --no-copy for jsc tests in wincairo tests, add copying of dlls for copy case
1287         https://bugs.webkit.org/show_bug.cgi?id=185049
1288
1289         Reviewed by Keith Miller.
1290
1291         * Scripts/run-javascriptcore-tests:
1292         (runJSCStressTests):
1293         * Scripts/run-jsc-stress-tests:
1294
1295 2018-04-26  Ryosuke Niwa  <rniwa@webkit.org>
1296
1297         PSON: Triggering a navigation to an invalid URL creates a new WebContent process
1298         https://bugs.webkit.org/show_bug.cgi?id=185066
1299
1300         Reviewed by Youenn Fablet.
1301
1302         Added a new test case (ProcessSwap.NavigateToInvalidURL) for navigating to an invalid URL.
1303         WebKit should not swap WebContent process in this case.
1304
1305         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1306         (-[PSONNavigationDelegate webView:didFailProvisionalNavigation:withError:]):
1307         (-[PSONUIDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1308
1309 2018-04-27  Nan Wang  <n_wang@apple.com>
1310
1311         AX: Accessibility needs to know which part of the content view is visible on iOS
1312         https://bugs.webkit.org/show_bug.cgi?id=185085
1313         <rdar://problem/39801363>
1314
1315         Reviewed by Chris Fleizach.
1316
1317         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1318         (WTR::AccessibilityUIElement::stringAttributeValue):
1319
1320 2018-04-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1321
1322         [Extra zoom mode] Add a mechanism to override default viewport behaviors in extra zoom mode
1323         https://bugs.webkit.org/show_bug.cgi?id=185050
1324         <rdar://problem/39624038>
1325
1326         Reviewed by Tim Horton.
1327
1328         Remove a test that's no longer useful, now that the SPI it was testing is gone. This functionality is now
1329         tested by the layout test added in this patch.
1330
1331         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1332         * TestWebKitAPI/Tests/ios/ViewportSizingTests.mm: Removed.
1333
1334 2018-04-26  Ryan Haddad  <ryanhaddad@apple.com>
1335
1336         REGRESSION (r231039): RunUnitTests step reports disabled tests as failures
1337         https://bugs.webkit.org/show_bug.cgi?id=185061
1338
1339         Reviewed by Aakash Jain.
1340
1341         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1342         (RunUnitTests.countFailures): Return the difference between the total number of tests run and the number that passed.
1343         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py: Add a test.
1344
1345 2018-04-26  Ross Kirsling  <ross.kirsling@sony.com>
1346
1347         Add release bots for WinCairo.
1348         https://bugs.webkit.org/show_bug.cgi?id=185042
1349
1350         Reviewed by Lucas Forschler.
1351
1352         * BuildSlaveSupport/build.webkit.org-config/config.json:
1353         Add a release build bot and two test bots, replacing the outdated WinCairo release bots.
1354
1355 2018-04-26  Sihui Liu  <sihui_liu@apple.com>
1356
1357         -[WKHTTPCookieStore deleteCookie:completionHandler:] doesn't delete cookies
1358         https://bugs.webkit.org/show_bug.cgi?id=184938
1359         <rdar://problem/34737395>
1360
1361         Reviewed by Geoffrey Garen.
1362
1363         Add API test coverage.
1364
1365         * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
1366         (TEST):
1367
1368 2018-04-26  Ross Kirsling  <ross.kirsling@sony.com>
1369
1370         WinCairo test bots should run JSC tests with options for Windows command prompt.
1371         https://bugs.webkit.org/show_bug.cgi?id=185019
1372
1373         Reviewed by Per Arne Vollan.
1374
1375         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1376         (RunJavaScriptCoreTests.start):
1377
1378 2018-04-26  Ross Kirsling  <ross.kirsling@sony.com>
1379
1380         WinCairo WKL Debug Test bot is not using DRT.
1381         https://bugs.webkit.org/show_bug.cgi?id=185009
1382
1383         Reviewed by Per Arne Vollan.
1384
1385         * BuildSlaveSupport/build.webkit.org-config/config.json:
1386
1387 2018-04-26  Per Arne Vollan  <pvollan@apple.com>
1388
1389         Disable content filtering in minimal simulator mode
1390         https://bugs.webkit.org/show_bug.cgi?id=185027
1391         <rdar://problem/39736091>
1392
1393         Reviewed by Jer Noble.
1394
1395         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1396
1397 2018-04-26  Brady Eidson  <beidson@apple.com>
1398
1399         Add a setting for keeping around all processes and always reusing them per-origin.
1400         <rdar://problem/39695798> and https://bugs.webkit.org/show_bug.cgi?id=185020
1401
1402         Reviewed by Andy Estes.
1403
1404         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1405
1406 2018-04-26  Andy VanWagoner  <thetalecrafter@gmail.com>
1407
1408         [INTL] Implement Intl.PluralRules
1409         https://bugs.webkit.org/show_bug.cgi?id=184312
1410
1411         Reviewed by JF Bastien.
1412
1413         Added Intl.PluralRules feature flag.
1414
1415         * Scripts/webkitperl/FeatureList.pm:
1416         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1417
1418 2018-04-25  Michael Catanzaro  <mcatanzaro@igalia.com>
1419
1420         [WPE] Build and link against latest WPEBackend and WPEBackend-fdo
1421         https://bugs.webkit.org/show_bug.cgi?id=184643
1422
1423         Reviewed by Žan Doberšek.
1424
1425         Add missing INCLUDE_DIRS in many places.
1426
1427         Adapt to single-header WPE includes.
1428
1429         Null-initialize padding to silence -Wmissing-field-initializers. (Yuck.)
1430
1431         * TestWebKitAPI/PlatformWPE.cmake:
1432         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
1433         (testWebViewWebBackend):
1434         * TestWebKitAPI/glib/PlatformWPE.cmake:
1435         * WebKitTestRunner/EventSenderProxy.h:
1436         * WebKitTestRunner/PlatformWPE.cmake:
1437         * WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:
1438         * wpe/HeadlessViewBackend/CMakeLists.txt:
1439         * wpe/HeadlessViewBackend/HeadlessViewBackend.cpp:
1440         * wpe/HeadlessViewBackend/HeadlessViewBackend.h:
1441         * wpe/jhbuild.modules:
1442
1443 2018-04-25  Jonathan Bedard  <jbedard@apple.com>
1444
1445         REGRESSION (r230998): Bot watcher's dashboard doesn't display number of API test failures
1446         https://bugs.webkit.org/show_bug.cgi?id=184982
1447
1448         Rubber-stamped by Aakash Jain.
1449
1450         Correctly count the number of API test failures.
1451
1452         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1453         (RunUnitTests.countFailures): Count the number of test failures for the new run-api-tests.
1454         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
1455         * Scripts/webkitpy/api_tests/manager.py:
1456         (Manager.run): Disabled tests are not run.
1457
1458 2018-04-25  Jiewen Tan  <jiewen_tan@apple.com>
1459
1460         Remove access to keychain from the WebContent process
1461         https://bugs.webkit.org/show_bug.cgi?id=184428
1462         <rdar://problem/13150903>
1463
1464         Reviewed by Brent Fulgham.
1465
1466         This patch does the followings:
1467         1. Added an API test for this patch.
1468         2. Instrument DumpRenderTree and WebKitTestRunner to take advantages of new SPIs.
1469
1470         * DumpRenderTree/mac/UIDelegate.mm:
1471         (-[UIDelegate signedPublicKeyAndChallengeStringForWebView:]):
1472         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1473         * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: Added.
1474         (TestWebKitAPI::SSLKeyGeneratorTest::SetUp):
1475         (TestWebKitAPI::SSLKeyGeneratorTest::TearDown):
1476         (TestWebKitAPI::TEST_F):
1477         * WebKitTestRunner/TestController.cpp:
1478         (WTR::copySignedPublicKeyAndChallengeString):
1479         (WTR::TestController::createOtherPage):
1480         (WTR::TestController::createWebViewWithOptions):
1481
1482 2018-04-25  Wenson Hsieh  <wenson_hsieh@apple.com>
1483
1484         [Extra zoom mode] The search field on www.bing.com is missing label text
1485         https://bugs.webkit.org/show_bug.cgi?id=184975
1486         <rdar://problem/39723081>
1487
1488         Reviewed by Tim Horton.
1489
1490         Adds UIScriptController.formInputLabel, which asynchronously requests the input label text for the currently
1491         focused element in extra zoom mode.
1492
1493         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1494         (WTR::UIScriptController::formInputLabel const):
1495         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1496         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1497         (WTR::UIScriptController::formInputLabel const):
1498         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1499         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1500         (WTR::UIScriptController::formInputLabel const):
1501
1502 2018-04-25  Michael Catanzaro  <mcatanzaro@igalia.com>
1503
1504         [WPE] Should load injected bundle from builddir in developer builds
1505         https://bugs.webkit.org/show_bug.cgi?id=184983
1506
1507         Reviewed by Carlos Alberto Lopez Perez.
1508
1509         Set WEBKIT_INJECTED_BUNDLE_PATH when running WPE MiniBrowser.
1510
1511         * Scripts/run-minibrowser:
1512
1513 2018-04-25  Michael Catanzaro  <mcatanzaro@igalia.com>
1514
1515         [WPE] libgstggtk.so broken in jhbuild environment
1516         https://bugs.webkit.org/show_bug.cgi?id=184984
1517
1518         Reviewed by Carlos Alberto Lopez Perez.
1519
1520         Don't pass --enable-glx=no when building libepoxy, to ensure it's compatible with
1521         gst-plugins-good.
1522
1523         * wpe/jhbuild.modules:
1524
1525 2018-04-25  Ryosuke Niwa  <rniwa@webkit.org>
1526
1527         PSON: Don't create a new process when navigating to a blob URL, data URL, and about:blank
1528         https://bugs.webkit.org/show_bug.cgi?id=184962
1529
1530         Reviewed by Youenn Fablet.
1531
1532         Added four test cases for navigating to a blob URL, data URL, and about:blank with process-swap-on-navigation turned on.
1533
1534         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1535         (ProcessSwap.SameOriginBlobNavigation): Added.
1536         (ProcessSwap.CrossOriginBlobNavigation): Added.
1537         (ProcessSwap.NavigateToAboutBlank): Added.
1538         (ProcessSwap.NavigateToDataURL): Added.
1539
1540 2018-04-25  Michael Catanzaro  <mcatanzaro@igalia.com>
1541
1542         [WPE] Remove deprecated functions and properties from the API
1543         https://bugs.webkit.org/show_bug.cgi?id=179295
1544
1545         Reviewed by Žan Doberšek.
1546
1547         * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
1548         (testWebViewAuthenticationStorage): Disable this test for now. It will require some effort
1549         to rewrite LoadTrackingTest to not require the web view at construction time.
1550         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
1551         (testWebKitSettings): Don't test private browsing setting, which is gone.
1552         * TestWebKitAPI/glib/CMakeLists.txt: Disable TestCookieManager for now.
1553
1554 2018-04-25  Andy Estes  <aestes@apple.com>
1555
1556         [Mac] Number of drop items is always 0 when performing a DHTML drag
1557         https://bugs.webkit.org/show_bug.cgi?id=184943
1558
1559         Reviewed by Ryosuke Niwa.
1560
1561         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1562         * TestWebKitAPI/Tests/mac/DragAndDropPasteboardTests.mm:
1563         (-[DragInfo numberOfValidItemsForDrop]):
1564         (-[DragInfo setNumberOfValidItemsForDrop:]):
1565         (TestWebKitAPI::TEST):
1566         * TestWebKitAPI/Tests/mac/full-page-dropzone.html: Added.
1567
1568 2018-04-25  Jonathan Bedard  <jbedard@apple.com>
1569
1570         API test harness should be Python
1571         https://bugs.webkit.org/show_bug.cgi?id=181043
1572         <rdar://problem/36164410>
1573
1574         Reviewed by David Kilzer.
1575
1576         Run API tests from a Python script rather than Perl. The Python API tests have
1577         the same structure as the layout tests.
1578
1579         * Scripts/run-api-tests: Changed from Perl to Python.
1580         * Scripts/webkitpy/api_tests: Added.
1581         * Scripts/webkitpy/api_tests/__init__.py: Added.
1582         * Scripts/webkitpy/api_tests/manager.py: Added.
1583         (Manager):
1584         (Manager.__init__):
1585         (Manager._test_list_from_output): Construct a list of tests from the output of
1586         TestWTF and TestWebKitAPI.
1587         (Manager._find_test_subset): Given a list of all possible tests and command line
1588         arguments, return a list of tests which match the provided arguments.
1589         (Manager._collect_tests): Run TestWTF and TestWebKitAPI with --gtest_list_tests
1590         to determine which tests will be run.
1591         (Manager._print_test_result): Formatted print of a test with it's output.
1592         (Manager._print_tests_result_with_status): Print all tests and output for tests
1593         which ran with a specified exit status.
1594         (Manager.run): Collect all tests, run them and then print results from the run.
1595         * Scripts/webkitpy/api_tests/run_api_tests.py: Added.
1596         (main): Parse arguments, construct a port, early exit for illegal ports and
1597         then run tests.
1598         (run): Setup logging and printing before using the Manager to run tests.
1599         (parse_args): Use argparse to define all options used by run-api-tests.
1600         * Scripts/webkitpy/api_tests/runner.py: Added.
1601         (Runner):
1602         (Runner.__init__):
1603         (Runner._shard_tests): Split tests so that each suite runs together.
1604         (Runner.command_for_port): Run a command on the device specified by the given
1605         port object. Once <https://bugs.webkit.org/show_bug.cgi?id=175204> is completed,
1606         this function would be entirely replaced by the server_process factory owned
1607         by the port object.
1608         (Runner.run): Run all shards in the message_pool.
1609         (Runner.handle): Handle reports from child processes.
1610         (Runner.result_map_by_status): Return a mapping of tests to output for tests
1611         which exit with a specific status.
1612         (_Worker):
1613         (_Worker.__init__):
1614         (_Worker._filter_noisy_output): Filter out objc warnings since these polite the log.
1615         (_Worker._run_single_test): Runs a single test in a single child process.
1616         (_Worker._run_shard_with_binary): Attempts to run a group of tests in the same
1617         child process. If this technique fails, the remaining tests are run singly.
1618         (_Worker.handle): Run the specified shard.
1619         * Scripts/webkitpy/port/base.py:
1620         (Port):
1621         (Port.check_api_test_build): Check if TestWTF and TestWebKitAPI are built.
1622         (Port.environment_for_api_tests): Return the environment needed to run
1623         the TestWebKitAPI binary.
1624         (Port. path_to_api_test_binaries): Return a list of the path to all binaries
1625         used when running API tests.
1626         (Port._build_api_tests): Build TestWTF and TestWebKitAPI if required.
1627         * Scripts/webkitpy/port/mac.py:
1628         (MacPort.environment_for_api_tests): Enable GuardMalloc for API tests.
1629         * Scripts/webkitpy/port/server_process.py: 
1630         (ServerProcess.pop_all_buffered_stdout):
1631
1632 2018-04-25  Carlos Garcia Campos  <cgarcia@igalia.com>
1633
1634         Incorrect number of WebDriver test failures shown in the bots
1635         https://bugs.webkit.org/show_bug.cgi?id=184959
1636
1637         Reviewed by Michael Catanzaro.
1638
1639         The regular expression we are using to get the number of failures from the log is matching a particular test
1640         error output. Improve the regular expression to avoid matching other strings in the log. Ensure that only
1641         matches at the beginning of lines and add spaces after Unexpected and before the (<failures>).
1642
1643         * BuildSlaveSupport/build.webkit.org-config/steps.py:
1644         (RunWebDriverTests.commandComplete):
1645
1646 2018-04-25  Carlos Garcia Campos  <cgarcia@igalia.com>
1647
1648         [GTK] Implement MouseEvent.buttons
1649         https://bugs.webkit.org/show_bug.cgi?id=184913
1650
1651         Reviewed by Žan Doberšek.
1652
1653         Include the mouse buttons state in WTR synthesized events.
1654
1655         * WebKitTestRunner/EventSenderProxy.h:
1656         * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
1657         (WTR::EventSenderProxy::EventSenderProxy):
1658         (WTR::EventSenderProxy::createMouseButtonEvent):
1659         (WTR::EventSenderProxy::mouseDown):
1660         (WTR::EventSenderProxy::mouseUp):
1661         (WTR::EventSenderProxy::mouseMoveTo):
1662
1663 2018-04-24  Pablo Saavedra  <psaavedra@igalia.com>
1664
1665         [GTK][WPE] Fix triggered bot name on the WPE Debug Build bot
1666         https://bugs.webkit.org/show_bug.cgi?id=184954
1667
1668         Reviewed by Michael Catanzaro.
1669
1670         * BuildSlaveSupport/build.webkit.org-config/config.json:
1671
1672 2018-04-24  Saam Barati  <sbarati@apple.com>
1673
1674         Keep around a pre-warmed process when doing process swap on navigation
1675         https://bugs.webkit.org/show_bug.cgi?id=184765
1676         <rdar://problem/39685099>
1677
1678         Reviewed by Ryosuke Niwa and Brady Eidson.
1679
1680         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1681
1682 2018-04-24  Aakash Jain  <aakash_jain@apple.com>
1683
1684         [build.webkit.org] unit-tests fail when passwords.json is missing
1685         https://bugs.webkit.org/show_bug.cgi?id=180390
1686
1687         Reviewed by Carlos Alberto Lopez Perez.
1688
1689         * BuildSlaveSupport/build.webkit.org-config/loadConfig.py:
1690         (loadBuilderConfig): Add support for test_mode. Load mock passwords in test_mode.
1691         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
1692         (BuildBotConfigLoader._add_dependant_modules_to_sys_modules): Call _add_webkitpy_to_sys_path as well.
1693         (BuildBotConfigLoader._mock_open): Deleted.
1694         (BuildBotConfigLoader.load_config): Deleted.
1695
1696 2018-04-24  John Wilander  <wilander@apple.com>
1697
1698         From-Origin: Support for 'same' and 'same-site' response header, nested frame origin check
1699         https://bugs.webkit.org/show_bug.cgi?id=184560
1700         <rdar://problem/38901344>
1701
1702         Reviewed by Youenn Fablet and Daniel Bates.
1703
1704         This patch implements significant parts of https://github.com/whatwg/fetch/issues/687.
1705         We consume the From-Origin response header and only load the resource if:
1706         - The header is non-existent, empty, or invalid.
1707         - The header specifies 'same' and the resource's origin matches the originating
1708           document's origin and the origins up the frame tree.
1709         - The header specifies 'same-site' and the resource's eTLD+1 matches the originating
1710           document's eTLD+1 and the eTLD+1 of the documents up the frame tree.
1711
1712         This feature is experimental and off by default.
1713
1714         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1715         * TestWebKitAPI/Tests/WebCore/HTTPParsers.cpp: Added.
1716         (TestWebKitAPI::TEST):
1717             Tests for From-Origin header parsing.
1718
1719 2018-04-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1720
1721         Unreviewed. Update W3C WebDriver imported tests.
1722
1723         * Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py:
1724         (WebDriverW3CExecutor.__init__):
1725
1726 2018-04-24  Zan Dobersek  <zdobersek@igalia.com>
1727
1728         [WPE] Remove libgbm dependency
1729         https://bugs.webkit.org/show_bug.cgi?id=184906
1730
1731         Reviewed by Carlos Garcia Campos.
1732
1733         Stop searching for libgbm, using its compiler flags for the
1734         HeadlessViewBackend compilation and linking against the .so object.
1735         This is not necessary anymore after r230562 switched to a different
1736         backend implementation for testing.
1737
1738         * wpe/HeadlessViewBackend/CMakeLists.txt:
1739         * wpe/install-dependencies:
1740
1741 2018-04-23  Carlos Garcia Campos  <cgarcia@igalia.com>
1742
1743         [GLIB] Make it possible to use a different timeout for slow test cases in GLib tests
1744         https://bugs.webkit.org/show_bug.cgi?id=184816
1745
1746         Reviewed by Michael Catanzaro.
1747
1748         Pass a function from api test runner to glib test runner to check if a test is slow and use the given slow
1749         timeout.
1750
1751         * TestWebKitAPI/glib/TestExpectations.json:
1752         * glib/api_test_runner.py:
1753         (TestRunner._run_test_glib.is_slow_test):
1754         (TestRunner._run_test_glib):
1755         * glib/glib_test_runner.py:
1756         (GLibTestRunner.__init__):
1757         (GLibTestRunner._stop_timeout):
1758         (GLibTestRunner._subtest_start):
1759         (GLibTestRunner._subtest_end):
1760
1761 2018-04-23  Wenson Hsieh  <wenson_hsieh@apple.com>
1762
1763         [Extra zoom mode] REGRESSION(230860) Unable to change time input values using UI
1764         https://bugs.webkit.org/show_bug.cgi?id=184901
1765         <rdar://problem/39664797>
1766
1767         Reviewed by Tim Horton.
1768
1769         Introduce a new UIScriptController method to set the value of a currently focused input of type time, by
1770         interacting with the UI. See WebKit ChangeLogs for more detail.
1771
1772         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1773         (WTR::UIScriptController::setTimePickerValue):
1774         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1775         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1776         (WTR::UIScriptController::setTimePickerValue):
1777         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1778         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1779         (WTR::UIScriptController::setTimePickerValue):
1780
1781 2018-04-23  Zalan Bujtas  <zalan@apple.com>
1782
1783         [LayoutFormattingContext] Initial commit.
1784         https://bugs.webkit.org/show_bug.cgi?id=184896
1785
1786         Reviewed by Antti Koivisto.
1787
1788         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1789
1790 2018-04-23  Chris Dumez  <cdumez@apple.com>
1791
1792         [WKTR] Move navigation policy decision from the injected bundle to the UIProcess
1793         https://bugs.webkit.org/show_bug.cgi?id=184801
1794
1795         Reviewed by Geoffrey Garen.
1796
1797         Move navigation policy decision from the injected bundle to the UIProcess in WebKitTestRunner.
1798         This is a more common configuration and therefore should be the default testing configuration.
1799
1800         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1801         (WTR::InjectedBundlePage::decidePolicyForNavigationAction):
1802         Always respond with 'PassThrough' in the InjectedBundle so the UIProcess
1803         is now asked for the policy decision.
1804
1805 2018-04-23  Pablo Saavedra  <psaavedra@igalia.com>
1806
1807         [GTK][WPE] Add Debug bots (build and tests) for WPE
1808         https://bugs.webkit.org/show_bug.cgi?id=184887
1809
1810         Reviewed by Carlos Alberto Lopez Perez.
1811
1812         Deployed 2 new bots for WPE Debug: wpe-linux-bot-3 and
1813         wpe-linux-bot-4
1814
1815         Both bots have already the credentials ready to authenticated against
1816         build.webkit.org. They provides the bots for the "debug" configuration over
1817         the "WPE" platform and building for the "x86_64" architecture:
1818         WPE Linux 64-bit Debug (Build) and WPE Linux 64-bit Debug (Tests) 
1819
1820         * BuildSlaveSupport/build.webkit.org-config/config.json:
1821         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
1822
1823 2018-04-23  Chris Dumez  <cdumez@apple.com>
1824
1825         HTML String load cannot be prevented by responding 'Cancel' asynchronously in decidePolicyForNavigationAction
1826         https://bugs.webkit.org/show_bug.cgi?id=184848
1827         <rdar://problem/39145306>
1828
1829         Reviewed by Brady Eidson.
1830
1831         Add API test coverage.
1832
1833         * TestWebKitAPI/Tests/WebKitCocoa/DecidePolicyForNavigationAction.mm:
1834         (-[DecidePolicyForNavigationActionController webView:decidePolicyForNavigationAction:decisionHandler:]):
1835         (TEST):
1836
1837 2018-04-23  Michael Catanzaro  <mcatanzaro@igalia.com>
1838
1839         [GTK][WPE] TestSSL fails due to additional TLS errors returned
1840         https://bugs.webkit.org/show_bug.cgi?id=184860
1841
1842         Reviewed by Carlos Garcia Campos.
1843
1844         Add script and config file for regenerating the test certificate.
1845         Regenerate it. TestSSL no longer fails on my machine.
1846
1847         I do see a ton of network process crashes and JavaScript errors, none of
1848         which prevent the test from passing, but this commit only claims to fix
1849         the certificate validation portion of the test.
1850
1851         * TestWebKitAPI/Tests/WebKitGLib/resources/generate-test-cert.sh: Added.
1852         * TestWebKitAPI/Tests/WebKitGLib/resources/test-cert.conf: Added.
1853         * TestWebKitAPI/Tests/WebKitGLib/resources/test-cert.pem:
1854
1855 2018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1856
1857         [GLIB] ERROR: Thread was unable to be detached when running /jsc/vm test in debug
1858         https://bugs.webkit.org/show_bug.cgi?id=184815
1859
1860         Reviewed by Michael Catanzaro.
1861
1862         This is because in the test we are calling both join and detach. We should only call join.
1863
1864         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
1865         (testsJSCVirtualMachine):
1866
1867 2018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1868
1869         [GLIB] Test /jsc/prototypes crashes in debug
1870         https://bugs.webkit.org/show_bug.cgi?id=184814
1871
1872         Reviewed by Michael Catanzaro.
1873
1874         We should also call the constructor/destructor of Bar struct to ensure Foo is constructed.
1875
1876         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
1877         (barCreate):
1878         (barFree):
1879
1880 2018-04-20  Michael Catanzaro  <mcatanzaro@igalia.com>
1881
1882         REGRESSION(r228088): [SOUP] Check TLS errors for WebSockets on GTlsConnection::accept-certificate
1883         https://bugs.webkit.org/show_bug.cgi?id=184804
1884
1885         Reviewed by Carlos Garcia Campos.
1886
1887         * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:
1888         (WebSocketTest::WebSocketTest):
1889         (WebSocketTest::~WebSocketTest):
1890         (WebSocketTest::serverWebSocketCallback):
1891         (WebSocketTest::webSocketTestResultCallback):
1892         (WebSocketTest::connectToServerAndWaitForEvents):
1893         (testWebSocketTLSErrors):
1894         (beforeAll):
1895
1896 2018-04-20  Chris Dumez  <cdumez@apple.com>
1897
1898         Unreviewed, update 2 more API tests after r230876.
1899
1900         * TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm:
1901         (TEST):
1902         * TestWebKitAPI/Tests/ios/ScrollViewInsetTests.mm:
1903         (TestWebKitAPI::TEST):
1904
1905 2018-04-20  Tim Horton  <timothy_horton@apple.com>
1906
1907         Adjust geolocation feature flag
1908         https://bugs.webkit.org/show_bug.cgi?id=184856
1909
1910         Reviewed by Wenson Hsieh.
1911
1912         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1913
1914 2018-04-20  Chris Dumez  <cdumez@apple.com>
1915
1916         REGRESSION (r229828): web view doesn’t update or respond to resizing until client calls policy decision handler
1917         https://bugs.webkit.org/show_bug.cgi?id=184210
1918         <rdar://problem/39072354>
1919
1920         Reviewed by Wenson Hsieh.
1921
1922         * TestWebKitAPI/Tests/WebKit/large-red-square-image.html:
1923         * TestWebKitAPI/Tests/WebKitCocoa/dragstart-change-selection-offscreen.html:
1924         Add viewport meta tags.
1925
1926         * TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
1927         (-[WKWebView _test_waitForDidFinishNavigation]):
1928         Update _test_waitForDidFinishNavigation to wait for the next presentation update
1929         to make iOS API tests happy without having to modify each of them.
1930
1931 2018-04-20  Timothy Hatcher  <timothy@apple.com>
1932
1933         REGRESSION: API test WebKit.BackgroundColorSystemColor is failing
1934
1935         https://bugs.webkit.org/show_bug.cgi?id=184849
1936         rdar://problem/39386405
1937
1938         Reviewed by Brian Burg.
1939
1940         * TestWebKitAPI/Tests/mac/BackgroundColor.mm:
1941         (TestWebKitAPI::TEST): Use CGColorEqualToColor since we might get a different
1942         CGColor pointer from NSColor each time.
1943
1944 2018-04-20  Wenson Hsieh  <wenson_hsieh@apple.com>
1945
1946         [Extra zoom mode] Injected bundle form client should be notified when editing text fields
1947         https://bugs.webkit.org/show_bug.cgi?id=184822
1948         <rdar://problem/38807319>
1949
1950         Reviewed by Tim Horton.
1951
1952         Add WebKitTestRunner support for listening to form editing SPI hooks in the injected bundle. The new layout test
1953         installs callbacks that listen for "begin editing", "end editing", and "text changed" calls to injected bundle
1954         SPI. See other ChangeLogs for more detail.
1955
1956         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1957         (WTR::UIScriptController::enterText):
1958         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1959
1960         Add UIScriptController support for simulating text entry in the currently focused element.
1961
1962         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1963         (WTR::UIScriptController::enterText):
1964         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1965         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1966
1967         Add TestRunner bindings for registering injected bundle form client callbacks.
1968
1969         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1970         (WTR::handleTextDidChangeInTextField):
1971         (WTR::handleTextFieldDidBeginEditing):
1972         (WTR::handleTextFieldDidEndEditing):
1973         (WTR::InjectedBundle::didCreatePage):
1974
1975         Set the injected bundle form editor client.
1976
1977         (WTR::InjectedBundle::setUpInjectedBundleClients):
1978         (WTR::InjectedBundle::textDidChangeInTextField):
1979         (WTR::InjectedBundle::textFieldDidBeginEditing):
1980         (WTR::InjectedBundle::textFieldDidEndEditing):
1981         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1982         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1983         (WTR::TestRunner::installTextDidChangeInTextFieldCallback):
1984         (WTR::TestRunner::textDidChangeInTextFieldCallback):
1985         (WTR::TestRunner::installTextFieldDidBeginEditingCallback):
1986         (WTR::TestRunner::textFieldDidBeginEditingCallback):
1987         (WTR::TestRunner::installTextFieldDidEndEditingCallback):
1988         (WTR::TestRunner::textFieldDidEndEditingCallback):
1989         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1990         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1991         (WTR::UIScriptController::enterText):
1992
1993 2018-04-20  Youenn Fablet  <youenn@apple.com>
1994
1995         WebPage sometimes incorrectly rules out PDF as a mime type that can be showed
1996         https://bugs.webkit.org/show_bug.cgi?id=184369
1997
1998         Reviewed by Chris Dumez.
1999
2000         * TestWebKitAPI/Tests/WebKitCocoa/WKNavigationResponse.mm:
2001         (TEST):
2002
2003 2018-04-20  Daniel Bates  <dabates@apple.com>
2004
2005         Remove Strong Password decoration when text field type changes
2006         https://bugs.webkit.org/show_bug.cgi?id=184795
2007         <rdar://problem/38325108>
2008
2009         Reviewed by Antti Koivisto.
2010
2011         Add a unit test to ensure the injected bundle API and WebKit UI delegate SPI is invoked
2012         when the field has the Strong Password button and its type changes.
2013
2014         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2015         * TestWebKitAPI/Tests/WebKitCocoa/DidResignInputElementStrongPasswordAppearance.mm: Added.
2016         (didResignInputElementStrongPasswordAppearance):
2017         (-[DidResignInputElementStrongPasswordAppearance webProcessPlugIn:didCreateBrowserContextController:]):
2018         * TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
2019         (-[DidResignInputElementStrongPasswordAppearanceDelegate _webView:didResignInputElementStrongPasswordAppearanceWithUserInfo:]):
2020         (-[DidResignInputElementStrongPasswordAppearanceDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
2021         (TEST):
2022
2023 2018-04-20  Brady Eidson  <beidson@apple.com>
2024
2025         Add a test to verify load/unload/pageshow/pagehide all work with process swapping.
2026         https://bugs.webkit.org/show_bug.cgi?id=184807
2027
2028         Reviewed by Chris Dumez.
2029
2030         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2031         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
2032
2033 2018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2034
2035         Unreviewed. Mark TestJSC as slow in debug.
2036
2037         Only /jsc/vm is slow, but GLib API test runner only checks the test binary for GLib tests.
2038
2039         * TestWebKitAPI/glib/TestExpectations.json:
2040
2041 2018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2042
2043         [GTK] Local cross references are broken in API documentation
2044         https://bugs.webkit.org/show_bug.cgi?id=184771
2045
2046         Reviewed by Michael Catanzaro.
2047
2048         The problem is that gtkdoc-fixxref expects the links to be in the form html/modulename (like the installed
2049         ones), but we generate the documentation as modulename/html. So, links to WebKitDOM or JSC are generated as
2050         ../html/Foo. The rebase command considers html to be the module name in this case, creating broken links in all
2051         the cases.
2052
2053         * gtk/gtkdoc.py:
2054         (GTKDoc._copy_doc_files_to_output_dir): We don't have any html dir in the source tree so, we are not copying
2055         anything here.
2056         (GTKDoc._run_gtkdoc_mkhtml): Create the html dir here using html/modulename instead now.
2057         (GTKDoc._run_gtkdoc_fixxref): Pass the new directory as module dir to gtkdoc-fixxref and fix several links for
2058         which gtkdoc-fixxref always uses absolute paths.
2059         * gtk/manifest.txt.in: Update the documentation html paths and include the JSC GLib API in the tarball too.
2060
2061 2018-04-19  Brady Eidson  <beidson@apple.com>
2062
2063         Make back forward cache work with process swapping.
2064         <rdar://problem/38676604> and https://bugs.webkit.org/show_bug.cgi?id=184793
2065
2066         Reviewed by Chris Dumez.
2067
2068         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2069
2070 2018-04-19  David Kilzer  <ddkilzer@apple.com>
2071
2072         Enable Objective-C weak references
2073         <https://webkit.org/b/184789>
2074         <rdar://problem/39571716>
2075
2076         Reviewed by Dan Bernstein.
2077
2078         * ContentExtensionTester/Configurations/Base.xcconfig:
2079         (CLANG_ENABLE_OBJC_WEAK): Enable.
2080         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2081         (CLANG_ENABLE_OBJC_WEAK): Enable.
2082         * ImageDiff/cg/Configurations/Base.xcconfig:
2083         (CLANG_ENABLE_OBJC_WEAK): Enable.
2084         * MiniBrowser/Configurations/Base.xcconfig:
2085         (CLANG_ENABLE_OBJC_WEAK): Enable.
2086         * TestWebKitAPI/Configurations/Base.xcconfig:
2087         (CLANG_ENABLE_OBJC_WEAK): Enable.
2088         * WebEditingTester/Configurations/Base.xcconfig:
2089         (CLANG_ENABLE_OBJC_ARC): Re-order.
2090         * WebKitLauncher/Configurations/Base.xcconfig: Add newline at
2091         end of file.
2092         (CLANG_ENABLE_OBJC_WEAK): Enable.
2093         * WebKitTestRunner/Configurations/Base.xcconfig:
2094         (CLANG_ENABLE_OBJC_WEAK): Enable.
2095
2096 2018-04-19  Chris Dumez  <cdumez@apple.com>
2097
2098         REGRESSION (r229133): decidePolicyForNavigationAction not called for loading an HTML string
2099         https://bugs.webkit.org/show_bug.cgi?id=184209
2100         <rdar://problem/39145306>
2101
2102         Reviewed by Ryosuke Niwa.
2103
2104         Add API test coverage.
2105
2106         * TestWebKitAPI/Tests/WebKitCocoa/DecidePolicyForNavigationAction.mm:
2107         (TEST):
2108
2109 2018-04-18  Ross Kirsling  <ross.kirsling@sony.com>
2110
2111         [WinCairo][EWS] Build bot should clean user temp directory each time.
2112         https://bugs.webkit.org/show_bug.cgi?id=184761
2113
2114         Reviewed by Lucas Forschler.
2115
2116         * EWSTools/Start-Queue.ps1:
2117         Clean user's temp directory before each build, so that Windows git doesn't fill it up over time.
2118
2119 2018-04-18  Ross Kirsling  <ross.kirsling@sony.com>
2120
2121         Buildbots using Python zipfile should enable compression
2122         https://bugs.webkit.org/show_bug.cgi?id=184759
2123
2124         Reviewed by Lucas Forschler.
2125
2126         * BuildSlaveSupport/built-product-archive:
2127         (createZipManually):
2128         Default is to archive without compressing, so tell it to compress as well. 
2129
2130 2018-04-18  Nan Wang  <n_wang@apple.com>
2131
2132         AX: [macOS] WebKit hangs when triggering an alert from an AOM increment event
2133         https://bugs.webkit.org/show_bug.cgi?id=184742
2134
2135         Reviewed by Chris Fleizach.
2136
2137         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2138         (AccessibilityUIElement::increment):
2139         (AccessibilityUIElement::decrement):
2140         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2141         (WTR::AccessibilityUIElement::asyncIncrement):
2142         (WTR::AccessibilityUIElement::asyncDecrement):
2143         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2144         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2145         (WTR::AccessibilityUIElement::increment):
2146         (WTR::AccessibilityUIElement::decrement):
2147         (WTR::AccessibilityUIElement::asyncIncrement):
2148         (WTR::AccessibilityUIElement::asyncDecrement):
2149
2150 2018-04-18  Ross Kirsling  <ross.kirsling@sony.com>
2151
2152         Fix archive step for WinCairo build bot.
2153         https://bugs.webkit.org/show_bug.cgi?id=184715
2154
2155         Reviewed by Lucas Forschler.
2156
2157         * BuildSlaveSupport/built-product-archive:
2158         (archiveBuiltProduct):
2159         (extractBuiltProduct):
2160
2161 2018-04-18  Sihui Liu  <sihui_liu@apple.com>
2162
2163         REGRESSION: Using the reload button while offline pushes identical pages onto the back/forward list
2164         https://bugs.webkit.org/show_bug.cgi?id=184570
2165         <rdar://problem/34807323>
2166
2167         Reviewed by Chris Dumez.
2168
2169         Add API test coverage.
2170
2171         * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm:
2172         (TEST):
2173
2174 2018-04-18  Chris Dumez  <cdumez@apple.com>
2175
2176         Add support for converting a local window to a remote window
2177         https://bugs.webkit.org/show_bug.cgi?id=184515
2178         <rdar://problem/39011318>
2179
2180         Reviewed by Ryosuke Niwa.
2181
2182         * MiniBrowser/mac/AppDelegate.m:
2183         (defaultConfiguration):
2184         * MiniBrowser/mac/SettingsController.h:
2185         * MiniBrowser/mac/SettingsController.m:
2186         (-[SettingsController _populateMenu]):
2187         (-[SettingsController validateMenuItem:]):
2188         (-[SettingsController processSwapOnWindowOpenWithOpenerEnabled]):
2189         (-[SettingsController toggleProcessSwapOnWindowOpenWithOpener:]):
2190         Add menu entry in minibrowser to turn on process swap on cross-origin window.open().
2191
2192         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2193         Turn on process swap on cross-origin window.open() for corresponding test and update
2194         test to expect that a new WebProcess is created.
2195
2196         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2197         (WTR::InjectedBundlePage::decidePolicyForResponse):
2198         Add null checks for injectedBundle.testRunner(). When we swap process on navigation,
2199         the InjectedBundlePage::decidePolicyForResponse() gets called in the new process.
2200         In this new process, we have constructed a InjectedBundlePage for the page but we
2201         have not initialized the InjectedBundle members such as testRunner.
2202
2203         * WebKitTestRunner/TestController.cpp:
2204         (WTR::TestController::createWebViewWithOptions):
2205         (WTR::updateTestOptionsFromTestHeader):
2206         * WebKitTestRunner/TestOptions.h:
2207         (WTR::TestOptions::hasSameInitializationOptions const):
2208         Add a way for layout tests to turn on process swap on navigation via a test header.
2209
2210 2018-04-18  Yusuke Suzuki  <utatane.tea@gmail.com>
2211
2212         Unreviewed, reland r230697, r230720, and r230724.
2213         https://bugs.webkit.org/show_bug.cgi?id=184600
2214
2215         * Scripts/run-jsc-stress-tests:
2216
2217 2018-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2218
2219         [GLIB] Make it possible to handle JSCClass external properties not added to the prototype
2220         https://bugs.webkit.org/show_bug.cgi?id=184687
2221
2222         Reviewed by Michael Catanzaro.
2223
2224         Add test cases for the new API.
2225
2226         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
2227         (fooCreate):
2228         (fooFree):
2229         (fooGetProperty):
2230         (fooSetProperty):
2231         (testJSCPromises):
2232         (testJSCGarbageCollector):
2233         (testsJSCVirtualMachine):
2234         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp:
2235         (windowObjectClearedCallback):
2236
2237 2018-04-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2238
2239         [Extra zoom mode] Programmatically changing focus when an element already has focus is a confusing experience
2240         https://bugs.webkit.org/show_bug.cgi?id=184635
2241         <rdar://problem/39440642>
2242
2243         Reviewed by Tim Horton.
2244
2245         Add plumbing to support invoking `didHideKeyboardCallback` and `didShowKeyboardCallback` when (respectively)
2246         dismissing or presenting fullscreen input view controllers in extra zoom mode.
2247
2248         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2249         (-[TestRunnerWKWebView initWithFrame:configuration:]):
2250         (-[TestRunnerWKWebView dealloc]):
2251         (-[TestRunnerWKWebView _invokeShowKeyboardCallbackIfNecessary]):
2252         (-[TestRunnerWKWebView _invokeHideKeyboardCallbackIfNecessary]):
2253         (-[TestRunnerWKWebView _keyboardDidShow:]):
2254         (-[TestRunnerWKWebView _keyboardDidHide:]):
2255         (-[TestRunnerWKWebView _webView:didPresentFocusedElementViewController:]):
2256         (-[TestRunnerWKWebView _webView:didDismissFocusedElementViewController:]):
2257
2258 2018-04-17  Michael Catanzaro  <mcatanzaro@igalia.com>
2259
2260         [GTK] Webkit should spoof as Safari on a Mac for Outlook.com
2261         https://bugs.webkit.org/show_bug.cgi?id=184573
2262
2263         Reviewed by Carlos Alberto Lopez Perez.
2264
2265         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
2266         (TestWebKitAPI::TEST):
2267
2268 2018-04-17  Fujii Hironori  <Hironori.Fujii@sony.com>
2269
2270         [WinCairo][TestWebKitAPI] Implement PlatformWebView for TestWebKit
2271         https://bugs.webkit.org/show_bug.cgi?id=184524
2272
2273         Reviewed by Alex Christensen.
2274
2275         Resurrect PlatformWebView for Windows port which was removed in Bug 104607.
2276
2277         * TestWebKitAPI/PlatformWebView.h:
2278         * TestWebKitAPI/PlatformWin.cmake:
2279         * TestWebKitAPI/win/InjectedBundleControllerWin.cpp: Added.
2280         (TestWebKitAPI::InjectedBundleController::platformInitialize):
2281         * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Added.
2282         (TestWebKitAPI::Util::moduleDirectory):
2283         (TestWebKitAPI::Util::createInjectedBundlePath):
2284         (TestWebKitAPI::Util::createURLForResource):
2285         (TestWebKitAPI::Util::URLForNonExistentResource):
2286         (TestWebKitAPI::Util::isKeyDown):
2287         * TestWebKitAPI/win/PlatformWebViewWin.cpp: Added.
2288         (TestWebKitAPI::PlatformWebView::registerWindowClass):
2289         (TestWebKitAPI::PlatformWebView::PlatformWebView):
2290         (TestWebKitAPI::PlatformWebView::initialize):
2291         (TestWebKitAPI::PlatformWebView::~PlatformWebView):
2292         (TestWebKitAPI::PlatformWebView::page const):
2293         (TestWebKitAPI::PlatformWebView::resizeTo):
2294         (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress):
2295         (TestWebKitAPI::PlatformWebView::simulateAltKeyPress):
2296         (TestWebKitAPI::PlatformWebView::simulateRightClick):
2297         (TestWebKitAPI::PlatformWebView::simulateMouseMove):
2298         (TestWebKitAPI::PlatformWebView::wndProc):
2299         * TestWebKitAPI/win/UtilitiesWin.cpp: Added.
2300         (TestWebKitAPI::Util::run):
2301         (TestWebKitAPI::Util::spinRunLoop):
2302         (TestWebKitAPI::Util::sleep):
2303
2304 2018-04-17  Jonathan Bedard  <jbedard@apple.com>
2305
2306         Fix hasher tests for system with 32 bit longs
2307         https://bugs.webkit.org/show_bug.cgi?id=184708
2308         <rdar://problem/39459977>
2309
2310         Reviewed by Mark Lam.
2311
2312         Some systems have 32 bit longs. The Hasher WTF tests should handle this case.
2313
2314         * TestWebKitAPI/Tests/WTF/Hasher.cpp:
2315         (TestWebKitAPI::TEST):
2316
2317 2018-04-17  Commit Queue  <commit-queue@webkit.org>
2318
2319         Unreviewed, rolling out r230697, r230720, and r230724.
2320         https://bugs.webkit.org/show_bug.cgi?id=184717
2321
2322         These caused multiple failures on the Test262 testers.
2323         (Requested by mlewis13 on #webkit).
2324
2325         Reverted changesets:
2326
2327         "[WebAssembly][Modules] Prototype wasm import"
2328         https://bugs.webkit.org/show_bug.cgi?id=184600
2329         https://trac.webkit.org/changeset/230697
2330
2331         "[WebAssembly][Modules] Implement function import from wasm
2332         modules"
2333         https://bugs.webkit.org/show_bug.cgi?id=184689
2334         https://trac.webkit.org/changeset/230720
2335
2336         "[JSC] Rename runWebAssembly to runWebAssemblySuite"
2337         https://bugs.webkit.org/show_bug.cgi?id=184703
2338         https://trac.webkit.org/changeset/230724
2339
2340 2018-04-17  Jonathan Bedard  <jbedard@apple.com>
2341
2342         Unreviewed rollout of r230632. Regression in memory usage.
2343
2344         That bug tracked in https://bugs.webkit.org/show_bug.cgi?id=184569.
2345
2346         * DumpRenderTree/TestOptions.h:
2347         * DumpRenderTree/mac/DumpRenderTree.mm:
2348         (runTest):
2349         (shouldOverrideAndDisableCSSAnimationsAndCSSTransitionsBackedByWebAnimationsPreference): Deleted.
2350         * WebKitTestRunner/TestController.cpp:
2351         (WTR::TestController::resetPreferencesToConsistentValues):
2352         * WebKitTestRunner/TestOptions.cpp:
2353         (WTR::TestOptions::TestOptions):
2354         (WTR::isLegacyAnimationEngineTestPath): Deleted.
2355         * WebKitTestRunner/TestOptions.h:
2356
2357 2018-04-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2358
2359         [JSC] Rename runWebAssembly to runWebAssemblySuite
2360         https://bugs.webkit.org/show_bug.cgi?id=184703
2361
2362         Reviewed by JF Bastien.
2363
2364         * Scripts/run-jsc-stress-tests:
2365
2366 2018-04-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2367
2368         [WebAssembly][Modules] Implement function import from wasm modules
2369         https://bugs.webkit.org/show_bug.cgi?id=184689
2370
2371         Reviewed by JF Bastien.
2372
2373         Add runWebAssemblyDirect, which runs wasm file directly.
2374
2375         * Scripts/run-jsc-stress-tests:
2376
2377 2018-04-17  Saam Barati  <sbarati@apple.com>
2378
2379         Add system trace points for process launch and for initializeWebProcess
2380         https://bugs.webkit.org/show_bug.cgi?id=184669
2381
2382         Reviewed by Simon Fraser.
2383
2384         * Tracing/SystemTracePoints.plist:
2385
2386 2018-04-17  Ross Kirsling  <ross.kirsling@sony.com>
2387
2388         Add debug bots for WinCairo.
2389         https://bugs.webkit.org/show_bug.cgi?id=184663
2390
2391         Reviewed by Lucas Forschler.
2392
2393         * BuildSlaveSupport/build.webkit.org-config/config.json:
2394         Add a debug build bot and two debug test bots.
2395
2396         * BuildSlaveSupport/build.webkit.org-config/loadConfig.py:
2397         * BuildSlaveSupport/build.webkit.org-config/templates/root.html:
2398         Add a WinCairo category to build.webkit.org.
2399
2400 2018-04-17  Zalan Bujtas  <zalan@apple.com>
2401
2402         [LayoutReloaded] Set inline-block box position.
2403         https://bugs.webkit.org/show_bug.cgi?id=184690
2404
2405         Reviewed by Antti Koivisto.
2406
2407         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2408         (InlineFormattingContext.prototype._handleInlineBlock):
2409         * LayoutReloaded/Utils.js:
2410         (Utils._dumpBox):
2411         * LayoutReloaded/test/inline-block-with-fixed-width-height.html:
2412
2413 2018-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2414
2415         [GLIB] Add API to clear JSCContext uncaught exception
2416         https://bugs.webkit.org/show_bug.cgi?id=184685
2417
2418         Reviewed by Žan Doberšek.
2419
2420         Add test cases for the new API.
2421
2422         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
2423         (testJSCExceptions):
2424
2425 2018-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2426
2427         [GLIB] Add API to query, delete and enumerate properties
2428         https://bugs.webkit.org/show_bug.cgi?id=184647
2429
2430         Reviewed by Michael Catanzaro.
2431
2432         Add test cases for the new API.
2433
2434         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
2435         (testJSCObject):
2436         (testJSCClass):
2437         (testJSCPrototypes):
2438
2439 2018-04-16  Zalan Bujtas  <zalan@apple.com>
2440
2441         [LayoutReloaded] Add support for replaced box.
2442         https://bugs.webkit.org/show_bug.cgi?id=184680
2443
2444         Reviewed by Antti Koivisto.
2445
2446         Basic support for inline replaced.
2447
2448         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2449         (InlineFormattingContext.prototype._handleInlineBox):
2450         (InlineFormattingContext.prototype._handleInlineBlock):
2451         (InlineFormattingContext.prototype._handleReplaced):
2452         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
2453         (Line.prototype.lastLineBox):
2454         (Line.prototype.addInlineBox):
2455         (Line.prototype.addInlineContainerBox): Deleted.
2456         * LayoutReloaded/TreeBuilder.js:
2457         (TreeBuilder.prototype._createAndAttachBox):
2458         * LayoutReloaded/Utils.js:
2459         (Utils._dumpBox):
2460         * LayoutReloaded/test/index.html:
2461         * LayoutReloaded/test/inline-simple-replaced.html: Added.
2462
2463 2018-04-16  Zalan Bujtas  <zalan@apple.com>
2464
2465         [LayoutReloaded] Minor InlineFormattingContext::layout() cleanup.
2466         https://bugs.webkit.org/show_bug.cgi?id=184679
2467
2468         Reviewed by Antti Koivisto.
2469
2470         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2471         (InlineFormattingContext):
2472         (InlineFormattingContext.prototype.layout):
2473         (InlineFormattingContext.prototype._handleInlineContainer):
2474         (InlineFormattingContext.prototype._handleInlineContent):
2475         (InlineFormattingContext.prototype._handleInlineBlock):
2476         (InlineFormattingContext.prototype._handleReplacedBox):
2477         (InlineFormattingContext.prototype._clearNeedsLayoutAndMoveToNextSibling):
2478         (InlineFormattingContext.prototype._handleInlineBlockContainer): Deleted.
2479         (InlineFormattingContext.prototype._clearAndMoveToNext): Deleted.
2480
2481 2018-04-16  Zalan Bujtas  <zalan@apple.com>
2482
2483         [LayoutReloaded] Introduce fragmentation state/context.
2484         https://bugs.webkit.org/show_bug.cgi?id=184677
2485
2486         Reviewed by Antti Koivisto.
2487
2488         State/context for fragmented content (multicol, regions, pagination etc).
2489
2490         * LayoutReloaded/FormattingContext/FragmentationContext.js: Added.
2491         (FragmentationContext):
2492         * LayoutReloaded/FormattingState/FragmentationState.js: Added.
2493         (FragmentationState):
2494         (FragmentationState.prototype.formattingState):
2495
2496 2018-04-16  Andy Estes  <aestes@apple.com>
2497
2498         [iOS] Enable WKPDFView by default
2499         https://bugs.webkit.org/show_bug.cgi?id=184675
2500         <rdar://problem/27885452>
2501
2502         Reviewed by Darin Adler.
2503
2504         * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
2505
2506 2018-04-16  Leo Balter  <leonardo.balter@gmail.com>
2507
2508         Perl-based Test262 runner
2509         https://bugs.webkit.org/show_bug.cgi?id=183343
2510
2511         Reviewed by Michael Saboff.
2512
2513         * Scripts/test262-helpers/README.md: Added.
2514         * Scripts/test262-helpers/agent.js: Added.
2515         (262.getGlobal):
2516         (262.setGlobal):
2517         (262.destroy):
2518         (262.IsHTMLDDA):
2519         * Scripts/test262-helpers/cpanfile: Added.
2520         * Scripts/test262-helpers/cpanfile.snapshot: Added.
2521         * Scripts/test262-helpers/test262-runner.pl: Added.
2522         (main):
2523         (processFile):
2524         (getScenarios):
2525         (addScenario):
2526         (compileTest):
2527         (runTest):
2528         (processResult):
2529         (getTempFile):
2530         (getContents):
2531         (parseData):
2532         (getHarness):
2533         * Scripts/test262-helpers/tests.log: Added.
2534
2535 2018-04-15  Andy Estes  <aestes@apple.com>
2536
2537         [iOS] Add API tests for PDF find-in-page
2538         https://bugs.webkit.org/show_bug.cgi?id=184634
2539
2540         Reviewed by Dan Bernstein.
2541
2542         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2543         * TestWebKitAPI/Tests/WebKit/find.pdf: Added.
2544         * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
2545         (-[TestFindDelegate findString]):
2546         (-[TestFindDelegate _webView:didCountMatches:forString:]):
2547         (-[TestFindDelegate _webView:didFindMatches:forString:withMatchIndex:]):
2548         (-[TestFindDelegate _webView:didFailToFindString:]):
2549         (loadWebView):
2550         (TEST):
2551
2552 2018-04-13  Zalan Bujtas  <zalan@apple.com>
2553
2554         [LayoutReloaded] Update class documentation
2555         https://bugs.webkit.org/show_bug.cgi?id=184625
2556
2557         Reviewed by Antti Koivisto.
2558
2559         * LayoutReloaded/DisplayTree/Box.js:
2560         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2561         * LayoutReloaded/FormattingContext/BlockFormatting/BlockMarginCollapse.js:
2562         * LayoutReloaded/FormattingContext/FloatingContext.js:
2563         * LayoutReloaded/FormattingContext/FormattingContext.js:
2564         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2565         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
2566         * LayoutReloaded/FormattingState/BlockFormattingState.js:
2567         * LayoutReloaded/FormattingState/FloatingState.js:
2568         * LayoutReloaded/FormattingState/FormattingState.js:
2569         * LayoutReloaded/FormattingState/InlineFormattingState.js:
2570         * LayoutReloaded/LayoutState.js:
2571         * LayoutReloaded/LayoutTree/BlockContainer.js:
2572         * LayoutReloaded/LayoutTree/Box.js:
2573         * LayoutReloaded/LayoutTree/Container.js:
2574         * LayoutReloaded/LayoutTree/InlineBox.js:
2575         * LayoutReloaded/LayoutTree/InlineContainer.js:
2576         * LayoutReloaded/LayoutTree/Text.js:
2577         * LayoutReloaded/misc/headers/BlockContainer.h: Removed.
2578         * LayoutReloaded/misc/headers/BlockFormattingContext.h: Removed.
2579         * LayoutReloaded/misc/headers/BlockMarginCollapse.h: Removed.
2580         * LayoutReloaded/misc/headers/Box.h: Removed.
2581         * LayoutReloaded/misc/headers/Container.h: Removed.
2582         * LayoutReloaded/misc/headers/FloatingContext.h: Removed.
2583         * LayoutReloaded/misc/headers/FormattingContext.h: Removed.
2584         * LayoutReloaded/misc/headers/InitialBlockContainer.h: Removed.
2585         * LayoutReloaded/misc/headers/InlineBox.h: Removed.
2586         * LayoutReloaded/misc/headers/LayoutContext.h: Removed.
2587         * LayoutReloaded/misc/headers/Line.h: Removed.
2588         * LayoutReloaded/misc/headers/Text.h: Removed.
2589
2590 2018-04-13  Zalan Bujtas  <zalan@apple.com>
2591
2592         [LayoutReloaded] Add simple implementation for FormattingState::markNeedsLayout()
2593         https://bugs.webkit.org/show_bug.cgi?id=184621
2594
2595         Reviewed by Antti Koivisto.
2596
2597         This is just a simple, mark ancestors dirty implementation.
2598
2599         * LayoutReloaded/FormattingState/FormattingState.js:
2600         (FormattingState.prototype.markNeedsLayout):
2601         * LayoutReloaded/LayoutState.js:
2602         (LayoutState.prototype.markNeedsLayout):
2603         (LayoutState.prototype.setNeedsLayoutById): Deleted.
2604         (LayoutState.prototype.setNeedsLayout): Deleted.
2605         * LayoutReloaded/TreeBuilder.js:
2606         (TreeBuilder.prototype._createAndAttachBox):
2607         (TreeBuilder.prototype._findBox): Deleted.
2608         * LayoutReloaded/Utils.js:
2609         (Utils.layoutBoxById):
2610         * LayoutReloaded/test/index.html:
2611         * LayoutReloaded/test/simple-incremental-layout-with-static-content.html:
2612
2613 2018-04-13  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2614
2615         [WPE] [webkitpy] The driver requirements should be checked before starting the tests
2616         https://bugs.webkit.org/show_bug.cgi?id=184595
2617
2618         Reviewed by Michael Catanzaro.
2619
2620         Ensure Driver.check_driver() is checked at check_sys_deps() time.
2621
2622         * Scripts/webkitpy/port/wpe.py:
2623         (WPEPort.check_sys_deps):
2624
2625 2018-04-13  Zalan Bujtas  <zalan@apple.com>
2626
2627         Rebaseline LayoutReloaded patch file (collectRenderersWithNeedsLayout).
2628
2629         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
2630
2631 2018-04-13  Jonathan Bedard  <jbedard@apple.com>
2632
2633         Boot fewer simulators in CI/EWS machines
2634         https://bugs.webkit.org/show_bug.cgi?id=184594
2635         <rdar://problem/39188082>
2636
2637         Reviewed by Alexey Proskuryakov.
2638
2639         This is a temporary workaround fro <rdar://problem/39393590>.
2640
2641         * Scripts/webkitpy/xcode/simulated_device.py:
2642         (SimulatedDeviceManager): Treat simulators as taking 6 gigs instead of 2.
2643
2644 2018-04-13  Brady Eidson  <beidson@apple.com>
2645
2646         Introduce SuspendedPageProxy to keep old web processes around after their WebPageProxy has been swapped to a new one.
2647         https://bugs.webkit.org/show_bug.cgi?id=184559
2648
2649         Reviewed by Alex Christensen.
2650
2651         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2652
2653 2018-04-13  Chris Dumez  <cdumez@apple.com>
2654
2655         input.webkitEntries does not work as expected when folder contains accented chars
2656         https://bugs.webkit.org/show_bug.cgi?id=184517
2657         <rdar://problem/39265537>
2658
2659         Reviewed by Alex Christensen.
2660
2661         Add API test coverage.
2662
2663         * TestWebKitAPI/Tests/WebCore/FileSystem.cpp:
2664         (TestWebKitAPI::TEST_F):
2665
2666 2018-04-13  Thibault Saunier  <tsaunier@igalia.com>
2667
2668         Update my emails ordering in contributors.json
2669         https://bugs.webkit.org/show_bug.cgi?id=184587
2670
2671         Rubber-stamped by Philippe Normand.
2672
2673         Bugzilla seems to pick up tsaunier@igalia.com which is not the one I use there.
2674
2675         * Scripts/webkitpy/common/config/contributors.json:
2676
2677 2018-04-13  Michael Catanzaro  <mcatanzaro@igalia.com>
2678
2679         [WPE] xkbcommon: ERROR: failed to add default include path /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesWPE/Root/share/X11/xkb
2680         https://bugs.webkit.org/show_bug.cgi?id=184388
2681
2682         Reviewed by Carlos Alberto Lopez Perez.
2683
2684         Remove libxkbcommon from the JHBuild environment. We could alternatively add
2685         xkeyboard-config, but there doesn't seem to be any need to build libxkbcommon because I do
2686         not believe it depends on anything else in the JHBuild environment.
2687
2688         * wpe/install-dependencies:
2689         * wpe/jhbuild.modules:
2690
2691 2018-04-12  Antoine Quint  <graouts@apple.com>
2692
2693         [Web Animations] Turn CSS Animations and CSS Transitions as Web Animations on by default
2694         https://bugs.webkit.org/show_bug.cgi?id=184569
2695         <rdar://problem/38671301>
2696
2697         Reviewed by Jon Lee.
2698
2699         We set the default value for the CSS Animations and CSS Transitions as Web Animations flag to true
2700         but override it to be false always in the LayoutTests/legacy-animation-engine directory.
2701
2702         * DumpRenderTree/TestOptions.h:
2703         * DumpRenderTree/mac/DumpRenderTree.mm:
2704         (shouldOverrideAndDisableCSSAnimationsAndCSSTransitionsBackedByWebAnimationsPreference):
2705         (runTest):
2706         * WebKitTestRunner/TestController.cpp:
2707         (WTR::TestController::resetPreferencesToConsistentValues):
2708         * WebKitTestRunner/TestOptions.cpp:
2709         (WTR::isLegacyAnimationEngineTestPath):
2710         (WTR::TestOptions::TestOptions):
2711         * WebKitTestRunner/TestOptions.h:
2712
2713 2018-04-13  Carlos Garcia Campos  <cgarcia@igalia.com>
2714
2715         [GLIB] Tests WTF_RefPtr.ReleaseInNonMainThread and WTF_RefPtr.ReleaseInNonMainThreadDestroyInMainThread are crashing since they were added
2716         https://bugs.webkit.org/show_bug.cgi?id=184531
2717
2718         Reviewed by Michael Catanzaro.
2719
2720         It's not a bug in WebKit, but in the tests. The problem is that those tests are using RunLoop::main() but main
2721         run loop hasn't been initialized. ReleaseInNonMainThread doesn't really need to initialize the main run loop if
2722         we change Util::run() to always use RunLop::current() instead of RunLoop::main(). But
2723         ReleaseInNonMainThreadDestroyInMainThread ends up scheduling a task to the main thread, and the generic
2724         implementation fo that uses RunLoop::main(), so we need to initialize the main loop in this case.
2725
2726         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2727         (TestWebKitAPI::TEST): Call RunLoop::initializeMainRunLoop().
2728         * TestWebKitAPI/glib/UtilitiesGLib.cpp:
2729         (TestWebKitAPI::Util::run): Use RunLop::current() to stop the current run loop.
2730         (TestWebKitAPI::Util::sleep): Ditto.
2731
2732 2018-04-12  Zalan Bujtas  <zalan@apple.com>
2733
2734         [LayoutReloaded] Add support for incremental layout
2735         https://bugs.webkit.org/show_bug.cgi?id=184578
2736
2737         Reviewed by Antti Koivisto.
2738
2739         * LayoutReloaded/Layout.js:
2740         (layout):
2741         * LayoutReloaded/LayoutState.js:
2742         (LayoutState.prototype.rootContainer):
2743         (LayoutState.prototype.setNeedsLayoutById):
2744         * LayoutReloaded/Utils.js:
2745         (Utils.layoutTreeDump):
2746         * LayoutReloaded/test/TestHarness.js:
2747         (verifyLayout):
2748         (runLayout):
2749         (verifyLayoutTreeDump): Deleted.
2750         * LayoutReloaded/test/index.html:
2751         * LayoutReloaded/test/simple-incremental-layout-with-static-content.html: Added.
2752
2753 2018-04-12  Zalan Bujtas  <zalan@apple.com>
2754
2755         [LayoutReloaded] Move root container ownership to layout state
2756         https://bugs.webkit.org/show_bug.cgi?id=184575
2757
2758         Reviewed by Antti Koivisto.
2759
2760         Now the root container is on the associated layout state (ICB only at this point though).
2761
2762         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2763         (BlockFormattingContext.prototype.layout):
2764         * LayoutReloaded/FormattingContext/FormattingContext.js:
2765         (FormattingContext.prototype._layoutOutOfFlowDescendants):
2766         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2767         (InlineFormattingContext.prototype._handleInlineBlockContainer):
2768         (InlineFormattingContext.prototype._handleFloatingBox):
2769         * LayoutReloaded/Layout.js:
2770         (layout):
2771         * LayoutReloaded/LayoutState.js:
2772         (LayoutState):
2773         (LayoutState.prototype.formattingContext):
2774         (LayoutState.prototype.establishedFormattingState):
2775         (LayoutState.prototype.formattingStateForBox):
2776         (LayoutState.prototype.needsLayout):
2777         (LayoutState.prototype.displayBox):
2778         (LayoutState.prototype._formattingContext):
2779         (LayoutState.prototype.layout): Deleted.
2780         (LayoutState.prototype.formattingStates): Deleted.
2781         (LayoutState.prototype.initialDisplayBox): Deleted.
2782         * LayoutReloaded/Utils.js:
2783         (Utils._dumpBox):
2784         (Utils._findDisplayBox): Deleted.
2785
2786 2018-04-12  Jonathan Bedard  <jbedard@apple.com>
2787
2788         Fix --build-directory flag for run-webkit-tests
2789         https://bugs.webkit.org/show_bug.cgi?id=184545
2790         <rdar://problem/39385080>
2791
2792         Rubber-stamped by Aakash Jain.
2793
2794         The --build-directory path does not work with iOS-Simulator.
2795
2796         * Scripts/webkitpy/port/base.py:
2797         (Port._build_path): Use the port configuration to calculate the root directory.
2798         * Scripts/webkitpy/port/base_unittest.py:
2799         (PortTest.test_build_path): Test build directories for embedded configurations.
2800
2801 2018-04-12  Ross Kirsling  <ross.kirsling@sony.com>
2802
2803         pemfile.py should not assume POSIX line endings
2804         https://bugs.webkit.org/show_bug.cgi?id=184507
2805
2806         Reviewed by Daniel Bates.
2807
2808         * Scripts/webkitpy/common/system/pemfile.py:
2809         (_parse_pem_format):
2810         * Scripts/webkitpy/common/system/pemfile_unittest.py:
2811         (PemFileTest.test_parse_crlf):
2812         (PemFileTest.test_parse_cr):
2813
2814 2018-04-12  Zalan Bujtas  <zalan@apple.com>
2815
2816         [LayoutReloaded] Minor cleanup in LayoutSate
2817         https://bugs.webkit.org/show_bug.cgi?id=184546
2818
2819         Reviewed by Antti Koivisto.
2820
2821         * LayoutReloaded/FormattingContext/FormattingContext.js:
2822         (FormattingContext.isInFormattingContext):
2823         * LayoutReloaded/FormattingState/FormattingState.js:
2824         (FormattingState.prototype.displayBoxes):
2825         (FormattingState.prototype.displayBox):
2826         (FormattingState.prototype._markSubTreeNeedsLayout):
2827         (FormattingState):
2828         (FormattingState.prototype.displayBoxMap): Deleted.
2829         * LayoutReloaded/LayoutState.js:
2830         (LayoutState.prototype.formattingStateForBox):
2831         (LayoutState.prototype.needsLayout):
2832         (LayoutState.prototype.displayBox):
2833         (LayoutState.prototype._createFormattingState):
2834         (LayoutState):
2835         * LayoutReloaded/LayoutTree/Box.js:
2836         (Layout.Box.prototype.isFormattingContextDescendant): Deleted.
2837         * LayoutReloaded/LayoutTree/Container.js:
2838         (Layout.Container.prototype.isContainingBlockDescendant): Deleted.
2839         * LayoutReloaded/Utils.js:
2840         (Utils._findDisplayBox):
2841
2842 2018-04-12  Zalan Bujtas  <zalan@apple.com>
2843
2844         [LayoutReloaded] Introduce needsLayout to InlineFormattingContext
2845         https://bugs.webkit.org/show_bug.cgi?id=184538
2846
2847         Reviewed by Antti Koivisto.
2848
2849         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2850         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
2851         (BlockFormattingContext):
2852         (BlockFormattingContext.prototype._firstInFlowChildWithNeedsLayout): Deleted.
2853         (BlockFormattingContext.prototype._nextInFlowSiblingWithNeedsLayout): Deleted.
2854         * LayoutReloaded/FormattingContext/FormattingContext.js:
2855         (FormattingContext.prototype._firstInFlowChildWithNeedsLayout):
2856         (FormattingContext.prototype._nextInFlowSiblingWithNeedsLayout):
2857         (FormattingContext):
2858         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2859         (InlineFormattingContext.prototype.layout):
2860         (InlineFormattingContext.prototype._handleInlineContainer):
2861         (InlineFormattingContext.prototype._handleInlineBlockContainer):
2862         (InlineFormattingContext.prototype._handleInlineContent):
2863         (InlineFormattingContext.prototype._clearAndMoveToNext):
2864         (InlineFormattingContext):
2865
2866 2018-04-12  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2867
2868         [GStreamer] Speed up GStreamer dependency build by removing examples compilation
2869         https://bugs.webkit.org/show_bug.cgi?id=184528
2870
2871         Reviewed by Philippe Normand.
2872
2873         * gstreamer/jhbuild.modules: Added --disable-examples for GStreamer package.
2874
2875 2018-04-12  Zan Dobersek  <zdobersek@igalia.com>
2876
2877         [WPE] Switch testing process to using WPEBackend-fdo
2878         https://bugs.webkit.org/show_bug.cgi?id=184357
2879
2880         Reviewed by Carlos Alberto Lopez Perez.
2881
2882         Switch WPE testing to using the WPEBackend-fdo implementation that
2883         depends on the WL_bind_wayland_display EGL extension, as defined under
2884         the freedesktop.org project.
2885         https://cgit.freedesktop.org/mesa/mesa/tree/docs/specs/WL_bind_wayland_display.spec
2886
2887         HeadlessViewBackend is refactored to use the WPEBackend-fdo API, but
2888         otherwise is not changed in functionality.
2889
2890         Unit tests now have to unconditionally use HeadlessViewBackend as a
2891         wpe_view_backend provider, since WPEBackend-fdo does not provide a
2892         default wpe_view_backend implementation. Unit tests covering that are
2893         adjusted to instead use a mock wpe_view_backend interface.
2894
2895         * Scripts/webkitdirs.pm:
2896         (builtDylibPathForName): Fix the libWPEWebKit.so name to also include
2897         the API version that was added in r230449.
2898         * Scripts/webkitpy/port/waylanddriver.py:
2899         (WaylandDriver._setup_environ_for_test): Export EGL_PLATFORM=wayland.
2900         * Scripts/webkitpy/port/wpe.py:
2901         (WPEPort._driver_class): Use WaylandDriver by default.
2902         * TestWebKitAPI/PlatformWebView.h:
2903         (): Deleted.
2904         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
2905         (testWebViewWebBackend):
2906         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
2907         (Test::createWebViewBackend):
2908         * TestWebKitAPI/wpe/PlatformWebViewWPE.cpp:
2909         (TestWebKitAPI::PlatformWebView::~PlatformWebView):
2910         (TestWebKitAPI::PlatformWebView::initialize):
2911         * wpe/HeadlessViewBackend/CMakeLists.txt:
2912         * wpe/HeadlessViewBackend/HeadlessViewBackend.cpp:
2913         (getEGLDisplay):
2914         (HeadlessViewBackend::HeadlessViewBackend):
2915         (HeadlessViewBackend::~HeadlessViewBackend):
2916         (HeadlessViewBackend::backend const):
2917         (HeadlessViewBackend::createSnapshot):
2918         (HeadlessViewBackend::performUpdate):
2919         (HeadlessViewBackend::makeCurrent): Deleted.
2920         * wpe/HeadlessViewBackend/HeadlessViewBackend.h:
2921         * wpe/jhbuild.modules: Module name cleanup. Dyz version is bumped.
2922
2923 2018-04-12  Carlos Garcia Campos  <cgarcia@igalia.com>
2924
2925         [GTK] Switch to use always complex text code path
2926         https://bugs.webkit.org/show_bug.cgi?id=183285
2927
2928         Reviewed by Michael Catanzaro.
2929
2930         Keep the auto mode for the layout tests to avoid having to rebaseline a lot of tests.
2931
2932         * WebKitTestRunner/gtk/main.cpp:
2933         (main): Set WEBKIT_FORCE_COMPLEX_TEXT to 0 unless it's already present in the environment.
2934
2935 2018-04-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2936
2937         [GLIB] Handle strings containing null characters
2938         https://bugs.webkit.org/show_bug.cgi?id=184450
2939
2940         Reviewed by Michael Catanzaro.
2941
2942         Add test case for strings with null characters and update all calls to evaluate to pass the script length.
2943
2944         * TestWebKitAPI/PlatformGTK.cmake:
2945         * TestWebKitAPI/PlatformWPE.cmake:
2946         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
2947         (testJSCBasic):
2948         (testJSCFunction):
2949         (testJSCObject):
2950         (testJSCClass):
2951         (testJSCPrototypes):
2952         (testJSCExceptions):
2953         (testJSCPromises):
2954         (testJSCGarbageCollector):
2955         (testJSCWeakValue):
2956         (testsJSCVirtualMachine):
2957         (testsJSCAutocleanups):
2958         * TestWebKitAPI/Tests/JavaScriptCore/glib/script.js: Added.
2959         * TestWebKitAPI/Tests/WebKitGLib/DOMElementTest.cpp:
2960         (DOMElementTest::testAutoFill):
2961         * TestWebKitAPI/Tests/WebKitGLib/EditorTest.cpp:
2962         (WebKitWebEditorTest::testSelectionChanged):
2963         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
2964         (WebKitFrameTest::testJavaScriptValues):
2965         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
2966         (consoleMessageSentCallback):
2967         (methodCallCallback):
2968
2969 2018-04-11  Zan Dobersek  <zdobersek@igalia.com>
2970
2971         [WPE] Make WebKitWebViewBackend object mandatory for webkit_web_view_new*() constructors
2972         https://bugs.webkit.org/show_bug.cgi?id=184513
2973
2974         Reviewed by Michael Catanzaro.
2975
2976         Update the WPE-specific testWebViewWebBackend() test case, removing the
2977         test that passes a null WebKitWebViewBackend object to the
2978         webkit_web_view_new() call.
2979
2980         Helper createWebViewBackend() that's called via Test::createWebView()
2981         variations is updated to, in case of not using the headless backend,
2982         return a WebKitWebViewBackend instance that wraps around a
2983         default wpe_view_backend object.
2984
2985         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
2986         (testWebViewWebBackend):
2987         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
2988         (Test::createWebViewBackend):
2989
2990 2018-04-11  Zalan Bujtas  <zalan@apple.com>
2991
2992         [LayoutReloaded] Introduce needsLayout flag
2993         https://bugs.webkit.org/show_bug.cgi?id=184527
2994
2995         Reviewed by Antti Koivisto.
2996
2997         Use the formatting state to mark boxes dirty.
2998
2999         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3000         (BlockFormattingContext.prototype.layout):
3001         (BlockFormattingContext.prototype._firstInFlowChildWithNeedsLayout):
3002         (BlockFormattingContext.prototype._nextInFlowSiblingWithNeedsLayout):
3003         (BlockFormattingContext):
3004         * LayoutReloaded/FormattingContext/FormattingContext.js:
3005         (FormattingContext.prototype._layoutOutOfFlowDescendants):
3006         * LayoutReloaded/FormattingState/FormattingState.js:
3007         (FormattingState):
3008         (FormattingState.prototype.markNeedsLayout):
3009         (FormattingState.prototype.clearNeedsLayout):
3010         (FormattingState.prototype.needsLayout):
3011         (FormattingState.prototype.layoutNeeded):
3012         (FormattingState.prototype._markSubTreeNeedsLayout):
3013         * LayoutReloaded/LayoutState.js:
3014         (LayoutState.prototype.formattingStateForBox):
3015         (LayoutState.prototype.setNeedsLayout):
3016         (LayoutState.prototype.needsLayout):
3017         * LayoutReloaded/LayoutTree/Box.js:
3018         (Layout.Box.prototype.isFormattingContextDescendant):
3019         * LayoutReloaded/LayoutTree/Container.js:
3020         (Layout.Container.prototype.isContainingBlockDescendant):
3021
3022 2018-04-11  Jonathan Bedard  <jbedard@apple.com>
3023
3024         Fix TestInvocation class for newer versions of clang.
3025         https://bugs.webkit.org/show_bug.cgi?id=184508
3026         <rdar://problem/39328648>
3027
3028         Reviewed by Alexey Proskuryakov.
3029
3030         Declare TestInvocation to be final so it does not require a virtual destructor.
3031
3032         * WebKitTestRunner/TestInvocation.h:
3033
3034 2018-04-10  Alex Christensen  <achristensen@webkit.org>
3035
3036         IDN spoofing with Hebrew combining characters
3037         https://bugs.webkit.org/show_bug.cgi?id=184472
3038         <rdar://problem/39148687>
3039
3040         Reviewed by Brent Fulgham.
3041
3042         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
3043         (TestWebKitAPI::TEST):
3044
3045 2018-04-11  Wenson Hsieh  <wenson_hsieh@apple.com>
3046
3047         [Extra zoom mode] Missing label when focusing a <select> with a title attribute but no associated <label>
3048         https://bugs.webkit.org/show_bug.cgi?id=184352
3049         <rdar://problem/39237683>
3050
3051         Reviewed by Andy Estes.
3052
3053         Add support for UIScriptController::selectFormPopoverTitle, which returns the title of the current select
3054         popover's UITableViewController (for testing purposes).
3055
3056         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3057         (WTR::UIScriptController::selectFormPopoverTitle const):
3058         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3059         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3060         (WTR::UIScriptController::selectFormPopoverTitle const):
3061         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3062         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3063         (WTR::UIScriptController::selectFormPopoverTitle const):
3064
3065 2018-04-10  Nan Wang  <n_wang@apple.com>
3066
3067         AX: Expose strong password fields on iOS
3068         https://bugs.webkit.org/show_bug.cgi?id=184465
3069         <rdar://problem/39325104>
3070
3071         Reviewed by Chris Fleizach.
3072
3073         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3074         (AccessibilityUIElement::boolAttributeValue):
3075         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3076         (WTR::AccessibilityUIElement::boolAttributeValue):
3077
3078 2018-04-10  Zalan Bujtas  <zalan@apple.com>
3079
3080         [LayoutReloaded] Add support for out-of-flow descendants in inline formatting context.
3081         https://bugs.webkit.org/show_bug.cgi?id=184454
3082
3083         Reviewed by Antti Koivisto.
3084
3085         When the containing block of an out-of-flow positioned element establishes an inline formatting context.
3086         This is mostly about moving out-of-flow logic from BlockFormattingContext to the base class.
3087
3088         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3089         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
3090         (BlockFormattingContext):
3091         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants): Deleted.
3092         (BlockFormattingContext.prototype._computeOutOfFlowWidth): Deleted.
3093         (BlockFormattingContext.prototype._computeInFlowWidth): Deleted.
3094         (BlockFormattingContext.prototype._computeOutOfFlowHeight): Deleted.
3095         (BlockFormattingContext.prototype._computeOutOfFlowPosition): Deleted.
3096         (BlockFormattingContext.prototype._shrinkToFitWidth): Deleted.
3097         * LayoutReloaded/FormattingContext/FormattingContext.js:
3098         (FormattingContext.prototype._placeInFlowPositionedChildren):
3099         (FormattingContext.prototype._computeInFlowWidth):
3100         (FormattingContext.prototype._layoutOutOfFlowDescendants):
3101         (FormattingContext.prototype._computeOutOfFlowWidth):
3102         (FormattingContext.prototype._computeOutOfFlowHeight):
3103         (FormattingContext.prototype._computeOutOfFlowPosition):
3104         (FormattingContext.prototype._shrinkToFitWidth):
3105         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3106         (InlineFormattingContext.prototype.layout):
3107         (InlineFormattingContext.prototype._handleInlineContainer):
3108         (InlineFormattingContext.prototype._handleInlineBlockContainer):
3109         (InlineFormattingContext.prototype._placeOutOfFlowDescendants): Deleted.
3110         * LayoutReloaded/test/index.html:
3111         * LayoutReloaded/test/inline-with-out-of-flow-descendant.html: Added.
3112
3113 2018-04-09  Zan Dobersek  <zdobersek@igalia.com>
3114
3115         WKTR: Enable DOM cache, SW registration directory cleanup on non-Cocoa platforms
3116         https://bugs.webkit.org/show_bug.cgi?id=184414
3117
3118         Reviewed by Michael Catanzaro.
3119
3120         Enable clearServiceWorkerRegistrations(), clearDOMCache() and
3121         clearDOMCaches() implementations in WebKitTestRunner's TestController
3122         class for non-Cocoa platforms. Implementations depend on the generic
3123         WK2 C API that other ports can leverage as well.
3124
3125         The clearDOMCache() and clearDOMCaches() calls are now operational for
3126         tests that invoke them. clearServiceWorkerRegistrations() and
3127         clearDOMCaches() are also called between each test, cleaning up relevant
3128         resources.
3129
3130         The TestController::getAllStorageAccessEntries() stub for non-Cocoa
3131         platforms is moved into the main !PLATFORM(COCOA) block.
3132
3133         * WebKitTestRunner/TestController.cpp:
3134         (WTR::TestController::getAllStorageAccessEntries):
3135         (WTR::clearServiceWorkerRegistrationsCallback):
3136         (WTR::TestController::clearServiceWorkerRegistrations):
3137         (WTR::clearDOMCacheCallback):
3138         (WTR::TestController::clearDOMCache):
3139         (WTR::TestController::clearDOMCaches):
3140
3141 2018-04-09  Zalan Bujtas  <zalan@apple.com>
3142
3143         [LayoutReloaded] Add support for relatively positioned containers in inline formatting context.
3144         https://bugs.webkit.org/show_bug.cgi?id=184439
3145
3146         Reviewed by Antti Koivisto.
3147
3148         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3149         (BlockFormattingContext.prototype._placeInFlowPositionedChildren): Deleted.
3150         (BlockFormattingContext.prototype._computeInFlowPositionedPosition): Deleted.
3151         * LayoutReloaded/FormattingContext/FormattingContext.js:
3152         (FormattingContext.prototype._computeInFlowPositionedPosition):
3153         (FormattingContext.prototype._placeInFlowPositionedChildren):
3154         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3155         (InlineFormattingContext.prototype._placeInFlowPositionedChildren): Deleted.
3156         * LayoutReloaded/Utils.js:
3157         (Utils._dumpBox):
3158         (Utils._dumpLines.):
3159         (Utils._dumpLines):
3160         (Utils.precisionRoundWithDecimals):
3161         (Utils.precisionRound):
3162         (Utils):
3163         * LayoutReloaded/test/index.html:
3164         * LayoutReloaded/test/inline-with-relative-positioning.html: Added.
3165
3166 2018-04-09  Zalan Bujtas  <zalan@apple.com>
3167
3168         [LayoutReloaded] Remove Layout.InitialContainingBlock class
3169         https://bugs.webkit.org/show_bug.cgi?id=184436
3170
3171         Reviewed by Antti Koivisto.
3172
3173         * LayoutReloaded/LayoutTree/Box.js:
3174         (Layout.Box.prototype.establishesBlockFormattingContext):
3175         * LayoutReloaded/LayoutTree/InitialBlockContainer.js: Removed.
3176         * LayoutReloaded/TreeBuilder.js:
3177         (TreeBuilder.prototype.createTree):
3178         * LayoutReloaded/test/index.html:
3179
3180 2018-04-09  Zalan Bujtas  <zalan@apple.com>
3181
3182         [LayoutReloaded] Add support for inline-block.
3183         https://bugs.webkit.org/show_bug.cgi?id=184434
3184
3185         Reviewed by Antti Koivisto.
3186
3187         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3188         (InlineFormattingContext):
3189         (InlineFormattingContext.prototype.layout):
3190         (InlineFormattingContext.prototype._handleInlineContainer):
3191         (InlineFormattingContext.prototype._handleInlineBlockContainer):
3192         (InlineFormattingContext.prototype._handleInlineContent):
3193         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3194         (Line.prototype.addInlineContainerBox):
3195         (Line.prototype.addTextLineBox):
3196         (Line):
3197         * LayoutReloaded/LayoutTree/Box.js:
3198         (Layout.Box.prototype.isInlineBlockBox):
3199         * LayoutReloaded/Utils.js:
3200         (LayoutRect.prototype.growHorizontally):
3201         (Utils.isBlockContainerElement):
3202         (Utils.isInlineBlockElement):
3203         (Utils._dumpLines.):
3204         (Utils._dumpLines):
3205         * LayoutReloaded/test/index.html:
3206         * LayoutReloaded/test/inline-block-with-fixed-width-height.html: Added.
3207
3208 2018-04-09  Timothy Hatcher  <timothy@apple.com>
3209
3210         Add support for setting a background color on WKWebView and WKView
3211         https://bugs.webkit.org/show_bug.cgi?id=184426
3212
3213         Reviewed by Wenson Hsieh.
3214
3215         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3216         * TestWebKitAPI/Tests/mac/BackgroundColor.mm: Added.
3217
3218 2018-04-09  Charlie Turner  <cturner@igalia.com>
3219
3220         [WPE] Add some missing install dependencies
3221         https://bugs.webkit.org/show_bug.cgi?id=184383
3222
3223         Reviewed by Michael Catanzaro.
3224
3225         * wpe/install-dependencies:
3226
3227 2018-04-09  Sihui Liu  <sihui_liu@apple.com>
3228
3229         REGRESSION(r229929): localStorage is broken for WebInspector
3230         https://bugs.webkit.org/show_bug.cgi?id=184382
3231         <rdar://problem/39257355>
3232
3233         Reviewed by Chris Dumez.
3234
3235         * TestWebKitAPI/Tests/WebKitCocoa/LocalStoragePersistence.mm:
3236         (TEST):
3237         * TestWebKitAPI/Tests/WebKitCocoa/localstorage-empty-string-value.html:
3238
3239 2018-04-09  Zan Dobersek  <zdobersek@igalia.com>
3240
3241         Unreviewed follow-up to r230389.
3242
3243         * WebKitTestRunner/TestController.cpp:
3244         (WTR::TestController::platformAdjustContext): Use the 'ServiceWorkers'
3245         subdirectory for the temporary testing-purpose SW registration directory
3246         like it's used in Cocoa's TestController, addressing the review comment
3247         that I forgot about.
3248
3249 2018-04-08  Zan Dobersek  <zdobersek@igalia.com>
3250
3251         Non-Cocoa ports use default directory for ServiceWorker data during testing
3252         https://bugs.webkit.org/show_bug.cgi?id=183784
3253
3254         Reviewed by Youenn Fablet.
3255
3256         * WebKitTestRunner/TestController.cpp:
3257         (WTR::TestController::platformAdjustContext): Set the service worker registration
3258         directory through the new WKWebsiteDataStore API for non-Cocoa ports.
3259
3260 2018-04-08  Zalan Bujtas  <zalan@apple.com>
3261
3262         [LayoutReloaded] Adjust line with inline container's margin border and padding
3263         https://bugs.webkit.org/show_bug.cgi?id=184409
3264
3265         Reviewed by Antti Koivisto.
3266
3267         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3268         (InlineFormattingContext.prototype.layout):
3269         (InlineFormattingContext.prototype._handleFloatingBox):
3270         (InlineFormattingContext.prototype._adjustLineForInlineContainerStart):
3271         (InlineFormattingContext.prototype._adjustLineForInlineContainerEnd):
3272         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3273         (Line.prototype.shrink):
3274         (Line.prototype.adjustWithOffset):
3275         (Line.prototype.moveContentHorizontally):
3276         (Line.prototype.addTextLineBox):
3277         (Line):
3278         (Line.prototype.addFloatingBox): Deleted.
3279         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
3280         * LayoutReloaded/test/index.html:
3281         * LayoutReloaded/test/inline-with-padding-border-margin-offsets.html: Added.
3282
3283 2018-04-07  Zalan Bujtas  <zalan@apple.com>
3284
3285         [LayoutReloaded] Add support for InlineContainer
3286         https://bugs.webkit.org/show_bug.cgi?id=184394
3287
3288         Reviewed by Antti Koivisto.
3289
3290         * LayoutReloaded/FormattingContext/FormattingContext.js:
3291         (FormattingContext.prototype._addToLayoutQueue):
3292         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3293         (InlineFormattingContext.prototype.layout):
3294         (InlineFormattingContext.prototype._handleInlineContent):
3295         (InlineFormattingContext.prototype._handleFloatingBox):
3296         (InlineFormattingContext.prototype._adjustLineForInlineContainerStart):
3297         (InlineFormattingContext.prototype._adjustLineForInlineContainerEnd):
3298         (InlineFormattingContext.prototype._placeInFlowPositionedChildren):
3299         (InlineFormattingContext.prototype._placeOutOfFlowDescendants):
3300         (InlineFormattingContext.prototype._createNewLine):
3301         (InlineFormattingContext.prototype._handleContent): Deleted.
3302         * LayoutReloaded/LayoutState.js:
3303         (LayoutState.prototype._createFormattingState):
3304         * LayoutReloaded/LayoutTree/Box.js:
3305         (Layout.Box.prototype.isContainer):
3306         (Layout.Box.prototype.isInlineContainer):
3307         (Layout.Box.prototype.isInlineBox):
3308         * LayoutReloaded/LayoutTree/Container.js:
3309         (Layout.Container.prototype.isContainer): Deleted.
3310         * LayoutReloaded/LayoutTree/InlineContainer.js: Added.
3311         (Layout.InlineContainer):
3312         * LayoutReloaded/TreeBuilder.js:
3313         (TreeBuilder.prototype._createAndAttachBox):
3314         * LayoutReloaded/Utils.js:
3315         (Utils._dumpBox):
3316         (Utils.precisionRound):
3317         (Utils):
3318         * LayoutReloaded/test/index.html:
3319         * LayoutReloaded/test/inline-content-simple2.html: Added.
3320         * LayoutReloaded/test/inline-floating1.html: Added.
3321         * LayoutReloaded/test/inline-formatting-context-floats1.html: Added.
3322         * LayoutReloaded/test/inline-formatting-context-floats2.html: Added.
3323
3324 2018-04-07  Timothy Hatcher  <timothy@apple.com>
3325
3326         Use the system's link color when system appearance is desired for a WebView.
3327
3328         https://bugs.webkit.org/show_bug.cgi?id=184353
3329         rdar://problem/9420053
3330
3331         Reviewed by Wenson Hsieh.
3332
3333         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3334         * TestWebKitAPI/Tests/WebKitCocoa/SystemColors.mm: Added.
3335         (TestWebKitAPI::WebKit::LinkColor):
3336         (TestWebKitAPI::WebKit::LinkColorWithSystemAppearance):
3337
3338 2018-04-06  Zalan Bujtas  <zalan@apple.com>
3339
3340         Rebaseline LayoutReloaded patch file.
3341
3342         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
3343
3344 2018-04-06  Fujii Hironori  <Hironori.Fujii@sony.com>
3345
3346         [Win][WebCore] Expose a constant for scrollbar pixels per line (cScrollbarPixelsPerLine)
3347         https://bugs.webkit.org/show_bug.cgi?id=184296
3348
3349         Reviewed by Alex Christensen.
3350
3351         * DumpRenderTree/win/EventSender.cpp:
3352         (mouseScrollBy): Removed the duplicated cScrollbarPixelsPerLine
3353         definition. Use WebCore::cScrollbarPixelsPerLine.
3354
3355 2018-04-06  Zalan Bujtas  <zalan@apple.com>
3356
3357         Rebaseline LayoutReloaded patch file.
3358
3359         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
3360
3361 2018-04-05  Youenn Fablet  <youenn@apple.com>
3362
3363         Test expectation updater should handle Win bot results
3364         https://bugs.webkit.org/show_bug.cgi?id=184274
3365
3366         Reviewed by Ryosuke Niwa.
3367
3368         Add processing of win bot results.
3369         They will update platform/win results.
3370
3371         Updated the script so that if there is no mac-wk2 results, it will still process specific results.
3372
3373         * Scripts/webkitpy/common/net/bugzilla/test_expectation_updater.py:
3374         (TestExpectationUpdater.__init__):
3375         (TestExpectationUpdater._bot_type):
3376         (TestExpectationUpdater.do_update):
3377         * Scripts/webkitpy/common/net/bugzilla/test_expectation_updater_unittest.py:
3378         (MockAttachment):
3379         (MockAttachment.__init__):
3380         (MockAttachment.contents):
3381         (MockBugzilla):
3382         (MockBugzilla.__init__):
3383         (MockBugzilla.fetch_bug):
3384         (MockBugzilla.attachments):
3385         (MockZip):
3386         (MockZip.__init__):
3387         (MockZip.unzip):
3388         (MockZip.read):
3389         (TestExpectationUpdaterTest.test_update_test_expectations):
3390         (TestExpectationUpdaterTest):
3391         (TestExpectationUpdaterTest.test_update_win_future_test_expectations):
3392
3393 2018-04-05  Zalan Bujtas  <zalan@apple.com>
3394
3395         [LayoutReloaded] Fix static position for floating boxes when they don't fit the current line
3396         https://bugs.webkit.org/show_bug.cgi?id=184354
3397
3398         Reviewed by Antti Koivisto.
3399
3400         Do not shrink the current line with the floating box unless it is on the current line.
3401
3402         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3403         (InlineFormattingContext.prototype._handleFloatingBox):
3404         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
3405         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3406         (Line.prototype.addFloatingBox):
3407         (Line):
3408         * LayoutReloaded/test/index.html:
3409         * LayoutReloaded/test/inline-with-right-floats3.html: Added.
3410
3411 2018-04-05  Zalan Bujtas  <zalan@apple.com>
3412
3413         [LayoutReloaded] Add support for right floating boxes in inline formatting context
3414         https://bugs.webkit.org/show_bug.cgi?id=184351
3415
3416         Reviewed by Antti Koivisto.
3417
3418         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3419         (InlineFormattingContext.prototype._handleFloatingBox):
3420         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
3421         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3422         (Line.prototype.addFloatingBox):
3423         (Line):
3424         * LayoutReloaded/test/index.html:
3425         * LayoutReloaded/test/inline-with-right-float-simple.html: Added.
3426         * LayoutReloaded/test/inline-with-right-floats2.html: Added.
3427
3428 2018-04-05  Zalan Bujtas  <zalan@apple.com>
3429
3430         [LayoutReloaded] Move floating box to the next line when needed
3431         https://bugs.webkit.org/show_bug.cgi?id=184349
3432
3433         Reviewed by Antti Koivisto.
3434
3435         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3436         (InlineFormattingContext.prototype.layout):
3437         (InlineFormattingContext.prototype._handleContent):
3438         (InlineFormattingContext.prototype._handleText):
3439         (InlineFormattingContext.prototype._handleFloatingBox):
3440         (InlineFormattingContext.prototype._mapFloatingHorizontalPosition):
3441         (InlineFormattingContext):
3442         (InlineFormattingContext.prototype._handleFloatingBoxes): Deleted.
3443         (InlineFormattingContext.prototype._floatingBoxes): Deleted.
3444         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3445         (Line.prototype.addTextLineBox):
3446         (Line.prototype.addFloatingBox):
3447         (Line):
3448         * LayoutReloaded/Utils.js:
3449         (LayoutRect.prototype.moveHorizontally):
3450         (LayoutRect.prototype.moveVertically):
3451         * LayoutReloaded/test/index.html:
3452         * LayoutReloaded/test/inline-with-floats-when-they-dont-fit.html: Added.
3453
3454 2018-04-05  Brady Eidson  <beidson@apple.com>
3455
3456         Process Swap on Navigation causes many webpages to hang due to attempted process swap for iframe navigations.
3457         <rdar://problem/39162236> and https://bugs.webkit.org/show_bug.cgi?id=184318
3458
3459         Reviewed by Andy Estes.
3460
3461         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3462         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
3463         (-[PSONScheme addMappingFromURLString:toData:]):
3464         (-[PSONScheme webView:startURLSchemeTask:]):
3465
3466 2018-04-05  Yusuke Suzuki  <utatane.tea@gmail.com>
3467
3468         [WTF] Remove StaticLock
3469         https://bugs.webkit.org/show_bug.cgi?id=184332
3470
3471         Reviewed by Mark Lam.
3472
3473         * DumpRenderTree/JavaScriptThreading.cpp:
3474
3475 2018-04-05  Zalan Bujtas  <zalan@apple.com>
3476
3477         [LayoutReloaded] Find the correct left edge for a line when floating boxes are in parent formatting context.
3478         https://bugs.webkit.org/show_bug.cgi?id=184330
3479
3480         Reviewed by Antti Koivisto.
3481
3482         In inline formatting context, the floating boxes can come from the parent (block) formatting context. Let's
3483         take them into account when computing the line edges.
3484
3485         * LayoutReloaded/FormattingContext/FloatingContext.js:
3486         (FloatingContext.prototype.left):
3487         (FloatingContext.prototype.right):
3488         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3489         (InlineFormattingContext.prototype._createNewLine):
3490         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
3491         (InlineFormattingContext.prototype._mapFloatingHorizontalPosition):
3492         (InlineFormattingContext.prototype._mapFloatingPosition): Deleted.
3493         * LayoutReloaded/test/index.html:
3494         * LayoutReloaded/test/multiple-left-floats-on-line-from-parent-formatting-context.html: Added.
3495
3496 2018-04-05  Zalan Bujtas  <zalan@apple.com>
3497
3498         [LayoutReloaded] Collect floating boxes in inline formatting context and layout them first.
3499         https://bugs.webkit.org/show_bug.cgi?id=184329
3500
3501         Reviewed by Antti Koivisto.
3502
3503         Let's do this for now. There might be some cases where this violates layout.
3504
3505         * LayoutReloaded/FormattingContext/FormattingContext.js:
3506         (FormattingContext.prototype._outOfFlowDescendants):
3507         (FormattingContext):
3508         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3509         (InlineFormattingContext.prototype.layout):
3510         (InlineFormattingContext.prototype._handleFloatingBoxes):
3511         (InlineFormattingContext.prototype._handleFloatingBox):
3512         (InlineFormattingContext.prototype._floatingBoxes):
3513         (InlineFormattingContext):
3514         * LayoutReloaded/test/index.html:
3515         * LayoutReloaded/test/multiple-left-floats-on-line-simple.html: Added.
3516
3517 2018-04-04  Youenn Fablet  <youenn@apple.com>
3518
3519         WebRTC data channel only applications require capture permissions for direct connections
3520         https://bugs.webkit.org/show_bug.cgi?id=174500
3521         <rdar://problem/34134281>
3522
3523         Reviewed by Eric Carlson.
3524
3525         Adding options to enable MDNS ICE candidates.
3526
3527         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3528         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3529         (WTR::TestRunner::setMediaDevicesEnabled):
3530         (WTR::TestRunner::setMDNSICECandidatesEnabled):
3531         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3532         * WebKitTestRunner/TestController.cpp:
3533         (WTR::TestController::resetPreferencesToConsistentValues):
3534
3535 2018-04-04  Ryan Haddad  <ryanhaddad@apple.com>
3536
3537         Disable failing WKWebViewAutofillTests
3538         https://bugs.webkit.org/show_bug.cgi?id=184196
3539
3540         Unreviewed test gardening.
3541
3542         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
3543         (TestWebKitAPI::TEST):
3544
3545 2018-04-04  Youenn Fablet  <youenn@apple.com>
3546
3547         Introduce a ThreadSafeRefCounted parameter to ensure being destroyed on the main thread
3548         https://bugs.webkit.org/show_bug.cgi?id=183988
3549
3550         Reviewed by Darin Adler.
3551
3552         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
3553         (TestWebKitAPI::ThreadSafeRefCountedObject::create):
3554         (TestWebKitAPI::ThreadSafeRefCountedObject::~ThreadSafeRefCountedObject):
3555         (TestWebKitAPI::MainThreadSafeRefCountedObject::create):
3556         (TestWebKitAPI::MainThreadSafeRefCountedObject::~MainThreadSafeRefCountedObject):
3557         (TestWebKitAPI::TEST):
3558
3559 2018-04-04  Ms2ger  <Ms2ger@igalia.com>
3560
3561         Test gardening for GTK.
3562         https://bugs.webkit.org/show_bug.cgi?id=184298
3563
3564         Unreviewed test gardening.
3565
3566         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: Add pointer to
3567         https://bugs.webkit.org/show_bug.cgi?id=184295.
3568
3569 2018-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3570
3571         ASSERTION FAILED: !m_mainFrame->coreFrame()->loader().frameHasLoaded() || !m_pendingNavigationID when reloading page while a page is loading
3572         https://bugs.webkit.org/show_bug.cgi?id=153210
3573
3574         Reviewed by Alex Christensen.
3575
3576         Add unit tests to WebKit C API and WebKitGLib.
3577
3578         * TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp:
3579         (TestWebKitAPI::TEST):
3580         * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp:
3581         (LoadTwiceAndReloadTest::reloadOnFinishLoad):
3582         (LoadTwiceAndReloadTest::LoadTwiceAndReloadTest):
3583         (LoadTwiceAndReloadTest::~LoadTwiceAndReloadTest):
3584         (LoadTwiceAndReloadTest::waitUntilFinished):
3585         (testWebViewLoadTwiceAndReload):
3586         (beforeAll):
3587
3588 2018-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3589
3590         [GTK] Test /webkit/WebKitWebPage/context-menu is failing since r229831
3591         https://bugs.webkit.org/show_bug.cgi?id=184260
3592
3593         Reviewed by Michael Catanzaro.
3594
3595         This is not a regression introduced in r229831, though, it's a bug in the test itself revealed by r229831. We
3596         should wait for the load to complete before trying to show the context menu.
3597
3598         * TestWebKitAPI/Tests/WebKitGtk/TestContextMenu.cpp:
3599         (testContextMenuWebExtensionMenu):
3600
3601 2018-04-03  Zalan Bujtas  <zalan@apple.com>
3602
3603         [LayoutReloaded] Introduce floating to InlineFormattingContext
3604         https://bugs.webkit.org/show_bug.cgi?id=184288
3605
3606         Reviewed by Antti Koivisto.
3607
3608         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3609         (BlockFormattingContext.prototype._computeFloatingWidth): Deleted.
3610         (BlockFormattingContext.prototype._computeFloatingHeight): Deleted.
3611         * LayoutReloaded/FormattingContext/FormattingContext.js:
3612         (FormattingContext.prototype._computeFloatingWidth):
3613         (FormattingContext.prototype._computeFloatingHeight):
3614         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3615         (InlineFormattingContext.prototype.layout):
3616         (InlineFormattingContext.prototype._handleFloatingBox):
3617         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3618         (Line.prototype.addFloatingBox):
3619         (Line):
3620         * LayoutReloaded/test/float-is-inside-inline-formatting-context-simple.html: Added.
3621         * LayoutReloaded/test/index.html:
3622
3623 2018-04-03  Youenn Fablet  <youenn@apple.com>
3624
3625         NetworkResourceLoader does not need to expose all redirect response headers
3626         https://bugs.webkit.org/show_bug.cgi?id=184114
3627         <rdar://problem/39010557>
3628
3629         Reviewed by Ryosuke Niwa.
3630
3631         Add an option to dump the number of headers in a response.
3632         This allows validating that filtering does happen or not.
3633
3634         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3635         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3636         (WTR::dumpResponseDescriptionSuitableForTestResult):
3637         (WTR::InjectedBundlePage::responseHeaderCount):
3638         (WTR::InjectedBundlePage::willSendRequestForFrame):
3639         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
3640         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3641         (WTR::TestRunner::dumpAllHTTPRedirectedResponseHeaders):
3642         (WTR::TestRunner::shouldDumpAllHTTPRedirectedResponseHeaders const):
3643         * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm:
3644         (WTR::InjectedBundlePage::responseHeaderCount):
3645         * WebKitTestRunner/TestController.cpp:
3646         (WTR::TestController::resetPreferencesToConsistentValues):
3647
3648 2018-04-03  Andy Estes  <aestes@apple.com>
3649
3650         [Mac] Prioritize file promises over filenames during drag and drop
3651         https://bugs.webkit.org/show_bug.cgi?id=184237
3652         <rdar://problem/38278076>
3653
3654         Reviewed by Wenson Hsieh.
3655
3656         * DumpRenderTree/mac/EventSendingController.mm:
3657         (-[EventSendingController beginDragWithFilePromises:]):
3658
3659 2018-04-03  Brady Eidson  <beidson@apple.com>
3660
3661         Make SessionStorage work with process swapping.
3662         https://bugs.webkit.org/show_bug.cgi?id=184270
3663
3664         Reviewed by Andy Estes.
3665
3666         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3667         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
3668
3669 2018-04-03  Chris Dumez  <cdumez@apple.com>
3670
3671         Drop MainFrame class
3672         https://bugs.webkit.org/show_bug.cgi?id=184191
3673
3674         Reviewed by Darin Adler.
3675
3676         * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm:
3677
3678 2018-04-03  Charlie Turner  <cturner@igalia.com>
3679
3680         [WPE] Add WPE port to garden-o-matic
3681         https://bugs.webkit.org/show_bug.cgi?id=182998
3682
3683         Reviewed by Michael Catanzaro.
3684
3685         * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/config.js:
3686         Add WPE as a port to check.
3687         (config.kPlatforms.string_appeared_here._builderApplies): Use less
3688         surprising equality operator.
3689         (config.kPlatforms.string_appeared_here.resultsDirectoryNameFromBuilderName):
3690         Ditto.
3691         (config.kPlatforms.string_appeared_here.resultsDirectoryForBuildNumber):
3692         Ditto.
3693
3694 2018-04-03  Adrian Perez de Castro  <aperez@igalia.com>
3695
3696         [GTK][JHBuild] Tools/gtk/install-dependencies: Replace libxfont with libxfont2 in Arch Linux
3697         https://bugs.webkit.org/show_bug.cgi?id=184258
3698
3699         Reviewed by Carlos Alberto Lopez Perez.
3700
3701         * gtk/install-dependencies: Use libxfont2 on Arch Linux as well.
3702
3703 2018-04-02  Brady Eidson  <beidson@apple.com>
3704
3705         Process swapping on navigation needs to handle server redirects.
3706         <rdar://problem/38690465> and https://bugs.webkit.org/show_bug.cgi?id=184142
3707
3708         Reviewed by Alex Christensen.
3709
3710         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3711         (-[PSONNavigationDelegate webView:didFinishNavigation:]):
3712         (-[PSONNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
3713         (-[PSONNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]):
3714         (-[PSONScheme addRedirectFromURLString:toURLString:]):
3715         (-[PSONScheme webView:startURLSchemeTask:]):
3716
3717 2018-04-02  Daniel Bates  <dabates@apple.com>
3718
3719         Add infrastructure to relax SSL for allowed hosts in DumpRenderTree and WebKitTestRunner
3720         https://bugs.webkit.org/show_bug.cgi?id=184239
3721
3722         Reviewed by Alexey Proskuryakov.
3723
3724         Adds a new optional command line option --allow-any-certificate-for-allowed-hosts (defaults to disabled)
3725         to allow the allowed hosts to accept any HTTPS certificate. You can specify an allowed host
3726         by using the existing command line option --allowed-host.
3727
3728         Currently both DumpRenderTree and WebKitTestRunner relax SSL certificate validation
3729         for 127.0.0.1 and localhost so that we can run HTTPS tests from these hosts using
3730         a self-signed certificate. They do not relax these restrictions for any allowed host,
3731         specified using the optional command line option --allowed-host. For testing purposes
3732         it is useful to be able to run a local HTTPS server with a self-signed certificate and
3733         mimic a non-localhost hostname (by adding an alias(es) for 127.0.0.1 to /etc/hosts).
3734         We should support relaxing SSL restrictions for such testing purposes.
3735
3736         For example, to allow host example.test to present any HTTPS certificate when running
3737         tests you would invoke:
3738
3739             run-webkit-tests --allowed-host example.test --additional-drt-flag '--allow-any-certificate-for-allowed-hosts'
3740
3741         * DumpRenderTree/mac/DumpRenderTree.mm:
3742         (initializeGlobalsFromCommandLineOptions): Parse the command line option --allow-any-certificate-for-allowed-hosts.
3743         (dumpRenderTree): Allow any HTTPS certificate from each allowed host.
3744         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3745         (WTR::InjectedBundle::didReceiveMessageToPage): Clear out the existing list of allowed hosts
3746         before appending entries to it to avoid growing the list of allowed hosts without bound. Call
3747         platformAllowAnyHTTPSCertificateForAllowedHosts() to apply SSL relaxation for each allowed host.
3748         * WebKitTestRunner/Options.cpp:
3749         (WTR::handleOptionAllowAnyHTTPSCertificateForAllowedHosts): Added.
3750         (WTR::handleOptionAllowedHost): Update code as needed now that Options::allowedHosts is a std::set.
3751         (WTR::OptionsHandler::OptionsHandler):
3752         * WebKitTestRunner/Options.h: Change the data type of allowedHosts from a std::vector to a std::set
3753         so that we can make use of the convenience functon std::set::find() in TestController::canAuthenticateAgainstProtectionSpace().
3754         * WebKitTestRunner/TestController.cpp:
3755         (WTR::TestController::initialize):
3756         (WTR::TestController::canAuthenticateAgainstProtectionSpace): Allow any HTTPS certificate from each allowed host.
3757         * WebKitTestRunner/TestController.h:
3758
3759 2018-04-02  Ryan Haddad  <ryanhaddad@apple.com>
3760
3761         Unreviewed, rolling out r230174.
3762
3763         Caused LayoutTests to exit early with assertion failures.
3764
3765         Reverted changeset:
3766
3767         "Process swapping on navigation needs to handle server
3768         redirects."
3769         https://bugs.webkit.org/show_bug.cgi?id=184142
3770         https://trac.webkit.org/changeset/230174
3771
3772 2018-04-02  Daniel Bates  <dabates@apple.com>
3773
3774         Remove pre-Network Session code path for allowing any HTTPS certificate on Mac and iOS
3775         https://bugs.webkit.org/show_bug.cgi?id=184242
3776
3777         Reviewed by Alexey Proskuryakov.
3778
3779         Following r227364 we use the Network Session (NSURLSession) code path by default in
3780         modern WebKit on Mac and iOS. That is, we no longer use {CF, NS}URLConnection in modern
3781         WebKit on these platforms. So, we can remove code that used NSURLRequest SPI to allow
3782         any HTTPS certificate from localhost and 127.0.0.1 when using {CF, NS}URLConnection.
3783         The equivalent functionality is implemented in TestController::canAuthenticateAgainstProtectionSpace().
3784
3785         * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
3786         (WTR::InjectedBundle::platformInitialize):
3787         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
3788         (WTR::InjectedBundle::platformInitialize):
3789
3790 2018-04-02  Brady Eidson  <beidson@apple.com>
3791
3792         Process swapping on navigation needs to handle server redirects.
3793         <rdar://problem/38690465> and https://bugs.webkit.org/show_bug.cgi?id=184142
3794
3795         Reviewed by Alex Christensen.
3796
3797         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3798         (-[PSONNavigationDelegate webView:didFinishNavigation:]):
3799         (-[PSONNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
3800         (-[PSONNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]):
3801         (-[PSONScheme addRedirectFromURLString:toURLString:]):
3802         (-[PSONScheme webView:startURLSchemeTask:]):
3803
3804 2018-04-02  Thibault Saunier  <tsaunier@igalia.com>
3805
3806         webkitpy: Use current environment value for GST_DEBUG(_FILE) and DOT_DIR env vars
3807         https://bugs.webkit.org/show_bug.cgi?id=184036
3808
3809         Reviewed by Philippe Normand.
3810
3811         Those variables are for debug purpose and should not change the behaviour
3812         itself, and developers expect them to have effect.
3813
3814         * Scripts/webkitpy/port/gtk.py:
3815         (GtkPort.setup_environ_for_server):
3816
3817 2018-04-02  Daniel Bates  <dabates@apple.com>
3818
3819         Remove Options constructor and use internal linkage for option handlers
3820         https://bugs.webkit.org/show_bug.cgi?id=184229
3821
3822         Reviewed by Andy Estes.
3823
3824         Use C++11 default initializer syntax to remove the need to explicitly have a constructor
3825         for the struct Options. Use internal linkage for option handler functions as these
3826         are never invoked outside the translation unit they are defined in.
3827
3828         * WebKitTestRunner/Options.cpp:
3829         (WTR::handleOptionNoTimeout):
3830         (WTR::handleOptionVerbose):
3831         (WTR::handleOptionGcBetweenTests):
3832         (WTR::handleOptionPixelTests):
3833         (WTR::handleOptionPrintSupportedFeatures):
3834         (WTR::handleOptionComplexText):
3835         (WTR::handleOptionAcceleratedDrawing):
3836         (WTR::handleOptionRemoteLayerTree):
3837         (WTR::handleOptionShowWebView):
3838         (WTR::handleOptionShowTouches):
3839         (WTR::handleOptionAllowedHost):
3840         (WTR::handleOptionUnmatched):
3841         (WTR::Options::Options): Deleted.
3842         * WebKitTestRunner/Options.h:
3843
3844 2018-04-02  Alejandro G. Castro  <alex@igalia.com>
3845
3846         Unreviewed GTK port dependencies fix after r230152.
3847
3848         Add alsa library dependency for gtk.
3849
3850         * gtk/install-dependencies:
3851
3852 2018-04-02  Alejandro G. Castro  <alex@igalia.com>
3853
3854         [GTK] Make libwebrtc backend buildable for GTK  port
3855         https://bugs.webkit.org/show_bug.cgi?id=178860
3856
3857         Reviewed by Youenn Fablet.
3858
3859         * gstreamer/jhbuild.modules: Modified the libvpx module for the
3860         libwebrtc compilation.
3861         * gtk/install-dependencies: Add libevent as a system requirement.
3862         * Scripts/webkitpy/style/checker.py: Added libwebrtc to the list of third
3863         party libraries with reduced style checks.
3864
3865 2018-04-01  Zalan Bujtas  <zalan@apple.com>
3866
3867         [LayoutReloaded] Use containing block's contentBox left edge when the float is to the right.
3868         https://bugs.webkit.org/show_bug.cgi?id=184230
3869
3870         Reviewed by Antti Koivisto.
3871
3872         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3873         (InlineFormattingContext.prototype._mapFloatingPosition):
3874         (InlineFormattingContext):
3875         * LayoutReloaded/test/index.html:
3876         * LayoutReloaded/test/inline-formatting-context-with-floats2.html: Added.
3877
3878 2018-04-01  Zalan Bujtas  <zalan@apple.com>
3879
3880         [LayoutReloaded] Right floating box reduces available line width.
3881         https://bugs.webkit.org/show_bug.cgi?id=184226
3882
3883         Reviewed by Antti Koivisto.
3884
3885         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3886         (InlineFormattingContext.prototype._createNewLine):
3887         * LayoutReloaded/test/index.html:
3888         * LayoutReloaded/test/inline-with-floats-right-left-simple.html: Added.
3889
3890 2018-03-31  Zalan Bujtas  <zalan@apple.com>
3891
3892         [LayoutReloaded] Floating box reduces line with in inline formatting context
3893         https://bugs.webkit.org/show_bug.cgi?id=184223
3894
3895         Reviewed by Antti Koivisto.
3896
3897         * LayoutReloaded/FormattingContext/FloatingContext.js:
3898         (FloatingContext.prototype.left):
3899         (FloatingContext.prototype.right):
3900         (FloatingContext.prototype._mapDisplayMarginBoxToFormattingRoot):
3901         (FloatingContext.prototype._mapBorderBoxToFormattingRoot):
3902         (FloatingContext.prototype._mapContentBoxToFormattingRoot):
3903         (FloatingContext.prototype.formattingRoot):
3904         (FloatingContext.prototype._floatingState):
3905         (FloatingContext.prototype._formattingRoot): Deleted.
3906         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3907         (InlineFormattingContext.prototype._createNewLine):
3908         (InlineFormattingContext.prototype._mapFloatingPosition):
3909         (InlineFormattingContext):
3910         * LayoutReloaded/FormattingState/FormattingState.js:
3911         (FormattingState.prototype.displayBox):
3912         (FormattingState):
3913         * LayoutReloaded/test/index.html:
3914         * LayoutReloaded/test/inline-formatting-context-with-floats.html: Added.
3915
3916 2018-03-31  Zalan Bujtas  <zalan@apple.com>
3917
3918         [LayoutReloaded] InlineFormattingState should inherit the floating state from its parent formatting state
3919         https://bugs.webkit.org/show_bug.cgi?id=184220
3920
3921         Reviewed by Antti Koivisto.
3922
3923         If the block container box that initiates an inline formatting context also establishes a block context,
3924         create a new float state, otherwise use the existing one.
3925
3926         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3927         (BlockFormattingContext.prototype._contentHeight):
3928         * LayoutReloaded/FormattingState/InlineFormattingState.js:
3929         (InlineFormattingState):
3930         * LayoutReloaded/LayoutState.js:
3931         (LayoutState.prototype.establishedFormattingState):
3932         (LayoutState.prototype.formattingStateForBox):
3933         (LayoutState.prototype.formattingState): Deleted.
3934         * LayoutReloaded/Utils.js:
3935
3936 2018-03-31  Zalan Bujtas  <zalan@apple.com>
3937
3938         [LayoutReloaded] FloatingContext does not need a parent formatting context.
3939         https://bugs.webkit.org/show_bug.cgi?id=184219
3940
3941         Reviewed by Antti Koivisto.
3942
3943         We don't need the formatting context in the FloatingContext now that margins are moved over to Display.Box.
3944         This is in preparation for being able to create a FloatingContext for an inline formatting context,
3945         when the inline context actually inherits the floating state from its formatting root.
3946
3947         * LayoutReloaded/FormattingContext/FloatingContext.js:
3948         (FloatingContext):
3949         (FloatingContext.prototype._availableSpace):
3950         (FloatingContext.prototype._adjustedFloatingPosition):
3951         (FloatingContext.prototype._addFloatingBox):
3952         (FloatingContext.prototype._formattingContext): Deleted.
3953         * LayoutReloaded/FormattingContext/FormattingContext.js:
3954         (FormattingContext):
3955
3956 2018-03-31  Zalan Bujtas  <zalan@apple.com>
3957
3958         [LayoutReloaded] Do not clone Display.Box for FloatingState stacks.
3959         https://bugs.webkit.org/show_bug.cgi?id=184218
3960
3961         Reviewed by Antti Koivisto.
3962
3963         Now that Display.Box is in a tree context, we can't just clone it for the purpose of caching its absolute position.
3964
3965         * LayoutReloaded/DisplayTree/Box.js:
3966         (Display.Box.prototype.clone): Deleted.
3967         * LayoutReloaded/FormattingContext/FloatingContext.js:
3968         (FloatingContext.prototype._positionForFloating):
3969         (FloatingContext.prototype._moveToNextVerticalPosition):
3970         (FloatingContext.prototype._availableSpace):
3971         (FloatingContext.prototype._findFloatingAtVerticalPosition):
3972         (FloatingContext.prototype._adjustedFloatingPosition):
3973         (FloatingContext.prototype._bottom):
3974         (FloatingContext.prototype._addFloatingBox):
3975         (FloatingContext.prototype._mapMarginBoxToFormattingRoot):
3976         (FloatingContext.prototype._mapDisplayMarginBoxToFormattingRoot):
3977         * LayoutReloaded/FormattingState/FloatingState.js:
3978         (FloatingState.prototype.addFloating):
3979
3980 2018-03-31  Zalan Bujtas  <zalan@apple.com>
3981
3982         [LayoutReloaded] Remove all FormattingContext::absolute*Box functions.
3983         https://bugs.webkit.org/show_bug.cgi?id=184215
3984
3985         Reviewed by Antti Koivisto.
3986
3987         Use Display.Box instead.
3988
3989         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3990         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
3991         * LayoutReloaded/FormattingContext/FloatingContext.js:
3992         (FloatingContext.prototype._availableSpace):
3993         (FloatingContext.prototype._adjustedFloatingPosition):
3994         (FloatingContext.prototype._mapBorderBoxToFormattingRoot):
3995         (FloatingContext.prototype._mapContentBoxToFormattingRoot):
3996         * LayoutReloaded/FormattingContext/FormattingContext.js:
3997         (FormattingContext.prototype.absoluteBorderBox): Deleted.
3998         (FormattingContext.prototype.absolutePaddingBox): Deleted.
3999         (FormattingContext.prototype.absoluteContentBox): Deleted.
4000         (FormattingContext.prototype._toAbsolutePosition): Deleted.
4001         (FormattingContext.prototype._toRootAbsolutePosition): Deleted.
4002         * LayoutReloaded/Utils.js:
4003         (Utils.mapPosition):
4004         (Utils.marginBox):
4005         (Utils.borderBox):
4006         (Utils.contentBox):
4007
4008 2018-03-31  Zalan Bujtas  <zalan@apple.com>
4009
4010         [LayoutReloaded] Remove FormattingContext::absoluteMarginBox
4011         https://bugs.webkit.org/show_bug.cgi?id=184213
4012
4013         Reviewed by Antti Koivisto.
4014
4015         Display.Box already has the margin values.
4016
4017         * LayoutReloaded/FormattingContext/FloatingContext.js:
4018         (FloatingContext.prototype._positionForFloating):
4019         (FloatingContext.prototype._addFloatingBox):
4020         (FloatingContext.prototype._mapMarginBoxToFormattingRoot):
4021         (FloatingContext.prototype._formattingRoot):
4022         * LayoutReloaded/FormattingContext/FormattingContext.js:
4023         (FormattingContext.prototype.absoluteMarginBox): Deleted.
4024         * LayoutReloaded/Utils.js:
4025         (Utils.marginBox):
4026
4027 2018-03-31  Zalan Bujtas  <zalan@apple.com>
4028
4029         [layoutReloaded] Introduce margin to Display.Box
4030         https://bugs.webkit.org/show_bug.cgi?id=184212
4031
4032         Reviewed by Antti Koivisto.
4033
4034         This is in preparation for moving margin box out of formatting context to Display.Box.
4035
4036         * LayoutReloaded/DisplayTree/Box.js:
4037         (Display.Box):
4038         (Display.Box.prototype.setRect):
4039         (Display.Box.prototype.setTopLeft):
4040         (Display.Box.prototype.setTop):
4041         (Display.Box.prototype.setLeft):
4042         (Display.Box.prototype.setSize):
4043         (Display.Box.prototype.setWidth):
4044         (Display.Box.prototype.setHeight):
4045         (Display.Box.prototype.width):
4046         (Display.Box.prototype.setMarginTop):
4047         (Display.Box.prototype.setMarginLeft):
4048         (Display.Box.prototype.setMarginBottom):
4049         (Display.Box.prototype.setMarginRight):
4050         (Display.Box.prototype.marginTop):
4051         (Display.Box.prototype.marginLeft):
4052         (Display.Box.prototype.marginBottom):
4053         (Display.Box.prototype.marginRight):
4054         (Display.Box.prototype.marginBox):
4055         * LayoutReloaded/FormattingContext/FormattingContext.js:
4056         (FormattingContext.prototype.absoluteMarginBox):
4057         (FormattingContext.prototype._addToLayoutQueue):
4058         * LayoutReloaded/FormattingState/FormattingState.js:
4059         (FormattingState.prototype.createDisplayBox):
4060
4061 2018-03-31  Zalan Bujtas  <zalan@apple.com>
4062
4063         [LayoutReloaded] Add tree context to Display.Box
4064         https://bugs.webkit.org/show_bug.cgi?id=184211
4065
4066         Reviewed by Antti Koivisto.
4067
4068         This is preparation for using the Display.Box tree to resolve absolute coordinates.
4069
4070         * LayoutReloaded/DisplayTree/Box.js:
4071         (Display.Box):
4072         (Display.Box.prototype.setParent):
4073         (Display.Box.prototype.setNextSibling):
4074         (Display.Box.prototype.setPreviousSibling):
4075         (Display.Box.prototype.setFirstChild):
4076         (Display.Box.prototype.setLastChild):
4077         (Display.Box.prototype.parent):
4078         (Display.Box.prototype.nextSibling):
4079         (Display.Box.prototype.previousSibling):
4080         (Display.Box.prototype.firstChild):
4081         (Display.Box.prototype.lastChild):
4082         * LayoutReloaded/FormattingState/FormattingState.js:
4083         (FormattingState.prototype.createDisplayBox):
4084
4085 2018-03-30  Ryosuke Niwa  <rniwa@webkit.org>
4086
4087         Copying a list from Microsoft Word to TinyMCE fails when mso-list is the first property
4088         https://bugs.webkit.org/show_bug.cgi?id=182938
4089         <rdar://problem/37683007>
4090
4091         Reviewed by Wenson Hsieh.
4092
4093         Added more assertions to PasteHTML.PreservesMSOList for preserving an inline style which starts with mso-list
4094         or the one which line-breaks right before it.
4095
4096         * TestWebKitAPI/Tests/WebKitCocoa/PasteHTML.mm:
4097         * TestWebKitAPI/Tests/WebKitCocoa/mso-list.html:
4098
4099 2018-03-29  Ryosuke Niwa  <rniwa@webkit.org>
4100
4101         Copying a list from Microsoft Word to TinyMCE fails when mso-list is on tags other than P
4102         https://bugs.webkit.org/show_bug.cgi?id=182954
4103         <rdar://problem/37713141>
4104
4105         Reviewed by Wenson Hsieh.
4106
4107         Added a test case for a HTML generated by Microsoft Word which sets mso-list on h4.
4108
4109         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4110         * TestWebKitAPI/Tests/WebKitCocoa/PasteHTML.mm:
4111         * TestWebKitAPI/Tests/WebKitCocoa/mso-list-compat-mode.html: Fixed the file path.
4112         * TestWebKitAPI/Tests/WebKitCocoa/mso-list-on-h4.html: Added.
4113
4114 2018-03-29  Ross Kirsling  <ross.kirsling@sony.com>
4115
4116         run-jsc-benchmarks should recognize Windows-style build directory structure.
4117         https://bugs.webkit.org/show_bug.cgi?id=184117
4118
4119         Reviewed by Yusuke Suzuki.
4120
4121         * Scripts/run-jsc-benchmarks:
4122         Allow not only bin/jsc but also bin64/jsc.exe.
4123
4124 2018-03-29  Zalan Bujtas  <zalan@apple.com>
4125
4126         [LayoutReloaded] Decouple formatting state and context lifetime.
4127         https://bugs.webkit.org/show_bug.cgi?id=184136
4128
4129         Reviewed by Antti Koivisto.
4130
4131         FormattingContext is about the layout logic. We don't need to hold on to it.
4132
4133         * LayoutReloaded/FormattingContext/FloatingContext.js:
4134         (FloatingContext):
4135         (FloatingContext.prototype.computePosition):
4136         (FloatingContext.prototype._positionForClear):
4137         (FloatingContext.prototype._computePositionToAvoidIntrudingFloats):
4138         (FloatingContext.prototype._addFloatingBox):
4139         (FloatingContext.prototype._formattingContext):
4140         (FloatingContext.prototype._formattingState):
4141         * LayoutReloaded/FormattingContext/FormattingContext.js:
4142         (FormattingContext):
4143         * LayoutReloaded/FormattingState/BlockFormattingState.js:
4144         (BlockFormattingState):
4145         * LayoutReloaded/FormattingState/FloatingState.js:
4146         (FloatingState):
4147         (FloatingState.prototype.addFloating):
4148         (FloatingState.prototype.formattingState):
4149         (FloatingState.prototype.formattingContext): Deleted.
4150         * LayoutReloaded/FormattingState/FormattingState.js:
4151         (FormattingState):
4152         (FormattingState.prototype.formattingContext): Deleted.
4153         * LayoutReloaded/FormattingState/InlineFormattingState.js:
4154         (InlineFormattingState):
4155         * LayoutReloaded/LayoutState.js:
4156         (LayoutState.prototype.layout):
4157         (LayoutState.prototype.formattingContext):
4158
4159 2018-03-28  Zalan Bujtas  <zalan@apple.com>
4160
4161         [LayoutReloaded] Introduce FloatingState.
4162         https://bugs.webkit.org/show_bug.cgi?id=184126
4163
4164         Reviewed by Antti Koivisto.
4165
4166         It holds the floating state (left/right floating stack) for a given formatting state (Block or Inline).
4167         (FormattingState -> FloatingState/FormattingContext -> FloatingContext)
4168
4169         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
4170         (BlockFormattingContext):
4171         * LayoutReloaded/FormattingContext/FloatingContext.js:
4172         (FloatingContext):
4173         (FloatingContext.prototype.computePosition):
4174         (FloatingContext.prototype.bottom):
4175         (FloatingContext.prototype._positionForFloating):
4176         (FloatingContext.prototype._positionForClear):
4177         (FloatingContext.prototype._findInnerMostLeftAndRight):
4178         (FloatingContext.prototype._isEmpty):
4179         (FloatingContext.prototype._floatingState):
4180         (FloatingContext.prototype._formattingContext):
4181         (FloatingContext.prototype._lastFloating):
4182         (FloatingContext.prototype._leftFloatingStack):
4183         (FloatingContext.prototype._rightFloatingStack):
4184         (FloatingContext.prototype._addFloating): Deleted.
4185         * LayoutReloaded/FormattingContext/FormattingContext.js:
4186         (FormattingContext):
4187         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
4188         (InlineFormattingContext):
4189         * LayoutReloaded/FormattingState/BlockFormattingState.js:
4190         (BlockFormattingState):
4191         * LayoutReloaded/FormattingState/FloatingState.js: Copied from Tools/LayoutReloaded/FormattingState/InlineFormattingState.js.
4192         (FloatingState):
4193         (FloatingState.prototype.addFloating):
4194         (FloatingState.prototype.leftFloatingStack):
4195         (FloatingState.prototype.rightFloatingStack):
4196         (FloatingState.prototype.lastFloating):
4197         (FloatingState.prototype.formattingContext):
4198         * LayoutReloaded/FormattingState/FormattingState.js:
4199         (FormattingState):
4200         (FormattingState.prototype.floatingState):
4201         * LayoutReloaded/FormattingState/InlineFormattingState.js:
4202         (InlineFormattingState):
4203         * LayoutReloaded/test/index.html:
4204
4205 2018-03-28  Zalan Bujtas  <zalan@apple.com>
4206
4207         [LayoutReloaded] Convert floating left/right stack display boxes absolute to the formatting context's root.
4208         https://bugs.webkit.org/show_bug.cgi?id=184123
4209
4210         Reviewed by Antti Koivisto.
4211
4212         1. The left/right floating array should hold the Display.Box (and not the Layout.Box)
4213         2. Clone the Display.Box and convert its rect absolute to the formatting context's root so that we
4214         don't have to keep converting the coordinates while computing the positions. 
4215
4216         * LayoutReloaded/DisplayTree/Box.js:
4217         (Display.Box.prototype.clone):
4218         (Display.Box.prototype.setRect):
4219         * LayoutReloaded/FormattingContext/FloatingContext.js:
4220         (FloatingContext.prototype.computePosition):
4221         (FloatingContext.prototype._positionForFloating):
4222         (FloatingContext.prototype._addFloating):
4223         (FloatingContext.prototype._moveToNextVerticalPosition):
4224         (FloatingContext.prototype._availableSpace):
4225         (FloatingContext.prototype._findFloatingAtVerticalPosition):
4226         (FloatingContext.prototype._adjustedFloatingPosition):
4227         (FloatingContext.prototype._bottom):
4228
4229 2018-03-28  Chris Dumez  <cdumez@apple.com>
4230
4231         Unreviewed iOS build fix after r230060.
4232
4233         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
4234
4235 2018-03-28  Chris Dumez  <cdumez@apple.com>
4236
4237         Unreviewed, disable new window.open() API tests introduced in r230051 on iOS.
4238
4239         I will investigate if this is testable on iOS.
4240
4241         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
4242
4243 2018-03-28  Chris Dumez  <cdumez@apple.com>
4244
4245         Do process swap when opening a cross-origin URL via window.open(url, '_blank', 'noopener')
4246         https://bugs.webkit.org/show_bug.cgi?id=183962
4247         <rdar://problem/38817833>
4248
4249         Reviewed by Brady Eidson.
4250
4251         Add API test coverage.
4252
4253         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
4254         (-[PSONUIDelegate initWithNavigationDelegate:]):
4255         (-[PSONUIDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
4256
4257 2018-03-28  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
4258
4259         Add Carlos Eduardo Ramalho as contributor
4260         https://bugs.webkit.org/show_bug.cgi?id=184082
4261
4262         Reviewed by Carlos Alberto Lopez Perez.
4263
4264         * Scripts/webkitpy/common/config/contributors.json:
4265
4266 2018-03-28  Wenson Hsieh  <wenson_hsieh@apple.com>
4267
4268         [Extra zoom mode] Make boosted text autosizing values switchable at runtime
4269         https://bugs.webkit.org/show_bug.cgi?id=184092
4270         <rdar://problem/38939917>
4271
4272         Reviewed by Tim Horton.
4273
4274         Add an API test to check that toggling the boosted text autosizing preference causes text to lay out larger than
4275         it would with normal text autosizing.
4276
4277         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4278         * TestWebKitAPI/Tests/ios/TextAutosizingBoost.mm: Added.
4279         (TEST):
4280
4281 2018-03-28  Zalan Bujtas  <zalan@apple.com>
4282
4283         [LayoutReloaded] InlineFormattingContext::_handleText should support runs on multiple lines
4284         https://bugs.webkit.org/show_bug.cgi?id=184101
4285
4286         Reviewed by Antti Koivisto.
4287
4288         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
4289         (InlineFormattingContext):
4290         (InlineFormattingContext.prototype.layout):
4291         (InlineFormattingContext.prototype._handleText):
4292         (InlineFormattingContext.prototype._createNewLine):
4293         * LayoutReloaded/test/index.html:
4294         * LayoutReloaded/test/simple-multiline-text.html: Added.
4295
4296 2018-03-28  Zalan Bujtas  <zalan@apple.com>
4297
4298         [LayoutReloaded] Add InlineTextBreaker::skipLeadingWhitespaceIfNeeded
4299         https://bugs.webkit.org/show_bug.cgi?id=184099
4300
4301         Reviewed by Antti Koivisto.
4302
4303         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
4304
4305 2018-03-27  Carlos Garcia Campos  <cgarcia@igalia.com>
4306
4307         [GLIB] Add JSCWeakValue to JavaScriptCore GLib API
4308         https://bugs.webkit.org/show_bug.cgi?id=184041
4309
4310         Reviewed by Michael Catanzaro.
4311
4312         Add test case for JSCWeakValue.
4313
4314         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
4315         (weakValueClearedCallback):
4316         (testJSCWeakValue):
4317         (main):
4318
4319 2018-03-27  Zalan Bujtas  <zalan@apple.com>
4320
4321         [LayoutReloaded] Start using window.collectTextRuns() to layout text lines in inline formatting context
4322         https://bugs.webkit.org/show_bug.cgi?id=184070
4323
4324         Reviewed by Antti Koivisto.
4325
4326         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
4327         (InlineFormattingContext.prototype._handleText):
4328         (InlineFormattingContext.prototype._commitLine):
4329         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
4330         (Line.prototype.addTextLineBox):
4331         (Line):
4332         (Line.prototype.addLineBox): Deleted.
4333         * LayoutReloaded/FormattingState/BlockFormattingState.js:
4334         (BlockFormattingState):
4335         * LayoutReloaded/FormattingState/FormattingState.js:
4336         (FormattingState.prototype.displayBox):
4337         (FormattingState):</