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