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