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