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