1 2019-03-04 Michael Catanzaro <mcatanzaro@igalia.com>
3 [WPE] Enable web process sandbox
4 https://bugs.webkit.org/show_bug.cgi?id=195169
6 Reviewed by Daniel Bates.
8 * wpe/install-dependencies:
11 2019-03-04 Carlos Garcia Campos <cgarcia@igalia.com>
13 [GLib] Returning G_TYPE_OBJECT from a constructor does not work
14 https://bugs.webkit.org/show_bug.cgi?id=195206
16 Reviewed by Žan Doberšek.
20 * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
23 2019-03-04 Charlie Turner <cturner@igalia.com>
25 [WPE] Inline wl_array_for_each to workaround C++ compatibility issue
26 https://bugs.webkit.org/show_bug.cgi?id=194898
28 Reviewed by Žan Doberšek.
30 * wpe/backends/WindowViewBackend.cpp: wl_array_for_each relies on
31 a GCC extension that permits arithmetic on void* pointer. Inline
32 the macro until this issue is fixed upstream.
34 2019-03-03 Tim Horton <timothy_horton@apple.com>
36 Rid the world of WK_API_ENABLED
37 https://bugs.webkit.org/show_bug.cgi?id=195263
39 Reviewed by Dan Bernstein.
41 List of changed files elided because it's useless.
43 2019-03-03 Ross Kirsling <ross.kirsling@sony.com>
45 Unreviewed follow-up to r242292.
47 By Darin's suggestion, adopt an approach that uses EXPECT_STREQ without scattering utf8().data() everywhere.
49 * TestWebKitAPI/Tests/WebKit/EnvironmentUtilitiesTest.cpp:
50 (TestWebKitAPI::testStrip): Renamed from strip.
51 (TestWebKitAPI::TEST):
53 2019-03-03 Michael Catanzaro <mcatanzaro@igalia.com>
55 Unreviewed, remove accidentally-committed URLHelpers.cpp test
57 This test isn't built by any port and was committed in r240962 by mistake. See bug #174816
58 and bug #194272 for details.
60 * TestWebKitAPI/Tests/WTF/URLHelpers.cpp: Removed.
62 2019-03-03 Tim Horton <timothy_horton@apple.com>
64 Remove some more unused 32-bit code
65 https://bugs.webkit.org/show_bug.cgi?id=195255
67 Reviewed by Darin Adler.
69 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
70 * DumpRenderTree/TestNetscapePlugIn/Tests/mac/SupportsCarbonEventModel.cpp: Removed.
71 * DumpRenderTree/TestNetscapePlugIn/main.cpp:
74 (handleEventCarbon): Deleted.
76 2019-03-02 Ross Kirsling <ross.kirsling@sony.com>
78 Unreviewed follow-up to r242292. Keep EXPECT_STREQ in tests per Darin's request.
80 * TestWebKitAPI/Tests/WebKit/EnvironmentUtilitiesTest.cpp:
81 (TestWebKitAPI::TEST):
83 2019-03-01 Darin Adler <darin@apple.com>
85 Finish removing String::format
86 https://bugs.webkit.org/show_bug.cgi?id=194893
88 Reviewed by Daniel Bates.
90 * Tools/TestWebKitAPI/Tests/WTF/StringConcatenate.cpp: Add tests for pad().
92 2019-03-01 Alex Christensen <achristensen@webkit.org>
94 Add setters on WKWebsiteDataStore for sourceApplicationBundleIdentifier and sourceApplicationSecondaryIdentifier
95 https://bugs.webkit.org/show_bug.cgi?id=195229
96 <rdar://problem/48520362>
98 Reviewed by Chris Dumez.
100 * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
103 2019-03-01 Simon Fraser <simon.fraser@apple.com>
105 Add a system trace scope for event region building
106 https://bugs.webkit.org/show_bug.cgi?id=195226
110 This trace scope measures the time spend converting element rects into Region objects,
111 which can be large on some pages.
113 The value for "Display Refresh Dispatch to main thread" was wrong and I fixed it.
115 * Tracing/SystemTracePoints.plist:
117 2019-03-01 Ross Kirsling <ross.kirsling@sony.com>
119 EnvironmentUtilities::stripValuesEndingWithString isn't thread-safe
120 https://bugs.webkit.org/show_bug.cgi?id=194612
122 Reviewed by Alex Christensen.
124 * TestWebKitAPI/Tests/WebKit/EnvironmentUtilitiesTest.cpp:
125 Just test the new string-processing function and don't touch the actual environment.
126 (Test cases are all as before, but based on operator== instead of strcmp.)
128 2019-03-01 Aakash Jain <aakash_jain@apple.com>
130 [ews-app] Update primary keys for handling multiple Buildbot instances
131 https://bugs.webkit.org/show_bug.cgi?id=195120
133 Reviewed by Stephanie Lewis.
135 Use a new primary key uid for build and step tables. Previous primary keys build_id and step_id
136 were not enough to handle multiple buildbot instances. This new primary key uid would be generated
137 by a combination of buildbot_instance_id and current primary key. e.g.: buildbot_instance_id + build_id
139 * BuildSlaveSupport/ews-app/ews/models/build.py: Added new primary key uid.
140 * BuildSlaveSupport/ews-app/ews/models/step.py: Ditto.
141 * BuildSlaveSupport/ews-app/ews/models/buildbotinstance.py: Generate uid and instance_id.
142 * BuildSlaveSupport/ews-app/ews/views/results.py: Updated to receive hostname in events.
143 * BuildSlaveSupport/ews-build/events.py: Send hostname along-with events.
144 * BuildSlaveSupport/ews-build/master.cfg: Ditto.
146 2019-03-01 Don Olmstead <don.olmstead@sony.com>
148 [WinCairo] Enable service worker
149 https://bugs.webkit.org/show_bug.cgi?id=188318
151 Reviewed by Youenn Fablet.
153 * DumpRenderTree/DumpRenderTreePrefix.h:
154 * TestWebKitAPI/PlatformWin.cmake:
155 * TestWebKitAPI/win/TestWebKitAPIPrefix.h:
156 * WebKitTestRunner/InjectedBundle/win/TestRunnerInjectedBundlePrefix.h:
157 * WebKitTestRunner/WebKitTestRunnerPrefix.h:
159 2019-03-01 Justin Fan <justin_fan@apple.com>
161 [Web GPU] 32-bit builds broken by attempt to disable WebGPU on 32-bit
162 https://bugs.webkit.org/show_bug.cgi?id=195191
164 Rubber-stamped by Dean Jackson.
166 Dropping support for 32-bit entirely, so I'm intentionally leaving 32-bit broken.
168 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
170 2019-03-01 Yusuke Suzuki <ysuzuki@apple.com>
172 Unreviewed, fix lldb webkitpy tests
173 https://bugs.webkit.org/show_bug.cgi?id=194375
175 Since we changed the value of Is8Bit flag in StringImpl, we change lldb webkitpy tests accordingly.
177 * lldb/lldb_webkit.py:
178 (WTFStringImplProvider.is_8bit):
180 2019-02-28 David Quesada <david_quesada@apple.com>
182 Expose APINavigationAction.shouldPerformDownload() on WKNavigationAction
183 https://bugs.webkit.org/show_bug.cgi?id=195121
184 rdar://problem/48450302
186 Reviewed by Alex Christensen.
188 Add API tests for -WKNavigationAction._shouldPerformDownload in various
189 configurations where the 'download' attribute is absent, blank, or populated
190 with a filename, and where the anchor element is same-origin or cross-origin
191 (meaning the 'download' attribute shouldn't be honored).
193 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
194 * TestWebKitAPI/Tests/WebKitCocoa/NavigationAction.mm: Added.
195 (-[NavigationActionTestDelegate init]):
196 (-[NavigationActionTestDelegate navigationAction]):
197 (-[NavigationActionTestDelegate waitForNavigationActionCallback]):
198 (-[NavigationActionTestDelegate waitForDidFinishNavigation]):
199 (-[NavigationActionTestDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
200 (-[NavigationActionTestDelegate webView:didFinishNavigation:]):
203 2019-02-28 Antoine Quint <graouts@apple.com>
205 Enable the Pointer Events runtime flag by default
206 https://bugs.webkit.org/show_bug.cgi?id=195156
208 Reviewed by Dean Jackson.
210 * DumpRenderTree/mac/DumpRenderTree.mm:
211 (enableExperimentalFeatures):
213 2019-02-28 Wenson Hsieh <wenson_hsieh@apple.com>
215 Several PasteImage API tests are flaky
216 https://bugs.webkit.org/show_bug.cgi?id=195160
218 Reviewed by Tim Horton.
220 Some of these tests, such as PasteTIFFImage, don't wait for the inserted image element to finish loading before
221 querying the image element's size; a few other tests, such as PastePNGFile, are racy since they may begin
222 listening for a "load" event after image load is already complete.
224 To address this, make these tests first register a "load" event handler, then run script to insert an image
225 element into the document, and finally wait until the load event is observed before checking image size.
227 * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm:
229 2019-02-28 Chris Dumez <cdumez@apple.com>
231 Flaky API Test: TestWebKitAPI.ProcessSwap.PageZoomLevelAfterSwap
232 https://bugs.webkit.org/show_bug.cgi?id=195107
234 Reviewed by Alex Christensen.
236 Give some time for the zoom level to get restored.
238 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
240 2019-02-28 Sihui Liu <sihui_liu@apple.com>
242 Stop using legacy IDB path by default when creating WebProcessPool from websiteDataStore
243 https://bugs.webkit.org/show_bug.cgi?id=194958
245 Reviewed by Geoffrey Garen.
247 * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBUserDelete.mm:
250 2019-02-28 Aakash Jain <aakash_jain@apple.com>
252 [ews-app] Update method to save build to handle builder_display_name
253 https://bugs.webkit.org/show_bug.cgi?id=195047
255 Reviewed by Dewei Zhu.
257 * BuildSlaveSupport/ews-app/ews/models/build.py: Updated to handle builder_name and builder_display_name.
258 * BuildSlaveSupport/ews-app/ews/views/results.py: Ditto.
260 2019-02-28 Justin Fan <justin_fan@apple.com>
262 [Web GPU] Enable Web GPU only on 64-bit
263 https://bugs.webkit.org/show_bug.cgi?id=195139
265 Because Metal is only supported on 64 bit apps.
267 Unreviewed build fix.
269 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
271 2019-02-27 Youenn Fablet <youenn@apple.com>
273 Flaky API Test: TestWebKitAPI.ServiceWorkers.ServiceWorkerAndCacheStorageSpecificDirectories
274 https://bugs.webkit.org/show_bug.cgi?id=194959
276 Reviewed by Chris Dumez.
278 Spin loop until getting the condition to remove flakiness.
280 * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
282 2019-02-27 Aakash Jain <aakash_jain@apple.com>
284 [ews-build] Buildbot should include builder_display_name in the build events
285 https://bugs.webkit.org/show_bug.cgi?id=195045
287 Reviewed by Dewei Zhu.
289 * BuildSlaveSupport/ews-build/events.py:
290 (Events.buildStarted): Included builder_display_name in event data. Also renamed
291 buildername to builder_name to be consistent in naming style.
292 (Events.buildFinished): Ditto.
294 2019-02-27 Chris Dumez <cdumez@apple.com>
296 Flaky API Test: TestWebKitAPI.ProcessSwap.SessionStorage
297 https://bugs.webkit.org/show_bug.cgi?id=194480
299 Reviewed by Brady Eidson.
301 Update existing API test to make it more likely to reproduce the issue.
303 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
305 2019-02-27 Brady Eidson <beidson@apple.com>
307 Universal links from Google search results pages don't open the app.
308 <rdar://problem/46887179> and https://bugs.webkit.org/show_bug.cgi?id=195126
310 Reviewed by Geoffrey Garen.
312 * TestWebKitAPI/Tests/WebKitCocoa/ShouldOpenExternalURLsInNewWindowActions.mm:
313 * TestWebKitAPI/cocoa/TestNavigationDelegate.h:
314 * TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
315 (-[TestNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
317 2019-02-27 Chris Dumez <cdumez@apple.com>
319 Flaky API Test: TestWebKitAPI.ProcessSwap.NumberOfCachedProcesses
320 https://bugs.webkit.org/show_bug.cgi?id=195102
322 Reviewed by Geoffrey Garen.
324 If the number of processes is not yet what we expect, wait a bit and check again to give
325 processes some time to exit.
327 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
329 2019-02-27 Chris Dumez <cdumez@apple.com>
331 Flaky API Test: TestWebKitAPI.ProcessSwap.NavigateToDataURLThenBack
332 https://bugs.webkit.org/show_bug.cgi?id=194545
334 Reviewed by Brady Eidson.
336 Make sure the test navigates forward and then back only once. Previously, navigating
337 back would trigger a navigation again in a timer.
339 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
341 2019-02-13 Ryan Haddad <ryanhaddad@apple.com>
343 High Sierra Debug JSC test queue should use faster hardware
344 https://bugs.webkit.org/show_bug.cgi?id=194603
346 Rubber-stamped by Alexey Proskuryakov.
348 Adjust queues to free up faster hardware for use on the High Sierra Debug JSC queue.
350 * BuildSlaveSupport/build.webkit.org-config/config.json:
351 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
353 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
355 * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
356 * QueueStatusServer/config/queues.py:
357 * Scripts/webkitpy/common/config/ews.json:
358 * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
361 2019-02-27 John Wilander <wilander@apple.com>
363 Adopt WebCore::RegistrableDomain in WebCore::ResourceLoadStatistics and WebKit::NetworkProcessProxy
364 https://bugs.webkit.org/show_bug.cgi?id=195071
365 <rdar://problem/48417690>
367 Reviewed by Alex Christensen and Brent Fulgham.
369 * TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp:
370 (TestWebKitAPI::createURL):
371 Convenience function.
372 (TestWebKitAPI::TEST):
373 WebCore::AdClickAttribution now takes a URL when creating Source and
375 * TestWebKitAPI/Tests/WebCore/RegistrableDomain.cpp:
376 (TestWebKitAPI::TEST):
377 WebCore::AdClickAttribution now takes a URL when creating Source and
380 2019-02-27 Antoine Quint <graouts@apple.com>
382 Support Pointer Events on macOS
383 https://bugs.webkit.org/show_bug.cgi?id=195008
384 <rdar://problem/47454419>
386 Reviewed by Dean Jackson.
388 * DumpRenderTree/mac/DumpRenderTree.mm:
389 (enableExperimentalFeatures): Enable the PointerEvents runtime feature in DumpRenderTree such that tests targeting WK1 may test the Pointer Events feature.
390 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
392 2019-02-26 Mark Lam <mark.lam@apple.com>
394 Remove remaining poisoning code.
395 https://bugs.webkit.org/show_bug.cgi?id=194138
397 Reviewed by Saam Barati.
399 * TestWebKitAPI/CMakeLists.txt:
400 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
401 * TestWebKitAPI/Tests/WTF/Poisoned.cpp: Removed.
402 * TestWebKitAPI/Tests/WTF/PoisonedRef.cpp: Removed.
403 * TestWebKitAPI/Tests/WTF/PoisonedRefPtr.cpp: Removed.
404 * TestWebKitAPI/Tests/WTF/PoisonedUniquePtr.cpp: Removed.
405 * TestWebKitAPI/Tests/WTF/PoisonedUniquePtrForNonTriviallyDestructibleArrays.cpp: Removed.
406 * TestWebKitAPI/Tests/WTF/PoisonedUniquePtrForTriviallyDestructibleArrays.cpp: Removed.
408 2019-02-26 Alex Christensen <achristensen@webkit.org>
410 Move ephemeral local storage from WebProcess to UIProcess
411 https://bugs.webkit.org/show_bug.cgi?id=195074
412 <rdar://problem/47937975>
414 Reviewed by Geoff Garen.
416 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
418 2019-02-20 Jer Noble <jer.noble@apple.com>
420 [Cocoa] Media elements will restart network buffering just before suspending
421 https://bugs.webkit.org/show_bug.cgi?id=193691
423 Reviewed by Eric Carlson.
425 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
426 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSuspendMediaBuffering.mm: Added.
429 2019-02-26 Takashi Komori <Takashi.Komori@sony.com>
431 [Curl] Load HTTP body of 401 response when AuthenticationChange is cancelled.
432 https://bugs.webkit.org/show_bug.cgi?id=191652
434 Reviewed by Alex Christensen.
436 Fix WinCairo MiniBrowser behavior of authentication dialog.
438 * MiniBrowser/win/WebKitBrowserWindow.cpp:
439 (WebKitBrowserWindow::didReceiveAuthenticationChallenge):
441 2019-02-26 Youenn Fablet <youenn@apple.com>
443 WebPageProxy should nullify m_userMediaPermissionRequestManager after resetting the media state
444 https://bugs.webkit.org/show_bug.cgi?id=195028
445 <rdar://problem/48243733>
447 Reviewed by Eric Carlson.
449 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
451 2019-02-26 Philippe Normand <pnormand@igalia.com>
453 [WPE] Add API for webview background color configuration
454 https://bugs.webkit.org/show_bug.cgi?id=192305
456 Reviewed by Michael Catanzaro.
458 * MiniBrowser/wpe/main.cpp:
459 (main): Add a new option to configure the webview background
460 color. Example: --bg-color=transparent.
461 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
462 (testWebViewBackgroundColor): Enable background color API tests for WPE.
465 2019-02-25 Yongjun Zhang <yongjun_zhang@apple.com>
467 scalableNativeWebpageParameters() is not preserved on new page navigation.
468 https://bugs.webkit.org/show_bug.cgi?id=194892
469 <rdar://problem/47538280>
471 Reviewed by Wenson Hsieh.
473 Allow UIScriptController to set WKWebView's _allowsViewportShrinkToFit property with a new `setAllowsViewportShrinkToFit` method.
475 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
476 (WTR::UIScriptController::setAllowsViewportShrinkToFit):
477 * DumpRenderTree/mac/UIScriptControllerMac.mm:
478 (WTR::UIScriptController::allowsViewportShrinkToFit):
479 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
480 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
481 (WTR::UIScriptController::setAllowsViewportShrinkToFit):
482 * TestRunnerShared/UIScriptContext/UIScriptController.h:
483 * WebKitTestRunner/UIScriptControllerCocoa.mm:
484 (WTR::UIScriptController::setAllowsViewportShrinkToFit):
486 2019-02-25 Aakash Jain <aakash_jain@apple.com>
488 [ews-app] Add model for handling multiple Buildbot instances
489 https://bugs.webkit.org/show_bug.cgi?id=194863
491 Reviewed by Stephanie Lewis.
493 * BuildSlaveSupport/ews-app/ews/models/buildbotinstance.py: Added.
495 2019-02-25 Aakash Jain <aakash_jain@apple.com>
497 [ews-app] Remove BuilderMapping table
498 https://bugs.webkit.org/show_bug.cgi?id=194961
500 Reviewed by Stephanie Lewis.
502 Store builder name directly in build table, instead of having a separate
505 * BuildSlaveSupport/ews-app/ews/models/__init__.py:
506 * BuildSlaveSupport/ews-app/ews/models/build.py:
507 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py: Removed.
508 * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
510 2019-02-25 John Wilander <wilander@apple.com>
512 Introduce and adopt new class RegistrableDomain for eTLD+1
513 https://bugs.webkit.org/show_bug.cgi?id=194791
514 <rdar://problem/48179240>
516 Reviewed by Alex Christensen, Fujii Hironori, and Brent Fulgham.
518 This patch adds an API test and replaces two instances of
519 "TopPrivatelyOwnedDomains" with "RegistrableDomains" in message names.
521 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
522 * TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp:
523 (TestWebKitAPI::TEST):
524 Changed two strings to make sure the registrable domains are still considered
525 invalid and pass the test.
526 * TestWebKitAPI/Tests/WebCore/RegistrableDomain.cpp: Added.
527 (TestWebKitAPI::TEST):
528 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
529 (WTR::InjectedBundle::didReceiveMessageToPage):
531 2019-02-25 Adrian Perez de Castro <aperez@igalia.com>
533 [WPE] Bump WPEBackend-fdo requirement to API version 1.0
534 https://bugs.webkit.org/show_bug.cgi?id=195001
536 Reviewed by Carlos Garcia Campos.
538 API version 1.0 always includes the functionality previously guarded with
539 WPE_BACKEND_CHECK_VERSION(): remove the guards and always use the new functions
542 * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
543 (Test::createWebViewBackend): Remove usage of WPE_BACKEND_CHECK_VERSION().
544 * TestWebKitAPI/glib/WebKitGLib/wpe/WebViewTestWPE.cpp:
545 (WebViewTest::showInWindow): Ditto.
546 (WebViewTest::hideView): Ditto.
547 * wpe/backends/HeadlessViewBackend.cpp:
548 (WPEToolingBackends::HeadlessViewBackend::HeadlessViewBackend): Ditto.
549 * wpe/backends/ViewBackend.cpp:
550 (WPEToolingBackends::ViewBackend::ViewBackend): Use libWPEBackend-fdo-1.0 as library name.
551 * wpe/backends/WindowViewBackend.cpp:
552 (WPEToolingBackends::WindowViewBackend::WindowViewBackend): Remove usage of
553 WPE_BACKEND_CHECK_VERSION().
554 * wpe/jhbuild.modules: Build a version WPEBackend-fdo with the updated API version.
556 2019-02-25 Thibault Saunier <tsaunier@igalia.com>
558 [Flatpak] Add support for flatpak > 1.1.2
559 https://bugs.webkit.org/show_bug.cgi?id=194088
561 Flatpak 1.2 is now out so we need to support that
564 Reviewed by Michael Catanzaro.
566 * flatpak/flatpakutils.py:
568 (FlatpakPackages.__init__):
569 (FlatpakPackages.__detect_packages):
570 (FlatpakPackages.__detect_packages.in):
571 (FlatpakRepos.update):
573 2019-02-25 Zan Dobersek <zdobersek@igalia.com>
575 [WPE] Bump WPEBackend-fdo Jhbuild package to latest changes
576 https://bugs.webkit.org/show_bug.cgi?id=194998
578 Reviewed by Carlos Garcia Campos.
580 * wpe/jhbuild.modules: Bump the WPEBackend-fdo package, converting it
581 to a Git checkout and using the latest commit containing various fixes
584 2019-02-24 Michael Catanzaro <mcatanzaro@igalia.com>
586 [WPE][GTK] Remove user agent quirk for washingtonpost.com
587 https://bugs.webkit.org/show_bug.cgi?id=194981
589 Reviewed by Žan Doberšek.
591 * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
592 (TestWebKitAPI::TEST):
594 2019-02-23 Keith Miller <keith_miller@apple.com>
596 Add new mac target numbers
597 https://bugs.webkit.org/show_bug.cgi?id=194955
599 Reviewed by Tim Horton.
601 * DumpRenderTree/mac/Configurations/Base.xcconfig:
602 * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
603 * MiniBrowser/Configurations/Base.xcconfig:
604 * TestWebKitAPI/Configurations/Base.xcconfig:
605 * WebKitTestRunner/Configurations/Base.xcconfig:
607 2019-02-22 Basuke Suzuki <basuke.suzuki@sony.com>
609 [WinCairo] Enable wk1/wk2 suffix for platform search path.
610 https://bugs.webkit.org/show_bug.cgi?id=194846
612 Reviewed by Don Olmstead.
614 Added _search_paths() and _port_specific_expectations_files() for
617 * Scripts/webkitpy/port/win.py:
618 (WinCairoPort.default_baseline_search_path):
620 (WinCairoPort._port_specific_expectations_files):
621 (WinCairoPort._search_paths):
623 2019-02-22 Tim Horton <timothy_horton@apple.com>
625 ProcessSwap.PageOverlayLayerPersistence fails on iOS and in debug builds
626 https://bugs.webkit.org/show_bug.cgi?id=194963
628 Reviewed by Dean Jackson.
630 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
631 Do a `contains` check instead of `equals`, because in debug builds we
632 put the GraphicsLayer pointer in a prefix.
634 2019-02-22 Wenson Hsieh <wenson_hsieh@apple.com>
636 [iOS] Callout menu overlaps in-page controls when editing a comment in github.com's issue tracker
637 https://bugs.webkit.org/show_bug.cgi?id=194873
638 <rdar://problem/46701974>
640 Reviewed by Tim Horton.
642 Add a couple of UIScriptController methods to make callout menu testing on iOS easier (see below).
644 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
645 (WTR::UIScriptController::menuRect const):
646 (WTR::UIScriptController::isShowingMenu const):
647 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
648 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
649 (WTR::UIScriptController::menuRect const):
651 Add a function to query the bounds of the callout menu in content coordinates.
653 (WTR::UIScriptController::isShowingMenu const):
655 Add a function to query whether the callout menu is shown (i.e., has finished its appearance animation).
657 * TestRunnerShared/UIScriptContext/UIScriptController.h:
658 * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
659 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
660 (WTR::UIScriptController::rectForMenuAction const):
661 (WTR::UIScriptController::menuRect const):
662 (WTR::UIScriptController::isShowingMenu const):
663 (WTR::findViewInHierarchyOfType): Deleted.
665 2019-02-22 Chris Dumez <cdumez@apple.com>
667 Regression(PSON) Unable to preview password-protected documents on iCloud.com
668 https://bugs.webkit.org/show_bug.cgi?id=194954
669 <rdar://problem/48127957>
671 Reviewed by Alex Christensen.
673 Add API test coverage.
675 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
676 (-[PSONNavigationDelegate _webViewDidRequestPasswordForQuickLookDocument:]):
677 (-[PSONNavigationDelegate _webView:didStartLoadForQuickLookDocumentInMainFrameWithFileName:uti:]):
678 (-[PSONNavigationDelegate _webView:didFinishLoadForQuickLookDocumentInMainFrame:]):
680 2019-02-22 Chris Dumez <cdumez@apple.com>
682 REGRESSION(PSON) Scroll position is sometimes not restored on history navigation
683 https://bugs.webkit.org/show_bug.cgi?id=194924
684 <rdar://problem/48216125>
686 Reviewed by Geoffrey Garen.
688 Add API test coverage.
690 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
692 2019-02-22 Chris Dumez <cdumez@apple.com>
694 Unreviewed, disable API test added in r241928 on iOS.
696 The cache is not enabled on devices with less than 3GB of RAM.
698 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
700 2019-02-21 Simon Fraser <simon.fraser@apple.com>
702 Hardcode Visual Viewports on everywhere except iOS WK1
703 https://bugs.webkit.org/show_bug.cgi?id=194928
705 Reviewed by Zalan Bujtas.
707 Remove the WK1 and WK2 preferences and MiniBrowser menu item for "visual viewports",
708 change the default value of the Setting to 'true', and hardcode WebView on iOS to
709 set it to false. The setting has shipped for several years and there's no need to turn
712 Similarly, disable the "Visual Viewport API" on iOS WK1, since it makes no sense if
713 Visual Viewports are not enabled.
715 Remove the "visualViewportEnabled" flag and unused code paths from scrolling tree code
716 that only runs in WK2
718 * MiniBrowser/mac/SettingsController.h:
719 * MiniBrowser/mac/SettingsController.m:
720 (-[SettingsController init]):
721 (-[SettingsController _populateMenu]):
722 (-[SettingsController validateMenuItem:]):
723 (-[SettingsController visualViewportEnabled]): Deleted.
724 (-[SettingsController toggleVisualViewportEnabled:]): Deleted.
725 * MiniBrowser/mac/WK1BrowserWindowController.m:
726 (-[WK1BrowserWindowController didChangeSettings]):
727 * MiniBrowser/mac/WK2BrowserWindowController.m:
728 (-[WK2BrowserWindowController didChangeSettings]):
730 2019-02-21 Ryosuke Niwa <rniwa@webkit.org>
732 Discard cached processes when clearing website data store
733 https://bugs.webkit.org/show_bug.cgi?id=194894
735 Reviewed by Chris Dumez.
739 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
740 (TestWebKitAPI.ProcessSwap.NumberOfCachedProcesses): Added.
742 2019-02-21 Alex Christensen <achristensen@webkit.org>
744 Clicking "Go Back" on a safe browsing warning before a WKWebView has loaded any page should request to close the WKWebView
745 https://bugs.webkit.org/show_bug.cgi?id=194914
746 <rdar://problem/47586889>
748 Reviewed by Geoffrey Garen.
750 * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
751 (-[SafeBrowsingNavigationDelegate webViewDidClose:]):
753 (-[SafeBrowsingNavigationDelegate _webViewDidClickGoBackFromSafeBrowsingWarning:]): Deleted.
755 2019-02-21 David Kilzer <ddkilzer@apple.com>
757 Leak of CFErrorRef objects (1.92 Kbytes) in com.apple.WebKit.WebContent.Development running WebKit layout tests on iOS Simulator
758 <https://webkit.org/b/194761>
760 Reviewed by Myles Maxfield.
762 * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
763 (WTR::activateSystemCoreWebFonts): Log `error` to console if
764 CTFontManagerRegisterFontsForURL() fails (macOS only). Update
765 to use ARC-compliant cast.
766 (WTR::activateFonts): Change `0` to `nullptr`. Update to use
768 (WTR::installFakeHelvetica): Log `error` to console if
769 CTFontManagerRegisterFontsForURL() fails, but only on supported
770 platforms (macOS Mojave/iOS 12 and newer, not iOS Simulator).
771 Call CFRelease() on `error` to fix the leak. Update to use
773 (WTR::uninstallFakeHelvetica): Update to use ARC-compliant
776 2019-02-21 Chris Dumez <cdumez@apple.com>
778 Flaky API Test: TestWebKitAPI.ProcessSwap.SuspendedPageLimit
779 https://bugs.webkit.org/show_bug.cgi?id=194481
781 Reviewed by Alex Christensen.
783 Give the processes a chance to shutdown and wait until we reached the expected number
786 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
788 2019-02-21 Tim Horton <timothy_horton@apple.com>
792 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
794 2019-02-21 Tim Horton <timothy_horton@apple.com>
796 Fix ProcessSwap.PageOverlayLayerPersistence on macOS
798 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
801 2019-02-21 Tim Horton <timothy_horton@apple.com>
803 Fix ProcessSwap.PageOverlayLayerPersistence on macOS
805 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
806 We can't find the UI-side layer on macOS because we don't use UI-side compositing.
807 We could force on UI-side compositing, but I feel like the test might be more
808 valuable exercising the normal path on each platform (though the original
809 bug was also UI-side specific). Though we can't validate that the overlay
810 layer was installed successfully, there are layout tests that do that.
812 2019-02-21 Tim Horton <timothy_horton@apple.com>
814 Crash under RemoteLayerTreePropertyApplier::applyProperties when reattaching to old process
815 https://bugs.webkit.org/show_bug.cgi?id=194845
816 <rdar://problem/47944579>
818 Reviewed by Antti Koivisto.
820 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
821 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
823 2019-02-21 Zalan Bujtas <zalan@apple.com>
825 [LFC][Floats] Add support for placing formatting roots in-between floats.
826 https://bugs.webkit.org/show_bug.cgi?id=194902
828 Reviewed by Antti Koivisto.
830 * LayoutReloaded/misc/LFC-passing-tests.txt:
832 2019-02-21 Adrian Perez de Castro <aperez@igalia.com>
834 [WPE] Do not hardcode WPEBackend-fdo library name for linking tests
835 https://bugs.webkit.org/show_bug.cgi?id=194901
837 Unreviewed build fix.
839 * TestWebKitAPI/PlatformWPE.cmake: Set TestWebKitAPIBase to be linked
840 against the detected ${WPEBACKEND_FDO_LIBRARIES} instead of hardcoding
841 WPEBackend-fdo-0.1 as library name.
843 2019-02-21 Rob Buis <rbuis@igalia.com>
845 Update MIME type parser
846 https://bugs.webkit.org/show_bug.cgi?id=180526
848 Reviewed by Darin Adler.
850 Add tests involving leading and trailing whitespace, non-token
851 characters and quoted strings.
853 * TestWebKitAPI/Tests/WebCore/ParsedContentType.cpp:
854 (TestWebKitAPI::TEST):
856 2019-02-20 Don Olmstead <don.olmstead@sony.com>
858 [CMake][Win] Only build DumpRenderTree when WebKit Legacy is enabled
859 https://bugs.webkit.org/show_bug.cgi?id=194884
861 Reviewed by Michael Catanzaro.
865 2019-02-20 Chris Dumez <cdumez@apple.com>
867 Add API test for <rdar://problem/47471222>
868 https://bugs.webkit.org/show_bug.cgi?id=194847
870 Reviewed by Alex Christensen.
872 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
874 2019-02-20 Chris Dumez <cdumez@apple.com>
876 Regression(PSON) "Reload without content extensions" does not work when the main resource is blocked
877 https://bugs.webkit.org/show_bug.cgi?id=194872
878 <rdar://problem/47924500>
880 Reviewed by Alex Christensen.
882 Add API test coverage.
884 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
886 2019-02-20 Jer Noble <jer.noble@apple.com>
888 Add a git utility method that allows the caller to determine if a specific commitish is within a specified range of commits.
889 https://bugs.webkit.org/show_bug.cgi?id=191332
891 Reviewed by Dean Jackson.
893 * Scripts/git-is-in-range: Added.
895 2019-02-20 Andy Estes <aestes@apple.com>
897 [Xcode] Add SDKVariant.xcconfig to various Xcode projects
898 https://bugs.webkit.org/show_bug.cgi?id=194869
900 Rubber-stamped by Jer Noble.
902 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
903 * ImageDiff/ImageDiff.xcodeproj/project.pbxproj:
904 * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
905 * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
906 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
907 * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
909 2019-02-20 Chris Dumez <cdumez@apple.com>
911 Regression(PSON) Crash under WebKit::WebPageProxy::decidePolicyForNavigationActionSync
912 https://bugs.webkit.org/show_bug.cgi?id=194857
913 <rdar://problem/47759323>
915 Reviewed by Alex Christensen.
917 Add API test coverage.
919 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
921 2019-02-20 Chris Dumez <cdumez@apple.com>
923 [WKTR] Avoid starting new NetworkProcesses unnecessarily when running the layout tests
924 https://bugs.webkit.org/show_bug.cgi?id=194829
925 <rdar://problem/47889906>
927 Reviewed by Alexey Proskuryakov.
929 Every time the TestOptions were changing we were creating both a new Web view and
930 a new WKContext, which would start a new Network process. In most cases, we only
931 need to contruct a new Web view and we do can keep reusing the same WKContext.
932 This patch implements this optimization and thus avoids spinning a lot of new
933 Network processes while running the layout tests.
935 * WebKitTestRunner/TestController.cpp:
936 (WTR::TestController::generateContextConfiguration const):
937 (WTR::TestController::generatePageConfiguration):
938 (WTR::TestController::createWebViewWithOptions):
939 (WTR::TestController::resetPreferencesToConsistentValues):
940 (WTR::updateTestOptionsFromTestHeader):
941 * WebKitTestRunner/TestController.h:
942 * WebKitTestRunner/TestOptions.h:
943 (WTR::TestOptions::ContextOptions::hasSameInitializationOptions const):
944 (WTR::TestOptions::ContextOptions::shouldEnableProcessSwapOnNavigation const):
945 (WTR::TestOptions::hasSameInitializationOptions const):
946 (WTR::TestOptions::shouldEnableProcessSwapOnNavigation const): Deleted.
947 * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
948 (WTR::TestController::platformAddTestOptions const):
950 2019-02-20 Adrian Perez de Castro <aperez@igalia.com>
952 [WPE][GTK] Enable support for CONTENT_EXTENSIONS
953 https://bugs.webkit.org/show_bug.cgi?id=167941
955 Reviewed by Carlos Garcia Campos.
957 * MiniBrowser/gtk/main.c:
958 (filterSavedCallback): Added.
959 (main): Support loading a JSON rule set file for content filtering.
960 * MiniBrowser/wpe/main.cpp:
961 (filterSavedCallback): Added.
962 (main): Support loading a JSON rule set file for content filtering.
963 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentFilterStore.cpp: Added.
964 (WTF::refGPtr): Added locally for WebKitUserContentFilter, as it would not be used anywhere else.
965 (WTF::derefGPtr): Ditto.
967 (testSaveInvalidFilter):
968 (testSaveLoadFilter):
969 (testSavedFilterIdentifierMatch):
971 (testSaveMultipleFilters):
972 (testSaveFilterFromFile):
973 (testFilterPersistence):
976 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp:
977 (removeOldInjectedContentAndResetLists): Also reset content filters.
978 (isCSSBlockedForURLAtPath): Added. Tests whether the test filter, which blocks a
979 CSS style sheet, has blocked the load of the CSS by looking at the resulting style of
980 the element affected by the style sheet.
981 (getUserContentFilter): Added. Stores the test filter in a WebKitUserContentFilterStore
982 and returns it to be used by tests.
983 (testUserContentManagerContentFilter): Added. Tests whether adding and removing a filter
984 from the WebKitUserContentManager results in the a CSS style sheet being blocked.
985 (serverCallback): Add support for serving a CSS style sheet for testing.
986 (beforeAll): Add call to testUserContentManagerContentFilter().
987 * TestWebKitAPI/glib/CMakeLists.txt: Added TestWebKitUserContentFilterStore.
989 2019-02-19 Keith Rollin <krollin@apple.com>
991 Add timing information to build output
992 https://bugs.webkit.org/show_bug.cgi?id=194839
993 <rdar://problem/48219609>
995 Reviewed by Alexey Proskuryakov.
997 Configure xcodebuild with -ShowBuildOperationDuration, causing it to
998 emit each project's build time to its output. E.g.,
1000 ** BUILD SUCCEEDED ** [0.132 sec]
1002 * Scripts/webkitdirs.pm:
1005 2019-02-19 Truitt Savell <tsavell@apple.com>
1007 Unreviewed, rolling out r241784.
1009 Broke all OpenSource builds.
1013 "Web Inspector: Improve ES6 Class instances in Heap Snapshot
1015 https://bugs.webkit.org/show_bug.cgi?id=172848
1016 https://trac.webkit.org/changeset/241784
1018 2019-02-19 Zalan Bujtas <zalan@apple.com>
1020 [LFC][Floats] Remove redundant intersecting logic
1021 https://bugs.webkit.org/show_bug.cgi?id=194804
1023 Reviewed by Antti Koivisto.
1025 * LayoutReloaded/misc/LFC-passing-tests.txt:
1027 2019-02-19 Dean Jackson <dino@apple.com>
1029 Clean-up output from generate-xcfilelists so it can be filtered
1030 https://bugs.webkit.org/show_bug.cgi?id=194795
1032 Reviewed by Joseph Pecoraro (and Keith Rollin).
1034 Replace the "..." with "GXCF:" in generate-xcfilelists output, and
1035 make a slight tweak to filter-build-webkit so such lines are marked
1038 * Scripts/filter-build-webkit:
1039 * Scripts/generate-xcfilelists:
1041 2019-02-19 Pablo Saavedra <psaavedra@igalia.com>
1043 pytest is not correctly auto-installed
1044 https://bugs.webkit.org/show_bug.cgi?id=194707
1046 Reviewed by Carlos Garcia Campos.
1048 * Scripts/webkitpy/thirdparty/__init__.py:
1049 (AutoinstallImportHook._install_pytest):
1051 2019-02-18 Chris Dumez <cdumez@apple.com>
1053 REGRESSION (PSON): Can't access optumbank.com from myuhc.com
1054 https://bugs.webkit.org/show_bug.cgi?id=194797
1055 <rdar://problem/48055151>
1057 Reviewed by Geoffrey Garen.
1059 Add API test coverage.
1061 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1063 2019-02-18 Wenson Hsieh <wenson_hsieh@apple.com>
1065 [iOS] Support pasting item-provider-backed data on the pasteboard as attachment elements
1066 https://bugs.webkit.org/show_bug.cgi?id=194670
1067 <rdar://problem/39066529>
1069 Reviewed by Tim Horton.
1071 Remove code and tests for subresource URL replacement, and also add a new test to verify that copied data can be
1072 pasted in an editable area as attachment elements.
1074 * TestWebKitAPI/Tests/WebKitCocoa/BundleEditingDelegatePlugIn.mm:
1075 (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1076 (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:replacementURLForResource:mimeType:]): Deleted.
1077 * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
1078 (TestWebKitAPI::TEST):
1079 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1080 (WTR::InjectedBundlePage::InjectedBundlePage):
1082 2019-02-18 Alex Christensen <achristensen@webkit.org>
1084 Fix API test after r241728
1085 https://bugs.webkit.org/show_bug.cgi?id=194723
1087 * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
1089 The test should check the default preference value, not make sure the preference is NO after setting it to YES :/
1091 2019-02-18 Daniel Bates <dabates@apple.com>
1093 [iOS] Keyups for non-modifier keys identified as "Dead" when not focused in a content-editable element
1094 https://bugs.webkit.org/show_bug.cgi?id=192824
1095 <rdar://problem/47100332>
1097 Reviewed by Wenson Hsieh.
1099 Fix a bug where the wrong usage code was used for F13 thru F24.
1101 * WebKitTestRunner/ios/HIDEventGenerator.mm:
1102 (keyCodeForDOMFunctionKey):
1104 2019-02-18 Tadeu Zagallo <tzagallo@apple.com>
1106 Bytecode cache should a have a boot-specific validation
1107 https://bugs.webkit.org/show_bug.cgi?id=194769
1108 <rdar://problem/48149509>
1110 Reviewed by Keith Miller.
1112 Add test for WTF::bootSessionUUIDString()
1114 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1115 * TestWebKitAPI/Tests/WTF/UUID.cpp: Added.
1118 2019-02-18 Alex Christensen <achristensen@webkit.org>
1120 Disable safe browsing in WKWebView and remove its WKPreferences API
1121 https://bugs.webkit.org/show_bug.cgi?id=194723
1122 <rdar://problem/48122993>
1124 Reviewed by Geoffrey Garen.
1126 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1127 * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
1130 Make tests use SPI instead of API.
1132 2019-02-17 Fujii Hironori <Hironori.Fujii@sony.com>
1134 Use dumpJSConsoleLogInStdErr=true webkit-test-runner option for non-imported tests instead of using DumpJSConsoleLogInStdErr expectation in TestExpectations
1135 https://bugs.webkit.org/show_bug.cgi?id=194586
1137 Reviewed by Ross Kirsling.
1139 * DumpRenderTree/win/DumpRenderTree.cpp:
1140 (runTest): Pass true to setDumpJSConsoleLogInStdErr if options.dumpJSConsoleLogInStdErr is true.
1141 * Scripts/webkitpy/port/driver.py:
1142 (Driver._command_from_driver_input): Convert Cygwin absolute path of tests to Windows path.
1144 2019-02-17 David Kilzer <ddkilzer@apple.com>
1146 Unreviewed, rolling out r241620.
1148 "Causes use-after-free crashes running layout tests with ASan and GuardMalloc."
1149 (Requested by ddkilzer on #webkit.)
1153 "[WTF] Add environment variable helpers"
1154 https://bugs.webkit.org/show_bug.cgi?id=192405
1155 https://trac.webkit.org/changeset/241620
1157 2019-02-16 Zalan Bujtas <zalan@apple.com>
1159 [LFC] RenderImage's default intrinsic size is 0.
1160 https://bugs.webkit.org/show_bug.cgi?id=194745
1162 Reviewed by Antti Koivisto.
1164 * LayoutReloaded/misc/LFC-passing-tests.txt:
1166 2019-02-16 Zalan Bujtas <zalan@apple.com>
1168 [LFC][BFC] Add support for block replaced intrinsic width.
1169 https://bugs.webkit.org/show_bug.cgi?id=194705
1171 Reviewed by Simon Fraser.
1173 * LayoutReloaded/misc/LFC-passing-tests.txt:
1175 2019-02-16 Zalan Bujtas <zalan@apple.com>
1177 [LFC] Apply min/max width constraints to preferred width computation
1178 https://bugs.webkit.org/show_bug.cgi?id=194739
1180 Reviewed by Simon Fraser.
1182 * LayoutReloaded/misc/LFC-passing-tests.txt:
1184 2019-02-15 Ross Kirsling <ross.kirsling@sony.com>
1186 [WTF] Add environment variable helpers
1187 https://bugs.webkit.org/show_bug.cgi?id=192405
1189 Reviewed by Michael Catanzaro.
1191 * DumpRenderTree/mac/DumpRenderTree.mm:
1192 (libraryPathForDumpRenderTree):
1193 * DumpRenderTree/win/DumpRenderTree.cpp:
1194 (libraryPathForDumpRenderTree):
1195 * TestRunnerShared/IOSLayoutTestCommunication.cpp:
1196 (setUpIOSLayoutTestCommunication):
1197 * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
1199 * TestWebKitAPI/glib/WebKitGLib/TestMain.cpp:
1201 * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.cpp:
1202 (WebKitTestBus::run):
1203 * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
1204 (WTR::getOutputDir):
1205 (WTR::initializeFontConfigSetting):
1206 * WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp:
1207 (WTR::InjectedBundle::platformInitialize):
1208 * WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.cpp:
1209 (WTR::topLevelPath):
1210 * WebKitTestRunner/InjectedBundle/wpe/ActivateFontsWPE.cpp:
1211 (WTR::topLevelPath):
1212 (WTR::getOutputDir):
1213 (WTR::activateFonts):
1214 * WebKitTestRunner/TestController.cpp:
1215 (WTR::TestController::libraryPathForTesting):
1216 (WTR::TestController::generateContextConfiguration const):
1217 (WTR::TestController::generatePageConfiguration):
1218 (WTR::TestController::decideDestinationWithSuggestedFilename):
1219 (WTR::TestController::platformAdjustContext):
1220 * WebKitTestRunner/TestController.h:
1221 * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1222 (WTR::TestController::cocoaPlatformInitialize):
1223 (WTR::TestController::platformAdjustContext):
1224 * WebKitTestRunner/gtk/main.cpp:
1226 * WebKitTestRunner/mac/TestControllerMac.mm:
1227 (WTR::TestController::configureContentExtensionForTest):
1228 * WebKitTestRunner/wpe/main.cpp:
1230 Utilize WTF::Environment where possible.
1232 2019-02-15 Wenson Hsieh <wenson_hsieh@apple.com>
1234 [iOS] WKWebView callout bar is missing Change Writing Direction item
1235 https://bugs.webkit.org/show_bug.cgi?id=190015
1236 <rdar://problem/44810366>
1238 Reviewed by Tim Horton.
1240 Make an existing API test that exercises platform SPI to change the inline text writing direction run only on
1241 macOS, and add a new API test that uses similarly named SPI on iOS to change the base writing direction.
1243 * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEditActions.mm:
1244 (TestWebKitAPI::TEST):
1246 2019-02-15 Chris Dumez <cdumez@apple.com>
1248 Regression(PSON) Navigating quickly back and forth can lead to getting 'about:blank' in the backforward list
1249 https://bugs.webkit.org/show_bug.cgi?id=194717
1250 <rdar://problem/47884404>
1252 Reviewed by Brady Eidson.
1254 Add API test coverage.
1256 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1258 2019-02-15 Youenn Fablet <youenn@apple.com>
1260 Make navigator.mediaDevices SecureContext
1261 https://bugs.webkit.org/show_bug.cgi?id=194666
1263 Reviewed by Eric Carlson.
1265 * TestWebKitAPI/Tests/WebKitCocoa/UserMediaDisabled.mm:
1266 (MediaCaptureDisabledTest::loadTestAndWaitForMessage):
1269 2019-02-15 Brian Burg <bburg@apple.com>
1271 [Mac] WebInspectorUI.framework does not need to be soft-linked anymore
1272 https://bugs.webkit.org/show_bug.cgi?id=194411
1273 <rdar://problem/47787614>
1275 Reviewed by Joseph Pecoraro.
1277 Remove unnecessary soft linking macro usage.
1279 * DumpRenderTree/mac/TestRunnerMac.mm:
1280 (TestRunner::inspectorTestStubURL):
1281 (SOFT_LINK_STAGED_FRAMEWORK): Deleted.
1282 * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
1283 (WTR::TestRunner::inspectorTestStubURL):
1285 2019-02-15 Commit Queue <commit-queue@webkit.org>
1287 Unreviewed, rolling out r241559 and r241566.
1288 https://bugs.webkit.org/show_bug.cgi?id=194710
1290 Causes layout test crashes under GuardMalloc (Requested by
1291 ryanhaddad on #webkit).
1293 Reverted changesets:
1295 "[WTF] Add environment variable helpers"
1296 https://bugs.webkit.org/show_bug.cgi?id=192405
1297 https://trac.webkit.org/changeset/241559
1299 "Unreviewed build fix for WinCairo Debug after r241559."
1300 https://trac.webkit.org/changeset/241566
1302 2019-02-15 Zalan Bujtas <zalan@apple.com>
1304 [LFC] Out-of-flow box is never a float box
1305 https://bugs.webkit.org/show_bug.cgi?id=194704
1307 Reviewed by Antti Koivisto.
1309 * LayoutReloaded/misc/LFC-passing-tests.txt:
1311 2019-02-10 Darin Adler <darin@apple.com>
1313 Replace more uses of String::format with StringConcatenate (mostly non-Apple platform-specific cases)
1314 https://bugs.webkit.org/show_bug.cgi?id=194487
1316 Reviewed by Daniel Bates.
1318 * DumpRenderTree/win/DumpRenderTree.cpp:
1319 (applicationId): Use makeString instead of String::format.
1321 * TestWebKitAPI/win/PlatformUtilitiesWin.cpp:
1322 (TestWebKitAPI::Util::createURLForResource): Ditto.
1323 * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
1324 (WTR::AccessibilityNotificationHandler::connectAccessibilityCallbacks): Ditto.
1326 * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
1327 (WTR::attributeSetToString): Use StringBuilder functions directly instead of g_strconcat.
1328 (WTR::attributesOfElement): Use StringBuilder functions directly instead of String::format.
1329 (WTR::createStringWithAttributes): Use appendLiteral.
1330 (WTR::AccessibilityUIElement::helpText const): Ditto.
1331 (WTR::AccessibilityUIElement::attributedStringForRange): Use StringBuilder functions
1332 directly instead of using String::format.
1333 (WTR::AccessibilityUIElement::url): Use makeString instead of String::format.
1334 (WTR::stringAtOffset): Use StringBuilder::appendNumber instead of String::format.
1336 2019-02-15 Truitt Savell <tsavell@apple.com>
1338 Unreviewed, rolling out r241564.
1340 Caused 50+ Timeouts on Mac WK2, mostly in the http/ directory
1344 "[Mac] WebInspectorUI.framework does not need to be soft-
1346 https://bugs.webkit.org/show_bug.cgi?id=194411
1347 https://trac.webkit.org/changeset/241564
1349 2019-02-15 Saam barati <sbarati@apple.com>
1351 [WebAssembly] Write a new register allocator for Air O0 and make BBQ use it
1352 https://bugs.webkit.org/show_bug.cgi?id=194036
1354 Reviewed by Yusuke Suzuki.
1356 * Scripts/run-jsc-stress-tests:
1358 2019-02-14 Tim Horton <timothy_horton@apple.com>
1362 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1363 (WTR::UIScriptController::drawSquareInEditableImage):
1364 * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
1365 (TestWebKitAPI::drawSquareInEditableImage):
1367 2019-02-14 Tim Horton <timothy_horton@apple.com>
1371 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1372 (WTR::UIScriptController::drawSquareInEditableImage):
1373 * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
1374 (TestWebKitAPI::drawSquareInEditableImage):
1376 2019-02-14 Brian Burg <bburg@apple.com>
1378 [Mac] WebInspectorUI.framework does not need to be soft-linked anymore
1379 https://bugs.webkit.org/show_bug.cgi?id=194411
1380 <rdar://problem/47787614>
1382 Reviewed by Joseph Pecoraro.
1384 Remove unnecessary soft linking macro usage.
1386 * DumpRenderTree/mac/TestRunnerMac.mm:
1387 (TestRunner::inspectorTestStubURL):
1388 (SOFT_LINK_STAGED_FRAMEWORK): Deleted.
1389 * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
1390 (WTR::TestRunner::inspectorTestStubURL):
1392 2019-02-14 Aakash Jain <aakash_jain@apple.com>
1394 [ews-app] status bubble should fetch builder name info from BuilderMapping table
1395 https://bugs.webkit.org/show_bug.cgi?id=194599
1397 Reviewed by Lucas Forschler.
1399 * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
1400 (StatusBubble._build_bubble):
1402 2019-02-14 Aakash Jain <aakash_jain@apple.com>
1404 [ews-app] Set Foreign Key in Django build model
1405 https://bugs.webkit.org/show_bug.cgi?id=194667
1407 Reviewed by Lucas Forschler.
1409 * BuildSlaveSupport/ews-app/ews/models/build.py:
1412 2019-02-14 Ross Kirsling <ross.kirsling@sony.com>
1414 [WTF] Add environment variable helpers
1415 https://bugs.webkit.org/show_bug.cgi?id=192405
1417 Reviewed by Michael Catanzaro.
1419 * DumpRenderTree/mac/DumpRenderTree.mm:
1420 (libraryPathForDumpRenderTree):
1421 * DumpRenderTree/win/DumpRenderTree.cpp:
1422 (libraryPathForDumpRenderTree):
1423 * TestRunnerShared/IOSLayoutTestCommunication.cpp:
1424 (setUpIOSLayoutTestCommunication):
1425 * TestWebKitAPI/Tests/WebKit/EnvironmentUtilitiesTest.cpp:
1426 (TestWebKitAPI::strip):
1427 * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:
1429 * TestWebKitAPI/glib/WebKitGLib/TestMain.cpp:
1431 * TestWebKitAPI/glib/WebKitGLib/WebKitTestBus.cpp:
1432 (WebKitTestBus::run):
1433 * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
1434 (WTR::getOutputDir):
1435 (WTR::initializeFontConfigSetting):
1436 * WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp:
1437 (WTR::InjectedBundle::platformInitialize):
1438 * WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.cpp:
1439 (WTR::topLevelPath):
1440 * WebKitTestRunner/InjectedBundle/wpe/ActivateFontsWPE.cpp:
1441 (WTR::topLevelPath):
1442 (WTR::getOutputDir):
1443 (WTR::activateFonts):
1444 * WebKitTestRunner/TestController.cpp:
1445 (WTR::TestController::libraryPathForTesting):
1446 (WTR::TestController::generateContextConfiguration const):
1447 (WTR::TestController::generatePageConfiguration):
1448 (WTR::TestController::decideDestinationWithSuggestedFilename):
1449 (WTR::TestController::platformAdjustContext):
1450 * WebKitTestRunner/TestController.h:
1451 * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1452 (WTR::TestController::cocoaPlatformInitialize):
1453 (WTR::TestController::platformAdjustContext):
1454 * WebKitTestRunner/gtk/main.cpp:
1456 * WebKitTestRunner/mac/TestControllerMac.mm:
1457 (WTR::TestController::configureContentExtensionForTest):
1458 * WebKitTestRunner/wpe/main.cpp:
1460 Utilize WTF::Environment where possible.
1462 2019-02-14 Chris Dumez <cdumez@apple.com>
1464 [PSON] Introduce a WebContent Process cache
1465 https://bugs.webkit.org/show_bug.cgi?id=194594
1466 <rdar://problem/46793397>
1468 Reviewed by Geoff Garen.
1470 Update API tests to turn on the WebContent Process cache.
1472 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1474 2019-02-14 Jiewen Tan <jiewen_tan@apple.com>
1476 Unreviewed, build fix after r241480
1478 * TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm:
1479 (-[DragAndDropSimulator initWithWebViewFrame:configuration:]):
1480 (-[DragAndDropSimulator initWithWebView:]):
1482 2019-02-14 Chris Fleizach <cfleizach@apple.com>
1484 AX: ARIA Reflection was disabled in error
1485 https://bugs.webkit.org/show_bug.cgi?id=194647
1486 <rdar://problem/48068336>
1488 Reviewed by Ryosuke Niwa.
1490 Remove test override now that this feature should be enabled by default.
1492 * WebKitTestRunner/TestController.cpp:
1493 (WTR::TestController::resetPreferencesToConsistentValues):
1495 2019-02-14 Commit Queue <commit-queue@webkit.org>
1497 Unreviewed, rolling out r241486.
1498 https://bugs.webkit.org/show_bug.cgi?id=194655
1500 causing API failures in builds (Requested by ShawnRoberts on
1505 "[Cocoa] Media elements will restart network buffering just
1507 https://bugs.webkit.org/show_bug.cgi?id=193691
1508 https://trac.webkit.org/changeset/241486
1510 2019-02-14 Zalan Bujtas <zalan@apple.com>
1512 [LFC][BFC][MarginCollapse] Replaced boxes don't collapse through their margins
1513 https://bugs.webkit.org/show_bug.cgi?id=194622
1515 Reviewed by Antti Koivisto.
1517 * LayoutReloaded/misc/LFC-passing-tests.txt:
1519 2019-02-14 Zalan Bujtas <zalan@apple.com>
1521 [LFC] Shrink-to-fit-width should be constrained by min/max width
1522 https://bugs.webkit.org/show_bug.cgi?id=194653
1524 Reviewed by Antti Koivisto.
1526 * LayoutReloaded/misc/LFC-passing-tests.txt:
1528 2019-02-13 Ryosuke Niwa <rniwa@webkit.org>
1530 Crash in WKBundleFrameGetParentFrame when called inside didRemoveFrameFromHierarchy
1531 https://bugs.webkit.org/show_bug.cgi?id=194641
1533 Reviewed by Geoffrey Garen.
1535 Added a call to WKBundleFrameGetParentFrame to an existing test for didRemoveFrameFromHierarchy
1536 so that the test would fail without this fix.
1538 * TestWebKitAPI/Tests/WebKit/DidRemoveFrameFromHiearchyInPageCache_Bundle.cpp:
1539 (TestWebKitAPI::didRemoveFrameFromHierarchyCallback):
1541 2019-02-13 Aakash Jain <aakash_jain@apple.com>
1543 [ews-app] Change log level for a log statement
1545 Unreviewed minor fix.
1547 * BuildSlaveSupport/ews-app/ews/models/patch.py:
1550 2019-02-13 Jer Noble <jer.noble@apple.com>
1552 [Cocoa] Media elements will restart network buffering just before suspending
1553 https://bugs.webkit.org/show_bug.cgi?id=193691
1555 Reviewed by Eric Carlson.
1557 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1558 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSuspendMediaBuffering.mm: Added.
1561 2019-02-13 Aakash Jain <aakash_jain@apple.com>
1563 [ews-app] Fetch builder id to name mapping
1564 https://bugs.webkit.org/show_bug.cgi?id=194355
1566 Reviewed by Lucas Forschler.
1568 * BuildSlaveSupport/ews-app/ews/common/buildbot.py:
1569 (Buildbot.get_builder_id_to_name_mapping):
1570 (Buildbot._get_display_name_from_builder_name):
1572 2019-02-12 Jiewen Tan <jiewen_tan@apple.com>
1574 Further restricting webarchive loads
1575 https://bugs.webkit.org/show_bug.cgi?id=194567
1576 <rdar://problem/47610130>
1578 Reviewed by Youenn Fablet.
1580 Besides adding API tests, this patch also enhances DragAndDropSimulator to allow
1581 navigations on drop.
1583 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1584 * TestWebKitAPI/Tests/mac/LoadWebArchive.mm: Added.
1585 (-[TestLoadWebArchiveNavigationDelegate webView:didFinishNavigation:]):
1586 (-[TestLoadWebArchiveNavigationDelegate webView:didFailProvisionalNavigation:withError:]):
1587 (-[TestLoadWebArchiveNavigationDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
1588 (TestWebKitAPI::TEST):
1589 * TestWebKitAPI/Tests/mac/helloworld.webarchive: Added.
1590 * TestWebKitAPI/Tests/mac/load-web-archive-1.html: Added.
1591 * TestWebKitAPI/Tests/mac/load-web-archive-2.html: Added.
1592 * TestWebKitAPI/cocoa/DragAndDropSimulator.h:
1593 * TestWebKitAPI/mac/DragAndDropSimulatorMac.mm:
1594 (-[DragAndDropSimulator initWithWebViewFrame:configuration:]):
1595 (-[DragAndDropSimulator _webView:dragDestinationActionMaskForDraggingInfo:]):
1597 2019-02-13 John Wilander <wilander@apple.com>
1599 Store Ad Click Attribution requests in the network process
1600 https://bugs.webkit.org/show_bug.cgi?id=194510
1601 <rdar://problem/47650118>
1603 Reviewed by Alex Christensen and Daniel Bates.
1605 This patch adds two TestRunner functions:
1606 - dumpAdClickAttribution()
1607 - clearAdClickAttribution()
1609 They call into the network process to dump and clear Ad Click
1610 Attribution state, respectively.
1612 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1613 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1614 (WTR::TestRunner::dumpAdClickAttribution):
1615 (WTR::TestRunner::clearAdClickAttribution):
1616 * WebKitTestRunner/InjectedBundle/TestRunner.h:
1617 * WebKitTestRunner/TestController.cpp:
1618 (WTR::TestController::resetStateToConsistentValues):
1619 (WTR::AdClickAttributionStringResultCallbackContext::AdClickAttributionStringResultCallbackContext):
1620 (WTR::adClickAttributionStringResultCallback):
1621 (WTR::TestController::dumpAdClickAttribution):
1622 (WTR::AdClickAttributionVoidCallbackContext::AdClickAttributionVoidCallbackContext):
1623 (WTR::adClickAttributionVoidCallback):
1624 (WTR::TestController::clearAdClickAttribution):
1625 * WebKitTestRunner/TestController.h:
1626 * WebKitTestRunner/TestInvocation.cpp:
1627 (WTR::TestInvocation::dumpResults):
1628 (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1629 (WTR::TestInvocation::dumpAdClickAttribution):
1630 * WebKitTestRunner/TestInvocation.h:
1632 2019-02-13 Aakash Jain <aakash_jain@apple.com>
1634 [ews-app] Generate status-bubble
1635 https://bugs.webkit.org/show_bug.cgi?id=194572
1637 Reviewed by Lucas Forschler.
1639 * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
1640 (StatusBubble._build_bubble):
1641 (StatusBubble._should_show_bubble_for):
1642 (StatusBubble._build_bubbles_for_patch):
1644 2019-02-13 Aakash Jain <aakash_jain@apple.com>
1646 [ews-app] Add status bubble html template
1647 https://bugs.webkit.org/show_bug.cgi?id=194571
1649 Reviewed by Lucas Forschler.
1651 * BuildSlaveSupport/ews-app/ews/templates: Added.
1652 * BuildSlaveSupport/ews-app/ews/templates/statusbubble.html: Copied from QueueStatusServer/templates/statusbubble.html.
1654 2019-02-12 Chris Dumez <cdumez@apple.com>
1656 Regression(PSON) MESSAGE_CHECK() hit under WebPageProxy::didFailProvisionalLoadForFrameShared()
1657 https://bugs.webkit.org/show_bug.cgi?id=194568
1658 <rdar://problem/47944490>
1660 Reviewed by Ryosuke Niwa.
1662 Add API test coverage.
1664 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1665 (-[PSONNavigationDelegate webView:didStartProvisionalNavigation:]):
1667 2019-02-12 Jonathan Bedard <jbedard@apple.com>
1669 webkitpy: Remove bug_dummy from parsed test expectations
1670 https://bugs.webkit.org/show_bug.cgi?id=194562
1671 <rdar://problem/47853999>
1673 Reviewed by Lucas Forschler.
1675 * Scripts/webkitpy/layout_tests/models/test_expectations.py:
1676 (TestExpectationParser):
1677 (TestExpectationParser.expectation_for_skipped_test): Remove DUMMY_BUG_MODIFIER from
1679 * Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py:
1681 2019-02-12 Aakash Jain <aakash_jain@apple.com>
1683 [ews-app] Add method to fetch patch
1684 https://bugs.webkit.org/show_bug.cgi?id=194518
1686 Reviewed by Lucas Forschler.
1688 * BuildSlaveSupport/ews-app/ews/models/patch.py:
1691 2019-02-12 Zalan Bujtas <zalan@apple.com>
1693 [LFC] Expand tests coverage (60 new tests -> 860)
1695 Unreviewed test gardening (run-singly, --child-processes=1).
1697 * LayoutReloaded/misc/LFC-passing-tests.txt:
1699 2019-02-12 Wenson Hsieh <wenson_hsieh@apple.com>
1701 Allow pages to trigger programmatic paste from script on iOS
1702 https://bugs.webkit.org/show_bug.cgi?id=194271
1703 <rdar://problem/47808810>
1705 Reviewed by Tim Horton.
1707 Add support for interacting with the callout bar on iOS during layout tests. See below for more detail.
1709 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1710 (WTR::UIScriptController::platformSetDidShowMenuCallback):
1711 (WTR::UIScriptController::platformSetDidHideMenuCallback):
1712 (WTR::UIScriptController::rectForMenuAction const):
1714 Add new mechanisms to make it possible to interact with and query the state of the callout menu on iOS. This
1715 includes determining the rect (in content view coordinates) of the menu's controls, and callbacks to register
1716 for when the menu is shown or hidden.
1718 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1719 * TestRunnerShared/UIScriptContext/UIScriptContext.h:
1720 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1721 (WTR::UIScriptController::setDidShowMenuCallback):
1722 (WTR::UIScriptController::didShowMenuCallback const):
1723 (WTR::UIScriptController::setDidHideMenuCallback):
1724 (WTR::UIScriptController::didHideMenuCallback const):
1725 (WTR::UIScriptController::platformSetDidShowMenuCallback):
1726 (WTR::UIScriptController::platformSetDidHideMenuCallback):
1727 (WTR::UIScriptController::rectForMenuAction const):
1728 * TestRunnerShared/UIScriptContext/UIScriptController.h:
1729 * WebKitTestRunner/TestController.cpp:
1730 (WTR::TestController::resetPreferencesToConsistentValues):
1731 (WTR::updateTestOptionsFromTestHeader):
1732 * WebKitTestRunner/TestOptions.h:
1734 Add a new test option to determine whether DOM paste is enabled. DOM paste is currently enabled everywhere by
1735 default, but these new programmatic paste tests require it to be disabled in order for confirmation UI to show.
1737 (WTR::TestOptions::hasSameInitializationOptions const):
1738 * WebKitTestRunner/UIScriptControllerCocoa.mm:
1739 (WTR::UIScriptController::calendarType const):
1740 (WTR::UIScriptController::platformUndoManager const):
1741 * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
1742 * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
1743 (-[TestRunnerWKWebView initWithFrame:configuration:]):
1744 (-[TestRunnerWKWebView dealloc]):
1745 (-[TestRunnerWKWebView _didShowMenu]):
1746 (-[TestRunnerWKWebView _didHideMenu]):
1748 Listen to when the callout bar is presented and dismissed, and invoke testing callbacks as needed.
1750 * WebKitTestRunner/ios/TestControllerIOS.mm:
1751 (WTR::handleMenuWillHideNotification):
1752 (WTR::handleMenuDidHideNotification):
1753 (WTR::TestController::platformInitialize):
1754 (WTR::TestController::platformDestroy):
1755 (WTR::TestController::platformResetStateToConsistentValues):
1757 Additionally ensure that any callout menu presented by a previous layout test is dismissed before running the
1758 next test by hiding the callout bar if necessary, and then waiting for the "DidHide" notification.
1760 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1761 (WTR::forEachViewInHierarchy):
1762 (WTR::findViewInHierarchyOfType):
1764 Move `forEachViewInHierarchy` so that we can use it throughout the file, and then add some additional helper
1765 functions that dig through a given view's hierarchy in search of a view of a given class.
1767 (WTR::UIScriptController::selectionStartGrabberViewRect const):
1768 (WTR::UIScriptController::selectionEndGrabberViewRect const):
1769 (WTR::UIScriptController::selectionCaretViewRect const):
1770 (WTR::UIScriptController::selectionRangeViewRects const):
1771 (WTR::UIScriptController::platformSetDidShowMenuCallback):
1772 (WTR::UIScriptController::platformSetDidHideMenuCallback):
1774 Tweak these to use `platformContentView` instead of grabbing the content view from WKWebView directly.
1776 (WTR::UIScriptController::rectForMenuAction const):
1778 Add a new UIScriptController method to get the rect of the action in the contextual menu (on iOS, this is the
1779 callout bar) whose label matches the given string.
1781 (WTR::UIScriptController::platformContentView const):
1783 Add a `platformContentView()` helper on UIScriptController so that we can stop grabbing the value for key
1784 "_currentContentView" from various places in this file. Additionally, rewrite `platformUndoManager()` in terms
1785 of this new helper, and move the code out from iOS/macOS-specific files into UIScriptControllerCocoa.
1787 (WTR::UIScriptController::platformUndoManager const): Deleted.
1788 * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1789 (WTR::UIScriptController::platformContentView const):
1790 (WTR::UIScriptController::platformUndoManager const): Deleted.
1792 2019-02-12 Jonathan Bedard <jbedard@apple.com>
1794 webkitpy: No option to only show unexpected failures in results.html for iPad
1795 https://bugs.webkit.org/show_bug.cgi?id=194554
1796 <rdar://problem/47922442>
1798 Rubber-stamped by Aakash Jain.
1800 Just because a TestExpecations file does not exist for a specific platform does not mean that
1801 TestExpecations are not being used, given that platforms inherit test expectations.
1803 * Scripts/webkitpy/port/base.py:
1804 (Port.uses_test_expectations_file): Check all possible locations of a TestExpectations file.
1805 * Scripts/webkitpy/port/base_unittest.py:
1806 (PortTest.test_uses_test_expectations_file):
1808 2019-02-12 Alex Christensen <achristensen@webkit.org>
1810 Remove setDefersLoading infrastructure from WebKit2
1811 https://bugs.webkit.org/show_bug.cgi?id=194506
1813 Reviewed by Brady Eidson.
1815 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1816 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1817 (WTR::TestRunner::setDefersLoading): Deleted.
1818 * WebKitTestRunner/InjectedBundle/TestRunner.h:
1820 2019-02-12 Alex Christensen <achristensen@webkit.org>
1822 WebPage::close needs to remove all message receivers associated with that WebPage, not WebPage::~WebPage
1823 https://bugs.webkit.org/show_bug.cgi?id=194522
1824 <rdar://problem/47789393>
1826 Reviewed by Chris Dumez.
1828 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1829 * TestWebKitAPI/Tests/WebKitCocoa/BundleRetainPagePlugIn.mm: Added.
1830 (-[BundleRetainPagePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1831 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1833 2019-02-12 Andy Estes <aestes@apple.com>
1835 [iOSMac] Enable Parental Controls Content Filtering
1836 https://bugs.webkit.org/show_bug.cgi?id=194521
1839 Reviewed by Tim Horton.
1841 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1843 2019-02-12 Zalan Bujtas <zalan@apple.com>
1845 [LFC][IFC] Add intrinsic width support for float boxes.
1846 https://bugs.webkit.org/show_bug.cgi?id=194528
1848 Reviewed by Antti Koivisto.
1850 Expand tests coverage (2 new tests -> 800).
1851 (This is the correct test ordering --runs-singly --child-processes=1)
1853 * LayoutReloaded/misc/LFC-passing-tests.txt:
1855 2019-02-12 Rob Buis <rbuis@igalia.com>
1857 Implement serializing in MIME type parser
1858 https://bugs.webkit.org/show_bug.cgi?id=193909
1860 Reviewed by Darin Adler.
1862 Add various tests involving upper case, non-ASCII, control/null characters,
1863 various HTTP whitespace, single quotes and an unpaired surrogate.
1865 * TestWebKitAPI/Tests/WebCore/ParsedContentType.cpp:
1866 (TestWebKitAPI::escapeNonASCIIPrintableCharacters):
1867 (TestWebKitAPI::serializeIfValid):
1868 (TestWebKitAPI::TEST):
1870 2019-02-11 Myles C. Maxfield <mmaxfield@apple.com>
1872 [Cocoa] Ask platform for generic font family mappings
1873 https://bugs.webkit.org/show_bug.cgi?id=187723
1874 <rdar://problem/41892438>
1876 Reviewed by Brent Fulgham.
1878 Allow testing infrastructure to use fonts that are returned from CTFontDescriptorCreateForCSSFamily().
1880 * DumpRenderTree/mac/DumpRenderTree.mm:
1881 (allowedFontFamilySet):
1882 * WebKitTestRunner/mac/TestControllerMac.mm:
1883 (WTR::allowedFontFamilySet):
1885 2019-02-11 Adrian Perez de Castro <aperez@igalia.com>
1887 [GTK][WPE] Add content extensions support in WKTR and unskip layout tests
1888 https://bugs.webkit.org/show_bug.cgi?id=193622
1890 Reviewed by Michael Catanzaro.
1892 This adds support for loading content extension rule sets from the JSON files which
1893 accompany the corresponding layout test, using the C API. The Cocoa specific parts
1894 of WKTR for this could be removed, but that is left for a follow-up patch with
1897 * Scripts/webkitperl/FeatureList.pm: Add an option to toggle CONTENT_EXTENSIONS.
1898 * WebKitTestRunner/TestController.cpp:
1899 (WTR::testPath): Subtract one from the length when constructing the result std::string to
1900 avoid having the null-terminator copied into the result.
1901 (WTR::TestController::configureViewForTest): Call configureContentExtensionForTest() as
1902 part of the preparations to run a test.
1903 (WTR::ContentExtensionStoreCallbackContext::ContentExtensionStoreCallbackContext): Added.
1904 (WTR::contentExtensionStoreCallback): Added.
1905 (WTR::contentExtensionJSONPath): Used to calculate the path to the JSON rule set to be
1906 used for content extensions test.
1907 (WTR::TestController::configureContentExtensionForTest): Added, handles enabling content
1908 extensions and compiling the JSON rule set for tests involving content extensions.
1909 (WTR::TestController::resetContentExtensions): Removes the content extension built for
1910 testing and disables content extensions.
1911 (WTR::TestController::resetPreferencesToConsistentValues): Add a call to
1912 resetContentExtensions().
1913 (WTR::TestController::userContentController): Added implementation for ports other than Cocoa.
1914 * WebKitTestRunner/TestController.h: Add declarations for resetContentExtensions(),
1915 configureContentExtensionForTest(), and userContentController().
1917 2019-02-11 Daniel Bates <dabates@apple.com>
1919 [iOS] Mouse/Touch/Pointer events are missing modifier keys
1920 https://bugs.webkit.org/show_bug.cgi?id=191446
1921 <rdar://problem/45929460>
1923 Reviewed by Tim Horton.
1925 Add support infrastructure for testing touch and stylus taps when holding modifier keys.
1927 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1928 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
1929 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
1930 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1931 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1932 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
1933 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
1934 * TestRunnerShared/UIScriptContext/UIScriptController.h:
1935 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1937 (WTR::parseModifierArray):
1938 (WTR::UIScriptController::singleTapAtPoint): Implemented in terms of singleTapAtPointWithModifiers().
1939 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
1940 (WTR::UIScriptController::stylusTapAtPoint): Implemented in terms of stylusTapAtPointWithModifiers().
1941 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
1943 2019-02-11 Commit Queue <commit-queue@webkit.org>
1945 Unreviewed, rolling out r241272 and r241276.
1946 https://bugs.webkit.org/show_bug.cgi?id=194514
1948 Broke the Apple Internal build and the fix requires human
1949 intervention :( (Requested by dydz on #webkit).
1951 Reverted changesets:
1953 "[iOS] Mouse/Touch/Pointer events are missing modifier keys"
1954 https://bugs.webkit.org/show_bug.cgi?id=191446
1955 https://trac.webkit.org/changeset/241272
1957 "Fix internal iOS build after r241272"
1958 https://bugs.webkit.org/show_bug.cgi?id=191446
1959 https://trac.webkit.org/changeset/241276
1961 2019-02-11 Truitt Savell <tsavell@apple.com>
1963 Unreviewed, rolling out r241269.
1965 Caused 5 layout tests crashes on Mac WK1
1969 "DumpRenderTree should report unknown options"
1970 https://bugs.webkit.org/show_bug.cgi?id=191303
1971 https://trac.webkit.org/changeset/241269
1973 2019-02-11 Wenson Hsieh <wenson_hsieh@apple.com>
1975 fast/forms/ios/force-gregorian-calendar-for-credit-card-expiry.html does not work on iPad
1976 https://bugs.webkit.org/show_bug.cgi?id=194313
1978 Reviewed by Tim Horton.
1980 Add a helper to determine whether the web view is presenting modal UI.
1982 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1983 (WTR::UIScriptController::isPresentingModally const):
1984 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1985 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1986 (WTR::UIScriptController::isPresentingModally const):
1987 * TestRunnerShared/UIScriptContext/UIScriptController.h:
1988 * WebKitTestRunner/UIScriptControllerCocoa.mm:
1989 (WTR::UIScriptController::calendarType const): Deleted.
1990 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1991 (WTR::UIScriptController::isPresentingModally const):
1992 (WTR::UIScriptController::calendarType const):
1993 * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1994 (WTR::UIScriptController::calendarType const):
1996 2019-02-11 Joseph Pecoraro <pecoraro@apple.com>
1998 GCHeapInspector: Show the retained sizes in more places
1999 https://bugs.webkit.org/show_bug.cgi?id=194464
2001 Reviewed by Simon Fraser.
2003 * GCHeapInspector/gc-heap-inspector.html:
2004 * GCHeapInspector/script/interface.js:
2005 (HeapInspectorUtils.humanReadableSize):
2006 (HeapInspectorUtils.spanForNode.let.nodeHTML.node.className.span):
2007 (HeapInspectorUtils.spanForNode.span.span):
2008 (HeapSnapshotInspector.prototype.buildAllObjectsByType):
2009 (HeapSnapshotInspector.prototype.buildRoots):
2011 2019-02-11 Daniel Bates <dabates@apple.com>
2013 [iOS] Mouse/Touch/Pointer events are missing modifier keys
2014 https://bugs.webkit.org/show_bug.cgi?id=191446
2015 <rdar://problem/45929460>
2017 Reviewed by Tim Horton.
2019 Add support infrastructure for testing touch and stylus taps when holding modifier keys.
2021 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2022 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
2023 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
2024 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2025 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2026 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
2027 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
2028 * TestRunnerShared/UIScriptContext/UIScriptController.h:
2029 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2031 (WTR::parseModifierArray):
2032 (WTR::UIScriptController::singleTapAtPoint): Implemented in terms of singleTapAtPointWithModifiers().
2033 (WTR::UIScriptController::singleTapAtPointWithModifiers): Added.
2034 (WTR::UIScriptController::stylusTapAtPoint): Implemented in terms of stylusTapAtPointWithModifiers().
2035 (WTR::UIScriptController::stylusTapAtPointWithModifiers): Added.
2037 2019-02-11 Darshan Kadu <dkadu@igalia.com>
2039 DumpRenderTree should report unknown options
2040 https://bugs.webkit.org/show_bug.cgi?id=191303
2042 Reviewed by Frédéric Wang.
2044 Added RELEASE_ASSERT_NOT_REACHED for DumpRenderTree/TestOptions.cpp
2045 to report unknown options.
2046 Added and assigned test options which are currently used in tests.
2048 * DumpRenderTree/TestOptions.cpp:
2049 (TestOptions::TestOptions):
2051 2019-02-11 Truitt Savell <tsavell@apple.com>
2053 Unreviewed, rolling out r241229.
2055 Revision broke internal builds for watchOS.
2059 "[Cocoa] Ask platform for generic font family mappings"
2060 https://bugs.webkit.org/show_bug.cgi?id=187723
2061 https://trac.webkit.org/changeset/241229
2063 2019-02-11 Takashi Komori <Takashi.Komori@sony.com>
2065 [WinCairo][MiniBrowser] Basic authentication always fails.
2066 https://bugs.webkit.org/show_bug.cgi?id=194496
2068 Reviewed by Don Olmstead.
2070 * MiniBrowser/win/DialogHelper.h:
2073 2019-02-11 Philippe Normand <pnormand@igalia.com>
2075 [GStreamer] GstMappedBuffer testsuite build fails
2076 https://bugs.webkit.org/show_bug.cgi?id=194495
2078 Reviewed by Carlos Garcia Campos.
2080 Fix the build by explicitely adding the gstreamer1.0-audio include
2081 directories to the include path.
2083 * TestWebKitAPI/PlatformGTK.cmake:
2084 * TestWebKitAPI/PlatformWPE.cmake:
2086 2019-02-04 Carlos Garcia Campos <cgarcia@igalia.com>
2088 [GTK][WPE] Add enable-javascript-markup setting
2089 https://bugs.webkit.org/show_bug.cgi?id=193439
2091 Reviewed by Michael Catanzaro.
2093 Add test cases to check the new setting.
2095 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
2096 (testWebKitSettings):
2097 (testWebKitSettingsJavaScriptMarkup):
2100 2019-02-10 Darin Adler <darin@apple.com>
2102 Switch uses of StringBuilder with String::format for hex numbers to use HexNumber.h instead
2103 https://bugs.webkit.org/show_bug.cgi?id=194485
2105 Reviewed by Daniel Bates.
2107 * WebKitTestRunner/TestController.cpp: Removed unnecessary include of HexNumber.h.
2109 2019-02-09 Benjamin Poulain <benjamin@webkit.org>
2111 Add more tests for clampTo<>()
2112 https://bugs.webkit.org/show_bug.cgi?id=194462
2114 Reviewed by Geoffrey Garen.
2116 Darin suggested to test the very last floating point number
2117 at the boundaries when truncating to integer.
2118 I added test for max/min and max-1/min-1.
2120 * TestWebKitAPI/Tests/WTF/MathExtras.cpp:
2121 (TestWebKitAPI::TEST):
2123 2019-02-09 Darin Adler <darin@apple.com>
2125 Eliminate unnecessary String temporaries by using StringConcatenateNumbers
2126 https://bugs.webkit.org/show_bug.cgi?id=194021
2128 Reviewed by Geoffrey Garen.
2130 * TestWebKitAPI/Tests/WTF/StringConcatenate.cpp:
2131 (TestWebKitAPI::TEST): Change tests to use EXPECT_STREQ so failure messages are easier
2132 to understand. Updated tests for changes to FormattedNumber::fixedPrecision.
2134 2019-02-09 Zalan Bujtas <zalan@apple.com>
2136 [LFC][IFC] Add intrinsic width support for basic inline containers
2137 https://bugs.webkit.org/show_bug.cgi?id=194473
2139 Reviewed by Antti Koivisto.
2141 Expand tests coverage (11 new tests -> 798)
2143 * LayoutReloaded/misc/LFC-passing-tests.txt: not sure why run-singly keeps producing different ordering.
2145 2019-02-09 Benjamin Poulain <benjamin@webkit.org>
2147 Fix MiniBrowser's entitlements
2148 https://bugs.webkit.org/show_bug.cgi?id=192431
2150 Reviewed by Joseph Pecoraro.
2152 MiniBrowser's Extensions Manager was broken. The entitlement was missing for opening
2153 files, making it impossible to load any extension.
2155 * MiniBrowser/MiniBrowser.entitlements:
2157 2019-02-08 Myles C. Maxfield <mmaxfield@apple.com>
2159 [Cocoa] Ask platform for generic font family mappings
2160 https://bugs.webkit.org/show_bug.cgi?id=187723
2161 <rdar://problem/41892438>
2163 Reviewed by Brent Fulgham.
2165 Allow testing infrastructure to use fonts that are returned from CTFontDescriptorCreateForCSSFamily().
2167 * DumpRenderTree/mac/DumpRenderTree.mm:
2168 (allowedFontFamilySet):
2169 * WebKitTestRunner/mac/TestControllerMac.mm:
2170 (WTR::allowedFontFamilySet):
2172 2019-02-08 Alexander Mikhaylenko <exalm7659@gmail.com>
2174 [GTK] Implement back/forward touchpad gesture
2175 https://bugs.webkit.org/show_bug.cgi?id=193919
2177 Reviewed by Michael Catanzaro.
2179 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
2180 (testWebKitSettings): Add a test for 'enable-back-forward-navigation-gestures' property.
2182 2019-02-08 Alex Christensen <achristensen@webkit.org>
2184 Add SPI to use networking daemon instead of XPC service
2185 https://bugs.webkit.org/show_bug.cgi?id=194427
2187 Reviewed by Geoffrey Garen
2189 * MiniBrowser/MiniBrowser.entitlements:
2191 2019-02-08 Aakash Jain <aakash_jain@apple.com>
2193 [ews-build] Ensure that every builder in config.json has short name
2194 https://bugs.webkit.org/show_bug.cgi?id=194461
2196 Reviewed by Lucas Forschler.
2198 * BuildSlaveSupport/ews-build/loadConfig.py:
2199 * BuildSlaveSupport/ews-build/loadConfig_unittest.py: Updated unit-tests.
2201 2019-02-08 Aakash Jain <aakash_jain@apple.com>
2203 [ews-build] Add short name to config.json
2204 https://bugs.webkit.org/show_bug.cgi?id=194456
2206 Reviewed by Lucas Forschler.
2208 * BuildSlaveSupport/ews-build/config.json: Added short name.
2209 * BuildSlaveSupport/ews-build/loadConfig.py:
2210 (loadBuilderConfig): Set the short name as the builder description.
2212 2019-02-08 Jonathan Bedard <jbedard@apple.com>
2214 webkitpy: CrashLogs.find_all_logs may return a string or a dictionary
2215 https://bugs.webkit.org/show_bug.cgi?id=194418
2217 Reviewed by Lucas Forschler.
2219 Do not include errors trying when finding crashlogs at the end of
2220 a run-webkit-tests run since we don't process those errors.
2222 * Scripts/webkitpy/port/darwin.py:
2223 (DarwinPort._look_for_all_crash_logs_in_log_dir):
2224 * Scripts/webkitpy/port/ios_device.py:
2225 (IOSDevicePort._look_for_all_crash_logs_in_log_dir):
2226 * Scripts/webkitpy/port/watch_device.py:
2227 (WatchDevicePort._look_for_all_crash_logs_in_log_dir):
2229 2019-02-08 Beth Dakin <bdakin@apple.com>
2231 Add afterScreenUpdates to WKSnapshotConfiguration
2232 https://bugs.webkit.org/show_bug.cgi?id=194362
2234 <rdar://problem/40655528> Please add an "after screen updates" property to
2235 WKSnapshotConfiguration (to solve blank snapshots)
2237 Reviewed by Tim Horton.
2239 * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewSnapshot.mm:
2242 2019-02-08 Benjamin Poulain <benjamin@webkit.org>
2244 clampTo(): do not convert the input to double when dealing with integers
2245 https://bugs.webkit.org/show_bug.cgi?id=194263
2246 <rdar://problem/47692312>
2248 Reviewed by Darin Adler.
2250 * TestWebKitAPI/Tests/WTF/MathExtras.cpp:
2251 (TestWebKitAPI::testClampFloatingPointToFloatingPoint):
2252 (TestWebKitAPI::testClampFloatingPointToInteger):
2253 (TestWebKitAPI::testClampSameSignIntegers):
2254 (TestWebKitAPI::testClampUnsignedToSigned):
2255 (TestWebKitAPI::testClampSignedToUnsigned):
2257 2019-02-07 Jonathan Bedard <jbedard@apple.com>
2259 webkitpy: Respect --dedicated-simulators flag
2260 https://bugs.webkit.org/show_bug.cgi?id=194416
2261 <rdar://problem/47894722>
2263 Reviewed by Lucas Forschler.
2265 * Scripts/webkitpy/port/device_port.py:
2266 (DevicePort.supported_device_types): If --dedicated-simulators is passed, all
2267 available devices can be safely ignored.
2269 2019-02-07 Keith Rollin <krollin@apple.com>
2271 Remove extra copy of 100x100-red.tga
2272 https://bugs.webkit.org/show_bug.cgi?id=194371
2273 <rdar://problem/47873465>
2275 Reviewed by Said Abou-Hallawa.
2277 In order to help it pass its tests, Bug 194190 added a second copy of
2278 the file 100x100-red.tga. However, it turns out that this additional
2279 file wasn't actually needed, and that that sole previous copy was
2280 sufficient. At the same time, this second copy -- which was copied to
2281 the same location in the build output as the first copy -- now caused
2282 XCBuild to complain because there were two production rules for the
2283 same output file. Address this by removing the newly-added extra copy.
2285 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2286 * TestWebKitAPI/Tests/mac/100x100-red.tga: Removed.
2288 2019-02-07 Alex Christensen <achristensen@webkit.org>
2290 Deprecate WKBundlePageSetDefersLoading
2291 https://bugs.webkit.org/show_bug.cgi?id=191394
2293 Reviewed by Dean Jackson.
2295 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2296 (WTR::TestRunner::setDefersLoading):
2298 2019-02-07 Zalan Bujtas <zalan@apple.com>
2300 [LFC][Out-of-flow] Use the containing block's padding width when computing min/max width.
2301 https://bugs.webkit.org/show_bug.cgi?id=194391
2303 Reviewed by Antti Koivisto.
2305 * LayoutReloaded/misc/LFC-passing-tests.txt:
2307 2019-02-06 Keith Rollin <krollin@apple.com>
2309 Remove Info.plist from MobileMiniBrowser.framework's Copy Bundle Resources phase
2310 https://bugs.webkit.org/show_bug.cgi?id=193975
2311 <rdar://problem/47643306>
2313 Reviewed by Tim Horton.
2315 The MobileMiniBrowser.framework's Copy Bundle Resources phase copies
2316 the Info.plist file into the bundle. This step is not necessary as the
2317 implicit "bundle up all the build products into a framework" build
2318 phase does this already. Having the Copy Bundle Resources phase do
2319 this causes a conflict under XCBuild, which objects to two build
2320 phases producing the same file (Info.plist). Address this by removing
2321 Info.plist from the Copy Bundle Resources phase.
2323 * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
2325 2019-02-06 Keith Rollin <krollin@apple.com>
2327 Really enable the automatic checking and regenerations of .xcfilelists during builds
2328 https://bugs.webkit.org/show_bug.cgi?id=194357
2329 <rdar://problem/47861231>
2331 Reviewed by Chris Dumez.
2333 Bug 194124 was supposed to enable the automatic checking and
2334 regenerating of .xcfilelist files during the build. While related
2335 changes were included in that patch, the change to actually enable the
2336 operation somehow was omitted. This patch actually enables the
2337 operation. The check-xcfilelist.sh scripts now check
2338 WK_DISABLE_CHECK_XCFILELISTS, and if it's "1", opts-out the developer
2341 * DumpRenderTree/Scripts/check-xcfilelists.sh:
2342 * WebKitTestRunner/Scripts/check-xcfilelists.sh:
2344 2019-02-06 David Kilzer <ddkilzer@apple.com>
2346 WTR::InjectedBundlePage::willSendRequestForFrame() leaks a WKDataRef
2347 <https://webkit.org/b/194286>
2348 <rdar://problem/47815558>
2350 Reviewed by Alexey Proskuryakov.
2352 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2353 (WTR::InjectedBundlePage::willSendRequestForFrame): Use
2354 WKRetainPtr<> to avoid leaking the WKDataRef.
2356 2019-02-06 Michael Catanzaro <mcatanzaro@igalia.com>
2358 Unreviewed, fix a typo
2360 * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp:
2362 2019-02-06 Olivier Blin <olivier.blin@softathome.com>
2364 [GTK][WPE] force libpsl build to use ICU in jhbuild
2365 https://bugs.webkit.org/show_bug.cgi?id=194288
2367 Reviewed by Carlos Garcia Campos.
2369 * gtk/jhbuild.modules:
2370 Require ICU for libpsl build in jhbuild, like done in WPE.
2372 2019-02-06 Michael Catanzaro <mcatanzaro@igalia.com>
2374 REGRESSION(r240785): [SOUP] Broke cookie persistent storage
2375 https://bugs.webkit.org/show_bug.cgi?id=194209
2377 Reviewed by Carlos Garcia Campos.
2379 Enhance TestCookieManager to ensure this doesn't happen again.
2381 * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp:
2382 (testCookieManagerPersistentStorage):
2385 2019-02-05 Wenson Hsieh <wenson_hsieh@apple.com>
2387 Rename TestOptions.ignoreSynchronousMessagingTimeoutsForTesting
2388 https://bugs.webkit.org/show_bug.cgi?id=194324
2390 Reviewed by Andy Estes.
2392 Rename ignoreSynchronousMessagingTimeoutsForTesting to just ignoreSynchronousMessagingTimeouts. The -ForTesting
2393 part of the name is already implicit, since this is in testing code in TestOptions.
2395 * WebKitTestRunner/TestController.cpp:
2396 (WTR::TestController::generateContextConfiguration const):
2397 (WTR::updateTestOptionsFromTestHeader):
2398 * WebKitTestRunner/TestOptions.h:
2399 (WTR::TestOptions::hasSameInitializationOptions const):
2401 2019-02-05 Aakash Jain <aakash_jain@apple.com>
2403 [ews-build] Allow * as platform for builders and workers
2404 https://bugs.webkit.org/show_bug.cgi?id=188533
2406 Reviewed by Lucas Forschler.
2408 * BuildSlaveSupport/ews-build/loadConfig.py:
2409 (checkWorkersAndBuildersForConsistency):
2411 2019-02-05 Aakash Jain <aakash_jain@apple.com>
2413 [ews-build] Add few bots to config.json
2414 https://bugs.webkit.org/show_bug.cgi?id=194304
2416 Reviewed by Lucas Forschler.
2418 * BuildSlaveSupport/ews-build/config.json:
2420 2019-02-05 Keith Rollin <krollin@apple.com>
2422 Enable the automatic checking and regenerations of .xcfilelists during builds
2423 https://bugs.webkit.org/show_bug.cgi?id=194124
2424 <rdar://problem/47721277>
2426 Reviewed by Tim Horton.
2428 Bug 193790 add a facility for checking -- during build time -- that
2429 any needed .xcfilelist files are up-to-date and for updating them if
2430 they are not. This facility was initially opt-in by setting
2431 WK_ENABLE_CHECK_XCFILELISTS until other pieces were in place and until
2432 the process seemed robust. Its now time to enable this facility and
2433 make it opt-out. If there is a need to disable this facility, set and
2434 export WK_DISABLE_CHECK_XCFILELISTS=1 in your environment before
2435 running `make` or `build-webkit`, or before running Xcode from the
2438 Additionally, remove the step that generates a list of source files
2439 going into the UnifiedSources build step. It's only necessarily to
2440 specify Sources.txt and SourcesCocoa.txt as inputs.
2442 * Scripts/generate-xcfilelists:
2444 2019-02-05 Olivier Blin <olivier.blin@softathome.com>
2446 [GTK][WPE] force libpsl build to use ICU in jhbuild
2447 https://bugs.webkit.org/show_bug.cgi?id=194288
2449 Reviewed by Philippe Normand.
2451 In jhbuild, libpsl depends on ICU, but its configure script may decide to use libidn instead of ICU.
2452 This can cause build failures if libidn is detected but libunistring is not available.
2454 Make sure that ICU is used for runtime and builtin PSL data.
2456 * gtk/jhbuild.modules:
2457 * wpe/jhbuild.modules:
2459 2019-02-05 Aakash Jain <aakash_jain@apple.com>
2461 [ews-app] Modified timestamp should be updated on updating data
2462 https://bugs.webkit.org/show_bug.cgi?id=194295
2464 Reviewed by Lucas Forschler.
2466 * BuildSlaveSupport/ews-app/ews/models/build.py:
2467 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
2468 * BuildSlaveSupport/ews-app/ews/models/step.py:
2470 2019-02-05 Ryan Haddad <ryanhaddad@apple.com>
2472 Unreviewed, rolling out r240742.
2474 Causes crashes on iOS simulator.
2478 "[iOS] Keyups for non-modifier keys identified as "Dead" when
2479 not focused in a content-editable element"
2480 https://bugs.webkit.org/show_bug.cgi?id=192824
2481 https://trac.webkit.org/changeset/240742
2483 2019-02-05 Jonathan Bedard <jbedard@apple.com>
2485 run-webkit-tests emits message "...running None" when running tests
2486 https://bugs.webkit.org/show_bug.cgi?id=194133
2487 <rdar://problem/47724738>
2489 Reviewed by Lucas Forschler.
2491 * Scripts/webkitpy/xcode/device_type.py:
2492 (DeviceType.__str__): Use both version mapping tables and use just the variant
2493 name if no version name is available.
2494 * Scripts/webkitpy/xcode/device_type_unittest.py:
2496 (DeviceTypeTest.test_unmapped_version): Test case where the version does not have
2497 an associated named.
2499 2019-02-05 Olivier Blin <olivier.blin@softathome.com>
2501 [WPE] require python3-setuptools for meson build in jhbuild
2502 https://bugs.webkit.org/show_bug.cgi?id=194287
2504 Reviewed by Philippe Normand.
2506 python3-setuptools is needed to build meson in jhbuild.
2507 It is already required by the GTK port.
2509 * wpe/install-dependencies:
2511 2019-02-05 Aakash Jain <aakash_jain@apple.com>
2513 [ews-app] Add method to save BuilderMapping to database
2514 https://bugs.webkit.org/show_bug.cgi?id=194264
2516 Reviewed by Lucas Forschler.
2518 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
2519 (BuilderMapping.__str__):
2521 (BuilderMapping.save_mapping):
2522 (BuilderMapping.update_mapping):
2523 (BuilderMapping.get_existing_mapping):
2524 (BuilderMapping.is_valid_mapping):
2526 2019-02-05 Aakash Jain <aakash_jain@apple.com>
2528 [ews-app] Add timestamp fields for BuilderMappings
2529 https://bugs.webkit.org/show_bug.cgi?id=194266
2531 Reviewed by Lucas Forschler.
2533 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
2536 2019-02-04 Ms2ger <Ms2ger@igalia.com>
2538 [GTK][WPE] Need a function to convert internal URI to display ("pretty") URI
2539 https://bugs.webkit.org/show_bug.cgi?id=174816
2541 Reviewed by Michael Catanzaro.
2543 Add tests for webkit_uri_for_display().
2545 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitURIUtilities.cpp: Added.
2546 (testURIForDisplayUnaffected):
2547 (testURIForDisplayAffected):
2550 * TestWebKitAPI/glib/CMakeLists.txt:
2552 2019-02-04 Jonathan Bedard <jbedard@apple.com>
2554 webkitpy: Precedence of booted devices should match precedence in DEFAULT_DEVICE_TYPES
2555 https://bugs.webkit.org/show_bug.cgi?id=194158
2556 <rdar://problem/47737268>
2558 Rubber-stamped by Aakash Jain.
2560 * Scripts/webkitpy/port/device_port.py:
2561 (DevicePort.supported_device_types): Sort supported device types by the DEFAULT_DEVICE_TYPES.
2563 2019-02-04 Said Abou-Hallawa <said@apple.com>
2565 [CG] Enable setAdditionalSupportedImageTypes for WK1
2566 https://bugs.webkit.org/show_bug.cgi?id=194190
2568 Reviewed by Tim Horton.
2570 Add a test similar to the one under WebKit Cocoa but make it create a
2571 WebView instead of a WKWebView.
2573 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2574 * TestWebKitAPI/Tests/mac/100x100-red.tga: Added.
2575 * TestWebKitAPI/Tests/mac/AdditionalSupportedImageTypes.html: Added.
2576 * TestWebKitAPI/Tests/mac/AdditionalSupportedImageTypes.mm: Added.
2577 (-[AdditionalSupportedImageTypesTest webView:didFinishLoadForFrame:]):
2578 (TestWebKitAPI::runTest):
2579 (TestWebKitAPI::TEST):
2581 2019-02-04 Zalan Bujtas <zalan@apple.com>
2583 [First paint] Adjust "finishedParsingMainDocument" flag by taking deferred and async scripts into account.
2584 https://bugs.webkit.org/show_bug.cgi?id=194168
2586 Reviewed by Simon Fraser.
2588 Test if the firstVisuallyNoneEmpty milestone fires before the deferred script's post-message.
2590 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2591 * TestWebKitAPI/Tests/WebKit/FirstVisuallyNonEmptyMilestoneWithDeferredScript.mm: Added.
2592 (-[FirstPaintMessageHandler userContentController:didReceiveScriptMessage:]):
2593 (-[RenderingProgressNavigationDelegate _webView:renderingProgressDidChange:]):
2595 * TestWebKitAPI/Tests/WebKit/deferred-script-load.html: Added.
2596 * TestWebKitAPI/Tests/WebKit/deferred-script.js: Added.
2598 2019-02-04 Dean Johnson <dean_johnson@apple.com>
2600 REGRESSION (r237269): webkit-patch what-broke is broken
2601 https://bugs.webkit.org/show_bug.cgi?id=193025
2603 Reviewed by Aakash Jain.
2605 * Scripts/webkitpy/common/host.py:
2607 (Host.bugzilla): Renamed to 'buildbot'.
2609 2019-02-04 Wenson Hsieh <wenson_hsieh@apple.com>
2611 [iOS] API test WKAttachmentTests.InsertAndRemoveDuplicateAttachment is failing after r240902
2612 https://bugs.webkit.org/show_bug.cgi?id=194207
2614 Reviewed by Tim Horton.
2616 Fix this API test by making it robust against smart paste on iOS. Currently, this test pastes an attachment
2617 element and assumes that the pasted attachment is adjacent to the original one. However, after enabling smart
2618 paste, we now insert an extra space in between. Instead of executing "DeleteBackward" twice to test removing the
2619 attachment elements, we delete backwards once to remove the pasted attachment, and move the selection to the
2620 start and delete forwards to remove the original attachment.
2622 * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
2623 (TestWebKitAPI::TEST):
2625 2019-02-04 Youenn Fablet <youenn@apple.com>
2627 Capture state should be managed consistently when doing process swapping
2628 https://bugs.webkit.org/show_bug.cgi?id=194122
2629 <rdar://problem/47609293>
2631 Reviewed by Eric Carlson.
2633 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2634 (-[GetUserMediaUIDelegate _webView:requestUserMediaAuthorizationForDevices:url:mainFrameURL:decisionHandler:]):
2635 (-[GetUserMediaUIDelegate _webView:checkUserMediaPermissionForURL:mainFrameURL:frameIdentifier:decisionHandler:]):
2636 (-[GetUserMediaUIDelegate _webView:mediaCaptureStateDidChange:]):
2637 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2638 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2639 (WTR::TestRunner::isDoingMediaCapture const):
2640 * WebKitTestRunner/InjectedBundle/TestRunner.h:
2641 * WebKitTestRunner/TestController.cpp:
2642 (WTR::TestController::isDoingMediaCapture const):
2643 * WebKitTestRunner/TestController.h:
2644 * WebKitTestRunner/TestInvocation.cpp:
2645 (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
2646 * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2647 (WTR::TestController::isDoingMediaCapture const):
2649 2019-02-03 Fujii Hironori <Hironori.Fujii@sony.com>
2651 [Win] WebKitTestRunners is failing to create the IndexedDB directory.
2652 https://bugs.webkit.org/show_bug.cgi?id=194142
2654 Reviewed by Ross Kirsling.
2656 There three 'separator' variables in TestController.cpp. Renamed
2657 it 'pathSeparator', and unified them.
2659 * WebKitTestRunner/TestController.cpp:
2660 (WTR::TestController::generateContextConfiguration const):
2661 (WTR::createTestURL):
2662 (WTR::TestController::platformAdjustContext):
2664 2019-02-03 Simon Fraser <simon.fraser@apple.com>
2666 Make setNeedsLayout on the root more explicitly about triggering its side-effects
2667 https://bugs.webkit.org/show_bug.cgi?id=194198
2669 Reviewed by Antti Koivisto.
2671 No need to set the banner heights on navigation now, since Page stores them.
2673 * MiniBrowser/mac/WK2BrowserWindowController.m:
2674 (-[WK2BrowserWindowController webView:didFinishNavigation:]):
2676 2019-02-03 John Wilander <wilander@apple.com>
2678 Parse and handle Ad Click Attribution attributes in HTMLAnchorElement::handleClick()
2679 https://bugs.webkit.org/show_bug.cgi?id=194104
2680 <rdar://problem/47649991>
2682 Reviewed by Chris Dumez, Daniel Bates, and Darin Adler.
2684 * TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp:
2685 (TestWebKitAPI::TEST):
2686 Changed numeric types from unsigned short to uint32_t.
2688 2019-02-02 David Kilzer <ddkilzer@apple.com>
2690 Leak of NSArray (4.25 Kbytes) in com.apple.WebKit.WebContent running WebKit layout tests on iOS Simulator
2691 <https://webkit.org/b/194178>
2692 <rdar://problem/47753473>
2694 Reviewed by Alexey Proskuryakov.
2696 * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
2697 (WTR::uninstallFakeHelvetica): Pass nullptr into
2698 CTFontManagerUnregisterFontsForURLs() to ignore any errors.
2700 2019-02-02 Zalan Bujtas <zalan@apple.com>
2702 [LFC] Initialize ICB's style with fixed width/height.
2703 https://bugs.webkit.org/show_bug.cgi?id=194188
2705 Reviewed by Antti Koivisto.
2707 * LayoutReloaded/misc/LFC-passing-tests.txt:
2709 2019-02-02 Zalan Bujtas <zalan@apple.com>
2711 [LFC] Add missing case to out-of-flow non-replaced horizontal used margin value computation
2712 https://bugs.webkit.org/show_bug.cgi?id=194185
2714 Reviewed by Antti Koivisto.
2716 * LayoutReloaded/misc/LFC-passing-tests.txt:
2718 2018-12-16 Darin Adler <darin@apple.com>
2720 Convert additional String::format clients to alternative approaches
2721 https://bugs.webkit.org/show_bug.cgi?id=192746
2723 Reviewed by Alexey Proskuryakov.
2725 * WebKitTestRunner/TestController.cpp:
2726 (WTR::originUserVisibleName): Use makeString and reduce the use of std::string
2727 as an intermediate in code that ultimately constructs a WTF::String.
2728 (WTR::userMediaOriginHash): Use makeString.
2729 (WTR::TestController::didNavigateWithNavigationData): More of the same.
2730 (WTR::TestController::didPerformClientRedirect): Ditto.
2731 (WTR::TestController::didPerformServerRedirect): Ditto.
2732 (WTR::TestController::didUpdateHistoryTitle): Ditto.
2734 2019-02-01 Aakash Jain <aakash_jain@apple.com>
2736 [ews-build] Add unit test to verify builder keys
2737 https://bugs.webkit.org/show_bug.cgi?id=194152
2739 Reviewed by Lucas Forschler.
2741 * BuildSlaveSupport/ews-build/loadConfig_unittest.py:
2742 (ConfigDotJSONTest.test_builder_keys): Added unit-test.
2744 2019-02-01 Zalan Bujtas <zalan@apple.com>
2746 [LFC] Expand tests coverage (12 new tests -> 787)
2748 Unreviewed test gardening.
2750 * LayoutReloaded/misc/LFC-passing-tests.txt:
2752 2019-02-01 Zalan Bujtas <zalan@apple.com>
2754 [LFC] Fix statically positioned replaced out-of-flow horizontal geometry
2755 https://bugs.webkit.org/show_bug.cgi?id=194163
2757 Reviewed by Simon Fraser.
2761 * LayoutReloaded/misc/LFC-passing-tests.txt:
2763 2019-02-01 Wenson Hsieh <wenson_hsieh@apple.com>
2765 [iOS] Consistent 1 sec hang when triggering modal alerts while handling synchronous touch events
2766 https://bugs.webkit.org/show_bug.cgi?id=194140
2767 <rdar://problem/47728098>
2769 Reviewed by Tim Horton.
2771 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2772 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2773 (WTR::TestRunner::setShouldDismissJavaScriptAlertsAsynchronously):
2775 Add a new TestRunner hook to make modal JavaScript alerts dismiss asynchronously. This is used by the new layout
2776 test to induce an IPC deadlock when presenting a modal alert during touch start.
2778 * WebKitTestRunner/InjectedBundle/TestRunner.h:
2779 * WebKitTestRunner/TestController.cpp:
2780 (WTR::runJavaScriptAlert):
2782 Add a client callback function for running JavaScript alerts.
2784 (WTR::TestController::createOtherPage):
2785 (WTR::TestController::generateContextConfiguration const):
2787 Add a test option to disable IPC timeouts for a layout test. This forces the test to reliably time out without
2788 the fix in this patch.
2790 (WTR::TestController::createWebViewWithOptions):
2792 Plumb TestOptions to generateContextConfiguration.
2794 (WTR::TestController::resetPreferencesToConsistentValues):
2795 (WTR::TestController::resetStateToConsistentValues):
2796 (WTR::updateTestOptionsFromTestHeader):
2797 (WTR::TestController::setShouldDismissJavaScriptAlertsAsynchronously):
2798 (WTR::TestController::handleJavaScriptAlert):
2799 * WebKitTestRunner/TestController.h:
2800 * WebKitTestRunner/TestInvocation.cpp:
2801 (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
2802 * WebKitTestRunner/TestOptions.h:
2803 (WTR::TestOptions::hasSameInitializationOptions const):
2805 2019-02-01 Chris Dumez <cdumez@apple.com>
2807 REGRESSION: Flaky ASSERTION FAILED: m_uncommittedState.state == State::Committed on http/tests/cookies/same-site/fetch-after-top-level-navigation-initiated-from-iframe-in-cross-origin-page.html
2808 https://bugs.webkit.org/show_bug.cgi?id=193740
2809 <rdar://problem/47527267>
2811 Reviewed by Alex Christensen.
2813 Add API test coverage.
2815 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2817 2019-02-01 Aakash Jain <aakash_jain@apple.com>
2819 [ews-app] Add display name field to BuilderMapping model
2820 https://bugs.webkit.org/show_bug.cgi?id=194153
2822 Reviewed by Lucas Forschler.
2824 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
2827 2019-02-01 Youenn Fablet <youenn@apple.com>
2829 API Test broken: TestWebKitAPI.WebKit2.GetUserMediaReprompt
2830 https://bugs.webkit.org/show_bug.cgi?id=194155
2832 Reviewed by Eric Carlson.
2834 * TestWebKitAPI/Tests/WebKit/getUserMedia.html:
2835 Revert use of async functions as it seems it cannot be evaluated from TestWebKitAPI.
2836 Keep calling enumerateDevices to continue cover https://bugs.webkit.org/show_bug.cgi?id=194106.
2838 2019-02-01 Zalan Bujtas <zalan@apple.com>
2840 [LFC] Adjust replaced element's intrinsic ratio
2841 https://bugs.webkit.org/show_bug.cgi?id=194154
2843 Reviewed by Antti Koivisto.
2847 * LayoutReloaded/misc/LFC-passing-tests.txt:
2849 2019-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2851 [WPE] Show test results in minibrowser
2852 https://bugs.webkit.org/show_bug.cgi?id=194150
2854 Reviewed by Žan Doberšek.
2856 * Scripts/webkitpy/port/wpe.py:
2857 (WPEPort.show_results_html_file):
2859 2019-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2861 [WPE] MiniBrowser: add ky bindings for back/forward navigation
2862 https://bugs.webkit.org/show_bug.cgi?id=194151
2864 Reviewed by Žan Doberšek.
2869 * MiniBrowser/wpe/main.cpp:
2872 2019-02-01 Zalan Bujtas <zalan@apple.com>
2874 [LFC] Set intrinsic size on Layout::Replaced
2875 https://bugs.webkit.org/show_bug.cgi?id=194139
2877 Reviewed by Antti Koivisto.
2881 * LayoutReloaded/misc/LFC-passing-tests.txt:
2883 2019-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2885 [WPE] MiniBrowser: use g_file_new_for_commandline_arg
2886 https://bugs.webkit.org/show_bug.cgi?id=194146
2888 Reviewed by Xabier Rodriguez-Calvar.
2890 It allows to open relative paths.
2892 * MiniBrowser/wpe/main.cpp:
2895 2019-01-31 Ryan Haddad <ryanhaddad@apple.com>
2897 Update flakiness dashboard configuration after recent queue changes
2898 https://bugs.webkit.org/show_bug.cgi?id=194127
2900 Rubber-stamped by Aakash Jain.
2902 Apple Windows queues were updated in r237755, and Sierra was removed in r239859.
2904 * TestResultServer/static-dashboards/builders.jsonp:
2906 2019-01-31 Youenn Fablet <youenn@apple.com>
2908 Add an API test to cover UIClient checkUserMediaPermissionForOrigin being nullptr
2909 https://bugs.webkit.org/show_bug.cgi?id=194106
2910 <rdar://problem/47676333>
2912 Reviewed by Ryosuke Niwa.
2914 * TestWebKitAPI/Tests/WebKit/UserMedia.cpp:
2915 (TestWebKitAPI::didFinishNavigation):
2916 (TestWebKitAPI::TEST):
2917 * TestWebKitAPI/Tests/WebKit/getUserMedia.html:
2919 2019-01-31 Chris Dumez <cdumez@apple.com>
2921 Page zoom level is lost after a process swap or a crash
2922 https://bugs.webkit.org/show_bug.cgi?id=194105
2923 <rdar://problem/47610781>
2925 Reviewed by Alex Christensen.
2927 Add API test coverage.
2929 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2930 (-[PSONNavigationDelegate webView:didCommitNavigation:]):
2932 2019-01-31 Alex Christensen <achristensen@webkit.org>
2934 Revert r238819 which is unneeded and caused a performance regression.
2935 https://bugs.webkit.org/show_bug.cgi?id=192272
2936 <rdar://problem/46664625>
2938 * TestWebKitAPI/Tests/WebKitCocoa/ParserYieldTokenPlugIn.mm:
2939 (-[ParserYieldTokenPlugIn webProcessPlugInBrowserContextController:didCommitLoadForFrame:]):
2940 (-[ParserYieldTokenPlugIn webProcessPlugInBrowserContextController:willStartProvisionalLoadForFrame:completionHandler:]): Deleted.
2942 2019-01-31 Jiewen Tan <jiewen_tan@apple.com>
2944 Formalize WebKitAdditions mechanism of LoadOptimizer
2945 https://bugs.webkit.org/show_bug.cgi?id=193886
2946 <rdar://problem/47696809>
2948 Reviewed by Brent Fulgham.
2950 * MiniBrowser/MiniBrowser.entitlements:
2951 Make com.apple.security.temporary-exception.mach-lookup.global-name an array.
2953 2019-01-31 Zalan Bujtas <zalan@apple.com>
2955 [LFC] Margin before/after/start/end initial value is 0 and not auto.
2956 https://bugs.webkit.org/show_bug.cgi?id=194090
2958 Reviewed by Antti Koivisto.
2960 * LayoutReloaded/misc/LFC-passing-tests.txt:
2962 2019-01-31 Zalan Bujtas <zalan@apple.com>
2964 [LFC] Use the used margin values in outOfFlowReplacedHorizontalGeometry consistently
2965 https://bugs.webkit.org/show_bug.cgi?id=194074
2967 Reviewed by Antti Koivisto.
2969 * LayoutReloaded/misc/LFC-passing-tests.txt:
2971 2019-01-31 Zalan Bujtas <zalan@apple.com>
2973 [LFC][BFC] Add support for block level replaced box.
2974 https://bugs.webkit.org/show_bug.cgi?id=194071
2976 Reviewed by Antti Koivisto.
2978 * LayoutReloaded/misc/LFC-passing-tests.txt:
2980 2019-01-31 Fujii Hironori <Hironori.Fujii@sony.com>
2982 Fix WebKitTestRunner's testPath with Windows full paths
2983 https://bugs.webkit.org/show_bug.cgi?id=194012
2985 Reviewed by Alex Christensen.
2987 updateTestOptionsFromTestHeader failed to open test files because
2988 testPath returned wrong file paths. It returned a path "/C:/..."
2989 if a URL "file:///C:/..." was given.
2991 * WebKitTestRunner/TestController.cpp:
2992 (WTR::testPath): Removed the first '/' if the path starts with something like "/C:/".
2994 2019-01-31 Carlos Garcia Campos <cgarcia@igalia.com>
2996 [WPE] Bump font related dependencies to match the GTK+ port
2997 https://bugs.webkit.org/show_bug.cgi?id=194017
2999 Reviewed by Žan Doberšek.
3001 * wpe/jhbuild.modules:
3002 * wpe/patches/cairo-ft-Use-FT_Done_MM_Var-instead-of-free-when-available.patch: Added.
3003 * wpe/patches/icudata-stdlibs.patch: Added.
3005 2019-01-30 Ryosuke Niwa <rniwa@webkit.org>
3007 Enable swipe tests on iOS
3008 https://bugs.webkit.org/show_bug.cgi?id=194076
3010 Reviewed by Geoffrey Garen.
3012 Removed the superflous call to prepareForAsyncTask and asyncTaskComplete as
3013 it causes a debug assertion failure in runUIScript.
3015 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3016 (WTR::UIScriptController::beginBackSwipe):
3017 (WTR::UIScriptController::completeBackSwipe):
3019 2019-01-30 Keith Rollin <krollin@apple.com>
3021 Use correct printf format specifier
3022 https://bugs.webkit.org/show_bug.cgi?id=194062
3023 <rdar://problem/47686167>
3025 Reviewed by Alexey Proskuryakov.
3027 LayoutTestSpellChecker.mm is trying to format a variable of type
3028 NSTextCheckingType with %tu (unsigned ptrdiff_t), when the type is
3029 actually an unsigned long long. Fix this by formatting with %llu.
3031 * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm:
3032 (-[LayoutTestTextCheckingResult description]):
3034 2019-01-30 Ryosuke Niwa <rniwa@webkit.org>
3036 REGRESSION(r240541): WebKit.WebsitePoliciesCustomJavaScriptUserAgent is failing since introduction on iOS
3037 https://bugs.webkit.org/show_bug.cgi?id=193979
3039 Reviewed by Wenson Hsieh.
3041 Fix the test for iOS. Make the test work with iOS UA string.
3043 * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
3045 2019-01-30 Ryan Haddad <ryanhaddad@apple.com>
3047 Replace High Sierra LLINT CLoop bot due to hardware failure
3048 https://bugs.webkit.org/show_bug.cgi?id=194066
3050 Reviewed by Aakash Jain.
3052 * BuildSlaveSupport/build.webkit.org-config/config.json:
3054 2019-01-30 Keith Rollin <krollin@apple.com>
3056 [NSDragItem init] is unavailable
3057 https://bugs.webkit.org/show_bug.cgi?id=194059
3058 <rdar://problem/47685715>
3060 Reviewed by Wenson Hsieh.
3062 [NSDragItem init] is marked as NS_UNAVAILABLE. This affects
3063 DumpRenderTree and TestWebKitAPI, which both try to create an
3064 NSDragItem in a manner that invokes this method. Address this by using
3065 -initWithPasteboardWriter instead.
3067 Note that the parameter passed to initWithPasteboardWriter is likely
3068 incorrect. In both cases, the object passed does not conform to
3069 NSPasteboardWriting. However, with this fix, we're no worse off than
3070 before, and can now perform builds with newer compilers and SDKs until
3071 a real fix can be crafted. That work is tracked in
3072 https://bugs.webkit.org/show_bug.cgi?id=194060
3074 * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
3075 (-[DumpRenderTreeDraggingInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]):
3076 * TestWebKitAPI/mac/TestDraggingInfo.mm:
3077 (-[TestDraggingInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]):
3079 2019-01-30 Daniel Bates <dabates@apple.com>
3081 [iOS] Keyups for non-modifier keys identified as "Dead" when not focused in a content-editable element
3082 https://bugs.webkit.org/show_bug.cgi?id=192824
3083 <rdar://problem/47100332>
3085 Reviewed by Wenson Hsieh.
3087 Fix a bug where the wrong usage code was used for F13 thru F24.
3089 * WebKitTestRunner/ios/HIDEventGenerator.mm:
3090 (keyCodeForDOMFunctionKey):
3092 2019-01-30 Chris Dumez <cdumez@apple.com>
3094 Regression(PSON) Load hang can occur on history navigation
3095 https://bugs.webkit.org/show_bug.cgi?id=194030
3096 <rdar://problem/47656939>
3098 Reviewed by Antti Koivisto.
3100 Add API test coverage.
3102 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3104 2019-01-30 Zalan Bujtas <zalan@apple.com>
3106 [LFC] Expand tests coverage.
3108 Unreviewed test gardening.
3110 * LayoutReloaded/misc/LFC-passing-tests.txt:
3112 2019-01-30 Thibault Saunier <tsaunier@igalia.com>
3114 [Flatpak] Add openjpeg support
3115 https://bugs.webkit.org/show_bug.cgi?id=194019
3117 Reviewed by Michael Catanzaro.
3119 * flatpak/org.webkit.CommonModules.yaml:
3121 2019-01-30 Commit Queue <commit-queue@webkit.org>
3123 Unreviewed, rolling out r240708.
3124 https://bugs.webkit.org/show_bug.cgi?id=194022
3126 It broke WPE build (Requested by KaL on #webkit).
3130 "[WPE] Bump font related dependencies to match the GTK+ port"
3131 https://bugs.webkit.org/show_bug.cgi?id=194017
3132 https://trac.webkit.org/changeset/240708
3134 2019-01-30 Zalan Bujtas <zalan@apple.com>
3136 [LFC][IFC] nextBreakablePosition returns the same position on hyphen characters
3137 https://bugs.webkit.org/show_bug.cgi?id=194001
3139 Reviewed by Antti Koivisto.
3141 * LayoutReloaded/misc/LFC-passing-tests.txt:
3143 2019-01-30 Zalan Bujtas <zalan@apple.com>
3145 [LFC] Use the used margin values in outOfFlowReplacedVerticalGeometry consistently
3146 https://bugs.webkit.org/show_bug.cgi?id=194020
3148 Reviewed by Antti Koivisto.
3150 * LayoutReloaded/misc/LFC-passing-tests.txt:
3152 2019-01-30 Chris Fleizach <cfleizach@apple.com>
3154 AX: Support color well on iOS
3155 https://bugs.webkit.org/show_bug.cgi?id=194010
3157 Reviewed by Joanmarie Diggs.
3159 * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3160 (WTR::AccessibilityUIElement::stringAttributeValue):
3162 2019-01-30 Carlos Garcia Campos <cgarcia@igalia.com>
3164 [WPE] Bump font related dependencies to match the GTK+ port
3165 https://bugs.webkit.org/show_bug.cgi?id=194017
3167 Reviewed by Žan Doberšek.
3169 * wpe/jhbuild.modules:
3170 * wpe/patches/cairo-ft-Use-FT_Done_MM_Var-instead-of-free-when-available.patch: Added.
3171 * wpe/patches/icudata-stdlibs.patch: Added.
3173 2019-01-29 Alexey Proskuryakov <ap@apple.com>
3175 [Mac] Update window scale API usage
3176 https://bugs.webkit.org/show_bug.cgi?id=193991
3177 rdar://problem/47614795
3179 Reviewed by Tim Horton.
3181 * DumpRenderTree/mac/DumpRenderTree.mm:
3182 (changeWindowScaleIfNeeded):
3183 * DumpRenderTree/mac/DumpRenderTreeWindow.h:
3184 * WebKitTestRunner/mac/PlatformWebViewMac.mm:
3185 (WTR::PlatformWebView::changeWindowScaleIfNeeded):
3187 2019-01-29 Chris Dumez <cdumez@apple.com>
3189 REGRESSION: ProcessSwap.DoSameSiteNavigationAfterCrossSiteProvisionalLoadStarted Failing on iOS
3190 https://bugs.webkit.org/show_bug.cgi?id=193977
3191 <rdar://problem/47643716>
3193 Reviewed by Geoff Garen.
3195 Update API test to address flakiness on iOS. Instead of doing the last navigation after receiving the
3196 didStartProvisionalLoad, do we right after we answer the navigation policy request. Flakiness was due
3197 to the previous provisional committing *before* we make the last load.
3199 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3201 2019-01-29 Youenn Fablet <youenn@apple.com>
3203 Adopt new SPI to evaluate server certificate trust
3204 https://bugs.webkit.org/show_bug.cgi?id=193355
3206 Reviewed by Alex Christensen.
3208 Add infrastructure to handle HTTPS server trust evaluation testing.
3210 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3211 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3212 (WTR::TestRunner::setCanHandleHTTPSServerTrustEvaluation):
3213 (WTR::TestRunner::canDoServerTrustEvaluationInNetworkProcess):
3214 (WTR::TestRunner::serverTrustEvaluationCallbackCallsCount):
3215 * WebKitTestRunner/InjectedBundle/TestRunner.h:
3216 * WebKitTestRunner/TestController.cpp:
3217 (WTR::TestController::resetPreferencesToConsistentValues):
3218 (WTR::TestController::didReceiveAuthenticationChallenge):
3219 (WTR::TestController::canDoServerTrustEvaluationInNetworkProcess const):
3220 * WebKitTestRunner/TestController.h:
3221 (WTR::TestController::serverTrustEvaluationCallbackCallsCount const):
3222 * WebKitTestRunner/TestInvocation.cpp:
3223 (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
3224 * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3225 (WTR::TestController::canDoServerTrustEvaluationInNetworkProcess const):
3227 2019-01-29 Aakash Jain <aakash_jain@apple.com>
3229 [ews-build] Add build step to print bot Configuration
3230 https://bugs.webkit.org/show_bug.cgi?id=193887
3232 Reviewed by Lucas Forschler.
3234 * BuildSlaveSupport/ews-build/steps.py:
3235 (PrintConfiguration): Build step to print configuration.
3236 * BuildSlaveSupport/ews-build/factories.py:
3238 2019-01-29 Chris Dumez <cdumez@apple.com>
3240 Regression (r240046): [PSON] Spurious changes to [WKWebView url] and [WKWebView loading] after [WKWebView loadRequest]
3241 https://bugs.webkit.org/show_bug.cgi?id=193967
3242 <rdar://problem/47635348>
3244 Reviewed by Alex Christensen.
3246 Add API test coverage.
3248 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3249 (-[PSONLoadingObserver observeValueForKeyPath:ofObject:change:context:]):
3251 2019-01-29 Aakash Jain <aakash_jain@apple.com>
3253 [ews-app] Handle incoming results data
3254 https://bugs.webkit.org/show_bug.cgi?id=193973
3256 Reviewed by Lucas Forschler.
3258 * BuildSlaveSupport/ews-app/ews/views/results.py:
3260 2019-01-29 Aakash Jain <aakash_jain@apple.com>
3262 [ews-app] Make the results url generic
3263 https://bugs.webkit.org/show_bug.cgi?id=193928
3265 Reviewed by Lucas Forschler.
3267 * BuildSlaveSupport/ews-app/ews/urls.py:
3269 2019-01-29 Aakash Jain <aakash_jain@apple.com>
3271 [ews-build] Configure buildbot to send events to ews-app
3272 https://bugs.webkit.org/show_bug.cgi?id=193968
3274 Reviewed by Lucas Forschler.
3276 * BuildSlaveSupport/ews-build/events.py: Added.
3277 * BuildSlaveSupport/ews-build/master.cfg:
3279 2019-01-29 Keith Rollin <krollin@apple.com>
3281 Add .xcfilelists to Run Script build phases
3282 https://bugs.webkit.org/show_bug.cgi?id=193792
3283 <rdar://problem/47201785>
3285 Reviewed by Alex Christensen.
3287 As part of supporting XCBuild, update the necessary Run Script build
3288 phases in their Xcode projects to refer to their associated
3291 Note that the addition of these files bumps the Xcode project version
3292 number to something that's Xcode 10 compatible. This change means that
3293 older versions of the Xcode IDE can't read these projects. Nor can it
3294 fully load workspaces that refer to these projects (the updated
3295 projects are shown as non-expandable placeholders). `xcodebuild` can
3296 still build these projects; it's just that the IDE can't open them.
3298 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3299 * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
3301 2019-01-29 John Wilander <wilander@apple.com>
3303 Add data abstraction and validation for Ad Click Attribution
3304 https://bugs.webkit.org/show_bug.cgi?id=193916
3305 <rdar://problem/47603481>
3307 Reviewed by Daniel Bates, Brent Fulgham, and Alex Christensen.
3309 Ad click attribution has two steps. First, the storage of an ad
3310 campaign ID for a click that takes the user to a destination
3311 site. Second, a conversion on the destination site that can be
3312 attributed to the ad click.
3314 This patch adds a class that represents a request for ad click
3315 attribution. Validation makes sure that the bits of entropy
3316 reported through this mechanism is limited.
3318 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3319 * TestWebKitAPI/Tests/WebCore/AdClickAttribution.cpp: Added.
3320 (TestWebKitAPI::TEST):
3322 2019-01-29 Chris Dumez <cdumez@apple.com>
3324 REGRESSION (PSON): Twitter link gets stuck at t.co after navigating back in tab
3325 https://bugs.webkit.org/show_bug.cgi?id=193932
3326 <rdar://problem/47598947>
3328 Reviewed by Brady Eidson.
3330 Add API test coverage.
3332 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3334 2019-01-29 Zalan Bujtas <zalan@apple.com>
3336 Adding new passing LFC tests.
3338 Unreviewed test gardening.
3340 * LayoutReloaded/misc/LFC-passing-tests.txt:
3342 2019-01-29 Zalan Bujtas <zalan@apple.com>
3344 [LFC][BFC][MarginCollapsing] Remove incorrect downcast<Container>
3345 https://bugs.webkit.org/show_bug.cgi?id=193964
3347 Reviewed by Antti Koivisto.
3349 * LayoutReloaded/misc/LFC-passing-tests.txt:
3351 2019-01-29 Zalan Bujtas <zalan@apple.com>
3353 [LFC][BFC] Do not ignore next sibling box while laying out BFC.
3354 https://bugs.webkit.org/show_bug.cgi?id=193954
3356 Reviewed by Antti Koivisto.
3358 * LayoutReloaded/misc/LFC-passing-tests.txt:
3360 2019-01-29 Carlos Garcia Campos <cgarcia@igalia.com>
3362 WebDriver: add support for running subtests
3363 https://bugs.webkit.org/show_bug.cgi?id=193904
3365 Reviewed by Michael Catanzaro.
3367 pytest already supports it by passing test.py::subtest, so we can do the same.
3369 * Scripts/webkitpy/webdriver_tests/pytest_runner.py:
3370 (get_item_name): Made this global.
3371 (CollectRecorder.__init__): Receive the parameter to ignore.
3372 (CollectRecorder.pytest_collectreport): Collect also the subtests.
3373 (TestExpectationsMarker.pytest_collection_modifyitems): Use get_item_name().
3374 (collect): Add parameter to ignore.
3375 * Scripts/webkitpy/webdriver_tests/webdriver_selenium_executor.py:
3376 (WebDriverSeleniumExecutor.collect): Pass the driver name as parameter to ignore.
3377 * Scripts/webkitpy/webdriver_tests/webdriver_test_runner_selenium.py:
3378 (WebDriverTestRunnerSelenium.collect_tests): Handle subtest name in test path.
3379 (WebDriverTestRunnerSelenium.run): Ditto.
3380 * Scripts/webkitpy/webdriver_tests/webdriver_test_runner_w3c.py:
3381 (WebDriverTestRunnerW3C.collect_tests): Ditto.
3382 (WebDriverTestRunnerW3C.run): Ditto.
3384 2019-01-28 Ryosuke Niwa <rniwa@webkit.org>
3386 User agent string override for navigator.userAgent should be site specific quirks
3387 https://bugs.webkit.org/show_bug.cgi?id=193950
3389 Reviewed by Brent Fulgham.
3391 Updated per the _WKWebsitePolicies rename.
3393 * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
3394 (-[CustomJavaScriptUserAgentDelegate _webView:decidePolicyForNavigationAction:userInfo:decisionHandler:]):
3396 2019-01-28 Ross Kirsling <ross.kirsling@sony.com>
3398 Remove unnecessary `using namespace WTF`s (or at least restrict their scope).
3399 https://bugs.webkit.org/show_bug.cgi?id=193941
3401 Reviewed by Alex Christensen.
3403 * TestWebKitAPI/Tests/WTF/ConcurrentPtrHashSet.cpp:
3404 * TestWebKitAPI/Tests/WTF/Condition.cpp:
3405 * TestWebKitAPI/Tests/WTF/Lock.cpp:
3406 * TestWebKitAPI/Tests/WTF/MetaAllocator.cpp:
3407 * TestWebKitAPI/Tests/WTF/ParkingLot.cpp:
3408 * TestWebKitAPI/Tests/WTF/RedBlackTree.cpp:
3409 * TestWebKitAPI/Tests/WTF/ScopedLambda.cpp:
3410 * TestWebKitAPI/Tests/WTF/Time.cpp:
3411 * TestWebKitAPI/Tests/WTF/UniqueArray.cpp:
3412 * TestWebKitAPI/Tests/WebCore/ApplicationManifestParser.cpp:
3413 * TestWebKitAPI/Tests/WebCore/Logging.cpp:
3414 * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm:
3416 2019-01-28 Yusuke Suzuki <ysuzuki@apple.com>
3418 Unreviewed, reorder my emails to fix autocomplete in bugzilla
3420 * Scripts/webkitpy/common/config/contributors.json:
3422 2019-01-28 Andy Estes <aestes@apple.com>
3424 [watchOS] Enable Parental Controls content filtering
3425 https://bugs.webkit.org/show_bug.cgi?id=193939
3426 <rdar://problem/46641912>
3428 Reviewed by Ryosuke Niwa.
3430 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3432 2019-01-28 David Kilzer <ddkilzer@apple.com>
3434 REGRESSION (r236481): Move soft-linking of LocalAuthentication.framework out of LocalAuthenticationSoftLink.h
3435 <https://webkit.org/b/193884>
3437 Reviewed by Jiewen Tan.
3439 * Scripts/webkitpy/style/checkers/cpp.py:
3440 (check_language): Add LocalAuthentication to
3441 `frameworks_with_soft_links`.
3443 2019-01-28 Fujii Hironori <Hironori.Fujii@sony.com>
3445 [Win][WebKitTestRunner] Error: test and reference images have different sizes. Test image is 784x561, reference image is 800x600
3446 https://bugs.webkit.org/show_bug.cgi?id=193891
3448 Reviewed by Ross Kirsling.
3450 There were three problems in window sizes of WebView and the host window.
3451 1. The sizes of pixel image output were incorrect.
3452 2. The host window is going to appear after window.resize was invoked.
3453 3. window.resize resized only the host window, not WebView.
3455 This change solves them with a following approach.
3456 a. PlatformWebView::PlatformWebView creates the initial host window as zero size.
3457 b. Changes the host window style from WS_OVERLAPPEDWINDOW to WS_POPUP
3458 as well as DumpRenderTree in order to match the client area and the window area.
3459 c. PlatformWebView::resizeTo simply calls PlatformWebView::setWindowFrame as well as Mac port and GTK port.
3460 d. PlatformWebView::setWindowFrame changes both window sizes.
3461 e. PlatformWebView::setWindowFrame moves the host window to the out side of screen if m_options.shouldShowWebView.
3463 * WebKitTestRunner/win/PlatformWebViewWin.cpp:
3464 (WTR::PlatformWebView::PlatformWebView): Create the host window
3465 and WebView as zero size. Use WS_POPUP instead of WS_OVERLAPPEDWINDOW.
3466 (WTR::PlatformWebView::resizeTo): Calls PlatformWebView::setWindowFrame.
3467 (WTR::PlatformWebView::setWindowFrame): Change both window sizes.
3469 2019-01-28 Aakash Jain <aakash_jain@apple.com>
3471 [ews-app] Add method to save Step data to database
3472 https://bugs.webkit.org/show_bug.cgi?id=193890
3474 Reviewed by Lucas Forschler.
3476 * BuildSlaveSupport/ews-app/ews/models/step.py:
3477 (Step.save_step): Method to save step data.
3478 (Step.update_step): Method to update step data.
3479 (Step.get_existing_step): Method to fetch existing step from database.
3480 (Step.is_valid_result): Method to validate valid step result.
3482 2019-01-28 Aakash Jain <aakash_jain@apple.com>
3484 [ews-app] Add method to save Build data to database
3485 https://bugs.webkit.org/show_bug.cgi?id=193735
3487 Reviewed by Lucas Forschler.
3489 * BuildSlaveSupport/ews-app/ews/models/build.py:
3490 (Build.save_build): Method to save build information to database.
3491 (Build.get_existing_build): Method to fetch existing build from database.
3492 (Build.is_valid_result): Method to validate build result.
3493 * BuildSlaveSupport/ews-app/ews/common/util.py:
3494 (is_valid_int_id): Method to validate valid id.
3496 2019-01-28 Chris Dumez <cdumez@apple.com>
3498 Regression(PSON) Crash under WebPageProxy::didStartProgress()
3499 https://bugs.webkit.org/show_bug.cgi?id=193915
3500 <rdar://problem/47560907>
3502 Reviewed by Alex Christensen.
3504 Add API test coverage.
3506 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3508 2019-01-28 Aakash Jain <aakash_jain@apple.com>
3510 [ews-app] Rename id variables
3511 https://bugs.webkit.org/show_bug.cgi?id=193883
3513 Reviewed by Lucas Forschler.
3515 * BuildSlaveSupport/ews-app/ews/models/build.py:
3516 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
3517 * BuildSlaveSupport/ews-app/ews/models/step.py:
3518 * BuildSlaveSupport/ews-app/ews/urls.py:
3519 * BuildSlaveSupport/ews-app/ews/views/patch.py:
3520 * BuildSlaveSupport/ews-app/ews/views/results.py:
3521 * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
3523 2019-01-28 Aakash Jain <aakash_jain@apple.com>
3525 [ews-app] Allow certain fields to be empty
3526 https://bugs.webkit.org/show_bug.cgi?id=193892
3528 Reviewed by Lucas Forschler.
3530 * BuildSlaveSupport/ews-app/ews/models/build.py:
3531 * BuildSlaveSupport/ews-app/ews/models/step.py:
3533 2019-01-28 Rob Buis <rbuis@igalia.com>
3535 Update MIME type parser
3536 https://bugs.webkit.org/show_bug.cgi?id=180526
3538 Reviewed by Frédéric Wang.
3540 * TestWebKitAPI/Tests/WebCore/ParsedContentType.cpp:
3541 (TestWebKitAPI::TEST):
3543 2019-01-28 Zalan Bujtas <zalan@apple.com>
3545 [LFC][MarginCollapsing][Quirks] Quirk margin values get propagated through margin collapsing
3546 https://bugs.webkit.org/show_bug.cgi?id=193896
3548 Reviewed by Antti Koivisto.
3550 * LayoutReloaded/misc/LFC-passing-tests.txt:
3552 2018-12-15 Darin Adler <darin@apple.com>
3554 Replace many uses of String::format with more type-safe alternatives
3555 https://bugs.webkit.org/show_bug.cgi?id=192742
3557 Reviewed by Mark Lam.
3559 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3560 (WTR::cacheTestRunnerCallback): Use makeString.
3561 * WebKitTestRunner/TestController.cpp:
3562 (WTR::TestController::didReceiveAuthenticationChallenge): Use makeString.
3563 (WTR::TestController::downloadDidFail): Use an ASCIILiteral via the _s syntax.
3565 2019-01-27 Jiewen Tan <jiewen_tan@apple.com>
3567 Use a load optimizer for some sites
3568 https://bugs.webkit.org/show_bug.cgi?id=193881
3569 <rdar://problem/46325455>
3571 Reviewed by Brent Fulgham.
3573 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3574 * TestWebKitAPI/Tests/WebKitCocoa/TestLoadOptimizer.mm: Added.
3576 2019-01-27 Chris Fleizach <cfleizach@apple.com>
3578 AX: Introduce a static accessibility tree
3579 https://bugs.webkit.org/show_bug.cgi?id=193348
3580 <rdar://problem/47203295>
3582 Reviewed by Ryosuke Niwa.
3584 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3586 2019-01-26 Zalan Bujtas <zalan@apple.com>
3588 [LFC] The default values for top/bottom in contentHeightForFormattingContextRoot should not be 0.
3589 https://bugs.webkit.org/show_bug.cgi?id=193867
3591 Reviewed by Antti Koivisto.
3593 * LayoutReloaded/misc/LFC-passing-tests.txt:
3595 2019-01-26 Zalan Bujtas <zalan@apple.com>
3597 [LFC][BFC] Ignore last inflow child's collapsed through margin after when computing containing block's height.
3598 https://bugs.webkit.org/show_bug.cgi?id=193865
3600 Reviewed by Antti Koivisto.
3602 * LayoutReloaded/misc/LFC-passing-tests.txt:
3604 2019-01-25 Ryosuke Niwa <rniwa@webkit.org>
3606 Need a mechanism to override navigator.userAgent
3607 https://bugs.webkit.org/show_bug.cgi?id=193762
3608 <rdar://problem/47504939>
3610 Reviewed by Brent Fulgham.
3612 Added test cases for _WKWebsitePolicies.customJavaScriptUserAgent.
3614 * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
3615 (-[CustomJavaScriptUserAgentDelegate _webView:decidePolicyForNavigationAction:userInfo:decisionHandler:]):
3616 (-[CustomJavaScriptUserAgentDelegate webView:didFinishNavigation:]):
3618 2019-01-25 Dean Jackson <dino@apple.com>
3620 REGRESSION: Some USDz from 3rd party websites don't go directly to AR QL
3621 https://bugs.webkit.org/show_bug.cgi?id=193831
3622 <rdar://problem/47399263>
3624 Reviewed by Chris Dumez.
3626 Two new tests that exercise cross-origin and same-origin System
3629 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3631 2019-01-25 Keith Rollin <krollin@apple.com>
3633 Update Xcode projects with "Check .xcfilelists" build phase
3634 https://bugs.webkit.org/show_bug.cgi?id=193790
3635 <rdar://problem/47201374>
3637 Reviewed by Alex Christensen.
3639 Support for XCBuild includes specifying inputs and outputs to various
3640 Run Script build phases. These inputs and outputs are specified as
3641 .xcfilelist files. Once created, these .xcfilelist files need to be
3642 kept up-to-date. In order to check that they are up-to-date or not,
3643 add an Xcode build step that invokes an external script that performs
3644 the checking. If the .xcfilelists are found to be out-of-date, update
3645 them, halt the build, and instruct the developer to restart the build
3646 with up-to-date files.
3648 At this time, the checking and regenerating is performed only if the
3649 WK_ENABLE_CHECK_XCFILELISTS environment variable is set to 1. People
3650 who want to use this facility can set this variable and test out the
3651 checking/regenerating. Once it seems like there are no egregious
3652 issues that upset a developer's workflow, we'll unconditionally enable
3655 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3656 * DumpRenderTree/Scripts/check-xcfilelists.sh: Added.
3657 * WebKitTestRunner/Scripts/check-xcfilelists.sh: Added.
3658 * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
3660 2019-01-25 Keith Rollin <krollin@apple.com>
3662 Update Xcode projects with "Apply Configuration to XCFileLists" build target
3663 https://bugs.webkit.org/show_bug.cgi?id=193781
3664 <rdar://problem/47201153>
3666 Reviewed by Alex Christensen.
3668 Part of generating the .xcfilelists used as part of adopting XCBuild
3669 includes running `make DerivedSources.make` from a standalone script.
3670 It’s important for this invocation to have the same environment as
3671 when the actual build invokes `make DerivedSources.make`. If the
3672 environments are different, then the two invocations will provide
3673 different results. In order to get the same environment in the
3674 standalone script, have the script launch xcodebuild targeting the
3675 "Apply Configuration to XCFileLists" build target, which will then
3676 re-invoke our standalone script. The script is now running again, this
3677 time in an environment with all workspace, project, target, xcconfig
3678 and other environment variables established.
3680 The "Apply Configuration to XCFileLists" build target accomplishes
3681 this task via a small embedded shell script that consists only of:
3683 eval "${WK_SUBLAUNCH_SCRIPT_PARAMETERS[@]}"
3685 The process that invokes "Apply Configuration to XCFileLists" first
3686 sets WK_SUBLAUNCH_SCRIPT_PARAMETERS to an array of commands to be
3687 evaluated and exports it into the shell environment. When xcodebuild
3688 is invoked, it inherits the value of this variable and can `eval` the
3689 contents of that variable. Our external standalone script can then set
3690 WK_SUBLAUNCH_SCRIPT_PARAMETERS to the path to itself, along with a set
3691 of command-line parameters needed to restart itself in the appropriate
3694 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3695 * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
3697 2019-01-25 Alex Christensen <achristensen@webkit.org>
3699 Add SPI to inform an application that "Go Back" has been clicked from a safe browsing warning
3700 https://bugs.webkit.org/show_bug.cgi?id=193802
3701 <rdar://problem/46010580>
3703 Reviewed by Andy Estes.
3705 * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
3706 (-[SafeBrowsingNavigationDelegate _webViewDidClickGoBackFromSafeBrowsingWarning:]):
3709 2019-01-25 Daniel Bates <dabates@apple.com>
3711 [iOS] uiController.keyDown() does not translate Control modified key
3712 https://bugs.webkit.org/show_bug.cgi?id=192898
3714 Reviewed by Wenson Hsieh.
3716 Implement uiController.keyDown() in terms of HIDEventGenerator so that UIKit performs
3717 key translation, as applicable. Among other cases, key translation occurs when performing
3718 a Control key modified key sequence. Writing uiController.keyDown() in terms of HIDEventGenerator
3719 also makes the behavior of uiController.keyDown() more closely match the behavior of a
3720 human pressing down and releasing key(s) using a hardware keyboard.
3722 * WebKitTestRunner/ios/HIDEventGenerator.h:
3723 * WebKitTestRunner/ios/HIDEventGenerator.mm:
3724 (-[HIDEventGenerator sendMarkerHIDEventWithCompletionBlock:]): Renamed; formerly named _sendMarkerHIDEventWithCompletionBlock.
3726 (-[HIDEventGenerator touchDown:touchCount:completionBlock:]):
3727 (-[HIDEventGenerator liftUp:touchCount:completionBlock:]):
3728 (-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
3729 (-[HIDEventGenerator stylusMoveToPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
3730 (-[HIDEventGenerator stylusUpAtPoint:completionBlock:]):
3731 (-[HIDEventGenerator stylusTapAtPoint:azimuthAngle:altitudeAngle:pressure:completionBlock:]):
3732 (-[HIDEventGenerator sendTaps:location:withNumberOfTouches:completionBlock:]):
3733 (-[HIDEventGenerator longPress:completionBlock:]):
3734 (-[HIDEventGenerator dragWithStartPoint:endPoint:duration:completionBlock:]):
3735 Update code for above renaming.
3737 (hidUsageCodeForCharacter): Translate \b to a backspace and teach this function to recognize the
3738 DumpRenderTree EventSender-compatible modifier key names (e.g. "metaKey").
3740 (-[HIDEventGenerator keyDown:]): Added.
3741 (-[HIDEventGenerator keyUp:]): Added.
3742 (-[HIDEventGenerator keyPress:completionBlock:]):
3743 (-[HIDEventGenerator eventDispatchThreadEntry:]):
3744 (-[HIDEventGenerator _sendMarkerHIDEventWithCompletionBlock:]): Deleted; renamed to sendMarkerHIDEventWithCompletionBlock.
3745 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3746 (WTR::parseModifierArray): Modified to return a vector of strings that represent the modifier keys to press.
3747 (WTR::UIScriptController::keyDown): Write in terms of HIDEventGenerator.
3748 (WTR::parseModifier): Deleted.
3750 2019-01-25 Keith Rollin <krollin@apple.com>
3752 Complete the implementation of generate-xcfilelists
3753 https://bugs.webkit.org/show_bug.cgi?id=193782
3755 Reviewed by Alex Christensen.
3757 A preliminary version of generate-xcfilelists was added in r238008.
3758 This patch updates that script in order to:
3760 - Support checking of .xcfilelists
3761 - Perform better execution of `make DerivedSources.make` by
3762 relaunching generate-xcfilelists under xcodebuild
3763 - Support incremental generation and checking of .xcfilelists
3764 - Support supplementary .xcfilelists files from WebKitAdditions
3765 - Support being wrapped by parallel version of generate-xcfilelists in
3766 Internal that adds support for (re)generating WebKit projects in
3768 - Support builds that have been performed in WebKitBuild as well as
3769 ~/Library/Developer/code/DerivedData
3770 - Increase robustness and debugging facilities.
3772 * Scripts/generate-xcfilelists:
3774 2019-01-25 Brent Fulgham <bfulgham@apple.com>
3776 Activate the WebResourceLoadStatisticsStore in the NetworkProcess and deactivate it in the UIProcess.
3777 https://bugs.webkit.org/show_bug.cgi?id=193297
3778 <rdar://problem/47158841>
3780 Unreviewed test case fix.
3782 These test cases require ResourceLoadStatistics to be active, so the feature must be turned on.
3783 Previously, the default data store turned the feature on automatically, allowing these tests to pass.
3785 * TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm:
3788 2019-01-25 Keith Rollin <krollin@apple.com>
3790 Update existing .xcfilelists
3791 https://bugs.webkit.org/show_bug.cgi?id=193791
3792 <rdar://problem/47201706>
3794 Reviewed by Alex Christensen.
3796 Many .xcfilelist files were added in r238824 in order to support
3797 XCBuild. Update these with recent changes to the set of build files
3798 and with the current generate-xcfilelist script.
3800 * DumpRenderTree/DerivedSources-input.xcfilelist:
3801 * DumpRenderTree/DerivedSources-output.xcfilelist:
3802 * WebKitTestRunner/DerivedSources-input.xcfilelist:
3803 * WebKitTestRunner/DerivedSources-output.xcfilelist:
3805 2019-01-25 Keith Rollin <krollin@apple.com>
3807 Fix missing dependencies in extract-dependencies-from-makefile
3808 https://bugs.webkit.org/show_bug.cgi?id=193783
3809 <rdar://problem/47201571>
3811 Reviewed by Alex Christensen.
3813 The extract-dependencies-from-makefile script generates .xcfilelists
3814 for XCBuild by invoking a makefile in --debug mode, parsing the
3815 dependency information in the output, and extracting information
3816 regarding targets and dependents. However, the way `make` emits this
3817 dependency information is not rigorous, and so we need to determine
3818 what lines to look for and parse by trial and error. This approach
3819 didn't coriginally atch all the information we needed to collect, so
3820 update the script to look for the additional lines we now know to look
3823 * Scripts/extract-dependencies-from-makefile:
3829 2019-01-25 Brent Fulgham <bfulgham@apple.com>
3831 Activate the WebResourceLoadStatisticsStore in the NetworkProcess and deactivate it in the UIProcess.
3832 https://bugs.webkit.org/show_bug.cgi?id=193297
3833 <rdar://problem/47158841>
3835 Reviewed by Alex Christensen.
3837 * TestWebKitAPI/Tests/WebKit Cocoa/ResourceLoadStatistics.mm:
3838 Revise tests to ensure a running NetworkProcess before attempting ResourceLoadStatistics operations.
3839 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3840 (WTR::TestRunner::installStatisticsDidScanDataRecordsCallback): Simplify test configuration by
3841 activating the message used to trigger the callback when it is set.
3843 2019-01-25 Alex Christensen <achristensen@webkit.org>
3845 WKWebView.goBack should reload if there is a safe browsing warning
3846 https://bugs.webkit.org/show_bug.cgi?id=193805
3847 <rdar://problem/46908216>
3849 Reviewed by Geoff Garen.
3851 * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
3852 (+[Simple3LookupContext sharedLookupContext]):
3853 (-[Simple3LookupContext lookUpURL:completionHandler:]):
3854 (-[WKWebViewGoBackNavigationDelegate webView:didFinishNavigation:]):
3857 2019-01-25 Chris Dumez <cdumez@apple.com>
3859 Regression(PSON) cross-site provisional page is not canceled if a new same-site one is started
3860 https://bugs.webkit.org/show_bug.cgi?id=193788
3861 <rdar://problem/47531231>
3863 Reviewed by Alex Christensen.
3865 Add API test coverage.
3867 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3868 (-[PSONNavigationDelegate webView:didStartProvisionalNavigation:]):
3870 2019-01-25 Jonathan Bedard <jbedard@apple.com>
3872 webkitpy: Missing PID in crashlog name should not be fatal (Follow-up fix)
3873 https://bugs.webkit.org/show_bug.cgi?id=193771
3875 Unreviewed infrastructure fix.
3877 * Scripts/webkitpy/port/darwin.py:
3878 (DarwinPort._merge_crash_logs): Correct syntax for catching multiple exception types.
3880 2019-01-25 Alexey Proskuryakov <ap@apple.com>
3882 * Scripts/webkitpy/common/config/contributors.json: Removing a stray comma.
3884 2019-01-25 Alexey Proskuryakov <ap@apple.com>
3886 Add contributors.json entries for Ling Ho and for a new bot watchers group.
3888 * Scripts/webkitpy/common/config/contributors.json:
3890 2019-01-25 Chris Dumez <cdumez@apple.com>
3892 Regression(PSON?) Crash under NavigationState::NavigationClient::decidePolicyForNavigationAction()
3893 https://bugs.webkit.org/show_bug.cgi?id=193779
3894 <rdar://problem/46170903>
3896 Reviewed by Antti Koivisto.
3898 Add API test that quickly navigates forward to a previous process without waiting for it to
3899 suspend. I suspect the crash could have been happening due to receiving leftover IPC from
3900 the process' previous page when reconnecting the it for the forward navigation.
3902 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3904 2019-01-25 Wenson Hsieh <wenson_hsieh@apple.com>
3906 Need a way for JavaScript (or bundle) code to participate in undo
3907 https://bugs.webkit.org/show_bug.cgi?id=190009
3908 <rdar://problem/44807048>
3910 Reviewed by Ryosuke Niwa.
3912 Add UIScriptController helpers to grab the platform undo and redo action labels. Currently only implemented for
3913 Cocoa platforms in WebKit2. See other ChangeLogs for more detail.
3915 * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3916 (WTR::UIScriptController::lastUndoLabel const):
3917 (WTR::UIScriptController::firstRedoLabel const):
3918 (WTR::UIScriptController::platformUndoManager const):
3919 * DumpRenderTree/mac/UIScriptControllerMac.mm:
3920 (WTR::UIScriptController::lastUndoLabel const):
3921 (WTR::UIScriptController::firstRedoLabel const):
3922 (WTR::UIScriptController::platformUndoManager const):
3923 * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3924 * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3925 (WTR::UIScriptController::lastUndoLabel const):
3926 (WTR::UIScriptController::firstRedoLabel const):
3927 * TestRunnerShared/UIScriptContext/UIScriptController.h:
3928 * WebKitTestRunner/UIScriptControllerCocoa.mm:
3929 (WTR::UIScriptController::lastUndoLabel const):
3930 (WTR::UIScriptController::firstRedoLabel const):
3931 * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3932 (WTR::UIScriptController::platformUndoManager const):
3933 * WebKitTestRunner/mac/UIScriptControllerMac.mm:
3934 (WTR::UIScriptController::platformUndoManager const):
3936 2019-01-25 Zalan Bujtas <zalan@apple.com>
3938 [LFC][BFC][MarginCollapsing] Add "clear" to static position computation.
3939 https://bugs.webkit.org/show_bug.cgi?id=193824
3941 Reviewed by Antti Koivisto.
3943 * LayoutReloaded/misc/LFC-passing-tests.txt:
3945 2019-01-24 Ryan Haddad <ryanhaddad@apple.com>
3947 Update macOS JSC bot configurations
3948 https://bugs.webkit.org/show_bug.cgi?id=193739
3950 Reviewed by Alexey Proskuryakov.
3952 * BuildSlaveSupport/build.webkit.org-config/config.json: Remove 32-bit BuildAndTest queue.
3953 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
3954 (BubbleQueueServer): Move JSC EWS to Mojave section.
3955 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3956 (WebKitBuildbot): Remove 32-bit BuildAndTest queue from dashboard.
3957 * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py: Update unit test.
3959 2019-01-24 Fujii Hironori <Hironori.Fujii@sony.com>
3961 [Win][WebKitTestRunner] Implement EventSenderProxy
3962 https://bugs.webkit.org/show_bug.cgi?id=193755
3964 Reviewed by Don Olmstead.
3966 * WebKitTestRunner/EventSenderProxy.h: Removed unused members m_buttonState and m_mouseButtonsCurrentlyDown.
3967 * WebKitTestRunner/win/EventSenderProxyWin.cpp:
3968 (WTR::EventSenderProxy::dispatchMessage):
3969 (WTR::EventSenderProxy::EventSenderProxy):
3970 (WTR::EventSenderProxy::mouseDown):
3971 (WTR::EventSenderProxy::mouseUp):
3972 (WTR::EventSenderProxy::mouseMoveTo):
3973 (WTR::EventSenderProxy::mouseScrollBy):
3974 (WTR::EventSenderProxy::mouseScrollByWithWheelAndMomentumPhases):
3976 2019-01-24 Ross Kirsling <ross.kirsling@sony.com>
3978 Unreviewed fix for API test failure after r240437.
3980 TestWTF.WTF.StringOperators apparently can't deal with another test using String::operator+. This is fine...
3982 * TestWebKitAPI/Tests/WTF/FileSystem.cpp:
3984 2019-01-24 Jonathan Bedard <jbedard@apple.com>
3986 [webkitdirs] iosSimulatorApplicationsPath may not have iOS.simruntime in its path
3987 https://bugs.webkit.org/show_bug.cgi?id=193787
3988 <rdar://problem/47497634>
3990 Reviewed by Alexey Proskuryakov.
3992 * Scripts/webkitdirs.pm:
3993 (iosSimulatorApplicationsPath): Pick from available runtime directories.
3995 2019-01-24 Truitt Savell <tsavell@apple.com>
3997 Unreviewed, rolling out r240446.
3999 Casued 5 API failures
4003 "Activate the WebResourceLoadStatisticsStore in the
4004 NetworkProcess and deactivate it in the UIProcess."
4005 https://bugs.webkit.org/show_bug.cgi?id=193297
4006 https://trac.webkit.org/changeset/240446
4008 2019-01-24 Zalan Bujtas <zalan@apple.com>
4010 DidFirstVisuallyNonEmptyLayout milestone should always fire at some point.
4011 https://bugs.webkit.org/show_bug.cgi?id=193741
4012 <rdar://problem/47135030>
4014 Reviewed by Antti Koivisto and Simon Fraser.
4016 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4017 * TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp:
4018 (TestWebKitAPI::TEST):
4020 2019-01-24 Brent Fulgham <bfulgham@apple.com>
4022 Activate the WebResourceLoadStatisticsStore in the NetworkProcess and deactivate it in the UIProcess.
4023 https://bugs.webkit.org/show_bug.cgi?id=193297
4024 <rdar://problem/47158841>
4026 Reviewed by Alex Christensen.
4028 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
4029 (WTR::TestRunner::installStatisticsDidScanDataRecordsCallback): Simplify test configuration by
4030 activating the message used to trigger the callback when it is set.
4032 2019-01-24 John Wilander <wilander@apple.com>
4034 Add Ad Click Attribution as an internal/experimental feature
4035 https://bugs.webkit.org/show_bug.cgi?id=193685
4036 <rdar://problem/47450399>
4038 Reviewed by Brent Fulgham.
4040 Added test option adClickAttributionEnabled.
4042 * DumpRenderTree/TestOptions.cpp:
4043 (TestOptions::TestOptions):
4044 * DumpRenderTree/TestOptions.h:
4045 * DumpRenderTree/mac/DumpRenderTree.mm:
4046 (setWebPreferencesForTestOptions):
4048 2019-01-24 Antti Koivisto <antti@apple.com>
4050 [PSON] Flash on back navigation on Mac
4051 https://bugs.webkit.org/show_bug.cgi?id=193716
4052 <rdar://problem/47148458>
4054 Reviewed by Chris Dumez.
4056 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
4058 Closing of the previous page is delayed so waiting for didFinishNavigation is
4059 not sufficient to guarantee we have received all the messages. Wait for them.
4061 2019-01-24 Chris Dumez <cdumez@apple.com>
4063 Regression(PSON) Back/Forward list items' URL sometimes gets replaced with the URL of a subframe
4064 https://bugs.webkit.org/show_bug.cgi?id=193761
4065 <rdar://problem/47456405>
4067 Reviewed by Alex Christensen.
4069 Add API test coverage.
4071 * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
4073 2019-01-24 Jonathan Bedard <jbedard@apple.com>
4075 webkitpy: Missing PID in crashlog name should not be fatal
4076 https://bugs.webkit.org/show_bug.cgi?id=193771
4078 If we can't determine the PID of a crashlog, just ignore the crashlog instead
4079 of raising an exception.
4081 Reviewed by Lucas Forschler.
4083 * Scripts/webkitpy/port/darwin.py:
4084 (DarwinPort._merge_crash_logs):
4086 2019-01-24 Michael Catanzaro <mcatanzaro@igalia.com>
4088 test_exporter.py: webkitpy.common.system.executive.ScriptError from create_branch_with_patch
4089 https://bugs.webkit.org/show_bug.cgi?id=193746
4091 Reviewed by Youenn Fablet.
4093 It calls 'git apply --index --abort', but --abort is not a valid argument to 'git apply',
4094 so we'd best just not call it.
4096 * Scripts/webkitpy/w3c/test_exporter.py:
4097 (WebPlatformTestExporter.create_branch_with_patch):
4099 2019-01-24 Ross Kirsling <ross.kirsling@sony.com>
4101 Move FileSystem to WTF
4102 https://bugs.webkit.org/show_bug.cgi?id=193602
4104 Reviewed by Yusuke Suzuki.
4106 * DumpRenderTree/win/DumpRenderTree.cpp:
4107 * TestWebKitAPI/CMakeLists.txt:
4108 * TestWebKitAPI/PlatformGTK.cmake:
4109 * TestWebKitAPI/PlatformJSCOnly.cmake:
4110 * TestWebKitAPI/PlatformPlayStation.cmake:
4111 * TestWebKitAPI/PlatformWPE.cmake:
4112 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4113 * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp.
4114 * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
4115 * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
4116 * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp:
4117 * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm:
4118 * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp:
4119 * TestWebKitAPI/Tests/WebKitCocoa/Download.mm:
4120 * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm:
4121 * TestWebKitAPI/win/PlatformUtilitiesWin.cpp:
4123 2019-01-24 Philippe Normand <pnormand@igalia.com>
4125 [WPE] Remove hard dependency on subprocess32 for the API tests
4127 Rubber-stamped by Carlos Garcia Campos.
4129 * glib/api_test_runner.py:
4130 (TestRunner._run_test_qt): Lazily import subprocess32 and check
4131 its presence only when running WPEQt tests.
4133 2019-01-24 Carlos Garcia Campos <cgarcia@igalia.com>
4135 [GLIB] Expose JavaScriptCore options in GLib public API
4136 https://bugs.webkit.org/show_bug.cgi?id=188742
4138 Reviewed by Michael Catanzaro.
4140 Add a test for the new API.
4142 * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
4146 2019-01-24 Carlos Garcia Campos <cgarcia@igalia.com>
4148 [GTK][WPE] Support JPEG 2000 images
4149 https://bugs.webkit.org/show_bug.cgi?id=186272
4151 Reviewed by Žan Doberšek.
4153 Add OpenJPEG to jhbuild since 2.2.0 version is required and it's not available in debian stable.
4155 * gtk/jhbuild.modules:
4156 * wpe/jhbuild.modules:
4158 2019-01-23 David Kilzer <ddkilzer@apple.com>
4160 check-webkit-style should warn when using soft-linking macros in a header
4161 <https://webkit.org/b/193750>
4163 Reviewed by Darin Adler.
4165 * Scripts/webkitpy/style/checkers/cpp.py:
4166 (check_language): Add softlink/header check by refactoring the
4167 softlink/framework check.
4168 (CppChecker): Enable softlink/header check by default.
4169 * Scripts/webkitpy/style/checkers/cpp_unittest.py:
4170 (CppStyleTest.test_softlink_framework): Rename from
4171 CppStyleTest.test_softlink() and change test framework name in
4172 case AVFoundation gets its own AVFoundationSoftLink.{h,mm}
4173 files. Set file_name for macros that only appear in headers.
4174 (CppStyleTest.test_softlink_header): Add tests for using
4175 soft-link macros in headers.
4177 2019-01-23 Chris Dumez <cdumez@apple.com>
4179 Deprecate API to limit the maximum number of WebProcesses
4180 https://bugs.webkit.org/show_bug.cgi?id=193725
4181 <rdar://problem/47464879>
4183 Reviewed by Geoff Garen.
4185 Update existing API tests to stop using deprecated API.
4187 * MiniBrowser/mac/AppDelegate.m:
4188 (defaultConfiguration):
4189 * TestWebKitAPI/Tests/WebKit/UserMedia.cpp:
4190 (TestWebKitAPI::TEST):
4191 * TestWebKitAPI/Tests/WebKitCocoa/ResponsivenessTimer.mm:
4192 (TestWebKitAPI::TEST):
4193 * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
4194 * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm:
4196 * TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm:
4199 2019-01-23 Aakash Jain <aakash_jain@apple.com>
4201 [ews-app] Rename ews model buildermappings to buildermapping
4202 https://bugs.webkit.org/show_bug.cgi?id=193729
4204 Reviewed by Lucas Forschler.
4206 * BuildSlaveSupport/ews-app/ews/models/buildermapping.py: Renamed from Tools/BuildSlaveSupport/ews-app/ews/models/buildermappings.py.
4207 (BuilderMapping): Renamed BuildMappings to BuilderMapping.
4208 * BuildSlaveSupport/ews-app/ews/models/__init__.py: Ditto.
4210 2019-01-23 Aakash Jain <aakash_jain@apple.com>
4212 [ews-app] Rename ews model steps to step
4213 https://bugs.webkit.org/show_bug.cgi?id=193697
4215 Reviewed by Lucas Forschler.
4217 * BuildSlaveSupport/ews-app/ews/models/step.py: Renamed from Tools/BuildSlaveSupport/ews-app/ews/models/steps.py.
4218 (Step): Renamed Steps to Step.
4220 2019-01-23 Sihui Liu <sihui_liu@apple.com>
4222 Clean up IndexedDB files between tests
4223 https://bugs.webkit.org/show_bug.cgi?id=192796
4224 <rdar://problem/46824999>
4226 Reviewed by Geoffrey Garen.
4228 * DumpRenderTree/mac/DumpRenderTree.mm:
4230 * WebKitTestRunner/TestController.cpp:
4231 (WTR::TestController::resetStateToConsistentValues):
4232 (WTR::RemoveAllIndexedDatabasesCallbackContext::RemoveAllIndexedDatabasesCallbackContext):
4233 (WTR::RemoveAllIndexedDatabasesCallback):
4234 (WTR::TestController::ClearIndexedDatabases):
4235 * WebKitTestRunner/TestController.h:
4236 * WebKitTestRunner/TestInvocation.cpp:
4237 (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
4239 2019-01-23 Aakash Jain <aakash_jain@apple.com>
4241 [ews-app] Rename ews model Builds to Build
4242 https://bugs.webkit.org/show_bug.cgi?id=193695
4244 Reviewed by Lucas Forschler.
4246 * BuildSlaveSupport/ews-app/ews/models/build.py: Renamed from Tools/BuildSlaveSupport/ews-app/ews/models/builds.py.
4247 (Build): Renamed Builds to Build.
4249 2019-01-23 Jonathan Bedard <jbedard@apple.com>
4251 webkitpy: Wait longer when launching WebKitTestRunner
4252 https://bugs.webkit.org/show_bug.cgi?id=193734
4254 Reviewed by Aakash Jain.
4256 * Scripts/webkitpy/port/simulator_process.py:
4257 (SimulatorProcess._start): Increase timeout from 6 seconds to 15 seconds.
4259 2019-01-23 Wenson Hsieh <wenson_hsieh@apple.com>
4261 [iOS] fast/events/touch/ios/hover-when-style-change-is-async.html times out
4262 https://bugs.webkit.org/show_bug.cgi?id=193182
4263 <rdar://problem/47452154>
4265 Reviewed by Tim Horton.
4267 This test was timing out because one of its preceding tests (drag-to-autoscroll-in-single-line-editable.html)
4268 long presses and drags to select text, but does not end the touch by lifting up; subsequently, the tap gesture
4269 recognizer isn't fired when simulating a tap in hover-when-style-change-is-async.html.
4271 To fix this, tweak the test runner to make it safe for tests to end while touching the web view without
4272 preventing later tests from recognizing gestures.
4274 * WebKitTestRunner/ios/TestControllerIOS.mm:
4275 (WTR::TestController::platformResetStateToConsistentValues):
4277 Cancel all touches in the UIApplication when resetting to a consistent state between tests.
4279 2019-01-23 Jonathan Bedard <jbedard@apple.com>
4281 webkitpy: Use correct config for --iphone-simulator and --ipad-simulator
4282 https://bugs.webkit.org/show_bug.cgi?id=193722
4283 <rdar://problem/47481475>
4285 Reviewed by Lucas Forschler.
4287 iPhone and iPad ports should both use the iOS config.
4289 * Scripts/webkitpy/port/ios_simulator.py:
4290 (IPhoneSimulatorPort.__init__):
4291 (IPadSimulatorPort.__init__):
4293 2019-01-23 Rob Buis <rbuis@igalia.com>
4295 Update MIME type parser
4296 https://bugs.webkit.org/show_bug.cgi?id=180526
4298 Reviewed by Frédéric Wang.
4300 Add unit tests for both parse modes of ParsedContentType.
4302 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4303 * TestWebKitAPI/Tests/WebCore/ParsedContentType.cpp: Added.
4304 (TestWebKitAPI::TEST):
4306 2019-01-22 Aakash Jain <aakash_jain@apple.com>
4308 [ews-app] fetch loop should not stop on network issues
4309 https://bugs.webkit.org/show_bug.cgi?id=193666
4311 Reviewed by Lucas Forschler.
4313 * BuildSlaveSupport/ews-app/ews/fetcher.py:
4314 (FetchLoop.run): Ensure that fetch loop doesn't exit on any exception.
4316 2019-01-22 Wenson Hsieh <wenson_hsieh@apple.com>
4318 [iOS] Multiple WKWebViewAutofillTests are flaky failures
4319 https://bugs.webkit.org/show_bug.cgi?id=189165
4320 <rdar://problem/47433765>
4322 Reviewed by Tim Horton.
4324 These tests are currently flaky because they expect an invocation of "Element.blur()" in the web process to
4325 immediately dispatch an IPC message to notify the UI process that the element has been blurred. In particular,
4326 the -textInputHasAutofillContext helper assumes that waiting for the next remote layer tree commit in the UI
4327 process in sufficient to ensure that any previous action that blurred the focused element in the web process
4328 would make its way to the UI process by the time the layer tree commit is finished.
4330 However, WebPage::elementDidBlur sends its IPC message to the UI process asynchronously, using callOnMainThread.
4331 This means that if a layer tree flush was already scheduled in the web process before the element was blurred,
4332 the element blur IPC message to the UI process will lose the race against the layer tree commit, and the test
4333 will fail because it asks for -_autofillContext too early.
4335 To fix this, we tweak these tests to actually wait until the intended input session change triggered by script
4336 is handled in the UI process.
4338 * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
4340 Tweak some of these tests to wait for input session changes before checking for the presence of an autofill
4341 context. The only exception is an existing test that doesn't allow programmatic focus to begin input sessions
4342 by default; to fix this test, we simply wait for _WKInputDelegate to be invoked, instead of waiting for a new
4345 (-[AutofillTestView textInputHasAutofillContext]):
4347 Remove the incorrect presentation update here. This helper now assumes that the UI process is up to date.
4349 * TestWebKitAPI/cocoa/TestWKWebView.h:
4350 * TestWebKitAPI/cocoa/TestWKWebView.mm:
4351 (nextInputSessionChangeCount):
4353 Monotonically increasing identifier that's incremented whenever an input session is started in the UI process.
4354 This includes changing the focused element from one to another.
4356 (-[TestWKWebView initWithFrame:configuration:addToWindow:]):
4357 (-[TestWKWebView didStartFormControlInteraction]):
4358 (-[TestWKWebView didEndFormControlInteraction]):
4359 (-[TestWKWebView evaluateJavaScriptAndWaitForInputSessionToChange:]):
4361 Add a helper to evaluate JavaScript and wait for this script to cause some change in the input session. This