[iOS] Implement safe browsing in WebKit
[WebKit-https.git] / Tools / ChangeLog
1 2018-11-12  Alex Christensen  <achristensen@webkit.org>
2
3         [iOS] Implement safe browsing in WebKit
4         https://bugs.webkit.org/show_bug.cgi?id=191441
5
6         Reviewed by Tim Horton.
7
8         * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
9         (checkTitleAndClick):
10         (TEST):
11
12 2018-11-12  Basuke Suzuki  <basuke.suzuki@sony.com>
13
14         [Curl] Add API Test for Curl cookie backend.
15         https://bugs.webkit.org/show_bug.cgi?id=191493
16
17         Reviewed by Youenn Fablet.
18
19         Add unit test to TestWebCore.
20
21         * TestWebKitAPI/PlatformWin.cmake:
22         * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: Added.
23
24 2018-11-12  Tim Horton  <timothy_horton@apple.com>
25
26         Make it possible to edit images inline
27         https://bugs.webkit.org/show_bug.cgi?id=191352
28         <rdar://problem/30107985>
29
30         Reviewed by Dean Jackson.
31
32         * WebKitTestRunner/TestController.cpp:
33         (WTR::updateTestOptionsFromTestHeader):
34         * WebKitTestRunner/TestOptions.h:
35         (WTR::TestOptions::hasSameInitializationOptions const):
36         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
37         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
38         (WTR::TestController::platformCreateWebView):
39         Add a test option to enable editable images.
40
41         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
42         (WTR::UIScriptController::drawSquareInEditableImage):
43         (WTR::UIScriptController::numberOfStrokesInEditableImage):
44         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
45         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
46         (WTR::UIScriptController::drawSquareInEditableImage):
47         (WTR::UIScriptController::numberOfStrokesInEditableImage):
48         * TestRunnerShared/UIScriptContext/UIScriptController.h:
49         * TestRunnerShared/spi/PencilKitTestSPI.h: Added.
50         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
51         (WTR::findEditableImageCanvas):
52         (WTR::UIScriptController::drawSquareInEditableImage):
53         (WTR::UIScriptController::numberOfStrokesInEditableImage):
54         Add the ability to draw on a PKCanvasView that is a subview of the WKWebView,
55         and also to retrieve the number of strokes currently on the PKCanvasView.
56         Currently this just takes the first canvas; we might need to make it
57         take an identifier or something in the future if we need tests with multiple
58         canvases. The indirect testing mechanism is required because PKCanvasView
59         can currently not actually paint its strokes in the Simulator.
60
61 2018-11-12  Ryan Haddad  <ryanhaddad@apple.com>
62
63         [MediaStream] Screen capture should be an experimental feature on OSX only
64         https://bugs.webkit.org/show_bug.cgi?id=191552
65
66         Unreviewed test gardening.
67
68         * TestWebKitAPI/Tests/WebKitCocoa/GetDisplayMedia.mm: Only run these tests on macOS.
69
70 2018-11-12  Don Olmstead  <don.olmstead@sony.com>
71
72         Shipped PNGs include bad profiles: iCCP: known incorrect sRGB profile
73         https://bugs.webkit.org/show_bug.cgi?id=189230
74         <rdar://problem/44050379>
75
76         Reviewed by Joseph Pecoraro.
77
78         Runs all png images through zopflipng. This results in a smaller file
79         size and takes care of this issue as a byproduct.
80
81         * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/images/favicon-green.png:
82         * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/images/favicon-red.png:
83         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/ElCapitan.png:
84         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/ElCapitan@2x.png:
85         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/GTK.png:
86         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/GTK@2x.png:
87         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/HighSierra.png:
88         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/HighSierra@2x.png:
89         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10.png:
90         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10@2x.png:
91         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator.png:
92         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS10Simulator@2x.png:
93         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11.png:
94         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11@2x.png:
95         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11Simulator.png:
96         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS11Simulator@2x.png:
97         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS12.png:
98         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS12@2x.png:
99         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS12Simulator.png:
100         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS12Simulator@2x.png:
101         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9.png:
102         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9@2x.png:
103         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9Simulator.png:
104         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9Simulator@2x.png:
105         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice.png:
106         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSDevice@2x.png:
107         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator.png:
108         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOSSimulator@2x.png:
109         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Mavericks.png:
110         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Mavericks@2x.png:
111         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Mojave.png:
112         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Mojave@2x.png:
113         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/MountainLion.png:
114         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/MountainLion@2x.png:
115         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/PlatformRing.png:
116         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/PlatformRing@2x.png:
117         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra.png:
118         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra@2x.png:
119         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WPE.png:
120         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WPE@2x.png:
121         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows10.png:
122         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows10@2x.png:
123         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows7.png:
124         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows7@2x.png:
125         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows8.png:
126         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Windows8@2x.png:
127         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WindowsXP.png:
128         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/WindowsXP@2x.png:
129         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Yosemite.png:
130         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Yosemite@2x.png:
131
132 2018-11-12  Tim Horton  <timothy_horton@apple.com>
133
134         Modernize WebKit Tools Xcode projects for localization's sake
135         https://bugs.webkit.org/show_bug.cgi?id=191495
136
137         Reviewed by Alexey Proskuryakov.
138
139         * ContentExtensionTester/ContentExtensionTester.xcodeproj/project.pbxproj:
140         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
141         * EditingHistory/EditingHistory.xcodeproj/project.pbxproj:
142         * FontWithFeatures/FontWithFeatures.xcodeproj/project.pbxproj:
143         * ImageDiff/ImageDiff.xcodeproj/project.pbxproj:
144         * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
145         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
146         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
147         * WebEditingTester/WebEditingTester.xcodeproj/project.pbxproj:
148         * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
149         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
150         * lldb/lldbWebKitTester/lldbWebKitTester.xcodeproj/project.pbxproj:
151         These are less important because they're not localized, but since
152         I made the style checker complain, it now complains any time anyone
153         touches any of these projects... so upgrade them.
154
155 2018-11-12  Jonathan Bedard  <jbedard@apple.com>
156
157         webkitpy: Check for specific process instead of using data migrator
158         https://bugs.webkit.org/show_bug.cgi?id=191551
159         <rdar://problem/45993156>
160
161         Rubber-stamped by Aakash Jain.
162
163         It's possible for the data migrator process to be stuck, but for a simulator to be
164         usable. Use device-specific processes to detect when a device is usable.
165
166         * Scripts/webkitpy/xcode/simulated_device.py:
167         (SimulatedDeviceManager._wait_until_device_is_usable):
168         (SimulatedDeviceManager):
169         (SimulatedDeviceManager.initialize_devices): Explicitly wait until a device is usable
170         since this implies that a device is booted.
171         (SimulatedDeviceManager.swap): Ditto.
172         (SimulatedDevice.is_usable): Check that a device is booted and that a device-specific
173         process indicating the device is usable can be found.
174         (SimulatedDeviceManager.wait_until_data_migration_is_done): Deleted.
175         * Scripts/webkitpy/xcode/simulated_device_unittest.py: Update simctl_json so that
176         it triggers the logic in is_usable()
177
178 2018-11-12  Takashi Komori  <Takashi.Komori@sony.com>
179
180         Resurrect WebKitTestRunner for Windows port
181         https://bugs.webkit.org/show_bug.cgi?id=189257
182
183         Reviewed by Fujii Hironori.
184
185         Implement WebKitTestRunner for WinCairo.
186
187         * PlatformWin.cmake:
188         * Scripts/build-webkittestrunner:
189         * WebKitTestRunner/CMakeLists.txt:
190         * WebKitTestRunner/EventSenderProxy.h:
191         * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
192         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
193         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
194         * WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp:
195         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
196         (WTR::rangeToStr):
197         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
198         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
199         (WTR::TestRunner::TestRunner):
200         * WebKitTestRunner/InjectedBundle/TestRunner.h:
201         * WebKitTestRunner/InjectedBundle/win/AccessibilityControllerWin.cpp: Added.
202         (WTR::AccessibilityController::resetToConsistentState):
203         (WTR::AccessibilityController::accessibleElementById):
204         (WTR::AccessibilityController::platformName):
205         (WTR::AccessibilityController::rootElement):
206         (WTR::AccessibilityController::focusedElement):
207         (WTR::AccessibilityController::addNotificationListener):
208         (WTR::AccessibilityController::removeNotificationListener):
209         * WebKitTestRunner/InjectedBundle/win/AccessibilityUIElementWin.cpp: Added.
210         (WTR::AccessibilityUIElement::AccessibilityUIElement):
211         (WTR::AccessibilityUIElement::~AccessibilityUIElement):
212         (WTR::AccessibilityUIElement::isEqual):
213         (WTR::AccessibilityUIElement::getChildren):
214         (WTR::AccessibilityUIElement::getChildrenWithRange):
215         (WTR::AccessibilityUIElement::childrenCount):
216         (WTR::AccessibilityUIElement::elementAtPoint):
217         (WTR::AccessibilityUIElement::indexOfChild):
218         (WTR::AccessibilityUIElement::childAtIndex):
219         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
220         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
221         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
222         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
223         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
224         (WTR::AccessibilityUIElement::rowAtIndex):
225         (WTR::AccessibilityUIElement::selectedChildAtIndex const):
226         (WTR::AccessibilityUIElement::selectedChildrenCount const):
227         (WTR::AccessibilityUIElement::selectedRowAtIndex):
228         (WTR::AccessibilityUIElement::titleUIElement):
229         (WTR::AccessibilityUIElement::parentElement):
230         (WTR::AccessibilityUIElement::disclosedByRow):
231         (WTR::AccessibilityUIElement::attributesOfLinkedUIElements):
232         (WTR::AccessibilityUIElement::attributesOfDocumentLinks):
233         (WTR::AccessibilityUIElement::attributesOfChildren):
234         (WTR::AccessibilityUIElement::allAttributes):
235         (WTR::AccessibilityUIElement::stringAttributeValue):
236         (WTR::AccessibilityUIElement::numberAttributeValue):
237         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue const):
238         (WTR::AccessibilityUIElement::rowHeaders const):
239         (WTR::AccessibilityUIElement::columnHeaders const):
240         (WTR::AccessibilityUIElement::uiElementAttributeValue const):
241         (WTR::AccessibilityUIElement::boolAttributeValue):
242         (WTR::AccessibilityUIElement::isAttributeSettable):
243         (WTR::AccessibilityUIElement::isAttributeSupported):
244         (WTR::AccessibilityUIElement::parameterizedAttributeNames):
245         (WTR::AccessibilityUIElement::role):
246         (WTR::AccessibilityUIElement::subrole):
247         (WTR::AccessibilityUIElement::roleDescription):
248         (WTR::AccessibilityUIElement::computedRoleString):
249         (WTR::AccessibilityUIElement::title):
250         (WTR::AccessibilityUIElement::description):
251         (WTR::AccessibilityUIElement::orientation const):
252         (WTR::AccessibilityUIElement::stringValue):
253         (WTR::AccessibilityUIElement::language):
254         (WTR::AccessibilityUIElement::helpText const):
255         (WTR::AccessibilityUIElement::x):
256         (WTR::AccessibilityUIElement::y):
257         (WTR::AccessibilityUIElement::width):
258         (WTR::AccessibilityUIElement::height):
259         (WTR::AccessibilityUIElement::clickPointX):
260         (WTR::AccessibilityUIElement::clickPointY):
261         (WTR::AccessibilityUIElement::intValue const):
262         (WTR::AccessibilityUIElement::minValue):
263         (WTR::AccessibilityUIElement::maxValue):
264         (WTR::AccessibilityUIElement::valueDescription):
265         (WTR::AccessibilityUIElement::insertionPointLineNumber):
266         (WTR::AccessibilityUIElement::isPressActionSupported):
267         (WTR::AccessibilityUIElement::isIncrementActionSupported):
268         (WTR::AccessibilityUIElement::isDecrementActionSupported):
269         (WTR::AccessibilityUIElement::isEnabled):
270         (WTR::AccessibilityUIElement::isRequired const):
271         (WTR::AccessibilityUIElement::isFocused const):
272         (WTR::AccessibilityUIElement::isSelected const):
273         (WTR::AccessibilityUIElement::isSelectedOptionActive const):
274         (WTR::AccessibilityUIElement::isExpanded const):
275         (WTR::AccessibilityUIElement::isChecked const):
276         (WTR::AccessibilityUIElement::isIndeterminate const):
277         (WTR::AccessibilityUIElement::hierarchicalLevel const):
278         (WTR::AccessibilityUIElement::speakAs):
279         (WTR::AccessibilityUIElement::ariaIsGrabbed const):
280         (WTR::AccessibilityUIElement::ariaDropEffects const):
281         (WTR::AccessibilityUIElement::lineForIndex):
282         (WTR::AccessibilityUIElement::rangeForLine):
283         (WTR::AccessibilityUIElement::rangeForPosition):
284         (WTR::AccessibilityUIElement::boundsForRange):
285         (WTR::AccessibilityUIElement::stringForRange):
286         (WTR::AccessibilityUIElement::attributedStringForRange):
287         (WTR::AccessibilityUIElement::attributedStringRangeIsMisspelled):
288         (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate):
289         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
290         (WTR::AccessibilityUIElement::selectTextWithCriteria):
291         (WTR::AccessibilityUIElement::attributesOfColumnHeaders):
292         (WTR::AccessibilityUIElement::attributesOfRowHeaders):
293         (WTR::AccessibilityUIElement::attributesOfColumns):
294         (WTR::AccessibilityUIElement::attributesOfRows):
295         (WTR::AccessibilityUIElement::attributesOfVisibleCells):
296         (WTR::AccessibilityUIElement::attributesOfHeader):
297         (WTR::AccessibilityUIElement::rowCount):
298         (WTR::AccessibilityUIElement::columnCount):
299         (WTR::AccessibilityUIElement::indexInTable):
300         (WTR::AccessibilityUIElement::rowIndexRange):
301         (WTR::AccessibilityUIElement::columnIndexRange):
302         (WTR::AccessibilityUIElement::cellForColumnAndRow):
303         (WTR::AccessibilityUIElement::horizontalScrollbar const):
304         (WTR::AccessibilityUIElement::verticalScrollbar const):
305         (WTR::AccessibilityUIElement::selectedTextRange):
306         (WTR::AccessibilityUIElement::setSelectedTextRange):
307         (WTR::AccessibilityUIElement::increment):
308         (WTR::AccessibilityUIElement::decrement):
309         (WTR::AccessibilityUIElement::showMenu):
310         (WTR::AccessibilityUIElement::press):
311         (WTR::AccessibilityUIElement::setSelectedChild const):
312         (WTR::AccessibilityUIElement::setSelectedChildAtIndex const):
313         (WTR::AccessibilityUIElement::removeSelectionAtIndex const):
314         (WTR::AccessibilityUIElement::clearSelectedChildren const):
315         (WTR::AccessibilityUIElement::accessibilityValue const):
316         (WTR::AccessibilityUIElement::documentEncoding):
317         (WTR::AccessibilityUIElement::documentURI):
318         (WTR::AccessibilityUIElement::url):
319         (WTR::AccessibilityUIElement::addNotificationListener):
320         (WTR::AccessibilityUIElement::removeNotificationListener):
321         (WTR::AccessibilityUIElement::isFocusable const):
322         (WTR::AccessibilityUIElement::isSelectable const):
323         (WTR::AccessibilityUIElement::isMultiSelectable const):
324         (WTR::AccessibilityUIElement::isVisible const):
325         (WTR::AccessibilityUIElement::isOffScreen const):
326         (WTR::AccessibilityUIElement::isCollapsed const):
327         (WTR::AccessibilityUIElement::isIgnored const):
328         (WTR::AccessibilityUIElement::isSingleLine const):
329         (WTR::AccessibilityUIElement::isMultiLine const):
330         (WTR::AccessibilityUIElement::hasPopup const):
331         (WTR::AccessibilityUIElement::takeFocus):
332         (WTR::AccessibilityUIElement::takeSelection):
333         (WTR::AccessibilityUIElement::addSelection):
334         (WTR::AccessibilityUIElement::removeSelection):
335         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
336         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
337         (WTR::AccessibilityUIElement::textMarkerRangeLength):
338         (WTR::AccessibilityUIElement::previousTextMarker):
339         (WTR::AccessibilityUIElement::nextTextMarker):
340         (WTR::AccessibilityUIElement::stringForTextMarkerRange):
341         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
342         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
343         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
344         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
345         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
346         (WTR::AccessibilityUIElement::textMarkerForPoint):
347         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
348         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRange):
349         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions):
350         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
351         (WTR::AccessibilityUIElement::indexForTextMarker):
352         (WTR::AccessibilityUIElement::isTextMarkerValid):
353         (WTR::AccessibilityUIElement::textMarkerForIndex):
354         (WTR::AccessibilityUIElement::startTextMarker):
355         (WTR::AccessibilityUIElement::endTextMarker):
356         (WTR::AccessibilityUIElement::setSelectedVisibleTextRange):
357         (WTR::AccessibilityUIElement::scrollToMakeVisible):
358         (WTR::AccessibilityUIElement::scrollToGlobalPoint):
359         (WTR::AccessibilityUIElement::scrollToMakeVisibleWithSubFocus):
360         (WTR::AccessibilityUIElement::supportedActions const):
361         (WTR::AccessibilityUIElement::pathDescription const):
362         (WTR::AccessibilityUIElement::mathPostscriptsDescription const):
363         (WTR::AccessibilityUIElement::mathPrescriptsDescription const):
364         (WTR::AccessibilityUIElement::classList const):
365         (WTR::AccessibilityUIElement::characterAtOffset):
366         (WTR::AccessibilityUIElement::wordAtOffset):
367         (WTR::AccessibilityUIElement::lineAtOffset):
368         (WTR::AccessibilityUIElement::sentenceAtOffset):
369         * WebKitTestRunner/InjectedBundle/win/ActivateFontsWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp.
370         (WTR::activateFonts):
371         (WTR::installFakeHelvetica):
372         (WTR::uninstallFakeHelvetica):
373         * WebKitTestRunner/InjectedBundle/win/InjectedBundleWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp.
374         (WTR::InjectedBundle::platformInitialize):
375         * WebKitTestRunner/InjectedBundle/win/TestRunnerInjectedBundlePrefix.cpp: Added.
376         * WebKitTestRunner/InjectedBundle/win/TestRunnerInjectedBundlePrefix.h: Copied from Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp.
377         * WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp.
378         (WTR::TestRunner::pathToLocalResource):
379         (WTR::TestRunner::inspectorTestStubURL):
380         (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer):
381         (WTR::TestRunner::platformInitialize):
382         (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded):
383         (WTR::TestRunner::installFakeHelvetica):
384         * WebKitTestRunner/PlatformWebView.h:
385         * WebKitTestRunner/PlatformWin.cmake: Added.
386         * WebKitTestRunner/TestController.cpp:
387         (WTR::TestController::resetStateToConsistentValues):
388         (WTR::createTestURL):
389         * WebKitTestRunner/TestInvocation.cpp:
390         * WebKitTestRunner/WebKitTestRunnerPrefix.h:
391         * WebKitTestRunner/win/EventSenderProxyWin.cpp: Added.
392         (WTR::EventSenderProxy::EventSenderProxy):
393         (WTR::EventSenderProxy::~EventSenderProxy):
394         (WTR::EventSenderProxy::mouseDown):
395         (WTR::EventSenderProxy::mouseUp):
396         (WTR::EventSenderProxy::mouseMoveTo):
397         (WTR::EventSenderProxy::mouseScrollBy):
398         (WTR::EventSenderProxy::mouseScrollByWithWheelAndMomentumPhases):
399         (WTR::EventSenderProxy::continuousMouseScrollBy):
400         (WTR::EventSenderProxy::leapForward):
401         (WTR::EventSenderProxy::keyDown):
402         * WebKitTestRunner/win/PlatformWebViewWin.cpp: Added.
403         (WTR::registerWindowClass):
404         (WTR::PlatformWebView::PlatformWebView):
405         (WTR::PlatformWebView::~PlatformWebView):
406         (WTR::PlatformWebView::resizeTo):
407         (WTR::PlatformWebView::page):
408         (WTR::PlatformWebView::focus):
409         (WTR::PlatformWebView::windowFrame):
410         (WTR::PlatformWebView::setWindowFrame):
411         (WTR::PlatformWebView::didInitializeClients):
412         (WTR::PlatformWebView::addChromeInputField):
413         (WTR::PlatformWebView::removeChromeInputField):
414         (WTR::PlatformWebView::addToWindow):
415         (WTR::PlatformWebView::removeFromWindow):
416         (WTR::PlatformWebView::setWindowIsKey):
417         (WTR::PlatformWebView::makeWebViewFirstResponder):
418         (WTR::generateCairoSurfaceFromBitmap):
419         (WTR::PlatformWebView::windowSnapshotImage):
420         (WTR::PlatformWebView::changeWindowScaleIfNeeded):
421         (WTR::PlatformWebView::setNavigationGesturesEnabled):
422         (WTR::PlatformWebView::forceWindowFramesChanged):
423         (WTR::PlatformWebView::drawsBackground const):
424         (WTR::PlatformWebView::setDrawsBackground):
425         * WebKitTestRunner/win/TestControllerWin.cpp: Added.
426         (WTR::exceptionFilter):
427         (WTR::runRunLoopUntil):
428         (WTR::TestController::notifyDone):
429         (WTR::TestController::setHidden):
430         (WTR::TestController::platformInitialize):
431         (WTR::TestController::platformPreferences):
432         (WTR::TestController::platformDestroy):
433         (WTR::toWK):
434         (WTR::TestController::platformInitializeContext):
435         (WTR::TestController::platformRunUntil):
436         (WTR::TestController::platformDidCommitLoadForFrame):
437         (WTR::TestController::initializeInjectedBundlePath):
438         (WTR::TestController::initializeTestPluginDirectory):
439         (WTR::TestController::runModal):
440         (WTR::TestController::platformContext):
441         (WTR::TestController::platformLibraryPathForTesting):
442         (WTR::TestController::platformConfigureViewForTest):
443         (WTR::TestController::platformResetPreferencesToConsistentValues):
444         (WTR::TestController::updatePlatformSpecificTestOptionsForTest const):
445         * WebKitTestRunner/win/WebKitTestRunnerPrefix.cpp: Added.
446         * WebKitTestRunner/win/main.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp.
447         (dllLauncherEntryPoint):
448
449 2018-11-12  Alicia Boya García  <aboya@igalia.com>
450
451         [MSE][GStreamer] Introduce AbortableTaskQueue
452         https://bugs.webkit.org/show_bug.cgi?id=190902
453
454         Reviewed by Xabier Rodriguez-Calvar.
455
456         Tests for AbortableTaskQueue are included.
457
458         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
459         * TestWebKitAPI/PlatformGTK.cmake:
460         * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: Added.
461         (TestWebKitAPI::TEST):
462         (TestWebKitAPI::FancyResponse::FancyResponse):
463         (TestWebKitAPI::FancyResponse::operator=):
464         (TestWebKitAPI::DeterministicScheduler::DeterministicScheduler):
465         (TestWebKitAPI::DeterministicScheduler::ThreadContext::ThreadContext):
466         (TestWebKitAPI::DeterministicScheduler::ThreadContext::waitMyTurn):
467         (TestWebKitAPI::DeterministicScheduler::ThreadContext::yieldToThread):
468
469 2018-11-11  Fujii Hironori  <Hironori.Fujii@sony.com>
470
471         run-bindings-tests is timing out in some WinCairo bots
472         https://bugs.webkit.org/show_bug.cgi?id=191348
473
474         Reviewed by Alex Christensen.
475
476         BuildBot kills run-bindings-tests if it outputs nothing for 20
477         minutes. run-bindings-tests runs very slowly in WinCairo Docker,
478         and it takes more than 30 minutes to finish. And, Windows Python
479         buffers the progress output.
480
481         * Scripts/webkitpy/bindings/main.py:
482         (BindingsTests.detect_changes): Call sys.stdout.flush() after the
483         test case result is output.
484
485 2018-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
486
487         Implement a new edit command to change the enclosing list type
488         https://bugs.webkit.org/show_bug.cgi?id=191487
489         <rdar://problem/45955922>
490
491         Reviewed by Ryosuke Niwa.
492
493         Add a new API test to verify that `-[WKWebView _changeListType:]` is hooked up to the corresponding editing
494         command in WebCore. See the new layout test for a test that exercises more nuanced corner cases.
495
496         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
497         * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEditActions.mm:
498         (-[TestWKWebView setPosition:offset:]):
499         (-[TestWKWebView setBase:baseOffset:extent:extentOffset:]):
500         (TestWebKitAPI::webViewForEditActionTestingWithPageNamed):
501         (TestWebKitAPI::TEST):
502         * TestWebKitAPI/Tests/WebKitCocoa/editable-nested-lists.html: Added.
503
504 2018-11-11  Dan Bernstein  <mitz@apple.com>
505
506         ProcessPoolConfiguration::copy() doesn’t copy m_customWebContentServiceBundleIdentifier
507         https://bugs.webkit.org/show_bug.cgi?id=191514
508
509         Reviewed by Geoffrey Garen.
510
511         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
512         * TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm: Added.
513         (TEST):
514
515 2018-11-11  Benjamin Poulain  <benjamin@webkit.org>
516
517         Fix a fixme: rename wtfObjcMsgSend to wtfObjCMsgSend
518         https://bugs.webkit.org/show_bug.cgi?id=191492
519
520         Reviewed by Alex Christensen.
521
522         Update file name.
523
524         * DumpRenderTree/mac/DumpRenderTree.mm:
525         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
526         * WebKitTestRunner/mac/TestControllerMac.mm:
527
528 2018-11-10  Benjamin Poulain  <benjamin@webkit.org>
529
530         Fix a fixme: rename wtfObjcMsgSend to wtfObjCMsgSend
531         https://bugs.webkit.org/show_bug.cgi?id=191492
532
533         Reviewed by Alex Christensen.
534
535         * DumpRenderTree/mac/DumpRenderTree.mm:
536         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
537         * WebKitTestRunner/mac/TestControllerMac.mm:
538
539 2018-11-10  Ryan Haddad  <ryanhaddad@apple.com>
540
541         Unreviewed, rolling out r238065.
542
543         Breaks internal builds.
544
545         Reverted changeset:
546
547         "Make it possible to edit images inline"
548         https://bugs.webkit.org/show_bug.cgi?id=191352
549         https://trac.webkit.org/changeset/238065
550
551 2018-11-10  Michael Catanzaro  <mcatanzaro@igalia.com>
552
553         [WPE][GTK] API test /webkit/WebKitSettings/webkit-settings is failing
554         https://bugs.webkit.org/show_bug.cgi?id=191221
555
556         Unreviewed, fix a typo from the previous patch. After disabling the setting, we should test
557         that it is disabled, but we're testing that it is enabled, because I failed to update this
558         line.
559
560         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
561         (testWebKitSettings):
562
563 2018-11-10  Tim Horton  <timothy_horton@apple.com>
564
565         Make it possible to edit images inline
566         https://bugs.webkit.org/show_bug.cgi?id=191352
567         <rdar://problem/30107985>
568
569         Reviewed by Dean Jackson.
570
571         * WebKitTestRunner/TestController.cpp:
572         (WTR::updateTestOptionsFromTestHeader):
573         * WebKitTestRunner/TestOptions.h:
574         (WTR::TestOptions::hasSameInitializationOptions const):
575         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
576         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
577         (WTR::TestController::platformCreateWebView):
578         Add a test option to enable editable images.
579
580         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
581         (WTR::UIScriptController::drawSquareInEditableImage):
582         (WTR::UIScriptController::numberOfStrokesInEditableImage):
583         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
584         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
585         (WTR::UIScriptController::drawSquareInEditableImage):
586         (WTR::UIScriptController::numberOfStrokesInEditableImage):
587         * TestRunnerShared/UIScriptContext/UIScriptController.h:
588         * TestRunnerShared/spi/PencilKitTestSPI.h: Added.
589         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
590         (WTR::findEditableImageCanvas):
591         (WTR::UIScriptController::drawSquareInEditableImage):
592         (WTR::UIScriptController::numberOfStrokesInEditableImage):
593         Add the ability to draw on a PKCanvasView that is a subview of the WKWebView,
594         and also to retrieve the number of strokes currently on the PKCanvasView.
595         Currently this just takes the first canvas; we might need to make it
596         take an identifier or something in the future if we need tests with multiple
597         canvases. The indirect testing mechanism is required because PKCanvasView
598         can currently not actually paint its strokes in the Simulator.
599
600 2018-11-09  Chris Dumez  <cdumez@apple.com>
601
602         Suspended page persists even after back/forward list item is gone
603         https://bugs.webkit.org/show_bug.cgi?id=191488
604         <rdar://problem/45953006>
605
606         Reviewed by Geoffrey Garen.
607
608         Add API test coverage.
609
610         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
611
612 2018-11-09  Wenson Hsieh  <wenson_hsieh@apple.com>
613
614         [Cocoa] Implement SPI on WKWebView to increase and decrease list levels
615         https://bugs.webkit.org/show_bug.cgi?id=191471
616         <rdar://problem/45952472>
617
618         Reviewed by Tim Horton.
619
620         Add an API test to ensure that list levels can be incremented and decremented via WKWebView SPI.
621
622         * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEditActions.mm:
623         (TestWebKitAPI::webViewForEditActionTesting):
624         (TestWebKitAPI::TEST):
625
626 2018-11-09  Basuke Suzuki  <basuke.suzuki@sony.com>
627
628         [Curl][WebKit] Implement Proxy configuration API.
629         https://bugs.webkit.org/show_bug.cgi?id=189053
630
631         Reviewed by Youenn Fablet.
632
633         Added Proxy Settings dialog to call newly added API.
634
635         * MiniBrowser/win/BrowserWindow.h:
636         * MiniBrowser/win/Common.cpp:
637         (askProxySettings):
638         (askCredential):
639         (authDialogProc): Deleted.
640         * MiniBrowser/win/Common.h:
641         * MiniBrowser/win/DialogHelper.h: Added.
642         (Dialog::run):
643         (Dialog::doalogProc):
644         (Dialog::handle):
645         (Dialog::setup):
646         (Dialog::update):
647         (Dialog::validate):
648         (Dialog::updateOkButton):
649         (Dialog::command):
650         (Dialog::ok):
651         (Dialog::cancel):
652         (Dialog::close):
653         (Dialog::hDlg):
654         (Dialog::item):
655         (Dialog::setEnabled):
656         (Dialog::setText):
657         (Dialog::getText):
658         (Dialog::getTextLength):
659         (Dialog::RadioGroup::RadioGroup):
660         (Dialog::RadioGroup::set):
661         (Dialog::RadioGroup::get):
662         (Dialog::radioGroup):
663         * MiniBrowser/win/MainWindow.cpp:
664         (MainWindow::WndProc):
665         * MiniBrowser/win/MiniBrowserLib.rc:
666         * MiniBrowser/win/MiniBrowserLibResource.h:
667         * MiniBrowser/win/WebKitBrowserWindow.cpp:
668         (createWKURL):
669         (WebKitBrowserWindow::WebKitBrowserWindow):
670         (WebKitBrowserWindow::updateProxySettings):
671         (WebKitBrowserWindow::loadURL):
672         (WebKitBrowserWindow::loadHTMLString):
673         (WebKitBrowserWindow::openProxySettings):
674         * MiniBrowser/win/WebKitBrowserWindow.h:
675         * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp:
676         (WebKitLegacyBrowserWindow::openProxySettings):
677         * MiniBrowser/win/WebKitLegacyBrowserWindow.h:
678
679 2018-11-09  Wenson Hsieh  <wenson_hsieh@apple.com>
680
681         [Cocoa] Introduce WKWebView SPI to insert nested ordered and unordered lists
682         https://bugs.webkit.org/show_bug.cgi?id=191410
683         <rdar://problem/45898610>
684
685         Reviewed by Dean Jackson.
686
687         Move WKWebViewEditActions from iOS to WebKitCocoa, and enable the relevant WKWebViewEditActions tests on macOS.
688         Additionally, add new API tests to verify that `-_pasteAsQuotation:` and `-_insertNested(Un)OrderedList:` are
689         hooked up to their respective editing commands.
690
691         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
692         * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEditActions.mm: Renamed from Tools/TestWebKitAPI/Tests/ios/WKWebViewEditActions.mm.
693         (-[TestWKWebView querySelectorExists:]):
694         (-[TestWKWebView insertString:]):
695
696         Add a helper method to insert a piece of text. This abstracts platform differences between iOS and macOS, by
697         invoking the WKWebView directly on macOS and calling on the content view on iOS.
698
699         (TestWebKitAPI::webViewForEditActionTesting):
700         (TestWebKitAPI::TEST):
701
702 2018-11-09  Philippe Normand  <pnormand@igalia.com>
703
704         [Flatpak] Refactoring and drive-by fixes
705         https://bugs.webkit.org/show_bug.cgi?id=191421
706
707         Reviewed by Michael Catanzaro.
708
709         * Scripts/webkitdirs.pm:
710         (inFlatpakSandbox): Flatpak now has a /.flatpak-info file when in
711         the sandbox, so rely on this.
712         * flatpak/flatpakutils.py:
713         (expand_manifest): Pass explicit keywords to load_manifest() and
714         remove unused local variable.
715         (WebkitFlatpak.clean_args): Move hard-coded sdk/runtime infos to the manifest file.
716         (WebkitFlatpak.run_in_sandbox): Add support for extra environment variables.
717         (WebkitFlatpak.setup_dev_env): Stop build at final app. Refactor
718         build_type handling a bit.
719         * flatpak/org.webkit.CommonModules.yaml: Added.
720         * flatpak/org.webkit.WPE.yaml: wpebackend upstream was renamed to libwpe.
721         * flatpak/org.webkit.WebKit.yaml: Move common dependencies
722         declaration to CommonModules, so it can be reused later when we
723         add support for building extra libraries depending on WPE.
724
725 2018-11-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
726
727 onal supported image formats
728         https://bugs.webkit.org/show_bug.cgi?id=190454
729
730         Reviewed by Simon Fraser.
731
732         Test opening a TGA image in WebView which is not allowed by default. The
733         TGA format will be allowed through WKWebViewConfiguration.
734
735         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
736         * TestWebKitAPI/Tests/WebKitCocoa/100x100-red.tga: Added.
737         * TestWebKitAPI/Tests/WebKitCocoa/400x400-green.png: Added.
738         * TestWebKitAPI/Tests/WebKitCocoa/AdditionalSupportedImageTypes.mm: Added.
739         (runTest):
740         (TEST):
741
742 2018-11-08  Jiewen Tan  <jiewen_tan@apple.com>
743
744         Unreviewed, a proper build fix for r237983
745
746         Don't include header PublicKeyCredential.h in CtapResponseTest.cpp.
747
748         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
749         * TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/CtapRequestTest.cpp.
750         (TestWebKitAPI::TEST):
751         * TestWebKitAPI/Tests/WebCore/CtapResponseTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/CtapResponseTest.cpp.
752         (TestWebKitAPI::getTestCorruptedSignResponse):
753         (TestWebKitAPI::getTestCredentialRawIdBytes):
754         (TestWebKitAPI::convertToVector):
755         (TestWebKitAPI::TEST):
756
757 2018-11-08  Keith Rollin  <krollin@apple.com>
758
759         Create .xcfilelist files
760         https://bugs.webkit.org/show_bug.cgi?id=191324
761         <rdar://problem/45852819>
762
763         Reviewed by Alex Christensen.
764
765         As part of preparing for enabling XCBuild, create and use .xcfilelist
766         files. These files are using during Run Script build phases in an
767         Xcode project. If a Run Script build phase produces new files that are
768         used later as inputs to subsequent build phases, XCBuild needs to know
769         about these files. These files can be either specified in an "output
770         files" section of the Run Script phase editor, or in .xcfilelist files
771         that are associated with the Run Script build phase.
772
773         This patch takes the second approach. It consists of three sets of changes:
774
775         - Modify the DerivedSources.make files to have a
776           'print_all_generated_files" target that produces a list of the files
777           they create.
778
779         - Create a shell script that produces .xcfilelist files from the
780           output of the previous step, as well as for the files created in the
781           Generate Unified Sources build steps.
782
783         - Add the new .xcfilelist files to the associated projects.
784
785         Note that, with these changes, the Xcode workspace and projects can no
786         longer be fully loaded into Xcode 9. Xcode will attempt to load the
787         projects that have .xcfilelist files associated with them, but will
788         fail and display a placeholder for those projects instead. It's
789         expected that all developers are using Xcode 10 by now and that not
790         being able to load into Xcode 9 is not a practical issue. Keep in mind
791         that this is strictly an IDE issue, and that the projects can still be
792         built with `xcodebuild`.
793
794         Also note that the shell script that creates the .xcfilelist files can
795         also be used to verify that the set of files that's currently checked
796         in is up-to-date. This checking can be used as part of a check-in hook
797         or part of check-webkit-style to sooner catch cases where the
798         .xcfilelist files need to be regenerated.
799
800         * DumpRenderTree/DerivedSources.make:
801         * DumpRenderTree/DerivedSources.xcfilelist: Added.
802         * Scripts/generate-xcfilelists: Added.
803         * WebKitTestRunner/DerivedSources.make:
804         * WebKitTestRunner/DerivedSources.xcfilelist: Added.
805
806 2018-11-08  Jiewen Tan  <jiewen_tan@apple.com>
807
808         Unreviewed, a quick build fix for r237983
809
810         Temporarily make CtapRequestTest.cpp/CtapResponseTest.cpp to mac only to avoid iOS build failures.
811
812         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
813         * TestWebKitAPI/Tests/WebCore/mac/CtapRequestTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp.
814         (TestWebKitAPI::TEST):
815         * TestWebKitAPI/Tests/WebCore/mac/CtapResponseTest.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/CtapResponseTest.cpp.
816         (TestWebKitAPI::getTestCorruptedSignResponse):
817         (TestWebKitAPI::getTestCredentialRawIdBytes):
818         (TestWebKitAPI::convertToVector):
819         (TestWebKitAPI::TEST):
820
821 2018-11-05  Ryan Haddad  <ryanhaddad@apple.com>
822
823         Fix steps_unittest.py failures related to recent Win10/Win7 changes
824         https://bugs.webkit.org/show_bug.cgi?id=191290
825
826         Reviewed by Alexey Proskuryakov.
827
828         * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py: Update expected results.
829
830 2018-11-08  Dean Jackson  <dino@apple.com>
831
832         Add a String literal that returns a String
833         https://bugs.webkit.org/show_bug.cgi?id=191425
834         <rdar://problem/45914556>
835
836         Reviewed by Sam Weinig.
837
838         Test _str.
839
840         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
841         (TestWebKitAPI::TEST):
842
843 2018-11-08  Jonathan Bedard  <jbedard@apple.com>
844
845         webkitpy: Generalize trailing SDK specifier (Part 2)
846         https://bugs.webkit.org/show_bug.cgi?id=191275
847         <rdar://problem/45703660>
848
849         Rubber-stamped by Aakash Jain.
850
851         Re-landing this change, configuration issues have been resolved.
852
853         * Scripts/webkitpy/port/ios_device.py:
854         (IOSDevicePort): Use normalized SDK.
855         * Scripts/webkitpy/port/ios_simulator.py:
856         (IOSSimulatorPort): Use normalized SDK.
857         (IOSSimulatorPort._build_driver_flags): Use platform SDK in build driver flags.
858
859 2018-11-08  Jiewen Tan  <jiewen_tan@apple.com>
860
861         [WebAuthN] Import CTAP device request/response converters from Chromium
862         https://bugs.webkit.org/show_bug.cgi?id=190784
863         <rdar://problem/45460333>
864
865         Reviewed by Brent Fulgham.
866
867         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
868         * TestWebKitAPI/Tests/WebCore/CBORValueTest.cpp:
869         (TestWebKitAPI::TEST):
870         * TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp: Added.
871         (TestWebKitAPI::TEST):
872         * TestWebKitAPI/Tests/WebCore/CtapResponseTest.cpp: Added.
873         (TestWebKitAPI::getTestCorruptedSignResponse):
874         (TestWebKitAPI::getTestCredentialRawIdBytes):
875         (TestWebKitAPI::convertToVector):
876         (TestWebKitAPI::TEST):
877         * TestWebKitAPI/Tests/WebCore/FidoTestData.h: Added.
878
879 2018-11-07  Caio Lima  <ticaiolima@gmail.com>
880
881         [BigInt] Add support to BigInt into ValueAdd
882         https://bugs.webkit.org/show_bug.cgi?id=186177
883
884         Reviewed by Keith Miller.
885
886         * Scripts/run-jsc-benchmarks:
887
888 2018-11-07  Sihui Liu  <sihui_liu@apple.com>
889
890         RELEASE_ASSERT(!m_hardClosedForUserDelete) fails in WebCore::IDBServer::UniqueIDBDatabase::invokeOperationAndTransactionTimer
891         https://bugs.webkit.org/show_bug.cgi?id=191326
892         <rdar://problem/45769269>
893
894         Reviewed by Geoffrey Garen.
895
896         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
897         * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBUserDelete.html: Added.
898         * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBUserDelete.mm: Added.
899         (-[IndexedDBUserDeleteMessageHandler userContentController:didReceiveScriptMessage:]):
900         (TEST):
901
902 2018-11-07  Daniel Bates  <dabates@apple.com>
903
904         Override +[UIKeyboard isInHardwareKeyboardMode] in WebKitTestRunner and DumpRenderTree
905         https://bugs.webkit.org/show_bug.cgi?id=190141
906
907         Reviewed by Darin Adler.
908
909         Override +[UIKeyboard isInHardwareKeyboardMode] to always return NO so as to make test
910         runs deterministic regardless of whether a hardware keyboard is attached.
911
912         * DumpRenderTree/mac/DumpRenderTree.mm:
913         (overrideIsInHardwareKeyboardMode): Added.
914         (prepareConsistentTestingEnvironment):
915         * TestRunnerShared/spi/UIKitTestSPI.h: Forward declare SPI.
916         * WebKitTestRunner/ios/TestControllerIOS.mm:
917         (overrideIsInHardwareKeyboardMode): Added.
918         (WTR::TestController::platformInitialize):
919
920 2018-11-07  Jonathan Bedard  <jbedard@apple.com>
921
922         Unreviewed, rolling out r237913.
923
924         Breaks running tests on Mac without iOS SDK installed
925
926         Reverted changeset:
927
928         "webkitpy: Generalize trailing SDK specifier (Part 2)"
929         https://bugs.webkit.org/show_bug.cgi?id=191275
930         https://trac.webkit.org/changeset/237913
931
932 2018-11-07  Zamiul Haque  <zhaque@apple.com>
933
934         Force a gregorian calendar to show for credit card expiration date inputs
935         (autocomplete='cc-exp'*) regardless of default system settings.
936         https://bugs.webkit.org/show_bug.cgi?id=191096
937         rdar://problem/42640256
938
939         Reviewed by Tim Horton.
940
941         Implemented simulateForeignDefaultCalendar and calendarType to be used
942         for changing the default calendar returned by the system (ie. [NSCalendar
943         currentCalendar]) and getting the calendar type identifier of a presented date
944         picker.
945
946         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
947         (WTR::UIScriptController::isShowingDataListSuggestions const):
948         (WTR::UIScriptController::calendarType const):
949         (WTR::UIScriptController::setDefaultCalendarType):
950         * DumpRenderTree/mac/UIScriptControllerMac.mm:
951         (WTR::UIScriptController::calendarType const):
952         (WTR::UIScriptController::setDefaultCalendarType):
953         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
954         (WTR::UIScriptController::selectionEndGrabberViewRect const):
955         (WTR::UIScriptController::calendarType const): Deleted.
956         * WebKitTestRunner/TestController.cpp:
957         * WebKitTestRunner/TestController.h:
958         * WebKitTestRunner/UIScriptControllerCocoa.mm:
959         (WTR::UIScriptController::calendarType const):
960         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
961         (WTR::swizzledCalendar):
962         (WTR::TestController::getOverriddenCalendarIdentifier const):
963         (WTR::TestController::setDefaultCalendarType):
964         (WTR::TestController::cocoaResetStateToConsistentValues):
965         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
966         (WTR::UIScriptController::selectionEndGrabberViewRect const):
967         (WTR::UIScriptController::calendarType const): Deleted.
968
969 2018-11-06  Jonathan Bedard  <jbedard@apple.com>
970
971         webkitpy: Boot a single worker for custom devices
972         https://bugs.webkit.org/show_bug.cgi?id=191312
973         <rdar://problem/45848717>
974
975         Rubber-stamped by Aakash Jain.
976
977         * Scripts/webkitpy/layout_tests/controllers/manager.py:
978         (Manager.run): Custom devices only run a hand-full of tests. Booting multiple
979         simulators is expensive and unneeded for these tests.
980         * Scripts/webkitpy/port/ios.py:
981         (IOSPort. child_processes): No reason to memoize this call, and it prevents
982         overriding the number of child processes when booting custom devices.
983
984 2018-11-06  Jonathan Bedard  <jbedard@apple.com>
985
986         webkitpy: Generalize trailing SDK specifier (Part 2)
987         https://bugs.webkit.org/show_bug.cgi?id=191275
988         <rdar://problem/45703660>
989
990         Reviewed by Aakash Jain.
991
992         * Scripts/webkitpy/port/ios_device.py:
993         (IOSDevicePort): Use normalized SDK.
994         * Scripts/webkitpy/port/ios_simulator.py:
995         (IOSSimulatorPort): Use normalized SDK.
996         (IOSSimulatorPort._build_driver_flags): Use platform SDK in build driver flags.
997
998 2018-11-06  Justin Fan  <justin_fan@apple.com>
999
1000         [WebGPU] Experimental prototype for WebGPURenderPipeline and WebGPUSwapChain
1001         https://bugs.webkit.org/show_bug.cgi?id=191291
1002
1003         Reviewed by Myles Maxfield.
1004
1005         Properly disable WEBGPU on all non-Metal platforms for now.
1006
1007         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1008
1009 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1010
1011         [ews-app] Add URL configuration for OpenSource EWS Django app
1012         https://bugs.webkit.org/show_bug.cgi?id=191132
1013
1014         Rubber-stamped by Lucas Forschler.
1015
1016         * BuildSlaveSupport/ews-app/ews-app/urls.py: Added entry for ews.urls.
1017         * BuildSlaveSupport/ews-app/ews/urls.py: Added.
1018
1019 2018-11-06  Youenn Fablet  <youenn@apple.com>
1020
1021         Make mDNS ICE Candidate an experimental flag again
1022         https://bugs.webkit.org/show_bug.cgi?id=191262
1023
1024         Reviewed by Dean Jackson.
1025
1026         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1027         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1028         (WTR::TestRunner::setWebRTCMDNSICECandidatesEnabled):
1029         (WTR::TestRunner::setMDNSICECandidatesEnabled): Deleted.
1030         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1031
1032 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1033
1034         [ews-app] Add views for OpenSource EWS Django app
1035         https://bugs.webkit.org/show_bug.cgi?id=191131
1036
1037         Rubber-stamped by Lucas Forschler.
1038
1039         * BuildSlaveSupport/ews-app/ews/views/index.py: Added.
1040         * BuildSlaveSupport/ews-app/ews/views/patch.py:
1041         * BuildSlaveSupport/ews-app/ews/views/results.py: Added.
1042         * BuildSlaveSupport/ews-app/ews/views/statusbubble.py: Added.
1043
1044 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1045
1046         [ews-app] Add models for OpenSource EWS Django app
1047         https://bugs.webkit.org/show_bug.cgi?id=191123
1048
1049         Reviewed by Lucas Forschler.
1050
1051         * BuildSlaveSupport/ews-app/ews/models/__init__.py:
1052         * BuildSlaveSupport/ews-app/ews/models/buildermappings.py: Added.
1053         * BuildSlaveSupport/ews-app/ews/models/builds.py: Added.
1054         * BuildSlaveSupport/ews-app/ews/models/patch.py:
1055         * BuildSlaveSupport/ews-app/ews/models/steps.py: Added.
1056
1057 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1058
1059         [ews-app] Fix Invalid HTTP_HOST header
1060         https://bugs.webkit.org/show_bug.cgi?id=191325
1061
1062         Reviewed by Lucas Forschler.
1063
1064         Changing ALLOWED_HOSTS to * as the landing page should be publicly accessible.
1065
1066         * BuildSlaveSupport/ews-app/ews-app/settings.py:
1067
1068 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1069
1070         [ews-app] Rename EWS_app to ews-app - part 2
1071         https://bugs.webkit.org/show_bug.cgi?id=191317
1072
1073         Reviewed by Lucas Forschler.
1074
1075         * BuildSlaveSupport/ews-app/EWS_app: Removed.
1076         * BuildSlaveSupport/ews-app/ews-app: Moved from BuildSlaveSupport/ews-app/EWS_app.
1077         * BuildSlaveSupport/ews-app/ews-app/settings.py:
1078         * BuildSlaveSupport/ews-app/ews-app/urls.py:
1079         * BuildSlaveSupport/ews-app/ews-app/wsgi.py:
1080         * BuildSlaveSupport/ews-app/manage.py:
1081
1082 2018-11-06  Aakash Jain  <aakash_jain@apple.com>
1083
1084         [ews-app] Rename EWS_app to ews-app - part 1
1085         https://bugs.webkit.org/show_bug.cgi?id=191317
1086
1087         Reviewed by Lucas Forschler.
1088
1089         * BuildSlaveSupport/EWS_app: Removed.
1090         * BuildSlaveSupport/ews-app: Moved from BuildSlaveSupport/EWS_app.
1091
1092 2018-11-06  Myles C. Maxfield  <mmaxfield@apple.com>
1093
1094         Spelling dots are drawn in the wrong place
1095         https://bugs.webkit.org/show_bug.cgi?id=190764
1096
1097         Reviewed by Dean Jackson.
1098
1099         Previously, it was impossible for WebKitTestRunner to draw spelling dots. This patch adds support for a header
1100         at the top of test files, of the form <!-- webkit-test-runner [ spellCheckingDots=true ] --> which will cause
1101         dots to be drawn.
1102
1103         * WebKitTestRunner/TestController.cpp:
1104         (WTR::TestController::resetStateToConsistentValues):
1105         (WTR::updateTestOptionsFromTestHeader):
1106         (WTR::TestController::platformResetStateToConsistentValues):
1107         * WebKitTestRunner/TestController.h:
1108         * WebKitTestRunner/TestOptions.h:
1109         (WTR::TestOptions::hasSameInitializationOptions const):
1110         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1111         (WTR::TestController::cocoaResetStateToConsistentValues):
1112         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
1113         * WebKitTestRunner/ios/TestControllerIOS.mm:
1114         (WTR::TestController::platformResetStateToConsistentValues):
1115         * WebKitTestRunner/mac/TestControllerMac.mm:
1116         (WTR::TestController::platformResetStateToConsistentValues):
1117
1118 2018-11-06  Don Olmstead  <don.olmstead@sony.com>
1119
1120         Feature flags not present for Visual Studio when using build-webkit
1121         https://bugs.webkit.org/show_bug.cgi?id=191288
1122
1123         Reviewed by Fujii Hironori.
1124
1125         Passes feature flags to Visual studio builds within build-webkit.
1126         Removes cmakeBasedPortArguments as it is no longer in use.
1127
1128         * Scripts/build-jsc:
1129         * Scripts/build-webkit:
1130         * Scripts/webkitdirs.pm:
1131         (cmakeBasedPortArguments): Deleted.
1132
1133 2018-11-06  Per Arne Vollan  <pvollan@apple.com>
1134
1135         REGRESSION (r230523): Caps lock indicator not shown in password field
1136         https://bugs.webkit.org/show_bug.cgi?id=190056
1137
1138         Reviewed by Ryosuke Niwa.
1139
1140         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1141         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1142         (WTR::TestRunner::toggleCapsLock):
1143         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1144         * WebKitTestRunner/TestController.h:
1145         * WebKitTestRunner/TestInvocation.cpp:
1146         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1147         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1148         (WTR::TestController::toggleCapsLock):
1149
1150 2018-11-06  Sihui Liu  <sihui_liu@apple.com>
1151
1152         IndexedDB: WAL file keeps growing
1153         https://bugs.webkit.org/show_bug.cgi?id=191294
1154         <rdar://problem/41333493>
1155
1156         Reviewed by Chris Dumez.
1157
1158         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1159         * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBTempFileSize-1.html: Added.
1160         * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBTempFileSize-2.html: Added.
1161         * TestWebKitAPI/Tests/WebKitCocoa/IndexedDBTempFileSize.mm: Added.
1162         (-[IndexedDBFileSizeMessageHandler userContentController:didReceiveScriptMessage:]):
1163         (TEST):
1164
1165 2018-11-06  Alex Christensen  <achristensen@webkit.org>
1166
1167         Fix tests after r237863
1168         https://bugs.webkit.org/show_bug.cgi?id=191315
1169
1170         Reviewed by Chris Dumez.
1171
1172         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1173         With the timing change of r237863, the WKWebView progressed further than before when loading main.html so it completed before main2.html.
1174         This test was meant to test that main2.html does eventually load, and it doesn't matter if main.html loads before it.  I updated the test
1175         to verify that main2.html eventually loads, making this test less timing dependent.
1176
1177 2018-11-06  Ryan Haddad  <ryanhaddad@apple.com>
1178
1179         Unreviewed, rolling out r237834.
1180
1181         Tests for this change crash on iOS Simulator
1182
1183         Reverted changeset:
1184
1185         "Spelling dots are drawn in the wrong place"
1186         https://bugs.webkit.org/show_bug.cgi?id=190764
1187         https://trac.webkit.org/changeset/237834
1188
1189 2018-11-05  Alex Christensen  <achristensen@webkit.org>
1190
1191         [Mac] Implement safe browsing in WebKit
1192         https://bugs.webkit.org/show_bug.cgi?id=188871
1193
1194         Reviewed by Tim Horton.
1195
1196         * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
1197         (-[SafeBrowsingNavigationDelegate webView:didCommitNavigation:]):
1198         (+[TestServiceLookupResult resultWithProvider:phishing:malware:unwantedSoftware:]):
1199         (-[TestLookupContext lookUpURL:completionHandler:]):
1200         (simpleURL):
1201         (safeBrowsingView):
1202         (TEST):
1203         (-[SafeBrowsingNavigationDelegate webView:didFinishNavigation:]): Deleted.
1204         (+[TestServiceLookupResult resultWithProvider:phishing:malware:unwantedSoftware:knownToBeUnsafe:]): Deleted.
1205         (-[TestServiceLookupResult isKnownToBeUnsafe]): Deleted.
1206         * TestWebKitAPI/Utilities.h:
1207
1208 2018-11-05  Jonathan Bedard  <jbedard@apple.com>
1209
1210         webkitpy: Generalize trailing SDK specifier (Part 1)
1211         https://bugs.webkit.org/show_bug.cgi?id=191275
1212         <rdar://problem/45703660>
1213
1214         Reviewed by Lucas Forschler.
1215
1216         * Scripts/webkitpy/common/system/platforminfo.py:
1217         (PlatformInfo.available_sdks): List all installed SDKs with version numbers stripped out.
1218         * Scripts/webkitpy/common/system/platforminfo_unittest.py:
1219         (TestPlatformInfo):
1220         (TestPlatformInfo.test_available_sdks):
1221
1222 2018-11-05  Myles C. Maxfield  <mmaxfield@apple.com>
1223
1224         Spelling dots are drawn in the wrong place
1225         https://bugs.webkit.org/show_bug.cgi?id=190764
1226
1227         Reviewed by Dean Jackson.
1228
1229         Previously, it was impossible for WebKitTestRunner to draw spelling dots. This patch adds support for a header
1230         at the top of test files, of the form <!-- webkit-test-runner [ spellCheckingDots=true ] --> which will cause
1231         dots to be drawn.
1232
1233         * WebKitTestRunner/TestController.cpp:
1234         (WTR::TestController::resetStateToConsistentValues):
1235         (WTR::updateTestOptionsFromTestHeader):
1236         (WTR::TestController::platformResetStateToConsistentValues):
1237         * WebKitTestRunner/TestController.h:
1238         * WebKitTestRunner/TestOptions.h:
1239         (WTR::TestOptions::hasSameInitializationOptions const):
1240         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1241         (WTR::TestController::cocoaResetStateToConsistentValues):
1242         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
1243         * WebKitTestRunner/ios/TestControllerIOS.mm:
1244         (WTR::TestController::platformResetStateToConsistentValues):
1245         * WebKitTestRunner/mac/TestControllerMac.mm:
1246         (WTR::TestController::platformResetStateToConsistentValues):
1247
1248 2018-11-05  Chris Dumez  <cdumez@apple.com>
1249
1250         Use same limit for page cache and suspended pages
1251         https://bugs.webkit.org/show_bug.cgi?id=191266
1252
1253         Reviewed by Geoffrey Garen.
1254
1255         Update API tests accordingly.
1256
1257         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1258
1259 2018-11-05  Basuke Suzuki  <Basuke.Suzuki@sony.com>
1260
1261         [style] Exclude style check for auto generated files.
1262         https://bugs.webkit.org/show_bug.cgi?id=191118
1263
1264         Reviewed by Eric Carlson.
1265
1266         Some files checked in to the repository are generated by other tools. In this patch,
1267         "MiniBrowserLibResource.h" is the file generated and managed by resource editor of
1268         VisualStudio.
1269
1270         There's no need to check these files because it's not practical to fix the style errors
1271         or it's hard to maintain those fixes.
1272
1273         * Scripts/webkitpy/style/checkers/cpp.py:
1274         (is_generated_file):
1275         (CppChecker.check):
1276
1277 2018-11-05  Thibault Saunier  <tsaunier@igalia.com>
1278
1279         [Flatpak] Build libx264 as it is the h264 encoder we support in WebRTC
1280         https://bugs.webkit.org/show_bug.cgi?id=190680
1281
1282         Reviewed by Philippe Normand.
1283
1284         * flatpak/org.webkit.WebKit.yaml:
1285
1286 2018-11-05  Daniel Bates  <dabates@apple.com>
1287
1288         [lldb-webkit] Fix formatting nits in Document and Frame summary strings
1289         https://bugs.webkit.org/show_bug.cgi?id=191094
1290
1291         Reviewed by Andy Estes.
1292
1293         Format boolean as 1/0 when printing Frame summary to be consistent with the formatting of
1294         booleans in other summary strings, substitute "inMainFrame" for "isMainFrame" in the printed
1295         Document summary and add closing brace '}' to both Frame and Document summary strings to make
1296         them look pretty.
1297
1298         * lldb/lldb_webkit.py:
1299         (WebCoreFrame_SummaryProvider):
1300         (WebCoreDocument_SummaryProvider):
1301
1302 2018-11-05  Wenson Hsieh  <wenson_hsieh@apple.com>
1303
1304         [iOS] Allow WKWebView clients to customize bar button item groups in the accessory view when editing
1305         https://bugs.webkit.org/show_bug.cgi?id=191240
1306         <rdar://problem/44872806>
1307
1308         Reviewed by Tim Horton.
1309
1310         Add new API tests to verify that setting leading and trailing bar button groups on WKWebView sets the first
1311         responder's (i.e. WKContentView's) leading and trailing bar button groups, and that this can also be achieved by
1312         overriding `-[WKWebView inputAssistantItem]`.
1313
1314         * TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm:
1315         (-[InputAssistantItemTestingWebView fakeLeadingBarButtonItemAction]):
1316         (-[InputAssistantItemTestingWebView fakeTrailingBarButtonItemAction]):
1317         (+[InputAssistantItemTestingWebView barButtonIcon]):
1318         (+[InputAssistantItemTestingWebView leadingItemsForWebView:]):
1319         (+[InputAssistantItemTestingWebView trailingItemsForWebView:]):
1320         (-[InputAssistantItemTestingWebView inputAssistantItem]):
1321         (TestWebKitAPI::TEST):
1322
1323 2018-11-05  Wenson Hsieh  <wenson_hsieh@apple.com>
1324
1325         [iOS] Changing view scale sometimes does not zoom the page to the new initial scale when the page is zoomed in when ignoring meta viewport
1326         https://bugs.webkit.org/show_bug.cgi?id=191226
1327         <rdar://problem/45781765>
1328
1329         Reviewed by Tim Horton.
1330
1331         Add a missing check for `shouldIgnoreMetaViewport` when comparing TestOptions, to ensure that "ignore meta
1332         viewport" state doesn't unexpectedly persist after running a layout test that ignores meta viewport.
1333
1334         * WebKitTestRunner/TestOptions.h:
1335         (WTR::TestOptions::hasSameInitializationOptions const):
1336
1337 2018-11-05  Commit Queue  <commit-queue@webkit.org>
1338
1339         Unreviewed, rolling out r237784 and r237788.
1340         https://bugs.webkit.org/show_bug.cgi?id=191270
1341
1342         Caused mediastream layout test failures (Requested by
1343         ryanhaddad on #webkit).
1344
1345         Reverted changesets:
1346
1347         "[MediaStream] User should not be prompted again after denying
1348         getDisplayMedia request"
1349         https://bugs.webkit.org/show_bug.cgi?id=191227
1350         https://trac.webkit.org/changeset/237784
1351
1352         "[MediaStream] User should not be prompted again after denying
1353         getDisplayMedia request"
1354         https://bugs.webkit.org/show_bug.cgi?id=191227
1355         https://trac.webkit.org/changeset/237788
1356
1357 2018-11-05  Lucas Forschler  <lforschler@apple.com>
1358
1359         https://bugs.webkit.org/show_bug.cgi?id=191268
1360         Remove unused bots.
1361
1362         rubber-stamped by Alexey Proskuryakov.
1363
1364         * BuildSlaveSupport/build.webkit.org-config/config.json:
1365         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
1366         (WebKitBuildbot):
1367
1368 2018-11-05  Michael Catanzaro  <mcatanzaro@igalia.com>
1369
1370         [WPE][GTK] API test runner fails to respect default build type
1371         https://bugs.webkit.org/show_bug.cgi?id=190247
1372
1373         Reviewed by Carlos Garcia Campos.
1374
1375         Problem is it's looking for a release build, even though I've run set-webkit-configuration
1376         --debug. It should look for a debug build unless I explicitly pass --release.
1377
1378         * glib/api_test_runner.py:
1379         (TestRunner.__init__):
1380
1381 2018-11-05  Thibault Saunier  <tsaunier@igalia.com>
1382
1383         [GStreamer][WebRTC] Add webrtcencoder bin to cleanup and refactor the way we set encoders
1384         https://bugs.webkit.org/show_bug.cgi?id=190674
1385
1386         Reviewed by Philippe Normand.
1387
1388         webrtcencoder is a simple GstBin with a set of well known GStreamer encoders which
1389         it can use to implement encoding for different formats exposing a trimmed down unified API.
1390
1391         It also adds proper handling of H264 profiles.
1392
1393         The added files follow GStreamer coding style as we aim at upstreaming the element
1394         in the future.
1395
1396         Reviewed by Philippe Normand.
1397
1398         * Scripts/webkitpy/style/checker.py:
1399
1400 2018-11-05  Michael Catanzaro  <mcatanzaro@igalia.com>
1401
1402         [WPE][GTK] API test /webkit/WebKitSettings/webkit-settings is failing
1403         https://bugs.webkit.org/show_bug.cgi?id=191221
1404
1405         Reviewed by Carlos Garcia Campos.
1406
1407         This test ensures that MSE is disabled by default, but we now enable it by default, so
1408         reverse the semantics of the test.
1409
1410         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
1411         (testWebKitSettings):
1412
1413 2018-11-05  Michael Catanzaro  <mcatanzaro@igalia.com>
1414
1415         REGRESSION(r237031): [GTK] Test /webkit/WebKitWebView/settings is failing
1416         https://bugs.webkit.org/show_bug.cgi?id=191225
1417
1418         Reviewed by Alejandro G. Castro.
1419
1420         Fix a memory leak causing this test to fail.
1421
1422         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
1423         (WebViewTest::initializeWebView):
1424
1425 2018-11-04  Zan Dobersek  <zdobersek@igalia.com>
1426
1427         [webkitpy] Support WPE in the run-web-platform-tests script
1428         https://bugs.webkit.org/show_bug.cgi?id=191183
1429
1430         Reviewed by Alex Christensen.
1431
1432         * Scripts/webkitpy/w3c/wpt_runner.py:
1433         (parse_args): Support `--wpe` as an argument that specifies WPE as the
1434         target port. Additionally, the `--display-server` flag now accepts
1435         `headless` as a valid value, enabling the WPE WebDriver to run in
1436         headless mode.
1437
1438 2018-11-04  Fujii Hironori  <Hironori.Fujii@sony.com>
1439
1440         [Win] Use C++14, not C++17
1441         https://bugs.webkit.org/show_bug.cgi?id=191101
1442
1443         Reviewed by Alex Christensen.
1444
1445         std::basic_string::data() returns a read-only const buffer in
1446         C++14.
1447
1448         * MiniBrowser/win/WebKitBrowserWindow.cpp:
1449         (createString): Use std::vector instead of std::wstring.
1450         (createUTF8String): Use std::vector instead of std::string.
1451
1452 2018-11-04  Wenson Hsieh  <wenson_hsieh@apple.com>
1453
1454         [Cocoa] Fold common UIScriptController functionality on macOS and iOS into UIScriptControllerCocoa.mm
1455         https://bugs.webkit.org/show_bug.cgi?id=191231
1456
1457         Reviewed by Simon Fraser.
1458
1459         Moves some UIScriptController method implementations specific to iOS and macOS into UIScriptControllerCocoa, so
1460         it can be shared between iOS-family and macOS platforms. See below for more details.
1461
1462         No change in behavior.
1463
1464         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1465         (WTR::UIScriptController::overridePreference):
1466
1467         Add a method stub for DumpRenderTree.
1468
1469         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1470         * WebKitTestRunner/UIScriptControllerCocoa.mm:
1471         (WTR::UIScriptController::doAsyncTask):
1472         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
1473
1474         Unify these method implementations.
1475
1476         (WTR::UIScriptController::removeViewFromWindow):
1477         (WTR::UIScriptController::addViewToWindow):
1478
1479         Move the macOS implementation to UIScriptControllerCocoa. On iOS, this method currently only adds the web view
1480         to the window, and does not attempt to invoke the given completion block; additionally, invoking the completion
1481         block after a presentation update (as done on macOS) causes pageoverlay/overlay-remove-reinsert-view.html to
1482         begin failing consistently. This patch does not attempt to change behavior, but adds a FIXME describing this.
1483
1484         (WTR::UIScriptController::overridePreference):
1485         (WTR::UIScriptController::findString):
1486         (WTR::UIScriptController::contentsOfUserInterfaceItem const):
1487
1488         Move these from UIScriptControllerMac to UIScriptControllerCocoa, so that it is now implemented on iOS as well.
1489
1490         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1491         (WTR::UIScriptController::doAsyncTask): Deleted.
1492         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution): Deleted.
1493         (WTR::UIScriptController::contentsOfUserInterfaceItem const): Deleted.
1494         (WTR::UIScriptController::findString): Deleted.
1495         (WTR::UIScriptController::removeViewFromWindow): Deleted.
1496         (WTR::UIScriptController::addViewToWindow): Deleted.
1497         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1498         (WTR::UIScriptController::doAsyncTask): Deleted.
1499         (WTR::UIScriptController::contentsOfUserInterfaceItem const): Deleted.
1500         (WTR::UIScriptController::overridePreference): Deleted.
1501         (WTR::UIScriptController::findString): Deleted.
1502         (WTR::UIScriptController::removeViewFromWindow): Deleted.
1503         (WTR::UIScriptController::addViewToWindow): Deleted.
1504         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution): Deleted.
1505
1506 2018-11-04  Eric Carlson  <eric.carlson@apple.com>
1507
1508         [MediaStream] User should not be prompted again after denying getDisplayMedia request
1509         https://bugs.webkit.org/show_bug.cgi?id=191227
1510         <rdar://problem/45784512>
1511
1512         Reviewed by Youenn Fablet.
1513
1514         * TestWebKitAPI/Tests/WebKitCocoa/GetDisplayMedia.mm:
1515         (-[GetDisplayMediaUIDelegate _webView:requestUserMediaAuthorizationForDevices:url:mainFrameURL:decisionHandler:]):
1516         (TestWebKitAPI::GetDisplayMediaTest::promptForCapture):
1517         (TestWebKitAPI::TEST_F):
1518
1519 2018-11-04  Zalan Bujtas  <zalan@apple.com>
1520
1521         [LFC][BFC] Add support for percentage height in quirks mode.
1522         https://bugs.webkit.org/show_bug.cgi?id=191232
1523
1524         Reviewed by Antti Koivisto.
1525
1526         * LayoutReloaded/misc/LFC-passing-tests.txt:
1527
1528 2018-11-04  Zalan Bujtas  <zalan@apple.com>
1529
1530         [LFC][BCF] Add support for block level non-replaced inflow height percentage
1531         https://bugs.webkit.org/show_bug.cgi?id=191229
1532
1533         Reviewed by Antti Koivisto.
1534
1535         * LayoutReloaded/misc/LFC-passing-tests.txt:
1536
1537 2018-11-02  Zalan Bujtas  <zalan@apple.com>
1538
1539         [LFC][BFC] Resolve percentage height values.
1540         https://bugs.webkit.org/show_bug.cgi?id=191224
1541
1542         Reviewed by Antti Koivisto.
1543
1544         * LayoutReloaded/misc/LFC-passing-tests.txt:
1545
1546 2018-11-03  Alex Christensen  <achristensen@webkit.org>
1547
1548         Mac production builds should sign the network process xpc service with entitlements
1549         https://bugs.webkit.org/show_bug.cgi?id=191209
1550         <rdar://problem/45377609>
1551
1552         Reviewed by Geoff Garen.
1553
1554         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1555         * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm: Added.
1556         (TEST):
1557
1558 2018-11-02  Alex Christensen  <achristensen@webkit.org>
1559
1560         Unreviewed, rolling out r237761.
1561
1562         Makes most API tests timeout and WK2 tests crash
1563
1564         Reverted changeset:
1565
1566         "Mac production builds should sign the network process xpc
1567         service with entitlements"
1568         https://bugs.webkit.org/show_bug.cgi?id=191209
1569         https://trac.webkit.org/changeset/237761
1570
1571 2018-11-02  Michael Catanzaro  <mcatanzaro@igalia.com>
1572
1573         Unreviewed API test gardening
1574
1575         * TestWebKitAPI/glib/TestExpectations.json:
1576
1577 2018-11-02  Justin Michaud  <justin_michaud@apple.com>
1578
1579         Add new global object and preliminary Worklets support for CSS painting api
1580         https://bugs.webkit.org/show_bug.cgi?id=190979
1581
1582         Reviewed by Chris Dumez.
1583
1584         * Scripts/webkitpy/bindings/main.py:
1585         (BindingsTests.generate_supplemental_dependency):
1586         (BindingsTests.main):
1587
1588 2018-11-02  Alex Christensen  <achristensen@webkit.org>
1589
1590         Mac production builds should sign the network process xpc service with entitlements
1591         https://bugs.webkit.org/show_bug.cgi?id=191209
1592         <rdar://problem/45377609>
1593
1594         Reviewed by Geoff Garen.
1595
1596         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1597         * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm: Added.
1598         (TEST):
1599
1600 2018-11-02  Lucas Forschler  <lforschler@apple.com>
1601
1602         Add Windows 10 archive bots
1603         https://bugs.webkit.org/show_bug.cgi?id=190964
1604         
1605         This Change updates the Apple Windows Buildbot configuration.
1606         - Add Windows 10 specific builders and testers for release and debug.
1607         - Refactor Windows -> Windows 7.
1608         - Remove Windows 7 Debug.
1609
1610         Reviewed by Aakash Jain.
1611
1612         * BuildSlaveSupport/build.webkit.org-config/config.json:
1613
1614 2018-11-02  Philippe Normand  <pnormand@igalia.com>
1615
1616         [GTK][WPE] Enable GST_DEBUG_NO_COLOR environment variable pass-through
1617
1618         Rubber-stamped by Michael Catanzaro.
1619
1620         This variable is useful to get rid of shell color escapes in tests stderr files.
1621
1622         * Scripts/webkitpy/port/gtk.py:
1623         (GtkPort.setup_environ_for_server):
1624         * Scripts/webkitpy/port/wpe.py:
1625         (WPEPort.setup_environ_for_server):
1626
1627 2018-11-02  Aakash Jain  <aakash_jain@apple.com>
1628
1629         Add Basic Django web app for OpenSource EWS
1630         https://bugs.webkit.org/show_bug.cgi?id=191091
1631
1632         Reviewed by Lucas Forschler.
1633
1634         * BuildSlaveSupport/EWS_app/manage.py: Added, auto-generated by Django.
1635         * BuildSlaveSupport/EWS_app/EWS_app/__init__.py: Added, auto-generated by Django.
1636         * BuildSlaveSupport/EWS_app/EWS_app/settings.py: Added, auto-generated by Django.
1637         * BuildSlaveSupport/EWS_app/EWS_app/urls.py: Added, auto-generated by Django.
1638         * BuildSlaveSupport/EWS_app/EWS_app/wsgi.py: Added, auto-generated by Django.
1639         * BuildSlaveSupport/EWS_app/ews/__init__.py: Added.
1640         * BuildSlaveSupport/EWS_app/ews/admin.py: Added, auto-generated by Django.
1641         * BuildSlaveSupport/EWS_app/ews/apps.py: Added, auto-generated by Django.
1642         * BuildSlaveSupport/EWS_app/ews/migrations/__init__.py: Added.
1643         * BuildSlaveSupport/EWS_app/ews/tests.py: Added, auto-generated by Django.
1644         * BuildSlaveSupport/EWS_app/ews/models/__init__.py: Added.
1645         * BuildSlaveSupport/EWS_app/ews/models/patch.py: Added.
1646         * BuildSlaveSupport/EWS_app/ews/views/__init__.py: Added.
1647         * BuildSlaveSupport/EWS_app/ews/views/patch.py: Added.
1648
1649 2018-11-02  Daniel Bates  <dabates@apple.com>
1650
1651         [iOS] WebKit should dispatch DOM events when a modifier key is pressed
1652         https://bugs.webkit.org/show_bug.cgi?id=190487
1653
1654         Reviewed by Tim Horton.
1655
1656         Update the code for renamed enumerations. For WebKitTestRunner, removed comment that does not
1657         match my observations when using the simulator to simulate iOS 12 and add support for testing
1658         right-hand side modifiers.
1659
1660         * DumpRenderTree/mac/EventSendingController.mm:
1661         (modifierFlags):
1662         (-[EventSendingController keyDown:withModifiers:withLocation:]):
1663         (-[EventSendingController setTouchModifier:value:]):
1664         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1665         (hidUsageCodeForCharacter):
1666
1667 2018-11-02  Chris Dumez  <cdumez@apple.com>
1668
1669         [PSON] Reuse SuspendedPages' process when possible, for performance
1670         https://bugs.webkit.org/show_bug.cgi?id=191166
1671
1672         Reviewed by Geoffrey Garen.
1673
1674         Add API test coverage.
1675
1676         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1677
1678 2018-11-02  Zalan Bujtas  <zalan@apple.com>
1679
1680         [LFC][IFC] Add support for intrinsic width calculation
1681         https://bugs.webkit.org/show_bug.cgi?id=191144
1682
1683         Reviewed by Antti Koivisto.
1684
1685         * LayoutReloaded/misc/LFC-passing-tests.txt:
1686
1687 2018-11-01  Philippe Normand  <pnormand@igalia.com>
1688
1689         [Apache] Self-signed SSL certificate RSA key is considered too weak
1690         https://bugs.webkit.org/show_bug.cgi?id=191156
1691
1692         Reviewed by Michael Catanzaro.
1693
1694         * Scripts/webkitpy/common/system/pemfile.py:
1695
1696 2018-11-02  Zan Dobersek  <zdobersek@igalia.com>
1697
1698         Unreviewed follow-up to r237678.
1699
1700         * wpe/jhbuild.modules: The patch element apparently has to be a child
1701         of the branch in order for Jhbuild to properly detect and apply the
1702         patch file.
1703
1704 2018-11-01  Ross Kirsling  <ross.kirsling@sony.com>
1705
1706         build-jsc --wincairo should update WinCairo libraries
1707         https://bugs.webkit.org/show_bug.cgi?id=191170
1708
1709         Reviewed by Fujii Hironori.
1710
1711         * Scripts/build-jsc:
1712
1713 2018-11-01  John Wilander  <wilander@apple.com>
1714
1715         In WebCore::ResourceLoadObserver, use document.sessionID().isEphemeral() when possible and check for page existence when not
1716         https://bugs.webkit.org/show_bug.cgi?id=191119
1717         <rdar://problem/44176965>
1718
1719         Reviewed by Chris Dumez.
1720
1721         This is an API test for a WebKitLegacy WebView that is first closed and then
1722         JavaScript is handed a keyboard event.
1723
1724         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1725         * TestWebKitAPI/Tests/WebKitLegacy/mac/ClosingWebView.mm: Added.
1726         (-[ClosingWebViewThenSendingItAKeyDownEventLoadDelegate webView:didFinishLoadForFrame:]):
1727         (-[KeyboardEventListener handleEvent:]):
1728         (TestWebKitAPI::TEST):
1729
1730 2018-11-01  Sihui Liu  <sihui_liu@apple.com>
1731
1732         Add a storage limit for IndexedDB
1733         https://bugs.webkit.org/show_bug.cgi?id=190598
1734         <rdar://problem/44654715>
1735
1736         Reviewed by Chris Dumez.
1737
1738         Add API for testing.
1739
1740         * DumpRenderTree/TestRunner.cpp:
1741         (setIDBPerOriginQuotaCallback):
1742         (TestRunner::staticFunctions):
1743         * DumpRenderTree/TestRunner.h:
1744         * DumpRenderTree/mac/TestRunnerMac.mm:
1745         (TestRunner::setIDBPerOriginQuota):
1746         * DumpRenderTree/win/TestRunnerWin.cpp:
1747         (TestRunner::setIDBPerOriginQuota):
1748         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1749         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1750         (WTR::TestRunner::setIDBPerOriginQuota):
1751         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1752         * WebKitTestRunner/TestController.cpp:
1753         (WTR::TestController::setIDBPerOriginQuota):
1754         * WebKitTestRunner/TestController.h:
1755         * WebKitTestRunner/TestInvocation.cpp:
1756         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1757
1758 2018-11-01  Chris Dumez  <cdumez@apple.com>
1759
1760         [PSON] WebPageProxy::receivedNavigationPolicyDecision() should not schedule the new load asynchronously when process-swapping
1761         https://bugs.webkit.org/show_bug.cgi?id=191076
1762
1763         Reviewed by Geoffrey Garen.
1764
1765         Add API test coverage.
1766
1767         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1768         (-[PSONNavigationDelegate init]):
1769         (-[PSONNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
1770
1771 2018-11-01  Adrian Perez de Castro  <aperez@igalia.com>
1772
1773         Fix build with VIDEO and WEB_AUDIO disabled
1774         https://bugs.webkit.org/show_bug.cgi?id=191147
1775         <rdar://problem/45726710>
1776
1777         Unreviewed build fix.
1778
1779         This adds the missing compilation guards in the WPE MiniBrowser.
1780
1781         * MiniBrowser/wpe/main.cpp:
1782         (main): Condition GST includes and calls.
1783
1784 2018-10-31  Zalan Bujtas  <zalan@apple.com>
1785
1786         [LFC][IFC] Add support for inline-block elements.
1787         https://bugs.webkit.org/show_bug.cgi?id=191143
1788
1789         Reviewed by Antti Koivisto.
1790
1791         * LayoutReloaded/misc/LFC-passing-tests.txt:
1792
1793 2018-11-01  Claudio Saavedra  <csaavedra@igalia.com>
1794
1795         [WPE] Add missing libsoup patch to jhbuild
1796         https://bugs.webkit.org/show_bug.cgi?id=191149
1797
1798         Reviewed by Žan Doberšek.
1799
1800         * wpe/jhbuild.modules:
1801         * wpe/patches/libsoup-soup-socket-fix-critical-warning-when-the-peer-certi.patch: Added.
1802
1803 2018-11-01  Claudio Saavedra  <csaavedra@igalia.com>
1804
1805         Fix build with VIDEO and WEB_AUDIO disabled
1806         https://bugs.webkit.org/show_bug.cgi?id=191147
1807
1808         Reviewed by Philippe Normand.
1809
1810         * MiniBrowser/gtk/main.c:
1811         (main): Condition GST includes and calls
1812
1813 2018-10-31  Justin Michaud  <justin_michaud@apple.com>
1814
1815         Add Justin Michaud to the list of WebKit Committers
1816         https://bugs.webkit.org/show_bug.cgi?id=191142
1817
1818         * Scripts/webkitpy/common/config/contributors.json:
1819
1820 2018-10-31  Guillaume Emont  <guijemont@igalia.com>
1821
1822         Don't run JIT tests on 32-bit platforms
1823         https://bugs.webkit.org/show_bug.cgi?id=191074
1824
1825         Reviewed by Michael Catanzaro.
1826
1827         * Scripts/run-jsc-stress-tests:
1828
1829 2018-10-30  Wenson Hsieh  <wenson_hsieh@apple.com>
1830
1831         [Cocoa] Attachment dropped from one web view to another is missing its file wrapper
1832         https://bugs.webkit.org/show_bug.cgi?id=190530
1833         <rdar://problem/45232149>
1834
1835         Reviewed by Tim Horton.
1836
1837         Add a test to verify that copying different types of attachments and pasting in a new web view inserts
1838         attachments in the second web view that are backed by _WKAttachment objects, whose NSFileWrappers hold data that
1839         is equivalent to the original file wrappers used to insert attachments in the first web view.
1840
1841         Existing API tests verify that when copying and pasting within a single web view, the pasted attachment element
1842         is still backed by the same NSFileWrapper instance.
1843
1844         * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
1845         (TestWebKitAPI::TEST):
1846
1847 2018-10-30  Fujii Hironori  <Hironori.Fujii@sony.com>
1848
1849         [Win] Remove obsolete code for Visual Studio Express in webkitdirs.pm
1850         https://bugs.webkit.org/show_bug.cgi?id=190949
1851
1852         Reviewed by Alex Christensen.
1853
1854         Visual Studio 2017 Community is the alternative.
1855
1856         * Scripts/webkitdirs.pm: Remove $willUseVCExpressWhenBuilding variable.
1857         (setupCygwinEnv): Remove obsolete code for Visual Studio Express.
1858         (buildVisualStudioProject): Ditto.
1859         (dieIfWindowsPlatformSDKNotInstalled): Deleted.
1860         (usingVisualStudioExpress): Deleted.
1861
1862 2018-10-30  Fujii Hironori  <Hironori.Fujii@sony.com>
1863
1864         [Win][Direct2D] Support building DumpRenderTree for Direct2D
1865         https://bugs.webkit.org/show_bug.cgi?id=191093
1866         <rdar://problem/45685706>
1867
1868         Unreviewed build fix.
1869
1870         error C2065: 'renderTarget': undeclared identifier
1871
1872         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
1873         (createBitmapContextFromWebView): Restored the previous implementation.
1874
1875 2018-10-30  Don Olmstead  <don.olmstead@sony.com>
1876
1877         [PlayStation] Enable JavaScriptCore
1878         https://bugs.webkit.org/show_bug.cgi?id=191072
1879
1880         Reviewed by Brent Fulgham.
1881
1882         Add platform scripts for building the PlayStation port.
1883         perl Tools/Scripts/build-webkit --playstation
1884
1885         * Scripts/build-webkit:
1886         * Scripts/build-webkittestrunner:
1887         * Scripts/webkitdirs.pm:
1888         (argumentsForConfiguration):
1889         (determineConfigurationProductDir):
1890         (isPlayStation): Added.
1891         (getMSBuildPlatformArgument): Added.
1892         (buildVisualStudioProject):
1893         (wrapperPrefixIfNeeded):
1894         (generateBuildSystemFromCMakeProject):
1895         * TestWebKitAPI/PlatformPlayStation.cmake: Added.
1896
1897 2018-10-30  Brent Fulgham  <bfulgham@apple.com>
1898
1899         [Win][Direct2D] Support building DumpRenderTree for Direct2D
1900         https://bugs.webkit.org/show_bug.cgi?id=191093
1901         <rdar://problem/45685706>
1902
1903         Reviewed by Alex Christensen.
1904
1905         * DumpRenderTree/PixelDumpSupport.cpp: Update for Direct2D use.
1906         * DumpRenderTree/PlatformWin.cmake: Add support for Direct2D build.
1907         * DumpRenderTree/win/PixelDumpSupportDirect2D.cpp: Added.
1908         (pixelDumpSystemFactory): Added.
1909         (printPNG): Create stub.
1910         (computeMD5HashStringForBitmapContext): Ditto.
1911         (dumpBitmap): Ditto.
1912         * DumpRenderTree/win/PixelDumpSupportDirect2D.h: Added.
1913         (BitmapContext::createByAdoptingBitmapAndContext):
1914         (BitmapContext::~BitmapContext):
1915         (BitmapContext::platformContext const):
1916         (BitmapContext::BitmapContext):
1917         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
1918         (createBitmapContextFromWebView): Update to support Direct2D.
1919         * MiniBrowser/win/MiniBrowserReplace.h: Drive-by fix: The old WebKit
1920         logo is no longer available at this location. Switch to the new logo.
1921
1922 2018-10-30  Jonathan Bedard  <jbedard@apple.com>
1923
1924         webkitpy: Support alternate simctl list outputs
1925         https://bugs.webkit.org/show_bug.cgi?id=191090
1926         <rdar://problem/45684255>
1927
1928         Rubber-stamped by Aakash Jain.
1929
1930         * Scripts/webkitpy/xcode/simulated_device.py:
1931         (SimulatedDeviceManager._create_runtimes): Support alternative availability format.
1932         (SimulatedDeviceManager._create_device_with_runtime): Ditto.
1933         * Scripts/webkitpy/xcode/simulated_device_unittest.py:
1934         (test_available_devices): Add iOS 12 with alternative availability format.
1935
1936 2018-10-30  Alexey Proskuryakov  <ap@apple.com>
1937
1938         Clean up some obsolete MAX_ALLOWED macros
1939         https://bugs.webkit.org/show_bug.cgi?id=190916
1940
1941         Reviewed by Tim Horton.
1942
1943         * TestWebKitAPI/Tests/WTF/darwin/WeakLinking.cpp:
1944         * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
1945         * TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm:
1946
1947 2018-10-30  Claudio Saavedra  <csaavedra@igalia.com>
1948
1949         [GTK][WPE] Fixes to the PublicSuffix implementation
1950         https://bugs.webkit.org/show_bug.cgi?id=191031
1951
1952         Reviewed by Michael Catanzaro.
1953
1954         * TestWebKitAPI/Tests/WebCore/PublicSuffix.cpp:
1955         (TestWebKitAPI::TEST_F): Remove a test for a domain
1956         that is not registrable and shouldn't be tested there.
1957
1958 2018-10-29  Tim Horton  <timothy_horton@apple.com>
1959
1960         Modernize WebKit nibs and lprojs for localization's sake
1961         https://bugs.webkit.org/show_bug.cgi?id=190911
1962         <rdar://problem/45349466>
1963
1964         Reviewed by Dan Bernstein.
1965
1966         * Scripts/check-inspector-strings:
1967         * Scripts/update-webkit-localizable-strings:
1968         * gtk/manifest.txt.in:
1969         * wpe/manifest.txt.in:
1970         English->en
1971
1972 2018-10-29  Daniel Bates  <dabates@apple.com>
1973
1974         [lldb-webkit] Last aliased enumerator in OptionSet is printed; should print first enumerator
1975         https://bugs.webkit.org/show_bug.cgi?id=191036
1976
1977         Reviewed by Andy Estes.
1978
1979         Prefer the first enumerator (in parse order) when pretty-printing an OptionSet that is parameterized
1980         by an enum that contains two or more enumerators with the same value. For example, suppose
1981         you have the following enum:
1982
1983         enum Flag {
1984             A = 1 << 0,
1985             AAlias = A,
1986         };
1987
1988         Then pretty-printing OptionSet<Flag>(Flag::A) should print A instead of AAlias. A side effect of
1989         this change is that OptionSet<Flag>(Flag::AAlias) will also print A as its only member as we cannot
1990         differentiate between A and Alias. This should be acceptable in practice as aliased enumerators
1991         tend to be used in bounds checks as opposed to code that adds to a set.
1992
1993         * lldb/lldbWebKitTester/main.cpp:
1994         (testSummaryProviders):
1995         * lldb/lldb_webkit.py:
1996         (WTFOptionSetProvider.update):
1997         * lldb/lldb_webkit_unittest.py:
1998         (TestSummaryProviders.serial_test_WTFOptionSetProvider_simple):
1999         (TestSummaryProviders):
2000         (TestSummaryProviders.serial_test_WTFOptionSetProvider_aliased_flag):
2001
2002 2018-10-29  Daniel Bates  <dabates@apple.com>
2003
2004         [llbd-webkit] Add summaries for Document, Frame, and SecurityOrigin
2005         https://bugs.webkit.org/show_bug.cgi?id=191033
2006
2007         Reviewed by Andy Estes.
2008
2009         For Documents we display its origin, URL, whether it's in the main frame, and its page cache state.
2010         We display the same details in the summary for a Frame because its Document tends to be the most
2011         interesting aspect of it. For SecurityOrigin we display its origin, domain (affects cookie access),
2012         and whether the origin has universal access.
2013
2014         * lldb/lldb_webkit.py:
2015         (__lldb_init_module):
2016         Register new summary providers.
2017
2018         (WebCoreSecurityOrigin_SummaryProvider):
2019         (WebCoreFrame_SummaryProvider):
2020         (WebCoreDocument_SummaryProvider):
2021         Add new summary providers.
2022
2023         (StdOptionalWrapper):
2024         (StdOptionalWrapper.__init__):
2025         (StdOptionalWrapper.has_value):
2026         (StdOptionalWrapper.value):
2027         Convenience data type that provides access to the fields of a std::optional<>.
2028         
2029         (WebCoreSecurityOriginProvider):
2030         (WebCoreSecurityOriginProvider.__init__):
2031         (WebCoreSecurityOriginProvider.is_unique):
2032         (WebCoreSecurityOriginProvider.scheme):
2033         (WebCoreSecurityOriginProvider.host):
2034         (WebCoreSecurityOriginProvider.port):
2035         (WebCoreSecurityOriginProvider.domain):
2036         (WebCoreSecurityOriginProvider.has_universal_access):
2037         (WebCoreSecurityOriginProvider.to_string):
2038         (WebCoreFrameProvider):
2039         (WebCoreFrameProvider.__init__):
2040         (WebCoreFrameProvider.is_main_frame):
2041         (WebCoreFrameProvider.document):
2042         (WebCoreDocumentProvider):
2043         (WebCoreDocumentProvider.__init__):
2044         (WebCoreDocumentProvider.url):
2045         (WebCoreDocumentProvider.origin):
2046         (WebCoreDocumentProvider.page_cache_state):
2047         (WebCoreDocumentProvider.frame):
2048
2049 2018-10-29  Chris Dumez  <cdumez@apple.com>
2050
2051         [PSON] When Safari restores session state after launching, going back and forward does not swap processes
2052         https://bugs.webkit.org/show_bug.cgi?id=190975
2053         <rdar://problem/45059256>
2054
2055         Reviewed by Antti Koivisto.
2056
2057         Add API test coverage.
2058
2059         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2060
2061 2018-10-29  Zalan Bujtas  <zalan@apple.com>
2062
2063         [LFC][IFC] Compute estimated margin top for inline formatting root's ancestors
2064         https://bugs.webkit.org/show_bug.cgi?id=191018
2065
2066         Reviewed by Antti Koivisto.
2067
2068         * LayoutReloaded/misc/LFC-passing-tests.txt:
2069
2070 2018-10-29  Zalan Bujtas  <zalan@apple.com>
2071
2072         [LFC] Add support for inflow non replaced content height when the box is an inline formatting root.
2073         https://bugs.webkit.org/show_bug.cgi?id=191011
2074
2075         Reviewed by Antti Koivisto.
2076
2077         * LayoutReloaded/misc/LFC-passing-tests.txt:
2078
2079 2018-10-29  Zalan Bujtas  <zalan@apple.com>
2080
2081         Missing from r237549
2082
2083         Reviewed by Antti Koivisto.
2084
2085         * LayoutReloaded/misc/LFC-passing-tests.txt:
2086
2087 2018-10-29  Zalan Bujtas  <zalan@apple.com>
2088
2089         [LFC][IFC] Add support for simple intruding floats.
2090         https://bugs.webkit.org/show_bug.cgi?id=190998
2091
2092         Reviewed by Antti Koivisto.
2093
2094         * LayoutReloaded/misc/LFC-passing-tests.txt:
2095
2096 2018-10-29  Zalan Bujtas  <zalan@apple.com>
2097
2098         [LFC][IFC] Inline layout produces separate runs when float is present.
2099         https://bugs.webkit.org/show_bug.cgi?id=190980
2100
2101         Reviewed by Antti Koivisto.
2102
2103         * LayoutReloaded/misc/LFC-passing-tests.txt:
2104
2105 2018-10-29  Tadeu Zagallo  <tzagallo@apple.com>
2106
2107         New bytecode format for JSC
2108         https://bugs.webkit.org/show_bug.cgi?id=187373
2109         <rdar://problem/44186758>
2110
2111         Reviewed by Filip Pizlo.
2112
2113         Do not force ENABLE_JIT=true when $forceCLoop is false.
2114
2115         * Scripts/build-jsc:
2116
2117 2018-10-29  Claudio Saavedra  <csaavedra@igalia.com>
2118
2119         [GTK] Try to fix the xserver-xorg build in the Ubuntu LTS bot
2120
2121         Unreviewed build fix
2122
2123         The build fails because of some array-bound check related
2124         to strcmp() macro optimizations. Disabling selective Werrors
2125         when building xserver-xorg might get past this.
2126
2127         * gtk/jhbuild.modules: Add --disable-selective-werror to xserver-xorg
2128         configuration.
2129
2130 2018-10-29  Claudio Saavedra  <csaavedra@igalia.com>
2131
2132         [GTK] Update API test expectations after r237383
2133         https://bugs.webkit.org/show_bug.cgi?id=186913
2134
2135         Unreviewed gardening.
2136
2137         * TestWebKitAPI/glib/TestExpectations.json: Remove
2138         passing TestSSL tests.
2139
2140 2018-10-28  Zan Dobersek  <zdobersek@igalia.com>
2141
2142         [WPE] Add the WebKitVersion.h header
2143         https://bugs.webkit.org/show_bug.cgi?id=191015
2144
2145         Reviewed by Michael Catanzaro.
2146
2147         * MiniBrowser/wpe/main.cpp:
2148         (automationStartedCallback): Remove the FIXME and finally enable the
2149         webkit_application_info_set_version() call.
2150         * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: Remove
2151         this FIXME as well and remove the custom WEBKIT_*_VERSION macros.
2152
2153 2018-10-28  Fujii Hironori  <Hironori.Fujii@sony.com>
2154
2155         [Win] Remove obsolete code for vcxproj builds in build-api-tests and build-jsc
2156         https://bugs.webkit.org/show_bug.cgi?id=190948
2157
2158         Reviewed by Brent Fulgham.
2159
2160         vcxproj files have been removed in Bug 154388.
2161
2162         * Scripts/build-api-tests: Removed obsolete code to build vcproj.
2163         * Scripts/build-jsc:
2164         (buildMyProject): Ditto. Removed a condition of buiding bmalloc
2165         which is not used because Windows ports are using CMake.
2166
2167 2018-10-28  Geoffrey Garen  <ggaren@apple.com>
2168
2169         HashMap should support selecting a random entry
2170         https://bugs.webkit.org/show_bug.cgi?id=190814
2171
2172         Reviewed by Ryosuke Niwa.
2173
2174         * TestWebKitAPI/Tests/WTF/HashMap.cpp: Renamed IsRandom to
2175         IsEvenlyDistributed to reflect the fact that we're only testing the
2176         distribution. Added a test case that covers more table densities and
2177         the remove() operation.
2178
2179 2018-10-27  Charlie Turner  <cturner@igalia.com>
2180
2181         [GTK] Add bubblewrap feature option
2182         https://bugs.webkit.org/show_bug.cgi?id=190981
2183
2184         Reviewed by Xabier Rodriguez-Calvar.
2185
2186         Without this, it was not possible to disable the bubblewrap sandbox
2187         from the webkit build scripts.
2188
2189         * Scripts/webkitperl/FeatureList.pm:
2190
2191 2018-10-26  Commit Queue  <commit-queue@webkit.org>
2192
2193         Unreviewed, rolling out r237479 and r237484.
2194         https://bugs.webkit.org/show_bug.cgi?id=190978
2195
2196         broke JSC on iOS (Requested by tadeuzagallo on #webkit).
2197
2198         Reverted changesets:
2199
2200         "New bytecode format for JSC"
2201         https://bugs.webkit.org/show_bug.cgi?id=187373
2202         https://trac.webkit.org/changeset/237479
2203
2204         "Gardening: Build fix after r237479."
2205         https://bugs.webkit.org/show_bug.cgi?id=187373
2206         https://trac.webkit.org/changeset/237484
2207
2208 2018-10-26  Tadeu Zagallo  <tzagallo@apple.com>
2209
2210         New bytecode format for JSC
2211         https://bugs.webkit.org/show_bug.cgi?id=187373
2212         <rdar://problem/44186758>
2213
2214         Reviewed by Filip Pizlo.
2215
2216         Do not force ENABLE_JIT=true when $forceCLoop is false.
2217
2218         * Scripts/build-jsc:
2219
2220 2018-10-26  Geoffrey Garen  <ggaren@apple.com>
2221
2222         HashMap should support selecting a random entry
2223         https://bugs.webkit.org/show_bug.cgi?id=190814
2224
2225         Reviewed by Antti Koivisto.
2226
2227         * TestWebKitAPI/Tests/WTF/HashMap.cpp: Updated the Random_IsRandom to
2228         more thoroughly test for randomness.
2229
2230 2018-10-26  Antti Koivisto  <antti@apple.com>
2231
2232         hashSet.remove(hashSet.random()) doesn't build
2233         https://bugs.webkit.org/show_bug.cgi?id=190953
2234
2235         Reviewed by Chris Dumez.
2236
2237         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
2238         (TestWebKitAPI::TEST):
2239
2240 2018-10-26  Zalan Bujtas  <zalan@apple.com>
2241
2242         [LFC][IFC] Layout floats as part of the inline content
2243         https://bugs.webkit.org/show_bug.cgi?id=190942
2244
2245         Reviewed by Antti Koivisto.
2246
2247         * LayoutReloaded/misc/LFC-passing-tests.txt:
2248
2249 2018-10-26  Alicia Boya García  <aboya@igalia.com>
2250
2251         [MSE][WTF][Media] Invalid MediaTime should be falsy
2252         https://bugs.webkit.org/show_bug.cgi?id=190893
2253
2254         Reviewed by Jer Noble.
2255
2256         This patch adds additional API tests for the conversions from
2257         MediaTime to boolean.
2258
2259         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
2260         (TestWebKitAPI::TEST):
2261
2262 2018-10-25  Chris Dumez  <cdumez@apple.com>
2263
2264         [PSON] Navigating cross-site with locked history but unlocked back/forward list fails to create a new BackForwardListItem
2265         https://bugs.webkit.org/show_bug.cgi?id=190915
2266         <rdar://problem/45059069>
2267
2268         Reviewed by Geoffrey Garen.
2269
2270         Add API test coverage.
2271
2272         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2273
2274 2018-10-25  Joseph Pecoraro  <pecoraro@apple.com>
2275
2276         Web Inspector: Add a watchlist message rule to warn about feature checking new inspector protocol changes
2277         https://bugs.webkit.org/show_bug.cgi?id=190896
2278
2279         Reviewed by Matt Baker.
2280
2281         * Scripts/webkitpy/common/config/watchlist:
2282
2283 2018-10-25  Geoffrey Garen  <ggaren@apple.com>
2284
2285         HashMap should support selecting a random entry
2286         https://bugs.webkit.org/show_bug.cgi?id=190814
2287
2288         Reviewed by Antti Koivisto.
2289
2290         Unit testing is fun and easy!
2291
2292         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
2293         (TestWebKitAPI::ZeroHash::hash):
2294         (TestWebKitAPI::TEST):
2295
2296 2018-10-24  Tim Horton  <timothy_horton@apple.com>
2297
2298         REGRESSION (r237331): DismissingActionSheetShouldNotDismissPresentingViewController times out
2299         https://bugs.webkit.org/show_bug.cgi?id=190897
2300
2301         * TestWebKitAPI/Tests/ios/ActionSheetTests.mm:
2302         (TestWebKitAPI::TEST):
2303         Disable the test for now.
2304
2305 2018-10-24  Alexey Proskuryakov  <ap@apple.com>
2306
2307         Clean up some obsolete macOS version guards
2308         https://bugs.webkit.org/show_bug.cgi?id=190887
2309
2310         Reviewed by Dan Bernstein.
2311
2312         * TestWebKitAPI/cocoa/TestWKWebView.mm:
2313         (__simulated_forceClickAssociatedEventsMask):
2314         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:clickCount:]):
2315         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2316         (WTR::initializeWebViewConfiguration):
2317         * WebKitTestRunner/mac/EventSenderProxy.mm:
2318         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]):
2319
2320 2018-10-24  Megan Gardner  <megan_gardner@apple.com>
2321
2322         Turn on Conic Gradients
2323         https://bugs.webkit.org/show_bug.cgi?id=190810
2324
2325         Reviewed by Tim Horton.
2326
2327         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2328
2329 2018-10-24  Pablo Saavedra  <psaavedra@igalia.com>
2330
2331         [WPE] Fix CMake rules in for TestWebKitAPIBase library building in developer mode
2332         https://bugs.webkit.org/show_bug.cgi?id=190328
2333
2334         Reviewed by Michael Catanzaro.
2335
2336         * TestWebKitAPI/CMakeLists.txt:
2337         * TestWebKitAPI/PlatformWPE.cmake:
2338
2339 2018-10-24  Chris Dumez  <cdumez@apple.com>
2340
2341         [PSON] When navigating back and forth, 'about:blank' shows up in the back/forward list
2342         https://bugs.webkit.org/show_bug.cgi?id=190846
2343         <rdar://problem/45058938>
2344
2345         Reviewed by Antti Koivisto.
2346
2347         Add API test coverage.
2348
2349         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2350
2351 2018-10-24  Claudio Saavedra  <csaavedra@igalia.com>
2352
2353         [GTK] TestSSL failing because of missing libsoup patch
2354         https://bugs.webkit.org/show_bug.cgi?id=190869
2355
2356         Reviewed by Michael Catanzaro.
2357
2358         * gtk/jhbuild.modules: Add the patch below to fix the API test TestSSL
2359         * gtk/patches/libsoup-soup-socket-fix-critical-warning-when-the-peer-certi.patch: Added.
2360
2361 2018-10-23  Justin Fan  <justin_fan@apple.com>
2362
2363         [WebGPU] Rename old GPU* implementation files to GPULegacy* for WebMetal
2364         https://bugs.webkit.org/show_bug.cgi?id=190817
2365
2366         Reviewed by Dean Jackson.
2367
2368         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2369         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyBuffer.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm.
2370         (TestWebKitAPI::TEST_F):
2371         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyCommandQueue.mm: Copied from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm.
2372         (TestWebKitAPI::TEST_F):
2373         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyDevice.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm.
2374         (TestWebKitAPI::TEST_F):
2375         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyFunction.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUFunction.mm.
2376         (TestWebKitAPI::TEST_F):
2377         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyLibrary.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPULibrary.mm.
2378         (TestWebKitAPI::TEST_F):
2379         * TestWebKitAPI/Tests/WebCore/mac/GPULegacyTest.h: Renamed from Tools/TestWebKitAPI/Tests/WebCore/mac/GPUTest.h.
2380
2381 2018-10-23  Chris Dumez  <cdumez@apple.com>
2382
2383         [PSON] Add support for cross-site client-side redirects
2384         https://bugs.webkit.org/show_bug.cgi?id=190806
2385         <rdar://problem/45047344>
2386
2387         Reviewed by Geoffrey Garen.
2388
2389         Add API test coverage.
2390
2391         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2392         (-[PSONNavigationDelegate _webView:willPerformClientRedirectToURL:delay:]):
2393         (-[PSONNavigationDelegate _webView:didPerformClientRedirectFromURL:toURL:]):
2394
2395 2018-10-23  Claudio Saavedra  <csaavedra@igalia.com>
2396
2397         [WPE][GTK] Pass full certificate chain in CertificateInfo coder
2398         https://bugs.webkit.org/show_bug.cgi?id=190789
2399
2400         Reviewed by Michael Catanzaro.
2401
2402         When the network process serializes certificate data to other
2403         processes through the argument coders, the certificate chain, if
2404         present, is lost. In practice this means that applications using
2405         the public API to process certificate info have no details on the
2406         certificate chain, other than the very basics included in the
2407         certificate. Serialize the entire chain if available in the
2408         certificate.
2409
2410         * TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:
2411         (testSSL): Test that the self-signed certificate has no bogus
2412         issuer certificate.
2413
2414 2018-10-22  Tim Horton  <timothy_horton@apple.com>
2415
2416         REGRESSION (r237331): InteractionDeadlockAfterCrash API test fails
2417         https://bugs.webkit.org/show_bug.cgi?id=190801
2418         <rdar://problem/43674361>
2419
2420         * TestWebKitAPI/Tests/WebKitCocoa/InteractionDeadlockAfterCrash.mm:
2421         (TEST):
2422         Use a parented WKWebView for this test, otherwise none of the assertions
2423         about gesture recognizers work anymore.
2424
2425 2018-10-22  Ryan Haddad  <ryanhaddad@apple.com>
2426
2427         REGRESSION (r234081): TestWebKitAPI.VideoControlsManager.VideoControlsManagerAudioElementFollowingUserInteraction is a flaky timeout
2428         https://bugs.webkit.org/show_bug.cgi?id=187972
2429
2430         Unreviewed test gardening.
2431
2432         * TestWebKitAPI/Tests/WebKitCocoa/VideoControlsManager.mm:
2433         (TestWebKitAPI::TEST): Disable the flaky test.
2434
2435 2018-10-22  Wenson Hsieh  <wenson_hsieh@apple.com>
2436
2437         [iOS] [Datalist] fast/forms/datalist/datalist-show-hide.html fails
2438         https://bugs.webkit.org/show_bug.cgi?id=190777
2439
2440         Reviewed by Tim Horton.
2441
2442         Implement isShowingDataListSuggestions on iOS. See below for more details.
2443
2444         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2445         (WTR::UIScriptController::isShowingDataListSuggestions const):
2446
2447         Add a stub implementation for DumpRenderTree.
2448
2449         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2450         (WTR::UIScriptController::isShowingDataListSuggestions const):
2451
2452         Move this stub implementation to !PLATFORM(COCOA).
2453
2454         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2455         (WTR::forEachViewInHierarchy):
2456
2457         Add a helper function to apply a given function to a UIView and each of its subviews, recursively.
2458
2459         (WTR::UIScriptController::isShowingDataListSuggestions const):
2460
2461         For iOS, return whether the UIRemoteKeyboardWindow contains a subview of type WKDataListSuggestionsPickerView.
2462
2463 2018-10-19  Dan Bernstein  <mitz@apple.com>
2464
2465         [macOS] MiniBrowser has an unused injected bundle
2466         https://bugs.webkit.org/show_bug.cgi?id=190770
2467
2468         Reviewed by Tim Horton.
2469
2470         * MiniBrowser/Configurations/MiniBrowserBundle.xcconfig: Removed.
2471         * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: Removed the MiniBrowserBundle target,
2472           the Copy Bundle build phase in the MiniBrowser target, and references to removed files.
2473         * MiniBrowser/MiniBrowserWebProcessPlugIn.h: Removed.
2474         * MiniBrowser/MiniBrowserWebProcessPlugIn.m: Removed.
2475         * MiniBrowser/mac/Bundle: Removed.
2476
2477 2018-10-19  Wenson Hsieh  <wenson_hsieh@apple.com>
2478
2479         [iOS] [Datalist] Can't pick datalist suggestions in a stock WKWebView
2480         https://bugs.webkit.org/show_bug.cgi?id=190621
2481         <rdar://problem/45310649>
2482
2483         Reviewed by Tim Horton.
2484
2485         Add a UIScriptController hook to resign first responder on WKWebView. See LayoutTests/ChangeLog for more detail.
2486
2487         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2488         (WTR::UIScriptController::resignFirstResponder):
2489         * DumpRenderTree/mac/UIScriptControllerMac.mm:
2490         (WTR::UIScriptController::resignFirstResponder):
2491         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2492         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2493         (WTR::UIScriptController::resignFirstResponder):
2494         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2495         * WebKitTestRunner/UIScriptControllerCocoa.mm:
2496         (WTR::UIScriptController::resignFirstResponder):
2497         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2498         (WTR::PlatformWebView::makeWebViewFirstResponder):
2499
2500         Implement this method stub on iOS, to ensure that TestController::resetStateToConsistentValues restores first
2501         responder on the WKWebView when running iOS layout tests.
2502
2503         * WebKitTestRunner/ios/TestControllerIOS.mm:
2504         (WTR::TestController::platformResetStateToConsistentValues):
2505
2506         After resigning first responder to dismiss any on-screen keyboard, ensure that we restore first responder.
2507
2508 2018-10-19  Dean Jackson  <dino@apple.com>
2509
2510         ASSERTION FAILED: !frame().animation().hasAnimations() in WebCore::FrameView::didDestroyRenderTree()
2511         https://bugs.webkit.org/show_bug.cgi?id=186946
2512         <rdar://problem/41724248>
2513
2514         Reviewed by Antoine Quint.
2515
2516         If the incoming test has different enableWebAnimationsCSSIntegration options,
2517         then we need to create a new WebView.
2518
2519         * DumpRenderTree/TestOptions.cpp:
2520         (TestOptions::webViewIsCompatibleWithOptions const):
2521
2522 2018-10-19  Charlie Turner  <cturner@igalia.com>
2523
2524         [EME] Fix crash during tracing in  gst_qtdemux_request_protection_context
2525         https://bugs.webkit.org/show_bug.cgi?id=190738
2526
2527         Reviewed by Xabier Rodriguez-Calvar.
2528
2529         Add a GStreamer patch to avoid crashing when the run-time logging
2530         level is TRACE. There was a missing null check which caused many
2531         tests to crash.
2532
2533         * gstreamer/patches/gst-plugins-good-0013-Avoid-warning-when-reporting-about-decryptors.patch: Added.
2534
2535 2018-10-18  Alicia Boya García  <aboya@igalia.com>
2536
2537         [Media] Use nanoseconds as MaximumTimeScale
2538         https://bugs.webkit.org/show_bug.cgi?id=190631
2539
2540         Rebased MediaTime tests covering timescales over the maximum.
2541
2542         Reviewed by Jer Noble.
2543
2544         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
2545         (TestWebKitAPI::TEST):
2546
2547 2018-10-18  Dean Johnson  <dean_johnson@apple.com>
2548
2549         clean-webkit pulls in many unnecessary dependencies in webkitpy
2550         https://bugs.webkit.org/show_bug.cgi?id=190732
2551
2552         Reviewed by Alexey Proskuryakov.
2553
2554         * Scripts/webkitpy/common/host.py:
2555         (Host.__init__): Split out 'bugs', 'bugzilla', and 'web' to only be created when used.
2556         (Host):
2557         (Host.bugs):
2558         (Host.bugzilla):
2559         (Host.web):
2560
2561 2018-10-18  Chris Dumez  <cdumez@apple.com>
2562
2563         [PSON] SuspendedPages do not report meaningful domains in Activity Monitor
2564         https://bugs.webkit.org/show_bug.cgi?id=190721
2565         <rdar://problem/45059699>
2566
2567         Reviewed by Alex Christensen.
2568
2569         Add API test coverage.
2570
2571         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2572
2573 2018-10-18  Alexey Proskuryakov  <ap@apple.com>
2574
2575         Switch from PLATFORM(IOS) to PLATFORM(IOS_FAMILY)
2576         https://bugs.webkit.org/show_bug.cgi?id=190729
2577
2578         Reviewed by Tim Horton.
2579
2580         * DumpRenderTree/AccessibilityController.h:
2581         * DumpRenderTree/AccessibilityTextMarker.h:
2582         * DumpRenderTree/AccessibilityUIElement.cpp:
2583         (AccessibilityUIElement::getJSClass):
2584         * DumpRenderTree/AccessibilityUIElement.h:
2585         * DumpRenderTree/DumpRenderTreeFileDraggingSource.h:
2586         * DumpRenderTree/TestRunner.cpp:
2587         (getSecureEventInputIsEnabledCallback):
2588         (TestRunner::staticFunctions):
2589         (TestRunner::callUIScriptCallback):
2590         * DumpRenderTree/TestRunner.h:
2591         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2592         * DumpRenderTree/ios/AccessibilityTextMarkerIOS.mm:
2593         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2594         * DumpRenderTree/ios/DumpRenderTreeAppMain.mm:
2595         * DumpRenderTree/ios/DumpRenderTreeBrowserView.mm:
2596         * DumpRenderTree/ios/TextInputControllerIOS.m:
2597         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2598         * DumpRenderTree/mac/AppleScriptController.m:
2599         * DumpRenderTree/mac/DumpRenderTree.mm:
2600         (createWebViewAndOffscreenWindow):
2601         (destroyWebViewAndOffscreenWindow):
2602         (resetWebPreferencesToConsistentValues):
2603         (setDefaultsToConsistentValuesForTesting):
2604         (allocateGlobalControllers):
2605         (releaseGlobalControllers):
2606         (addTestPluginsToPluginSearchPath):
2607         (prepareConsistentTestingEnvironment):
2608         (dumpRenderTree):
2609         (DumpRenderTreeMain):
2610         (dumpFrameAsPDF):
2611         (dumpBackForwardListForAllWindows):
2612         (updateDisplay):
2613         (dump):
2614         (resetWebViewToConsistentStateBeforeTesting):
2615         (runTest):
2616         (displayWebView):
2617         (displayAndTrackRepaintsWebView):
2618         * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.h:
2619         * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
2620         * DumpRenderTree/mac/DumpRenderTreeMac.h:
2621         * DumpRenderTree/mac/DumpRenderTreePasteboard.h:
2622         * DumpRenderTree/mac/DumpRenderTreeWindow.h:
2623         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
2624         (-[DumpRenderTreeWindow close]):
2625         (-[DumpRenderTreeWindow webView]):
2626         (-[DumpRenderTreeWindow webViewStartedAcceleratedCompositing:]):
2627         * DumpRenderTree/mac/EventSendingController.h:
2628         * DumpRenderTree/mac/EventSendingController.mm:
2629         (+[EventSendingController isSelectorExcludedFromWebScript:]):
2630         (+[EventSendingController webScriptNameForSelector:]):
2631         (-[EventSendingController dealloc]):
2632         (-[EventSendingController currentEventTime]):
2633         (-[EventSendingController clearKillRing]):
2634         (modifierFlags):
2635         (-[EventSendingController mouseDown:withModifiers:]):
2636         (-[EventSendingController scalePageBy:atX:andY:]):
2637         (-[EventSendingController mouseUp:withModifiers:]):
2638         (-[EventSendingController mouseMoveToX:Y:]):
2639         (-[EventSendingController mouseScrollByX:andY:continuously:]):
2640         (-[EventSendingController keyDown:withModifiers:withLocation:]):
2641         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2642         (-[FrameLoadDelegate init]):
2643         (-[FrameLoadDelegate dealloc]):
2644         (-[FrameLoadDelegate processWork:]):
2645         (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]):
2646         (-[FrameLoadDelegate webView:didCommitLoadForFrame:]):
2647         (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]):
2648         * DumpRenderTree/mac/LayoutTestHelper.m:
2649         * DumpRenderTree/mac/MockGeolocationProvider.mm:
2650         (-[MockGeolocationProvider timerFired]):
2651         * DumpRenderTree/mac/TestRunnerMac.mm:
2652         (TestRunner::setMainFrameIsFirstResponder):
2653         (TestRunner::setAutomaticLinkDetectionEnabled):
2654         (TestRunner::setUseDashboardCompatibilityMode):
2655         (TestRunner::isCommandEnabled):
2656         (TestRunner::inspectorTestStubURL):
2657         (TestRunner::apiTestNewWindowDataLoadBaseURL):
2658         (TestRunner::abortModal):
2659         (TestRunner::setTextDirection):
2660         (TestRunner::addChromeInputField):
2661         (TestRunner::removeChromeInputField):
2662         (TestRunner::focusWebView):
2663         (TestRunner::setBackingScaleFactor):
2664         (TestRunner::imageCountInGeneralPasteboard const):
2665         * DumpRenderTree/mac/UIDelegate.h:
2666         * DumpRenderTree/mac/UIDelegate.mm:
2667         (-[UIDelegate modalWindowWillClose:]):
2668         (-[UIDelegate webViewRunModal:]):
2669         (-[UIDelegate webView:supportsFullScreenForElement:withKeyboard:]):
2670         (-[UIDelegate dealloc]):
2671         * Scripts/check-for-inappropriate-objc-class-names:
2672         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2673         * TestRunnerShared/spi/UIKitTestSPI.h:
2674         * TestWebKitAPI/Tests/WTF/darwin/WeakLinking.cpp:
2675         * TestWebKitAPI/Tests/WebCore/MarkedText.cpp:
2676         (WebCore::operator<<):
2677         * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm:
2678         (TestWebKitAPI::TEST):
2679         * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm:
2680         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
2681         * TestWebKitAPI/Tests/WebCore/ios/PreviewLoader.cpp:
2682         * TestWebKitAPI/Tests/WebKit/NoHistoryItemScrollToFragment.mm:
2683         (TestWebKitAPI::TEST):
2684         * TestWebKitAPI/Tests/WebKit/WKPreferences.cpp:
2685         (TestWebKitAPI::TEST):
2686         * TestWebKitAPI/Tests/WebKitCocoa/AdditionalReadAccessAllowedURLs.mm:
2687         * TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm:
2688         * TestWebKitAPI/Tests/WebKitCocoa/BundleEditingDelegate.mm:
2689         (TEST):
2690         * TestWebKitAPI/Tests/WebKitCocoa/BundleRangeHandle.mm:
2691         (TEST):
2692         * TestWebKitAPI/Tests/WebKitCocoa/BundleRangeHandlePlugIn.mm:
2693         (-[BundleRangeHandlePlugIn webProcessPlugInBrowserContextController:didFinishDocumentLoadForFrame:]):
2694         * TestWebKitAPI/Tests/WebKitCocoa/Coding.mm:
2695         (TEST):
2696         * TestWebKitAPI/Tests/WebKitCocoa/CopyHTML.mm:
2697         * TestWebKitAPI/Tests/WebKitCocoa/CopyURL.mm:
2698         (createWebViewWithCustomPasteboardDataEnabled):
2699         * TestWebKitAPI/Tests/WebKitCocoa/Copying.mm:
2700         (TEST):
2701         * TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm:
2702         * TestWebKitAPI/Tests/WebKitCocoa/DoAfterNextPresentationUpdateAfterCrash.mm:
2703         * TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm:
2704         * TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm:
2705         * TestWebKitAPI/Tests/WebKitCocoa/FindInPage.mm:
2706         * TestWebKitAPI/Tests/WebKitCocoa/FixedLayoutSize.mm:
2707         * TestWebKitAPI/Tests/WebKitCocoa/FontAttributes.mm:
2708         * TestWebKitAPI/Tests/WebKitCocoa/Geolocation.mm:
2709         * TestWebKitAPI/Tests/WebKitCocoa/InteractionDeadlockAfterCrash.mm:
2710         * TestWebKitAPI/Tests/WebKitCocoa/LocalStorageClear.mm:
2711         (defaultWebsiteCacheDirectory):
2712         (defaultApplicationCacheDirectory):
2713         (TEST):
2714         * TestWebKitAPI/Tests/WebKitCocoa/NSFileManagerExtras.mm:
2715         * TestWebKitAPI/Tests/WebKitCocoa/NowPlaying.mm:
2716         * TestWebKitAPI/Tests/WebKitCocoa/NowPlayingControlsTests.mm:
2717         * TestWebKitAPI/Tests/WebKitCocoa/PasteHTML.mm:
2718         * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm:
2719         * TestWebKitAPI/Tests/WebKitCocoa/PasteMixedContent.mm:
2720         (TestWebKitAPI::TEST):
2721         * TestWebKitAPI/Tests/WebKitCocoa/PasteRTFD.mm:
2722         * TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm:
2723         * TestWebKitAPI/Tests/WebKitCocoa/RenderedImageWithOptions.mm:
2724         (runTestWithWidth):
2725         * TestWebKitAPI/Tests/WebKitCocoa/RenderedImageWithOptionsPlugIn.mm:
2726         (-[RenderedImageWithOptionsPlugIn renderImageWithWidth:completionHandler:]):
2727         * TestWebKitAPI/Tests/WebKitCocoa/SafeBrowsing.mm:
2728         * TestWebKitAPI/Tests/WebKitCocoa/ShrinkToFit.mm:
2729         * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm:
2730         * TestWebKitAPI/Tests/WebKitCocoa/VisibleContentRect.mm:
2731         * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
2732         (platformCopyRichTextWithMultipleAttachments):
2733         (platformCopyRichTextWithImage):
2734         (platformCopyPNG):
2735         * TestWebKitAPI/Tests/WebKitCocoa/WKContentViewEditingActions.mm:
2736         * TestWebKitAPI/Tests/WebKitCocoa/WKContentViewTargetForAction.mm:
2737         * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
2738         * TestWebKitAPI/Tests/WebKitCocoa/WKPDFViewStablePresentationUpdateCallback.mm:
2739         * TestWebKitAPI/Tests/WebKitCocoa/WKRequestActivatedElementInfo.mm:
2740         * TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-leaks.mm:
2741         * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewSnapshot.mm:
2742         (TEST):
2743         * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
2744         (TEST):
2745         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
2746         (TEST):
2747         * TestWebKitAPI/Tests/WebKitCocoa/_WKInputDelegate.mm:
2748         * TestWebKitAPI/Tests/WebKitLegacy/ios/AudioSessionCategoryIOS.mm:
2749         * TestWebKitAPI/Tests/WebKitLegacy/ios/SnapshotViaRenderInContext.mm:
2750         * TestWebKitAPI/Tests/WebKitLegacy/mac/AccessingPastedImage.mm:
2751         * TestWebKitAPI/Tests/ios/AccessibilityTestsIOS.mm:
2752         * TestWebKitAPI/Tests/ios/ActionSheetTests.mm:
2753         * TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm:
2754         * TestWebKitAPI/Tests/ios/FocusPreservationTests.mm:
2755         * TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm:
2756         * TestWebKitAPI/Tests/ios/RenderingProgressTests.mm:
2757         * TestWebKitAPI/Tests/ios/ScrollViewInsetTests.mm:
2758         * TestWebKitAPI/Tests/ios/SetTimeoutFunction.mm:
2759         * TestWebKitAPI/Tests/ios/SynchronousTimeoutTests.mm:
2760         * TestWebKitAPI/Tests/ios/TestInputDelegate.h:
2761         * TestWebKitAPI/Tests/ios/TestInputDelegate.mm:
2762         * TestWebKitAPI/Tests/ios/TextAutosizingBoost.mm:
2763         * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:
2764         * TestWebKitAPI/Tests/ios/WKScrollViewDelegate.mm:
2765         * TestWebKitAPI/Tests/ios/WKScrollViewTests.mm:
2766         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
2767         * TestWebKitAPI/Tests/ios/WKWebViewEditActions.mm:
2768         * TestWebKitAPI/cocoa/DragAndDropSimulator.h:
2769         * TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
2770         (-[WKWebView _test_waitForDidFinishNavigation]):
2771         * TestWebKitAPI/cocoa/TestWKWebView.h:
2772         * TestWebKitAPI/cocoa/TestWKWebView.mm:
2773         * TestWebKitAPI/config.h:
2774         * TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm:
2775         * TestWebKitAPI/ios/TestWKWebViewController.h:
2776         * TestWebKitAPI/ios/TestWKWebViewController.mm:
2777         * TestWebKitAPI/ios/UIKitSPI.h:
2778         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
2779         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2780         (WTR::InjectedBundle::beginTesting):
2781         * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
2782         (WTR::TestRunner::inspectorTestStubURL):
2783         * WebKitTestRunner/TestController.cpp:
2784         (WTR::TestController::webProcessName):
2785         (WTR::TestController::networkProcessName):
2786         * WebKitTestRunner/TestInvocation.cpp:
2787         (WTR::TestInvocation::invoke):
2788         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
2789         * WebKitTestRunner/cg/TestInvocationCG.cpp:
2790         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2791         (WTR::initializeWebViewConfiguration):
2792         (WTR::TestController::platformCreateWebView):
2793         (WTR::TestController::imageCountInGeneralPasteboard const):
2794         (WTR::TestController::addTestKeyToKeychain):
2795         (WTR::TestController::cleanUpKeychain):
2796         (WTR::TestController::keyExistsInKeychain):
2797         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
2798         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2799         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2800
2801 2018-10-18  Chris Dumez  <cdumez@apple.com>
2802
2803         [PSON] Cap number of SuspendedPageProxy objects and allow a WebPageProxy to have more than one
2804         https://bugs.webkit.org/show_bug.cgi?id=190688
2805         <rdar://problem/45354095>
2806
2807         Reviewed by Antti Koivisto.
2808
2809         Extended API test coverage to confirm that:
2810         - We do not accumulate more than 3 suspended processes.
2811         - We can navigate back 3 times and use the page cache for each of these loads.
2812
2813         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2814
2815 2018-10-17  Wenson Hsieh  <wenson_hsieh@apple.com>
2816
2817         Enable the datalist element by default on iOS and macOS
2818         https://bugs.webkit.org/show_bug.cgi?id=190594
2819         <rdar://problem/45281159>
2820
2821         Reviewed by Ryosuke Niwa and Tim Horton.
2822
2823         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2824
2825 2018-10-17  Chris Fleizach  <cfleizach@apple.com>
2826
2827         AX: Certain tags should identify their context to iOS API
2828         https://bugs.webkit.org/show_bug.cgi?id=190622
2829         <rdar://problem/45308194>
2830
2831         Reviewed by Zalan Bujtas.
2832
2833         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2834         (AccessibilityUIElement::stringAttributeValue):
2835         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
2836         (WTR::AccessibilityUIElement::stringAttributeValue):
2837
2838 2018-10-16  Sihui Liu  <sihui_liu@apple.com>
2839
2840         Add a switch for Web SQL
2841         https://bugs.webkit.org/show_bug.cgi?id=190271
2842
2843         Reviewed by Ryosuke Niwa.
2844
2845         * WebKitTestRunner/TestController.cpp:
2846         (WTR::TestController::resetPreferencesToConsistentValues):
2847
2848 2018-10-16  Alex Christensen  <achristensen@webkit.org>
2849
2850         Remove InjectedBundleBackForwardList
2851         https://bugs.webkit.org/show_bug.cgi?id=190640
2852
2853         Reviewed by Chris Dumez.
2854
2855         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2856         (WTR::InjectedBundle::dumpBackForwardListsForAllPages):
2857         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2858         (WTR::InjectedBundlePage::prepare):
2859         (WTR::InjectedBundlePage::dumpHistory):
2860         (WTR::hasPrefix): Deleted.
2861         (WTR::compareByTargetName): Deleted.
2862         (WTR::dumpBackForwardListItem): Deleted.
2863         (WTR::InjectedBundlePage::dumpBackForwardList): Deleted.
2864         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
2865         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2866         (WTR::TestRunner::clearBackForwardList):
2867
2868 2018-10-16  Dominik Infuehr  <dinfuehr@igalia.com>
2869
2870         Unreviewed, added myself to contributors.json.
2871
2872         * Scripts/webkitpy/common/config/contributors.json:
2873
2874 2018-10-16  Justin Michaud  <justin_michaud@apple.com>
2875
2876         Implement feature flag and bindings for CSS Painting API
2877         https://bugs.webkit.org/show_bug.cgi?id=190237
2878
2879         Reviewed by Ryosuke Niwa.
2880
2881         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2882
2883 2018-10-16  Philippe Normand  <pnormand@igalia.com>
2884
2885         Unreviewed, GTK Ubuntu LTS Jhbuild prospective build fix
2886
2887         * gstreamer/jhbuild.modules:
2888
2889 2018-10-16  Philippe Normand  <pnormand@igalia.com>
2890
2891         [GTK][JHBuild] Disable libmount support in glib
2892
2893         Rubber-stamped by Alejandro G. Castro.
2894
2895         This feature doesn't seem required for our setup.
2896
2897         * gtk/jhbuild.modules:
2898
2899 2018-10-15  Justin Fan  <justin_fan@apple.com>
2900
2901         Add WebGPU 2018 feature flag and experimental feature flag
2902         https://bugs.webkit.org/show_bug.cgi?id=190509
2903
2904         Reviewed by Dean Jackson.
2905
2906         Re-add ENABLE_WEBGPU, an experimental feature flag, and a RuntimeEnabledFeature
2907         for the 2018 WebGPU prototype.
2908
2909         * DumpRenderTree/TestOptions.cpp:
2910         (TestOptions::TestOptions):
2911         * DumpRenderTree/TestOptions.h:
2912         * DumpRenderTree/mac/DumpRenderTree.mm:
2913         (setWebPreferencesForTestOptions):
2914         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2915
2916 2018-10-15  Ryan Haddad  <ryanhaddad@apple.com>
2917
2918         Update bot configuration for Sierra archive queues
2919         https://bugs.webkit.org/show_bug.cgi?id=190605
2920
2921         Reviewed by Aakash Jain.
2922
2923         * BuildSlaveSupport/build.webkit.org-config/config.json:
2924
2925 2018-10-15  Timothy Hatcher  <timothy@apple.com>
2926
2927         Add support for prefers-color-scheme media query
2928         https://bugs.webkit.org/show_bug.cgi?id=190499
2929         rdar://problem/45212025
2930
2931         Reviewed by Dean Jackson.
2932
2933         * Scripts/webkitperl/FeatureList.pm: Added ENABLE_DARK_MODE_CSS as dark-mode-css.
2934         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Added ENABLE_DARK_MODE_CSS.
2935
2936 2018-10-15  Patrick Griffis  <pgriffis@igalia.com>
2937
2938         [JHBuild] Add xdg-dbus-proxy module
2939         https://bugs.webkit.org/show_bug.cgi?id=190589
2940
2941         Reviewed by Michael Catanzaro.
2942
2943         * gtk/jhbuild.modules:
2944
2945 2018-10-15  Patrick Griffis  <pgriffis@igalia.com>
2946
2947         [GTK] Add new sandboxing dependencies to install-dependencies
2948         https://bugs.webkit.org/show_bug.cgi?id=190588
2949
2950         Reviewed by Michael Catanzaro.
2951
2952         * gtk/install-dependencies:
2953
2954 2018-10-15  Chris Dumez  <cdumez@apple.com>
2955
2956         Experiment: target=_blank on anchors should imply rel=noopener
2957         https://bugs.webkit.org/show_bug.cgi?id=190481
2958
2959         Reviewed by Alex Christensen.
2960
2961         Add API test coverage to make sure we can now swap process when target=_blank
2962         is specified on an anchor but rel=noopener is not.
2963
2964         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2965
2966 2018-10-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2967
2968         [iOS] Can't select text after dismissing the keyboard when changing focus
2969         https://bugs.webkit.org/show_bug.cgi?id=190563
2970         <rdar://problem/44613559>
2971
2972         Reviewed by Tim Horton.
2973
2974         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2975         (WTR::UIScriptController::isShowingKeyboard const):
2976
2977         Add a new UIScriptController method that returns whether the keyboard is shown. See `ui-helper.js` for more
2978         details.
2979
2980         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2981         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2982         (WTR::UIScriptController::isShowingKeyboard const):
2983         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2984         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
2985         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2986
2987         Also rename the `isShowingKeyboard` Objective-C property to the more canonical `showingKeyboard`, with
2988         `isShowingKeyboard` as the getter method.
2989
2990         (-[TestRunnerWKWebView _invokeShowKeyboardCallbackIfNecessary]):
2991         (-[TestRunnerWKWebView _invokeHideKeyboardCallbackIfNecessary]):
2992         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2993         (WTR::UIScriptController::isShowingKeyboard const):
2994
2995 2018-10-15  Ryan Haddad  <ryanhaddad@apple.com>
2996
2997         Unreviewed, fix JSC tests after WebGPUShadingLanguageRI directory was removed in r237115.
2998
2999         * Scripts/run-javascriptcore-tests:
3000         (runJSCStressTests): Remove wsl-tests.yaml.
3001
3002 2018-10-15  Christopher Reid  <chris.reid@sony.com>
3003
3004         [Curl][WinCairo] Add Public Suffix support to WinCairo
3005         https://bugs.webkit.org/show_bug.cgi?id=183060
3006
3007         Reviewed by Alex Christensen.
3008
3009         Share mac's PublicSuffix tests with all ports.
3010
3011         * TestWebKitAPI/PlatformWin.cmake:
3012         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3013         * TestWebKitAPI/Tests/WebCore/PublicSuffix.cpp:
3014         * TestWebKitAPI/Tests/mac/PublicSuffix.mm: Removed.
3015
3016 2018-10-15  Myles C. Maxfield  <mmaxfield@apple.com>
3017
3018         [WHLSL] Migrated WebGPUShadingLanguageRI to the W3C
3019         https://bugs.webkit.org/show_bug.cgi?id=190555
3020
3021         Unreviewed.
3022
3023         Migrated to https://github.com/gpuweb/WHLSL/tree/master/Source
3024
3025         * WebGPUShadingLanguageRI/AddressSpace.js: Removed.
3026         * WebGPUShadingLanguageRI/All.js: Removed.
3027         * WebGPUShadingLanguageRI/AllocateAtEntryPoints.js: Removed.
3028         * WebGPUShadingLanguageRI/AnonymousVariable.js: Removed.
3029         * WebGPUShadingLanguageRI/ArrayRefType.js: Removed.
3030         * WebGPUShadingLanguageRI/ArrayType.js: Removed.
3031         * WebGPUShadingLanguageRI/Assignment.js: Removed.
3032         * WebGPUShadingLanguageRI/AutoWrapper.js: Removed.
3033         * WebGPUShadingLanguageRI/Block.js: Removed.
3034         * WebGPUShadingLanguageRI/BoolLiteral.js: Removed.
3035         * WebGPUShadingLanguageRI/Break.js: Removed.
3036         * WebGPUShadingLanguageRI/BuiltInSemantic.js: Removed.
3037         * WebGPUShadingLanguageRI/BuiltinMatrixGetter.js: Removed.
3038         * WebGPUShadingLanguageRI/BuiltinMatrixSetter.js: Removed.
3039         * WebGPUShadingLanguageRI/BuiltinVectorGetter.js: Removed.
3040         * WebGPUShadingLanguageRI/BuiltinVectorSetter.js: Removed.
3041         * WebGPUShadingLanguageRI/CallExpression.js: Removed.
3042         * WebGPUShadingLanguageRI/CallFunction.js: Removed.
3043         * WebGPUShadingLanguageRI/Casts.js: Removed.
3044         * WebGPUShadingLanguageRI/Check.js: Removed.
3045         * WebGPUShadingLanguageRI/CheckLiteralTypes.js: Removed.
3046         * WebGPUShadingLanguageRI/CheckLoops.js: Removed.
3047         * WebGPUShadingLanguageRI/CheckNativeFuncStages.js: Removed.
3048         * WebGPUShadingLanguageRI/CheckRecursion.js: Removed.
3049         * WebGPUShadingLanguageRI/CheckRecursiveTypes.js: Removed.
3050         * WebGPUShadingLanguageRI/CheckReturns.js: Removed.
3051         * WebGPUShadingLanguageRI/CheckTypesWithArguments.js: Removed.
3052         * WebGPUShadingLanguageRI/CheckUnreachableCode.js: Removed.
3053         * WebGPUShadingLanguageRI/CheckWrapped.js: Removed.
3054         * WebGPUShadingLanguageRI/Checker.js: Removed.
3055         * WebGPUShadingLanguageRI/CloneProgram.js: Removed.
3056         * WebGPUShadingLanguageRI/CommaExpression.js: Removed.
3057         * WebGPUShadingLanguageRI/ConstexprFolder.js: Removed.
3058         * WebGPUShadingLanguageRI/Continue.js: Removed.
3059         * WebGPUShadingLanguageRI/ConvertPtrToArrayRefExpression.js: Removed.
3060         * WebGPUShadingLanguageRI/CreateLiteral.js: Removed.
3061         * WebGPUShadingLanguageRI/CreateLiteralType.js: Removed.
3062         * WebGPUShadingLanguageRI/DereferenceExpression.js: Removed.
3063         * WebGPUShadingLanguageRI/DoWhileLoop.js: Removed.
3064         * WebGPUShadingLanguageRI/DotExpression.js: Removed.
3065         * WebGPUShadingLanguageRI/EArrayRef.js: Removed.
3066         * WebGPUShadingLanguageRI/EBuffer.js: Removed.
3067         * WebGPUShadingLanguageRI/EBufferBuilder.js: Removed.
3068         * WebGPUShadingLanguageRI/EPtr.js: Removed.
3069         * WebGPUShadingLanguageRI/EnumLiteral.js: Removed.
3070         * WebGPUShadingLanguageRI/EnumMember.js: Removed.
3071         * WebGPUShadingLanguageRI/EnumType.js: Removed.
3072         * WebGPUShadingLanguageRI/EvaluationCommon.js: Removed.
3073         * WebGPUShadingLanguageRI/Evaluator.js: Removed.
3074         * WebGPUShadingLanguageRI/Expression.js: Removed.
3075         * WebGPUShadingLanguageRI/ExpressionFinder.js: Removed.
3076         * WebGPUShadingLanguageRI/ExternalOrigin.js: Removed.
3077         * WebGPUShadingLanguageRI/Field.js: Removed.
3078         * WebGPUShadingLanguageRI/FindHighZombies.js: Removed.
3079         * WebGPUShadingLanguageRI/FlattenedStructOffsetGatherer.js: Removed.
3080         * WebGPUShadingLanguageRI/FloatLiteral.js: Removed.
3081         * WebGPUShadingLanguageRI/FloatLiteralType.js: Removed.
3082         * WebGPUShadingLanguageRI/FoldConstexprs.js: Removed.
3083         * WebGPUShadingLanguageRI/ForLoop.js: Removed.
3084         * WebGPUShadingLanguageRI/Func.js: Removed.
3085         * WebGPUShadingLanguageRI/FuncAttribute.js: Removed.
3086         * WebGPUShadingLanguageRI/FuncDef.js: Removed.
3087         * WebGPUShadingLanguageRI/FuncNumThreadsAttribute.js: Removed.
3088         * WebGPUShadingLanguageRI/FuncParameter.js: Removed.
3089         * WebGPUShadingLanguageRI/FunctionLikeBlock.js: Removed.
3090         * WebGPUShadingLanguageRI/HighZombieFinder.js: Removed.
3091         * WebGPUShadingLanguageRI/IdentityExpression.js: Removed.
3092         * WebGPUShadingLanguageRI/IfStatement.js: Removed.
3093         * WebGPUShadingLanguageRI/IndexExpression.js: Removed.
3094         * WebGPUShadingLanguageRI/InferTypesForCall.js: Removed.
3095         * WebGPUShadingLanguageRI/Inline.js: Removed.
3096         * WebGPUShadingLanguageRI/Inliner.js: Removed.
3097         * WebGPUShadingLanguageRI/IntLiteral.js: Removed.
3098         * WebGPUShadingLanguageRI/IntLiteralType.js: Removed.
3099         * WebGPUShadingLanguageRI/Intrinsics.js: Removed.
3100         * WebGPUShadingLanguageRI/LayoutBuffers.js: Removed.
3101         * WebGPUShadingLanguageRI/Lexer.js: Removed.
3102         * WebGPUShadingLanguageRI/LexerToken.js: Removed.
3103         * WebGPUShadingLanguageRI/LiteralTypeChecker.js: Removed.
3104         * WebGPUShadingLanguageRI/LogicalExpression.js: Removed.
3105         * WebGPUShadingLanguageRI/LogicalNot.js: Removed.
3106         * WebGPUShadingLanguageRI/LoopChecker.js: Removed.
3107         * WebGPUShadingLanguageRI/MakeArrayRefExpression.js: Removed.
3108         * WebGPUShadingLanguageRI/MakePtrExpression.js: Removed.
3109         * WebGPUShadingLanguageRI/MatrixType.js: Removed.
3110         * WebGPUShadingLanguageRI/Metal/MSLBackend.js: Removed.
3111         * WebGPUShadingLanguageRI/Metal/MSLCodegenAll.js: Removed.
3112         * WebGPUShadingLanguageRI/Metal/MSLCompileResult.js: Removed.
3113         * WebGPUShadingLanguageRI/Metal/MSLConstexprEmitter.js: Removed.
3114         * WebGPUShadingLanguageRI/Metal/MSLFunctionDeclaration.js: Removed.
3115         * WebGPUShadingLanguageRI/Metal/MSLFunctionDefinition.js: Removed.
3116         * WebGPUShadingLanguageRI/Metal/MSLFunctionForwardDeclaration.js: Removed.
3117         * WebGPUShadingLanguageRI/Metal/MSLInsertTrapParameter.js: Removed.
3118         * WebGPUShadingLanguageRI/Metal/MSLNameMangler.js: Removed.
3119         * WebGPUShadingLanguageRI/Metal/MSLNativeFunctionCall.js: Removed.
3120         * WebGPUShadingLanguageRI/Metal/MSLStatementEmitter.js: Removed.
3121         * WebGPUShadingLanguageRI/Metal/MSLTypeAttributes.js: Removed.
3122         * WebGPUShadingLanguageRI/Metal/MSLTypeAttributesMap.js: Removed.
3123         * WebGPUShadingLanguageRI/Metal/MSLTypeUnifier.js: Removed.
3124         * WebGPUShadingLanguageRI/Metal/TypeOf.js: Removed.
3125         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/.gitignore: Removed.
3126         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/AppDelegate.h: Removed.
3127         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/AppDelegate.m: Removed.
3128         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Assets.xcassets/AppIcon.appiconset/Contents.json: Removed.
3129         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Assets.xcassets/Contents.json: Removed.
3130         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Base.lproj/Main.storyboard: Removed.
3131         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/CompileResult.h: Removed.
3132         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/CompileResult.m: Removed.
3133         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Compiler.h: Removed.
3134         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Compiler.m: Removed.
3135         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/CustomMetalView.h: Removed.
3136         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/CustomMetalView.m: Removed.
3137         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Demo shaders/Default.whlsl: Removed.
3138         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Demo shaders/Julia.whlsl: Removed.
3139         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Demo shaders/Mandelbrot.whlsl: Removed.
3140         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Info.plist: Removed.
3141         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/OffscreenRenderer.h: Removed.
3142         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/OffscreenRenderer.m: Removed.
3143         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/OnscreenRenderer.h: Removed.
3144         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/OnscreenRenderer.m: Removed.
3145         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/Renderer.h: Removed.
3146         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Renderer/Renderer.m: Removed.
3147         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestCallArgument.h: Removed.
3148         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestCallArgument.m: Removed.
3149         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestDescription.h: Removed.
3150         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestDescription.m: Removed.
3151         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestFamily.h: Removed.
3152         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestFamily.m: Removed.
3153         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestFamilyRunner.h: Removed.
3154         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/TestFamilyRunner.m: Removed.
3155         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/ViewController.h: Removed.
3156         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/ViewController.m: Removed.
3157         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/WHLSL.entitlements: Removed.
3158         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/_SharedMetal.txt: Removed.
3159         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/main.m: Removed.
3160         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/WHLSL Tests.xcodeproj/project.pbxproj: Removed.
3161         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/WHLSL ToyTests/Info.plist: Removed.
3162         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/WHLSL ToyTests/WHLSL_ToyTests.m: Removed.
3163         * WebGPUShadingLanguageRI/Metal/WhlslToMsl.html: Removed.
3164         * WebGPUShadingLanguageRI/Metal/WhlslToMsl.js: Removed.
3165         * WebGPUShadingLanguageRI/NameContext.js: Removed.
3166         * WebGPUShadingLanguageRI/NameFinder.js: Removed.
3167         * WebGPUShadingLanguageRI/NameResolver.js: Removed.
3168         * WebGPUShadingLanguageRI/NativeFunc.js: Removed.
3169         * WebGPUShadingLanguageRI/NativeType.js: Removed.
3170         * WebGPUShadingLanguageRI/Node.js: Removed.
3171         * WebGPUShadingLanguageRI/NormalUsePropertyResolver.js: Removed.
3172         * WebGPUShadingLanguageRI/NullLiteral.js: Removed.
3173         * WebGPUShadingLanguageRI/NullType.js: Removed.
3174         * WebGPUShadingLanguageRI/OperatorAnderIndexer.js: Removed.
3175         * WebGPUShadingLanguageRI/OperatorArrayRefLength.js: Removed.
3176         * WebGPUShadingLanguageRI/OriginKind.js: Removed.
3177         * WebGPUShadingLanguageRI/OverloadResolutionFailure.js: Removed.
3178         * WebGPUShadingLanguageRI/Parse.js: Removed.
3179         * WebGPUShadingLanguageRI/Prepare.js: Removed.
3180         * WebGPUShadingLanguageRI/Program.js: Removed.
3181         * WebGPUShadingLanguageRI/ProgramWithUnnecessaryThingsRemoved.js: Removed.
3182         * WebGPUShadingLanguageRI/PropertyAccessExpression.js: Removed.
3183         * WebGPUShadingLanguageRI/PropertyResolver.js: Removed.
3184         * WebGPUShadingLanguageRI/PtrType.js: Removed.
3185         * WebGPUShadingLanguageRI/ReadModifyWriteExpression.js: Removed.
3186         * WebGPUShadingLanguageRI/RecursionChecker.js: Removed.
3187         * WebGPUShadingLanguageRI/RecursiveTypeChecker.js: Removed.
3188         * WebGPUShadingLanguageRI/ReferenceType.js: Removed.
3189         * WebGPUShadingLanguageRI/ResolveNames.js: Removed.
3190         * WebGPUShadingLanguageRI/ResolveOverloadImpl.js: Removed.
3191         * WebGPUShadingLanguageRI/ResolveProperties.js: Removed.
3192         * WebGPUShadingLanguageRI/ResolveTypeDefs.js: Removed.
3193         * WebGPUShadingLanguageRI/ResourceSemantic.js: Removed.
3194         * WebGPUShadingLanguageRI/Return.js: Removed.
3195         * WebGPUShadingLanguageRI/ReturnChecker.js: Removed.
3196         * WebGPUShadingLanguageRI/ReturnException.js: Removed.
3197         * WebGPUShadingLanguageRI/Rewriter.js: Removed.
3198         * WebGPUShadingLanguageRI/SPIR-V.js: Removed.
3199         * WebGPUShadingLanguageRI/SPIRV.html: Removed.
3200         * WebGPUShadingLanguageRI/SPIRVCodegen.js: Removed.
3201         * WebGPUShadingLanguageRI/SPIRVTypeAnalyzer.js: Removed.
3202         * WebGPUShadingLanguageRI/SPIRVVariableAnalyzer.js: Removed.
3203         * WebGPUShadingLanguageRI/Sampler.js: Removed.
3204         * WebGPUShadingLanguageRI/Semantic.js: Removed.
3205         * WebGPUShadingLanguageRI/SpecializationConstantSemantic.js: Removed.
3206         * WebGPUShadingLanguageRI/StageInOutSemantic.js: Removed.
3207         * WebGPUShadingLanguageRI/StandardLibrary.js: Removed.
3208         * WebGPUShadingLanguageRI/StatementCloner.js: Removed.
3209         * WebGPUShadingLanguageRI/StructLayoutBuilder.js: Removed.
3210         * WebGPUShadingLanguageRI/StructType.js: Removed.
3211         * WebGPUShadingLanguageRI/SwitchCase.js: Removed.
3212         * WebGPUShadingLanguageRI/SwitchStatement.js: Removed.
3213         * WebGPUShadingLanguageRI/SynthesizeArrayOperatorLength.js: Removed.
3214         * WebGPUShadingLanguageRI/SynthesizeCopyConstructorOperator.js: Removed.
3215         * WebGPUShadingLanguageRI/SynthesizeDefaultConstructorOperator.js: Removed.
3216         * WebGPUShadingLanguageRI/SynthesizeEnumFunctions.js: Removed.
3217         * WebGPUShadingLanguageRI/SynthesizeStructAccessors.js: Removed.
3218         * WebGPUShadingLanguageRI/TernaryExpression.js: Removed.
3219         * WebGPUShadingLanguageRI/Test.html: Removed.
3220         * WebGPUShadingLanguageRI/Test.js: Removed.
3221         * WebGPUShadingLanguageRI/Texture.js: Removed.
3222         * WebGPUShadingLanguageRI/TextureOperations.js: Removed.
3223         * WebGPUShadingLanguageRI/TrapStatement.js: Removed.
3224         * WebGPUShadingLanguageRI/Type.js: Removed.
3225         * WebGPUShadingLanguageRI/TypeDef.js: Removed.
3226         * WebGPUShadingLanguageRI/TypeDefResolver.js: Removed.
3227         * WebGPUShadingLanguageRI/TypeOverloadResolutionFailure.js: Removed.
3228         * WebGPUShadingLanguageRI/TypeRef.js: Removed.
3229         * WebGPUShadingLanguageRI/TypedValue.js: Removed.
3230         * WebGPUShadingLanguageRI/UintLiteral.js: Removed.
3231         * WebGPUShadingLanguageRI/UintLiteralType.js: Removed.
3232         * WebGPUShadingLanguageRI/UnificationContext.js: Removed.
3233         * WebGPUShadingLanguageRI/UnreachableCodeChecker.js: Removed.
3234         * WebGPUShadingLanguageRI/Value.js: Removed.
3235         * WebGPUShadingLanguageRI/VariableDecl.js: Removed.
3236         * WebGPUShadingLanguageRI/VariableRef.js: Removed.
3237         * WebGPUShadingLanguageRI/VectorType.js: Removed.
3238         * WebGPUShadingLanguageRI/VisitingSet.js: Removed.
3239         * WebGPUShadingLanguageRI/Visitor.js: Removed.
3240         * WebGPUShadingLanguageRI/WLexicalError.js: Removed.
3241         * WebGPUShadingLanguageRI/WSyntaxError.js: Removed.
3242         * WebGPUShadingLanguageRI/WTrapError.js: Removed.
3243         * WebGPUShadingLanguageRI/WTypeError.js: Removed.
3244         * WebGPUShadingLanguageRI/WhileLoop.js: Removed.
3245         * WebGPUShadingLanguageRI/WrapChecker.js: Removed.
3246         * WebGPUShadingLanguageRI/index.html: Removed.
3247         * WebGPUShadingLanguageRI/spirv.core.grammar.json: Removed.
3248         * WebGPUShadingLanguageRI/wsl-tests.yaml: Removed.
3249
3250 2018-10-15  Philippe Normand  <pnormand@igalia.com>
3251
3252         [GTK] Disable MSE build support on Debian and Ubuntu LTS bots
3253         https://bugs.webkit.org/show_bug.cgi?id=190581
3254
3255         Reviewed by Michael Catanzaro.
3256
3257         These bots don't use JHBuild and their host GStreamer version is
3258         too old for the GStreamer MSE backend. Version 1.14 is needed at least.
3259
3260         * BuildSlaveSupport/build.webkit.org-config/config.json:
3261
3262 2018-10-15  Alex Christensen  <achristensen@webkit.org>
3263
3264         Use pragma once in WTF
3265         https://bugs.webkit.org/show_bug.cgi?id=190527
3266
3267         Reviewed by Chris Dumez.
3268
3269         Put WorkQueue in namespace DRT so it does not conflict with WTF::WorkQueue.
3270
3271         * DumpRenderTree/TestRunner.cpp:
3272         (TestRunner::queueLoadHTMLString):
3273         (TestRunner::queueLoadAlternateHTMLString):
3274         (TestRunner::queueBackNavigation):
3275         (TestRunner::queueForwardNavigation):
3276         (TestRunner::queueLoadingScript):
3277         (TestRunner::queueNonLoadingScript):
3278         (TestRunner::queueReload):
3279         * DumpRenderTree/WorkQueue.cpp:
3280         (WorkQueue::singleton): Deleted.
3281         (WorkQueue::WorkQueue): Deleted.
3282         (WorkQueue::queue): Deleted.
3283         (WorkQueue::dequeue): Deleted.
3284         (WorkQueue::count): Deleted.
3285         (WorkQueue::clear): Deleted.
3286         (WorkQueue::processWork): Deleted.
3287         * DumpRenderTree/WorkQueue.h:
3288         (WorkQueue::setFrozen): Deleted.
3289         * DumpRenderTree/WorkQueueItem.h:
3290         * DumpRenderTree/mac/DumpRenderTree.mm:
3291         (runTest):
3292         * DumpRenderTree/mac/FrameLoadDelegate.mm:
3293         (-[FrameLoadDelegate processWork:]):
3294         (-[FrameLoadDelegate webView:locationChangeDone:forDataSource:]):
3295         * DumpRenderTree/mac/TestRunnerMac.mm:
3296         (TestRunner::notifyDone):
3297         (TestRunner::forceImmediateCompletion):
3298         (TestRunner::queueLoad):
3299         * DumpRenderTree/win/DumpRenderTree.cpp:
3300         (runTest):
3301         * DumpRenderTree/win/FrameLoadDelegate.cpp:
3302         (FrameLoadDelegate::processWork):
3303         (FrameLoadDelegate::locationChangeDone):
3304         * DumpRenderTree/win/TestRunnerWin.cpp:
3305         (TestRunner::notifyDone):
3306         (TestRunner::forceImmediateCompletion):
3307         (TestRunner::queueLoad):
3308
3309 2018-10-14  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
3310
3311         [JSC] Remove Option::useAsyncIterator
3312         https://bugs.webkit.org/show_bug.cgi?id=190567
3313
3314         Reviewed by Saam Barati.
3315
3316         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3317
3318 2018-10-15  Claudio Saavedra  <csaavedra@igalia.com>
3319
3320         [WPE] Silence a unused-parameter warning
3321
3322         Unreviewed.
3323         * MiniBrowser/wpe/main.cpp:
3324         (decidePermissionRequest):
3325
3326 2018-10-12  Guillaume Emont  <guijemont@igalia.com>
3327
3328         [Tools][webkitpy] fix handling of JSCTESTS_OPTIONS
3329         https://bugs.webkit.org/show_bug.cgi?id=190537
3330
3331         Reviewed by Alexey Proskuryakov.
3332
3333         In DeprecatedPort.run_javascriptcore_tests_command() JSCTESTS_OPTIONS
3334         needs to be split before adding it to the command since it is treated
3335         as a list of args.
3336
3337         * Scripts/webkitpy/common/config/ports.py:
3338         (DeprecatedPort.run_javascriptcore_tests_command):
3339
3340 2018-10-12  Wenson Hsieh  <wenson_hsieh@apple.com>
3341
3342         [iOS] Allow SPI clients to lay out at arbitrarily scaled sizes and scale to fit the view
3343         https://bugs.webkit.org/show_bug.cgi?id=190504
3344         <rdar://problem/45117760>
3345
3346         Reviewed by Tim Horton.
3347
3348         Teach UIScriptController to set WKWebView's view scale via a new `setViewScale` method, supported in WebKit2 on
3349         macOS and iOS.
3350
3351         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3352         (WTR::UIScriptController::setViewScale):
3353         * DumpRenderTree/mac/UIScriptControllerMac.mm:
3354         (WTR::UIScriptController::setViewScale):
3355         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3356         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3357         (WTR::UIScriptController::setViewScale):
3358         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3359         * WebKitTestRunner/UIScriptControllerCocoa.mm: Added.
3360
3361         Add a new file for UIScriptController methods on Cocoa platforms.
3362
3363         (WTR::UIScriptController::setViewScale):
3364         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
3365         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3366         (WTR::TestController::cocoaResetStateToConsistentValues):
3367
3368         Ensure that _viewScale is reset to 1 after running a layout test.
3369
3370 2018-10-12  Aakash Jain  <aakash_jain@apple.com>
3371
3372         [ews-build] Rename iOS-11-Simulator-Tests-EWS to iOS-11-Simulator-WK2-Tests-EWS
3373         https://bugs.webkit.org/show_bug.cgi?id=190536
3374
3375         Reviewed by Alexey Proskuryakov.
3376
3377         * BuildSlaveSupport/ews-build/config.json: Renamed iOS-11-Simulator-Tests-EWS to iOS-11-Simulator-WK2-Tests-EWS.
3378
3379 2018-10-11  Youenn Fablet  <youenn@apple.com>
3380
3381         IOS 12 - Service worker cache not shared when added to homescreen
3382         https://bugs.webkit.org/show_bug.cgi?id=190269
3383         <rdar://problem/45009961>
3384
3385         Reviewed by Alex Christensen.
3386
3387         * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
3388         Add test to ensure that CacheStorage use the default website data store parameters.
3389
3390 2018-10-11  Tim Horton  <timothy_horton@apple.com>
3391
3392         Clicking on bookmarklet crashes at NavigationState::willRecordNavigationSnapshot
3393         https://bugs.webkit.org/show_bug.cgi?id=190476
3394         <rdar://problem/32757191>
3395
3396         Reviewed by Megan Gardner.
3397
3398         * TestWebKitAPI/Tests/WebKitCocoa/SnapshotStore.mm:
3399         (TEST):
3400         Add a test that we don't crash.
3401
3402 2018-10-11  Tim Horton  <timothy_horton@apple.com>
3403
3404         REGRESSION (r237037): Cannot use webkit-patch upload, always fails with unknown 'cc_radar'
3405
3406         * Scripts/webkitpy/tool/steps/options.py:
3407         (Options):
3408         Fix the name of the variable that the --cc-radar option writes into.
3409
3410 2018-10-10  Dean Jackson  <dino@apple.com>
3411
3412         Add --cc-radar option to webkit-patch bug creation
3413         https://bugs.webkit.org/show_bug.cgi?id=190451
3414         <rdar://problem/45176671>
3415
3416         Reviewed by Antoine Quint.
3417
3418         Add a new command line option to automatically
3419         CC radar to new or updated bugs.
3420
3421         * Scripts/webkitpy/tool/commands/commandtest.py:
3422         (CommandsTest.assert_execute_outputs):
3423         * Scripts/webkitpy/tool/commands/upload.py:
3424         (CreateBug.__init__):
3425         (CreateBug.execute):
3426         * Scripts/webkitpy/tool/commands/upload_unittest.py:
3427         (test_prepare_with_cc):
3428         (test_prepare_with_radar):
3429         (test_prepare_with_cc_and_radar):
3430         * Scripts/webkitpy/tool/steps/createbug.py:
3431         (CreateBug.options):
3432         (CreateBug.run):
3433         * Scripts/webkitpy/tool/steps/options.py:
3434         (Options):
3435
3436 2018-10-11  Claudio Saavedra  <csaavedra@igalia.com>
3437
3438         [GStreamer] Do not build gstgtk plugins
3439         https://bugs.webkit.org/show_bug.cgi?id=190463
3440
3441         Reviewed by Xabier Rodriguez-Calvar.
3442
3443         These plugins pull a GTK+ dependency that, at least in WPE,
3444         is unnecessary. The GTK+ port doesn't need it either, as far
3445         as I can tell.
3446
3447         * gstreamer/jhbuild.modules: Disable gstgtk plugins
3448
3449 2018-10-11  Alejandro G. Castro  <alex@igalia.com>
3450
3451         [GTK][WPE] Add mediaDevices.enumerateDevices support
3452         https://bugs.webkit.org/show_bug.cgi?id=185761
3453
3454         Reviewed by Youenn Fablet.
3455
3456         Added new API test for the mediaDevices.enumerateDevices:
3457         usermedia-enumeratedevices-permission-check. And a new API test
3458         for the WebsiteDataStore: testWebsiteDataDeviceIdHashSalt.
3459
3460         * MiniBrowser/gtk/main.c:
3461         (gotWebsiteDataCallback): Added a new section to the about:data
3462         webpage to include the information about the hash salt.
3463         * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:
3464         (testWebViewUserMediaEnumerateDevicesPermissionCheck): Added the
3465         new test checking the enumerateDevices API when permission is
3466         denied and when permission is allowed for the origin.
3467         (beforeAll): Defined the new test.
3468         * TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:
3469         (serverCallback): Register a new URI for the enumerateDevices.
3470         (testWebsiteDataConfiguration): Remove the hash salts from the
3471         directories.
3472         (testWebsiteDataDeviceIdHashSalt): New test cheking the
3473         enumerateDevices API.
3474         (beforeAll): Added the new test testWebsiteDataDeviceIdHashSalt to
3475         the init structure.
3476         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
3477         (WebViewTest::initializeWebView): Make sure the media-stream is
3478         activated in the webView.
3479
3480 2018-10-10  Fujii Hironori  <Hironori.Fujii@sony.com>
3481
3482         Add WinCairo to the flakiness dashboard
3483         https://bugs.webkit.org/show_bug.cgi?id=188345
3484
3485         Reviewed by Lucas Forschler.
3486
3487         * TestResultServer/static-dashboards/builders.jsonp: Regenerated by generate_builders_json.py.
3488         * TestResultServer/static-dashboards/flakiness_dashboard.js: Added a new platform 'WINCAIRO'.
3489
3490 2018-10-10  Dean Jackson  <dino@apple.com>
3491
3492         [WHSL -> MSL] Annotate semantics correctly in generated MSL
3493         https://bugs.webkit.org/show_bug.cgi?id=190452
3494         <rdar://problem/45178272>
3495
3496         Reviewed by Myles Maxfield.
3497
3498         Correctly label the appropriate semantics as [[position]]
3499         and [[color(N)]].
3500
3501         * WebGPUShadingLanguageRI/Metal/MSLBackend.js: Identify position
3502         and color attributes. Also use the semantic's index rather than
3503         a counter.
3504         * WebGPUShadingLanguageRI/Metal/WhlslToMsl.html: Use a <pre> for
3505         output, and only include the actual shader code.
3506
3507 2018-10-10  Ross Kirsling  <ross.kirsling@sony.com>
3508
3509         build-webkit --inspector-frontend shouldn't have a nonzero exit code
3510         https://bugs.webkit.org/show_bug.cgi?id=190430
3511
3512         Reviewed by Brian Burg.
3513
3514         * Scripts/webkitdirs.pm:
3515         (argumentsForConfiguration):
3516         --inspector-frontend should only be popped off of argv by determineIsInspectorFrontend;
3517         it shouldn't be re-inserted as a CLI option by argumentsForConfiguration.
3518
3519 2018-10-10  Tim Horton  <timothy_horton@apple.com>
3520
3521         Share more WKShareSheet code between macOS and iOS, and fix a few bugs
3522         https://bugs.webkit.org/show_bug.cgi?id=190420
3523
3524         Reviewed by Simon Fraser.
3525
3526         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3527         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
3528         (WTR::UIScriptController::invokeShareSheetWithResolution): Deleted.
3529         * DumpRenderTree/mac/UIScriptControllerMac.mm:
3530         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
3531         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3532         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3533         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
3534         (WTR::UIScriptController::invokeShareSheetWithResolution): Deleted.
3535         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3536         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3537         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
3538         (WTR::UIScriptController::invokeShareSheetWithResolution): Deleted.
3539         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
3540         (WTR::UIScriptController::setShareSheetCompletesImmediatelyWithResolution):
3541         Change the testing mechanism for the share sheet such that we up-front
3542         set that it should immediately return with a particular state, instead
3543         of programmatically dismissing the sheet.
3544
3545         Otherwise, running the tests on macOS doesn't work, because we pop
3546         a context menu, which spins the runloop and prevents dismissal from
3547         going through.
3548
3549 2018-10-10  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
3550
3551         [JSC] Rename createXXX to tryCreateXXX if it can return RefPtr
3552         https://bugs.webkit.org/show_bug.cgi?id=190429
3553
3554         Reviewed by Saam Barati.
3555
3556         * TestWebKitAPI/Tests/WebCore/mac/GPUBuffer.mm:
3557         (TestWebKitAPI::TEST_F):
3558
3559 2018-10-10  Chris Dumez  <cdumez@apple.com>
3560
3561         Regression(PSON): Assertion hit under WebPageProxy::didNavigateWithNavigationData()
3562         https://bugs.webkit.org/show_bug.cgi?id=190418
3563         <rdar://problem/45059769>
3564
3565         Reviewed by Geoffrey Garen.
3566
3567         Add API test coverage.
3568
3569         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
3570
3571 2018-10-10  Guillaume Emont  <guijemont@igalia.com>
3572
3573         [JSCOnly Add an armv7 JSCOnly EWS that runs tests
3574         https://bugs.webkit.org/show_bug.cgi?id=190191
3575
3576         Reviewed by Michael Catanzaro.
3577
3578         * QueueStatusServer/config/queues.py:
3579         * Scripts/webkitpy/common/config/ews.json:
3580         * Scripts/webkitpy/common/config/ports.py:
3581         (DeprecatedPort.run_javascriptcore_tests_command):
3582         Add the possibility to pass arguments to run-javascriptcore-tests with
3583         the JSCTESTS_OPTIONS environment variable
3584         * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
3585         (test_ews_name):
3586
3587
3588 2018-10-09  Guillaume Emont  <guijemont@igalia.com>
3589
3590         Allow run-javascriptcore-tests to distribute tests between devices
3591         https://bugs.webkit.org/show_bug.cgi?id=190190
3592
3593         Reviewed by Michael Catanzaro.
3594
3595         * Scripts/run-jsc-stress-tests:
3596         * Scripts/webkitruby/jsc-stress-test-writer-default.rb:
3597         * Scripts/webkitruby/jsc-stress-test-writer-ruby.rb:
3598
3599 2018-10-09  Dean Jackson  <dino@apple.com>
3600
3601         Update WHLSL to Metal tester with semantics
3602         https://bugs.webkit.org/show_bug.cgi?id=190416
3603         <rdar://problem/45145139>
3604
3605         Reviewed by Myles Maxfield.
3606
3607         A few small changes to the WHLSL to Metal tools:
3608         - Make it compile by adding some missing JS files :)
3609         - Add semantics to the default shader
3610         - Add FIXMEs to the other shaders
3611         - Create an in-browser test for the WHLSLToMetal codepath
3612         - Fix typos in the semantics checker
3613
3614         * WebGPUShadingLanguageRI/Checker.js:
3615         (Checker.prototype._checkSemantics.checkSemanticTypes):
3616         (Checker.prototype._checkSemantics.checkSemanticForShaderType):
3617         * WebGPUShadingLanguageRI/Metal/WHLSL Tests/Core/Compiler.m: