Leverage Substring to create new AtomicStringImpl for StaticStringImpl and SymbolImpl
[WebKit-https.git] / Tools / ChangeLog
1 2017-01-02  Yusuke Suzuki  <utatane.tea@gmail.com>
2
3         Leverage Substring to create new AtomicStringImpl for StaticStringImpl and SymbolImpl
4         https://bugs.webkit.org/show_bug.cgi?id=166636
5
6         Reviewed by Darin Adler.
7
8         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
9         (TestWebKitAPI::TEST):
10
11 2017-01-02  Manuel Rego Casasnovas  <rego@igalia.com>
12
13         [GTK] WebCore/CSSParser unit test is not being built
14         https://bugs.webkit.org/show_bug.cgi?id=166492
15
16         Reviewed by Michael Catanzaro.
17
18         This test was introduced in r175930, but we were not building
19         it on GTK+ port since r176015.
20         This patch marks the test to be built again on GTK+.
21         JFTR, the test is passing right now.
22
23         * TestWebKitAPI/PlatformGTK.cmake: Add CSSParser.cpp test file and use
24         ADD_WHOLE_ARCHIVE_TO_LIBRARIES to avoid linking errors.
25
26 2017-01-02  Chris Fleizach  <cfleizach@apple.com>
27
28         AX: Expose block quote level to iOS API
29         https://bugs.webkit.org/show_bug.cgi?id=166629
30         <rdar://problem/29834793>
31
32         Reviewed by Darin Adler.
33
34         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
35         (AccessibilityUIElement::numberAttributeValue):
36         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
37         (WTR::AccessibilityUIElement::numberAttributeValue):
38
39 2016-12-31  Michael Catanzaro  <mcatanzaro@igalia.com>
40
41         SecurityOrigin::create triplet constructor does not canonicalize port
42         https://bugs.webkit.org/show_bug.cgi?id=166624
43
44         Reviewed by Daniel Bates.
45
46         * TestWebKitAPI/PlatformGTK.cmake:
47         * TestWebKitAPI/PlatformWin.cmake:
48         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
49         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: Added.
50         (TestWebKitAPI::SecurityOriginTest::SetUp):
51         (TestWebKitAPI::TEST_F):
52
53 2016-12-30  Michael Catanzaro  <mcatanzaro@igalia.com>
54
55         [GTK] Improve user agent construction
56         https://bugs.webkit.org/show_bug.cgi?id=142074
57
58         Reviewed by Carlos Garcia Campos.
59
60         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
61         (TestWebKitAPI::assertUserAgentForURLHasChromeBrowserQuirk):
62         (TestWebKitAPI::assertUserAgentForURLHasFirefoxBrowserQuirk):
63         (TestWebKitAPI::assertUserAgentForURLHasLinuxPlatformQuirk):
64         (TestWebKitAPI::assertUserAgentForURLHasMacPlatformQuirk):
65         (TestWebKitAPI::TEST):
66
67 2016-12-27  Michael Catanzaro  <mcatanzaro@igalia.com>
68
69         [GTK] Improve user agent construction
70         https://bugs.webkit.org/show_bug.cgi?id=142074
71
72         Reviewed by Carlos Garcia Campos.
73
74         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
75         (TestWebKitAPI::TEST):
76
77 2016-12-23  Simon Fraser  <simon.fraser@apple.com>
78
79         REGRESSION (r209299): Selection is broken when you zoom in webpage using trackpad
80         https://bugs.webkit.org/show_bug.cgi?id=166472
81         rdar://problem/29675551
82
83         Reviewed by Tim Horton.
84
85         These changes are necessary to allow the mouse to leave the WTR window while
86         drag-scrolling, to test autoscroll. Previously, we were never calling -mouseDragged
87         (which DRT does); we'd always go through mouseMoved, which hits an early return
88         in WebViewImpl::mouseMoved() when the point is outside the view.
89
90         * WebKitTestRunner/mac/EventSenderProxy.mm:
91         (WTR::EventSenderProxy::mouseMoveTo):
92
93 2016-12-23  Andy Estes  <aestes@apple.com>
94
95         [iOS] Fix some crashing webarchive tests
96         https://bugs.webkit.org/show_bug.cgi?id=166470
97
98         Reviewed by Andreas Kling.
99
100         Tests that use TestRunner.dumpDOMAsWebArchive() crashed on iOS due to a stub implementation
101         of WebArchiveDumpSupport in WebKitTestRunner. The Mac implementation works fine on iOS too,
102         so this change uses that on both platforms.
103
104         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Removed
105         WebArchiveDumpSupportMac.mm from EXCLUDED_SOURCE_FILE_NAMES.
106         * WebKitTestRunner/InjectedBundle/cocoa/WebArchiveDumpSupportCocoa.mm: Renamed from
107         Tools/WebKitTestRunner/mac/WebArchiveDumpSupportMac.mm.
108         * WebKitTestRunner/PlatformMac.cmake:
109         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
110         * WebKitTestRunner/ios/WebArchiveDumpSupportIOS.mm: Removed.
111
112 2016-12-22  Saam Barati  <sbarati@apple.com>
113
114         WebAssembly: Silence the output of the spec-tests
115         https://bugs.webkit.org/show_bug.cgi?id=166417
116
117         Reviewed by Mark Lam.
118
119         * Scripts/run-jsc-stress-tests:
120
121 2016-12-22  Zhuo Li  <zachli@apple.com>
122
123         [Cocoa] SPI for setloadsImagesAutomatically.
124         https://bugs.webkit.org/show_bug.cgi?id=166401.
125
126         Reviewed by Darin Adler.
127
128         * TestWebKitAPI/Tests/WebKit2Cocoa/Preferences.mm:
129         (TEST): Test the _setLoadsImagesAutomatically SPI. By default,
130         _loadsImagesAutomatically returns YES.
131
132 2016-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
133
134         fast/events/ios/viewport-shrink-to-fit-allows-double-tap.html is flaky/order dependent
135         https://bugs.webkit.org/show_bug.cgi?id=161328
136         <rdar://problem/28475977>
137
138         Reviewed by Darin Adler.
139
140         Running a test that scales the viewport and listens to a didEndZooming callback (such as
141         viewport-shrink-to-fit-allows-double-tap.html) immediately after a test that may begin to trigger viewport
142         scaling as the test completes (such as viewport-device-width-at-initial-scale-fast-clicks.html) may result in
143         the didEndZooming callback of the latter test being fired early due to the previous test triggering a zoom
144         animation. Ideally, -[WKScrollView _stopScrollingAndZoomingAnimations], which is called when committing the page
145         load, should prevent this from happening, but from reading documentation and code inspection, this is not
146         intended to fire any associated delegate methods or notifications of the UIScrollView, instead deferring them
147         for later. Instead, what we need in this case is to clear out any started but not yet completed animations after
148         we finish running a test and before we load the next test.
149
150         One way to do this is to remove all animations from the WKScrollView's layer, and the layers of its children,
151         recursively. Doing so causes scrollViewDidEndZooming:withView:atScale: to fire at the end of the runloop if the
152         previous test started zooming and then finished before zooming completed. Since this happens before the next
153         test has a chance to run UI-side scripts, we won't end up firing this callback prematurely during the next test.
154
155         * WebKitTestRunner/ios/TestControllerIOS.mm:
156         (WTR::TestController::platformResetStateToConsistentValues):
157
158 2016-12-22  Jer Noble  <jer.noble@apple.com>
159
160         Muted media element playback should not interrupt other audio playback
161         https://bugs.webkit.org/show_bug.cgi?id=166347
162
163         Reviewed by Eric Carlson.
164
165         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
166         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm:
167         (TestWebKitAPI::TEST):
168         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio.html: Added.
169
170 2016-12-22  Alejandro G. Castro  <alex@igalia.com>
171
172         [WebRTC] Add support for runtime PeeConnection setting, required after r209757
173         https://bugs.webkit.org/show_bug.cgi?id=166346
174
175         Reviewed by Carlos Garcia Campos.
176
177         Enable WebRTC by default to simplify testing.
178
179         * MiniBrowser/gtk/main.c:
180         (main):
181
182 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
183
184         REGRESSION: API test failure: WKWebView.LocalStorageClear
185         https://bugs.webkit.org/show_bug.cgi?id=166032
186         <rdar://problem/29758423>
187
188         Reviewed by Simon Fraser.
189
190         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
191         to ensure that the view is destroyed before the callback fires.
192
193         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
194         (TEST):
195
196 2016-12-21  Saam Barati  <sbarati@apple.com>
197
198         WebAssembly: Import spec tests
199         https://bugs.webkit.org/show_bug.cgi?id=166395
200
201         Rubber stamped by Keith Miller.
202
203         * Scripts/run-jsc-stress-tests:
204
205 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
206
207         REGRESSION: API test failure: _WKDownload.OriginatingWebView
208         https://bugs.webkit.org/show_bug.cgi?id=166033
209         <rdar://problem/29758428>
210
211         Reviewed by Simon Fraser.
212
213         Add an @autoreleasepool around the code that allocates the WKWebView, 
214         so that it can be destroyed by removing the last reference in _downloadDidStart.
215
216         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
217         (TEST):
218
219 2016-12-21  Daniel Bates  <dabates@apple.com>
220
221         WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
222         https://bugs.webkit.org/show_bug.cgi?id=166356
223
224         Add comment in TestRunner::setCanOpenWindows() to elaborate further on its purpose
225         as a means to allow a test to explicit allow an embedding client to open a new windows
226         such that the default behavior is for the embedding client to forbid such an action.
227         The test plugins/get-url-with-blank-target.html assumes this default behavior though
228         it is currently skipped on WebKit2 because questions were raised in the patch for
229         <https://bugs.webkit.org/show_bug.cgi?id=43389> about its correctness and usefulness.
230         We will need to implement TestRunner::setCanOpenWindows() should we decide to unskip
231         this test.
232
233         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
234         (WTR::TestRunner::setCanOpenWindows):
235
236 2016-12-20  Simon Fraser  <simon.fraser@apple.com>
237
238         REGRESSION: API test failure: WKWebView.EvaluateJavaScriptBlockCrash
239         https://bugs.webkit.org/show_bug.cgi?id=166031
240
241         Reviewed by Tim Horton.
242         
243         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
244         to ensure that the view is destroyed before the callback fires.
245
246         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm:
247
248 2016-12-20  Megan Gardner  <megan_gardner@apple.com>
249
250         Throw Exception when test doesn't clean up HID Events properly
251         https://bugs.webkit.org/show_bug.cgi?id=166271
252
253         Reviewed by Simon Fraser.
254
255         Add in a check when UIScriptController is deleted to make sure that the HID event
256         callback dictionary is empty. If it is not, and a HID event is hit, this will cause
257         the program to crash without any good information. Crashes are race-y, and will still
258         happen with malformed test, but the information will be much more helpful. 
259
260         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
261         (WTR::UIScriptController::checkForClean):
262         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
263         (UIScriptContext::~UIScriptContext):
264         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
265         (WTR::UIScriptController::checkForClean):
266         * TestRunnerShared/UIScriptContext/UIScriptController.h:
267         * WebKitTestRunner/ios/HIDEventGenerator.h:
268         * WebKitTestRunner/ios/HIDEventGenerator.mm:
269         (-[HIDEventGenerator checkHIDCallbacksClear]):
270         * WebKitTestRunner/ios/TestControllerIOS.mm:
271         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
272         (WTR::UIScriptController::checkForClean):
273
274 2016-12-20  Andy Estes  <aestes@apple.com>
275
276         [Cocoa] REGRESSION (r209558): Calling decisionHandler multiple times in webView:decidePolicyForNavigationAction:decisionHandler: leads to a crash
277         https://bugs.webkit.org/show_bug.cgi?id=165992
278
279         Reviewed by Brady Eidson.
280
281         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
282         * TestWebKitAPI/Tests/WebKit2Cocoa/DuplicateCompletionHandlerCalls.mm: Added.
283         (expectException):
284         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
285         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
286         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
287         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:]):
288         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:]):
289         (-[DuplicateCompletionHandlerCallsDelegate _webView:decideDatabaseQuotaForSecurityOrigin:currentQuota:currentOriginUsage:currentDatabaseUsage:expectedUsage:decisionHandler:]):
290         (-[DuplicateCompletionHandlerCallsDelegate _webView:willSubmitFormValues:userObject:submissionHandler:]):
291         (TEST):
292         * TestWebKitAPI/Tests/WebKit2Cocoa/duplicate-completion-handler-calls.html: Added.
293
294 2016-12-20  Dean Jackson  <dino@apple.com>
295
296         Remove INDIE_UI
297         https://bugs.webkit.org/show_bug.cgi?id=165881
298         <rdar://problem/29672532>
299
300         Reviewed by Simon Fraser.
301
302         The Indie UI work has been discontinued.
303
304         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
305
306 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
307
308         [ES6] Enable ES6 Modules
309         https://bugs.webkit.org/show_bug.cgi?id=165849
310
311         Reviewed by Geoffrey Garen.
312
313         * DumpRenderTree/mac/DumpRenderTree.mm:
314         (resetWebPreferencesToConsistentValues):
315         * DumpRenderTree/win/DumpRenderTree.cpp:
316         (resetWebPreferencesToConsistentValues):
317         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
318         (WTR::InjectedBundle::beginTesting):
319         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
320         (WTR::TestRunner::setES6ModulesEnabled): Deleted.
321         * WebKitTestRunner/InjectedBundle/TestRunner.h:
322
323 2016-12-19  Ryan Haddad  <ryanhaddad@apple.com>
324
325         Repurpose bots and clean up dashboard.
326         https://bugs.webkit.org/show_bug.cgi?id=166045
327
328         Reviewed by Lucas Forschler.
329
330         * BuildSlaveSupport/build.webkit.org-config/config.json:
331         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
332         (BubbleQueueServer):
333         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
334         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
335         (WebKitBuildbot):
336         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
337         (table.queue-grid tr.platform.mac-os-x-yosemite img.logo): Deleted.
338
339 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
340
341         [CMake] TestWebKitAPIBase links to itself
342         https://bugs.webkit.org/show_bug.cgi?id=165985
343
344         Reviewed by Alex Christensen.
345
346         Fix CMake warning about a target linking to itself, which makes no sense.
347
348         * TestWebKitAPI/CMakeLists.txt:
349
350 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
351
352         [GTK] GtkDoc build should be quieter
353         https://bugs.webkit.org/show_bug.cgi?id=165994
354
355         Reviewed by Carlos Garcia Campos.
356
357         Make it not print by default.
358
359         * gtk/generate-gtkdoc:
360         (get_generator_for_config):
361         (generate_doc):
362         * gtk/gtkdoc.py:
363         (GTKDoc._run_command):
364         (GTKDoc._copy_doc_files_to_output_dir):
365
366 2016-12-18  Simon Fraser  <simon.fraser@apple.com>
367
368         Expose a way for MiniBrowser to simulate header and footer banners
369         https://bugs.webkit.org/show_bug.cgi?id=166005
370
371         Reviewed by Wenson Hsieh.
372         
373         Add a MiniBrowser menu item and setting to toggle adding space for header and footer
374         banners. This only works in WebKit2.
375         
376         We need to reset these on each navigation, since newly created FrameViews
377         don't re-fetch the header and footer height stored on Page.
378         
379         Also fix the signature of webView:didFinishNavigation: to follow API changes,
380         as well as fixing webViewWebContentProcessDidTerminate:
381
382         * MiniBrowser/mac/SettingsController.h:
383         * MiniBrowser/mac/SettingsController.m:
384         (-[SettingsController _populateMenu]):
385         (-[SettingsController validateMenuItem:]):
386         (-[SettingsController toggleReserveSpaceForBanners:]):
387         (-[SettingsController isSpaceReservedForBanners]):
388         * MiniBrowser/mac/WK2BrowserWindowController.m:
389         (-[WK2BrowserWindowController didChangeSettings]):
390         (-[WK2BrowserWindowController webView:didFinishNavigation:]):
391         (-[WK2BrowserWindowController webViewWebContentProcessDidTerminate:]):
392         (-[WK2BrowserWindowController webView:didFinishLoadingNavigation:]): Deleted.
393         (-[WK2BrowserWindowController _webViewWebProcessDidCrash:]): Deleted.
394
395 2016-12-17  Simon Fraser  <simon.fraser@apple.com>
396
397         Fix iOS test results after r209967.
398         
399         Subtracting out the status bar height was erroneously happening for all tests,
400         not just for flexible viewport tests.
401         
402         Fix by plumbing WebViewSizingMode through resizeTo() and setWindowFrame().
403
404         * WebKitTestRunner/PlatformWebView.h:
405         * WebKitTestRunner/TestController.cpp:
406         (WTR::TestController::resetStateToConsistentValues):
407         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
408         (WTR::PlatformWebView::resizeTo):
409         (WTR::PlatformWebView::setWindowFrame):
410         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
411         (WTR::PlatformWebView::resizeTo):
412         (WTR::PlatformWebView::setWindowFrame):
413         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
414         (WTR::PlatformWebView::resizeTo):
415         (WTR::PlatformWebView::setWindowFrame):
416         * WebKitTestRunner/ios/TestControllerIOS.mm:
417         (WTR::TestController::platformConfigureViewForTest):
418         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
419         (WTR::PlatformWebView::resizeTo):
420         (WTR::PlatformWebView::setWindowFrame):
421
422 2016-12-17  Joonghun Park  <jh718.park@samsung.com>
423
424         [EFL] bump EFL version to 1.18.4
425         https://bugs.webkit.org/show_bug.cgi?id=166004
426
427         Reviewed by Gyuyoung Kim.
428
429         * efl/jhbuild.modules: Use efl-1.18.4 instead of 1.18.1.
430
431 2016-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
432
433         Visual viewports: bottom fixed elements disappear behind the keyboard
434         https://bugs.webkit.org/show_bug.cgi?id=165983
435         <rdar://problem/29409852>
436
437         Reviewed by Simon Fraser.
438
439         Add support for UIScriptController.inputViewBounds, which UI-side scripts may use to fetch the bounding rect of
440         the keyboard when it is up.
441
442         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
443         (WTR::UIScriptController::inputViewBounds):
444         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
445         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
446         (WTR::UIScriptController::inputViewBounds):
447         * TestRunnerShared/UIScriptContext/UIScriptController.h:
448         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
449         (WTR::viewRectForWindowRect):
450
451         Previously, we accounted for the status bar height by translating the entire web view down by the height of the
452         status bar. However, we did not shrink the height of the web view itself, which means that for tests which
453         involve scrolling past the end of the document, the bottom strip of the web view is out of bounds of the window.
454
455         (WTR::PlatformWebView::PlatformWebView):
456         (WTR::PlatformWebView::setWindowFrame):
457         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
458         (WTR::UIScriptController::inputViewBounds):
459
460 2016-12-16  Ryosuke Niwa  <rniwa@webkit.org>
461
462         Deleting a character converted from pinyin after an image causes a Safari crash
463         https://bugs.webkit.org/show_bug.cgi?id=165839
464         <rdar://problem/27951933>
465
466         Reviewed by Wenson Hsieh.
467
468         Add a WebKit API test to call attributedSubstringForProposedRange on a WKWebView
469         while the proposed range contains an image. This should not cause a WebProcess to crash
470         or send an invalid message to the UIProcess.
471
472         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
473         * TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html: Added.
474         * TestWebKitAPI/Tests/WebKit2/mac/AttributedSubstringForProposedRangeWithImage.mm: Added.
475         (TestWebKitAPI::didFinishLoadForFrame):
476         (TestWebKitAPI::processDidCrash):
477         (TestWebKitAPI::invalidMessageFunction):
478         (TestWebKitAPI::WebKit2.AttributedSubstringForProposedRangeWithImage):
479
480 2016-12-16  Wenson Hsieh  <wenson_hsieh@apple.com>
481
482         Visual viewports: carets and selection UI are incorrectly positioned when editing fixed elements
483         https://bugs.webkit.org/show_bug.cgi?id=165767
484         <rdar://problem/29602382>
485
486         Reviewed by Simon Fraser.
487
488         Introduces two new UIScriptController methods: doAfterWebPageIsInStableState and textSelectionCaretRect. See
489         WebKit2 ChangeLog for more details.
490
491         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
492         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
493         (WTR::UIScriptController::textSelectionCaretRect):
494         * DumpRenderTree/mac/UIScriptControllerMac.mm:
495         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
496         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
497         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
498         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
499         (WTR::UIScriptController::textSelectionCaretRect):
500         * TestRunnerShared/UIScriptContext/UIScriptController.h:
501         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
502         (-[TestRunnerWKWebView _setStableStateOverride:]):
503
504         Force the WKWebView to update its visible content rects when changing the stable state override.
505
506         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
507         (WTR::toNSDictionary):
508         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
509         (WTR::UIScriptController::selectionRangeViewRects):
510         (WTR::UIScriptController::textSelectionCaretRect):
511         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
512         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
513
514 2016-12-15  Brent Fulgham  <bfulgham@apple.com>
515
516         Arguments called in wrong order
517         https://bugs.webkit.org/show_bug.cgi?id=165923
518
519         Reviewed by Simon Fraser.
520
521         The 'audioDeviceUIDs' array is being passed to the argument that expects video devices,
522         and the 'videoDeviceUIDs' array is being passed to the audo device argument. Fix this.
523
524         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp:
525         (TestWebKitAPI::decidePolicyForUserMediaPermissionRequestCallBack): The
526         order of arguments to WKUserMediaPermissionRequestAllow are flipped.
527
528 2016-12-16  Hunseop Jeong  <hs85.jeong@samsung.com>
529
530         [EFL] Disable non-srcdir builds for failing libraries
531         https://bugs.webkit.org/show_bug.cgi?id=165896
532
533         Reviewed by Gyuyoung Kim.
534
535         * efl/jhbuild.modules: Set non srcdir builds to no
536
537 2016-12-15  Daniel Bates  <dabates@apple.com>
538
539         check-style should not complain about code in icu directories
540         https://bugs.webkit.org/show_bug.cgi?id=53929
541
542         Reviewed by Darin Adler.
543
544         Skip style checking of imported ICU headers to avoid a deluge of style issues
545         as they do not conform to the WebKit Code Style guideline. We want to preserve
546         the formatting of these headers so as to make it straightforward to merge
547         changes to them, if necessary.
548
549         * Scripts/webkitpy/style/checker.py:
550
551 2016-12-15  Alexey Proskuryakov  <ap@apple.com>
552
553         Move JSC testers from Yosemite to Sierra
554         https://bugs.webkit.org/show_bug.cgi?id=165925
555
556         Reviewed by Lucas Forschler.
557
558         * BuildSlaveSupport/build.webkit.org-config/config.json:
559         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
560         (WebKitBuildbot):
561
562 2016-12-15  Megan Gardner  <megan_gardner@apple.com>
563
564         Add coordinate space to event streams and streamline tests
565         https://bugs.webkit.org/show_bug.cgi?id=165119
566
567         Reviewed by Simon Fraser.
568
569         Update event streams to allow for both content and global coordinate space.
570         Update example script to more accurately show all the available options.
571
572         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
573         * WebKitTestRunner/ios/HIDEventGenerator.h:
574         * WebKitTestRunner/ios/HIDEventGenerator.mm:
575         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
576         (WTR::convertCoordinates):
577         (WTR::UIScriptController::sendEventStream):
578
579 2016-12-15  Claudio Saavedra  <csaavedra@igalia.com>
580
581         [GTK] Ensure gst* docs are not built with update-webkitgtk-libs
582         https://bugs.webkit.org/show_bug.cgi?id=165855
583
584         Reviewed by Philippe Normand.
585
586         GStreamer's autogen.sh enables gtk-doc always so we end up building
587         docs even if we disable them. Use the configure script instead, since
588         we build from packages and these include it already.
589
590         * gtk/jhbuild.modules: Use shipped configure instead of autogen.sh for
591         upstream gstreamer packages.
592
593 2016-12-15  Alex Christensen  <achristensen@webkit.org>
594
595         REGRESSION (r208902) Null pointer dereference in wkIsPublicSuffix
596         https://bugs.webkit.org/show_bug.cgi?id=165885
597         <rdar://problem/29476917>
598
599         Reviewed by Darin Adler.
600
601         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
602         (TestWebKitAPI::utf16String): Deleted.
603         * TestWebKitAPI/Tests/mac/PublicSuffix.mm:
604         (TestWebKitAPI::TEST_F):
605         * TestWebKitAPI/WTFStringUtilities.h:
606         (utf16String):
607         Moved from URLParser to share with other tests.
608
609 2016-12-14  Ryosuke Niwa  <rniwa@webkit.org>
610
611         iOS: An element with tabindex is not focusable unless there is no mouse event handler
612         https://bugs.webkit.org/show_bug.cgi?id=165843
613
614         Reviewed by Antti Koivisto.
615
616         Add testRunner.isWebKit2 which is always true in WebKitTestRunner.
617         Without this, it's really hard to reliably differentiate DumpRenderTree and WebKitTestRunner,
618         and DumpRenderTree's runUIScript would hit an assertion :(
619
620         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
621         * WebKitTestRunner/InjectedBundle/TestRunner.h:
622         (WTR::TestRunner::isWebKit2):
623
624 2016-12-14  Brady Eidson  <beidson@apple.com>
625
626         IndexedDB 2.0: Massively speedup IDBIndex.get().
627         https://bugs.webkit.org/show_bug.cgi?id=165802
628
629         Reviewed by Alex Christensen.
630
631         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
632         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.html: Added.
633         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm: Added.
634         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.blob: Added.
635         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.sqlite3: Added.
636
637 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
638
639         [GTK][EFL] Update the JHBuild version.
640         https://bugs.webkit.org/show_bug.cgi?id=165838
641
642         Reviewed by Michael Catanzaro.
643
644         * jhbuild/jhbuild-wrapper: This new version fixes a bug with the
645         usage of the JHBUILD_MIRROR feature with git repositories.
646
647 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
648
649         [GTK] Yasm is needed for building the JHBuild after r208940
650         https://bugs.webkit.org/show_bug.cgi?id=165837
651
652         Reviewed by Alejandro G. Castro.
653
654         * gtk/install-dependencies: Yasm is needed for building libvpx.
655
656 2016-12-14  Youenn Fablet  <youenn@apple.com>
657
658         Test infrastructure should allow to filter out text output before doing a comparison with the baseline
659         https://bugs.webkit.org/show_bug.cgi?id=161310
660
661         Reviewed by Ryosuke Niwa.
662
663         Adding --dump-jsconsolelog-in-stderr test option for DRT and WTR.
664         When set, WTR and DRT output JS console log in the stderr and not the test output.
665         This allows removing potentially flaky information while still being able to read it for investigation.
666
667         Updated webkitpy infrastructure to use this test option in case of DumpJSConsoleLogInStdErr modifier.
668
669         Changes are covered by updating a fetch test to output console log and set its option to --dump-jsconsolelog-in-stderr in TestExpectations.
670         This test should have this option when fetch API will start logging resource loader errors.
671
672         * DumpRenderTree/DumpRenderTree.h:
673         (TestCommand::TestCommand): Deleted.
674         * DumpRenderTree/DumpRenderTreeCommon.cpp:
675         (parseInputLine):
676         * DumpRenderTree/TestRunner.h:
677         (TestRunner::setDumpJSConsoleLogInStdErr):
678         (TestRunner::dumpJSConsoleLogInStdErr):
679         * DumpRenderTree/mac/DumpRenderTree.mm:
680         (runTest):
681         * DumpRenderTree/mac/UIDelegate.mm:
682         (-[UIDelegate webView:addMessageToConsole:withSource:]):
683         * DumpRenderTree/win/DumpRenderTree.cpp:
684         (runTest):
685         * DumpRenderTree/win/UIDelegate.cpp:
686         (UIDelegate::webViewAddMessageToConsole):
687         * Scripts/webkitpy/layout_tests/models/test_expectations.py:
688         (TestExpectationParser._tokenize_line):
689         * Scripts/webkitpy/port/driver.py:
690         (Driver._command_from_driver_input):
691         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
692         (WTR::InjectedBundle::didReceiveMessageToPage):
693         (WTR::InjectedBundle::dumpToStdErr):
694         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
695         (WTR::InjectedBundle::dumpJSConsoleLogInStdErr):
696         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
697         (WTR::InjectedBundlePage::willAddMessageToConsole):
698         * WebKitTestRunner/TestController.cpp:
699         (WTR::parseInputLine):
700         (WTR::TestController::runTest):
701         (WTR::TestCommand::TestCommand): Deleted.
702         * WebKitTestRunner/TestInvocation.cpp:
703         (WTR::TestInvocation::invoke):
704         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
705         * WebKitTestRunner/TestInvocation.h:
706         (WTR::TestInvocation::setDumpJSConsoleLogInStdErr):
707
708
709 2016-12-14  Enrique Ocaña González  <eocanha@igalia.com>
710
711         REGRESSION(r207879-207891): [GStreamer] Introduced many layout test failures and crashes, bots exiting early
712         https://bugs.webkit.org/show_bug.cgi?id=164022
713
714         Reviewed by Xabier Rodriguez-Calvar.
715
716         * Scripts/webkitperl/FeatureList.pm:
717           Re-enable MEDIA_SOURCE for the GTK+ port.
718
719 2016-12-13  Alex Christensen  <achristensen@webkit.org>
720
721         Fix CMake build.
722
723         * DumpRenderTree/PlatformMac.cmake:
724         Define NS_RETURNS_RETAINED as nothing for now.
725
726 2016-12-13  Jer Noble  <jer.noble@apple.com>
727
728         Fullscreen in WebKit2 does not restore topContentInset upon exiting; leaves top of page not visible
729         https://bugs.webkit.org/show_bug.cgi?id=165697
730
731         Reviewed by Tim Horton.
732
733         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
734         (TestWebKitAPI::TEST):
735
736 2016-12-13  Andy Estes  <aestes@apple.com>
737
738         [Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
739         https://bugs.webkit.org/show_bug.cgi?id=165785
740         <rdar://problem/26929398>
741
742         Reviewed by Darin Adler.
743
744         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
745         (-[BundleEditingDelegateRemoteObject shouldInsertText:replacingRange:givenAction:]): Added
746         expectations for the text, range, and action.
747         (TEST): Set the "EditingDelegateShouldInsertText" bundle parameter to NO so that the plug-in
748         will return NO in -_webProcessPlugInBrowserContextController:willInsertText:. Added a
749         plain-text string to the pasteboard, executed a paste action, and verified that the selected
750         text in the web view did not change.
751         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm:
752         (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]): Set
753         _editingDelegateShouldInsertText according to the "EditingDelegateShouldInsertText" bundle
754         parameter.
755         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:shouldInsertText:replacingRange:givenAction:]):
756         Added. Called -shouldInsertText:replacingRange:givenAction: on the remote object proxy
757         and returned the value of _editingDelegateShouldInsertText.
758         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Declared
759         -shouldInsertText:replacingRange:givenAction:.
760
761 2016-12-13  Chris Dumez  <cdumez@apple.com>
762
763         Unreviewed, rolling out r209544.
764
765         Looks like r209489 did not cause the performance regression
766         after all
767
768         Reverted changeset:
769
770         "Unreviewed, rolling out r209489."
771         https://bugs.webkit.org/show_bug.cgi?id=165550
772         http://trac.webkit.org/changeset/209544
773
774 2016-12-12  Sam Weinig  <sam@webkit.org>
775
776         [WebIDL] Remove use of Dictionary in ApplePaySession
777         https://bugs.webkit.org/show_bug.cgi?id=165787
778
779         Reviewed by Anders Carlsson.
780
781         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
782         (WTR::initializeWebViewConfiguration):
783         (WTR::TestController::platformCreateWebView):
784         Enable ApplePay for the tests (where supported).
785
786 2016-12-13  Eric Carlson  <eric.carlson@apple.com>
787
788         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
789         https://bugs.webkit.org/show_bug.cgi?id=165251
790
791         Reviewed by Youenn Fablet.
792
793         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp:
794         (TestWebKitAPI::TEST): Enable MediaStream, create web view from the page group upon which
795         the preferences have been set.
796
797 2016-12-08  Antti Koivisto  <antti@apple.com>
798
799         Enable network cache speculative revalidation in MiniBrowser
800         https://bugs.webkit.org/show_bug.cgi?id=165616
801
802         Reviewed by Darin Adler.
803
804         Match Safari. Also add a menu item to disable it.
805
806         * MiniBrowser/mac/AppDelegate.m:
807         (defaultConfiguration):
808         * MiniBrowser/mac/SettingsController.h:
809         * MiniBrowser/mac/SettingsController.m:
810         (-[SettingsController _populateMenu]):
811         (-[SettingsController validateMenuItem:]):
812         (-[SettingsController networkCacheSpeculativeRevalidationDisabled]):
813         (-[SettingsController toggleNetworkCacheSpeculativeRevalidationDisabled:]):
814
815 2016-12-12  Alexey Proskuryakov  <ap@apple.com>
816
817         ChangeLogs become readonly after resolving a conflict
818         https://bugs.webkit.org/show_bug.cgi?id=165440
819         rdar://problem/29491002
820
821         Reviewed by Darin Adler.
822
823         * Scripts/resolve-ChangeLogs: (resolveChangeLog): Set correct permissions when
824         moving the file.
825
826 2016-12-12  Filip Pizlo  <fpizlo@apple.com>
827
828         Re-enable collectContinuously since it doesn't crash anymore
829
830         Rubber stamped by Michael Saboff.
831
832         * Scripts/run-jsc-stress-tests:
833
834 2016-12-11  Konstantin Tokarev  <annulen@yandex.ru>
835
836         Unreviewed attempt to fix EFL and Mac/cmake builds after r209665.
837         https://bugs.webkit.org/show_bug.cgi?id=165686
838
839         * DumpRenderTree/CMakeLists.txt: WebKit2 should precede other target
840         so that right config.h comes first in include path.
841
842 2016-12-11  Dave Hyatt  <hyatt@apple.com>
843
844         [CSS Parser] Make sure content extensions initialize AtomicString
845         https://bugs.webkit.org/show_bug.cgi?id=165737
846
847         Reviewed by Darin Adler.
848
849         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
850         (TestWebKitAPI::makeBackend):
851
852 2016-12-08  Dave Hyatt  <hyatt@apple.com>
853
854         [CSS Parser] Remove the old CSS Parser
855         https://bugs.webkit.org/show_bug.cgi?id=165645
856
857         Reviewed by Daniel Bates.
858
859         * TestWebKitAPI/Tests/WebCore/CSSParser.cpp:
860         (TestWebKitAPI::TEST):
861
862 2016-12-10  Konstantin Tokarev  <annulen@yandex.ru>
863
864         [cmake] Include WTF, JSC, and WebCore headers automatically to targers using them
865         https://bugs.webkit.org/show_bug.cgi?id=165686
866
867         Reviewed by Michael Catanzaro.
868
869         This change reduces duplication of include path lists between modules,
870         and reduces future need for fixes like r209605 (broken build because of
871         WebCore header suddenly becoming used in WebKit2).
872
873         * DumpRenderTree/CMakeLists.txt:
874         * DumpRenderTree/PlatformMac.cmake:
875         * ImageDiff/CMakeLists.txt:
876         * MiniBrowser/gtk/CMakeLists.txt:
877         * MiniBrowser/mac/CMakeLists.txt:
878         * MiniBrowser/win/CMakeLists.txt:
879         * TestWebKitAPI/CMakeLists.txt:
880         * TestWebKitAPI/PlatformEfl.cmake:
881         * TestWebKitAPI/PlatformJSCOnly.cmake:
882         * TestWebKitAPI/PlatformMac.cmake:
883         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
884         * WebKitTestRunner/CMakeLists.txt:
885         * WebKitTestRunner/PlatformGTK.cmake:
886         * WebKitTestRunner/PlatformMac.cmake:
887
888 2016-12-09  Csaba Osztrogonác  <ossy@webkit.org>
889
890         Unreviewed buildfix after r209630.
891
892         * Scripts/build-jsc: Remove building the non-existing testWASM.
893
894 2016-12-09  Eric Carlson  <eric.carlson@apple.com>
895
896         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
897         https://bugs.webkit.org/show_bug.cgi?id=165251
898
899         Reviewed by Dean Jackson.
900
901         Based on a patch by Dr Alex Gouaillard <agouaillard@gmail.com>
902
903         * DumpRenderTree/mac/DumpRenderTree.mm:
904         (resetWebPreferencesToConsistentValues): Enable MediaStream and PeerConnection.
905
906         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
907         (WTR::InjectedBundle::beginTesting): Ditto.
908
909         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
910         (WTR::TestRunner::setMediaStreamEnabled): New.
911         (WTR::TestRunner::setPeerConnectionEnabled): New.
912         * WebKitTestRunner/InjectedBundle/TestRunner.h:
913
914 2016-12-09  Brady Eidson  <beidson@apple.com> 
915  
916         Re-landing:
917         Add _WKIconLoadingDelegate SPI. 
918         https://bugs.webkit.org/show_bug.cgi?id=164894 
919  
920         Reviewed by Alex Christensen. 
921         
922         Add MiniBrowser support for this new SPI, configurable with a setting. 
923  
924         * MiniBrowser/mac/SettingsController.h: 
925         * MiniBrowser/mac/SettingsController.m: 
926         (-[SettingsController _populateMenu]): 
927         (-[SettingsController validateMenuItem:]): 
928         (-[SettingsController loadsAllSiteIcons]): 
929         (-[SettingsController toggleLoadsAllSiteIcons:]): 
930         * MiniBrowser/mac/WK2BrowserWindowController.m: 
931         (-[WK2BrowserWindowController awakeFromNib]): 
932         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): 
933
934 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
935
936         Fix the 32-bit build.
937
938         Unreviewed build fix.
939
940         * MiniBrowser/mac/SettingsController.h:
941
942 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
943
944         Fedora also needs a PHP7 config file alternative
945         https://bugs.webkit.org/show_bug.cgi?id=165606
946
947         Reviewed by Michael Catanzaro.
948
949         * Scripts/webkitpy/port/base.py:
950         (Port._is_fedora_php_version_7): check for the php7 library.
951         (Port._fedora_php_version): get the appropriate filename for Fedora.
952         (Port._apache_config_file_name_for_platform):
953
954 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
955
956         Complete the revert of r208865.
957         https://bugs.webkit.org/show_bug.cgi?id=164894
958
959         Unreviewed build fix.
960
961         * MiniBrowser/mac/SettingsController.h:
962         * MiniBrowser/mac/SettingsController.m:
963         (-[SettingsController _populateMenu]):
964         (-[SettingsController validateMenuItem:]):
965         (-[SettingsController loadsAllSiteIcons]): Deleted.
966         (-[SettingsController toggleLoadsAllSiteIcons:]): Deleted.
967         * MiniBrowser/mac/WK2BrowserWindowController.m:
968         (-[WK2BrowserWindowController awakeFromNib]):
969         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): Deleted.
970
971 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
972
973         [GTK] Force GDK backend to x11 when running with XvfbDriver
974         https://bugs.webkit.org/show_bug.cgi?id=165612
975
976         Reviewed by Michael Catanzaro.
977
978         When the developer is running a Wayland session, GDK may get confused
979         and try to use its Wayland backend (which is higher priority) instead.
980         This ensures it will use the appropriate backend when running under
981         Xvfb.
982
983         * Scripts/webkitpy/port/gtk.py:
984         (GtkPort.setup_environ_for_server): when running with XvfbDriver,
985         force GDK_BACKEND to x11.
986
987 2016-12-08  Keith Miller  <keith_miller@apple.com>
988
989         Add 64-bit signed LEB decode method
990         https://bugs.webkit.org/show_bug.cgi?id=165630
991
992         Reviewed by Ryosuke Niwa.
993
994         Add tests for LEB int64 and uint64 decode since I guess
995         I forgot to add tests before.
996
997         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp:
998         (TestWebKitAPI::testUInt32LEBDecode):
999         (TestWebKitAPI::TEST):
1000         (TestWebKitAPI::testUInt64LEBDecode):
1001         (TestWebKitAPI::testInt32LEBDecode):
1002         (TestWebKitAPI::testInt64LEBDecode):
1003         (TestWebKitAPI::testUnsignedLEBDecode): Deleted.
1004
1005 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
1006
1007         Make it easy to enable --force-collectContinuously
1008         https://bugs.webkit.org/show_bug.cgi?id=165638
1009
1010         Reviewed by Keith Miller.
1011
1012         * Scripts/run-javascriptcore-tests:
1013         (runJSCStressTests):
1014
1015 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
1016
1017         Disable the collectContinuously mode until I investigate failures.
1018
1019         Rubber stamped by Keith Miller.
1020         
1021         I'm seeing collectContinuously crashes on some platforms. Disabling that testing mode
1022         while I investigate.
1023
1024         * Scripts/run-jsc-stress-tests:
1025
1026 2016-12-08  Alex Christensen  <achristensen@webkit.org>
1027
1028         REGRESSION (URL parser): Relative URLs aren’t resolved correctly when the base URL is an applewebdata: URL
1029         https://bugs.webkit.org/show_bug.cgi?id=165621
1030
1031         Reviewed by Dan Bernstein.
1032
1033         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1034         (TestWebKitAPI::TEST_F):
1035
1036 2016-12-06  Filip Pizlo  <fpizlo@apple.com>
1037
1038         Concurrent GC should be stable enough to land enabled
1039         https://bugs.webkit.org/show_bug.cgi?id=164990
1040
1041         Reviewed by Geoffrey Garen.
1042         
1043         Add a new mode that runs GC continuously. Also made eager modes run GC continuously.
1044         
1045         It's clear that this works just fine in release, but I'm still trying to figure out if it's
1046         safe for debug. It might be too slow for debug.
1047
1048         * Scripts/run-jsc-stress-tests:
1049
1050 2016-12-08  Alex Christensen  <achristensen@webkit.org>
1051
1052         Add SPI for sending WebsiteSettings to WebProcess during navigation
1053         https://bugs.webkit.org/show_bug.cgi?id=165517
1054         <rdar://29341068>
1055
1056         Reviewed by Anders Carlsson.
1057
1058         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1059         * TestWebKitAPI/Tests/WebKit2/contentBlockerCheck.html: Added.
1060         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm: Added.
1061         (-[WebsitePoliciesDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
1062         (-[WebsitePoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
1063         (-[WebsitePoliciesDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
1064         (TEST):
1065
1066 2016-12-08  Chris Dumez  <cdumez@apple.com>
1067
1068         Unreviewed, rolling out r209489.
1069
1070         Likely caused large regressions on JetStream, Sunspider and
1071         Speedometer
1072
1073         Reverted changeset:
1074
1075         "Add system trace points for JavaScript VM entry/exit"
1076         https://bugs.webkit.org/show_bug.cgi?id=165550
1077         http://trac.webkit.org/changeset/209489
1078
1079 2016-12-08  Keith Miller  <keith_miller@apple.com>
1080
1081         Move LEB tests to API tests
1082         https://bugs.webkit.org/show_bug.cgi?id=165586
1083
1084         Reviewed by Saam Barati.
1085
1086         Move the tests from testWasm.cpp and make them functions
1087         rather than macros.
1088
1089         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1090         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp: Added.
1091         (TestWebKitAPI::testUnsignedLEBDecode):
1092         (TestWebKitAPI::TEST):
1093         (TestWebKitAPI::testInt32LEBDecode):
1094
1095 2016-12-08  Chris Dumez  <cdumez@apple.com>
1096
1097         Support running the layout tests offline
1098         https://bugs.webkit.org/show_bug.cgi?id=165534
1099
1100         Reviewed by Ryosuke Niwa.
1101
1102         * Scripts/webkitpy/common/system/autoinstall.py:
1103         (AutoInstaller._download_to_stream):
1104         getcode() returns None for file URLs so handle this.
1105
1106         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
1107         (WebPlatformTestServer._install_modules):
1108         Deal with local path in the json file and resolve them into file URLs
1109         before using AutoInstall.
1110
1111 2016-12-08  Alex Christensen  <achristensen@webkit.org>
1112
1113         Fix CMake build.
1114
1115         * DumpRenderTree/PlatformMac.cmake:
1116         Remove CheckedMalloc.cpp after r209516.
1117
1118 2016-12-07  Mark Lam  <mark.lam@apple.com>
1119
1120         DumpRenderTree should stop using CheckedMalloc.
1121         https://bugs.webkit.org/show_bug.cgi?id=165563
1122         <rdar://problem/28945820>
1123
1124         Reviewed by Geoffrey Garen.
1125
1126         1. WebKitTestRunner does not have equivalent behavior to that which is implemented
1127            in CheckedMalloc.
1128         2. bmalloc does not honor the settings of CheckedMalloc.
1129
1130         The only time CheckedMalloc comes into play is when DRT uses gmalloc or system
1131         malloc.  As a result, DRT exhibits different behavior from the normal way we run
1132         our tests.  We should obsolete CheckedMalloc and make DRT behave consistently
1133         with WKTR.
1134
1135         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1136         * DumpRenderTree/mac/CheckedMalloc.cpp: Removed.
1137         * DumpRenderTree/mac/CheckedMalloc.h: Removed.
1138         * DumpRenderTree/mac/DumpRenderTree.mm:
1139         (prepareConsistentTestingEnvironment):
1140
1141 2016-12-07  Dean Jackson  <dino@apple.com>
1142
1143         Remove runtime toggle for pointer-lock
1144         https://bugs.webkit.org/show_bug.cgi?id=165577
1145         <rdar://problems/29566996>
1146
1147         Reviewed by Jon Lee.
1148
1149         Remove any runtime calls to check if pointer-lock is enabled. It's
1150         either compiled in or out.
1151
1152         * DumpRenderTree/mac/DumpRenderTree.mm:
1153         (resetWebPreferencesToConsistentValues):
1154         * WebKitTestRunner/TestController.cpp:
1155         (WTR::TestController::resetPreferencesToConsistentValues):
1156
1157 2016-12-07  Eric Carlson  <eric.carlson@apple.com>
1158
1159         [MediaStream][Mac] Revoke sandbox extensions when capture ends
1160         https://bugs.webkit.org/show_bug.cgi?id=165476
1161
1162         Reviewed by Brady Eidson.
1163         
1164         Add a test which loads a page that calls navigator.mediaDevices.enumerateDevices, kills the
1165         page, and loads the same page again to ensure that the WK2 UserMediaPermissionRequestManagerProxy
1166         is reset and recreated when a web page exits and is reloaded.
1167
1168         * TestWebKitAPI/PlatformGTK.cmake:
1169         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1170         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp: Added.
1171         (TestWebKitAPI::checkUserMediaPermissionCallback):
1172         (TestWebKitAPI::TEST):
1173         * TestWebKitAPI/Tests/WebKit2/enumerateMediaDevices.html: Added.
1174
1175 2016-12-07  Jeremy Jones  <jeremyj@apple.com>
1176
1177         One esc to exit fullscreen and pointer lock
1178         https://bugs.webkit.org/show_bug.cgi?id=165416
1179         rdar://problem/29430711
1180
1181         Reviewed by Jer Noble.
1182
1183         Implement WKPageUIClientV8 for pointer lock support.
1184         Add "escape" key support in EventSenderProxy.
1185
1186         * WebKitTestRunner/TestController.cpp:
1187         (WTR::requestPointerLock):
1188         (WTR::TestController::createOtherPage):
1189         (WTR::TestController::createWebViewWithOptions):
1190         * WebKitTestRunner/mac/EventSenderProxy.mm:
1191         (WTR::EventSenderProxy::keyDown):
1192
1193 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1194
1195         Add system trace points for JavaScript VM entry/exit
1196         https://bugs.webkit.org/show_bug.cgi?id=165550
1197
1198         Reviewed by Tim Horton.
1199
1200         Add trace points for entry/exit into/out of the JS VM.
1201
1202         * Tracing/SystemTracePoints.plist:
1203
1204 2016-12-07  ChangSeok Oh  <changseok@webkit.org>
1205
1206         [GTK] Cannot build GTK+ with CUPS 2.* versions
1207         https://bugs.webkit.org/show_bug.cgi?id=163591
1208
1209         Reviewed by Michael Catanzaro.
1210
1211         GTK+ build has failed on the system which CUPS 2.x is installed in. GTK+ 3.16.4
1212         does not assume to use the recent CUPS thus it fails to detect the CUPS in configuration.
1213         GTK+ upstream fixed this issue but it is not easy to apply the original patch to our
1214         old gtk+ since it requires not only bumping up glib accordingly and its consequence
1215         causes many printing test failures. So, I propose to fix the configuration issue by
1216         applying the change to the configure file directly. By doing this, we don't need to
1217         upgrade glib and worry about any test failures as a consequence of the upgraded glib.
1218
1219         * gtk/jhbuild.modules:
1220         * gtk/patches/gtk+-configure-fix-detecting-CUPS-2.x.patch: Added.
1221
1222 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1223
1224         Fix use of enum in a WK2 C SPI header.
1225         rdar://problem/28725583
1226
1227         Followup to correctly prefix the enum values.
1228
1229         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1230         (WTR::InjectedBundlePage::prepare):
1231
1232 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
1233
1234         Fix use of enum in a WK2 C SPI header.
1235         rdar://problem/28725583
1236
1237         Reviewed by Dan Bernstein.
1238
1239         Use correct enum style for a C SPI header and fix the callers.
1240
1241         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1242         (WTR::InjectedBundlePage::prepare):
1243
1244 2016-12-07  Wenson Hsieh  <wenson_hsieh@apple.com>
1245
1246         Add a new project for recording and playing back editing commands in editable web content
1247         https://bugs.webkit.org/show_bug.cgi?id=165114
1248         <rdar://problem/29408135>
1249
1250         Reviewed by Beth Dakin.
1251
1252         Adds a new Xcode project containing work towards rewinding and playing back editing commands. This work is
1253         wrapped in an Xcode project to take advantage of the XCTest framework. To manually test recording, open the
1254         capture test harness, edit the contenteditable body, and then hit cmd-S. This downloads a .json file which may
1255         then be dragged into the playback test harness.
1256
1257         Also adds 3 new unit tests in EditingHistoryTests/RewindAndPlaybackTests.m. These tests carry out the following
1258         steps:
1259
1260         1. Load the capture harness and perform test-specific editing on the web view.
1261         2. Let originalState be a dump of the DOM at this point in time.
1262         3. Extract the JSON-serialized editing history data and load the playback harness with this data.
1263         4. Rewind all editing to the beginning.
1264         5. Playback all editing to the end.
1265         6. Dump the state of the DOM. This should be identical to originalState.
1266
1267         * EditingHistory/EditingHistory.xcodeproj/project.pbxproj: Added.
1268         * EditingHistory/EditingHistory/Info.plist: Added.
1269         * EditingHistory/EditingHistory/Resources/CaptureHarness.html: Added.
1270         * EditingHistory/EditingHistory/Resources/DOMTestingUtil.js: Added.
1271         * EditingHistory/EditingHistory/Resources/PlaybackHarness.html: Added.
1272         * EditingHistory/EditingHistory/TestRunner.h: Added.
1273         * EditingHistory/EditingHistory/TestRunner.m: Added.
1274         (injectedMessageEventHandlerScript):
1275         (-[TestRunner init]):
1276         (-[TestRunner deleteBackwards:]):
1277         (-[TestRunner typeString:]):
1278         (-[TestRunner bodyElementSubtree]):
1279         (-[TestRunner bodyTextContent]):
1280         (-[TestRunner editingHistoryJSON]):
1281         (-[TestRunner loadPlaybackTestHarnessWithJSON:]):
1282         (-[TestRunner numberOfUpdates]):
1283         (-[TestRunner jumpToUpdateIndex:]):
1284         (-[TestRunner expectEvents:afterPerforming:]):
1285         (-[TestRunner loadCaptureTestHarness]):
1286         (-[TestRunner setTextObfuscationEnabled:]):
1287         (-[TestRunner isDoneWaitingForPendingEvents]):
1288         (-[TestRunner userContentController:didReceiveScriptMessage:]):
1289
1290         The TestRunner provides utilities that a unit test should use to drive the test forward (e.g. loading harnesses)
1291         or inspect the state of the loaded page (e.g. extracting JSON editing history data from the capture harness).
1292
1293         * EditingHistory/EditingHistory/TestUtil.h: Added.
1294         * EditingHistory/EditingHistory/TestUtil.m: Added.
1295         (waitUntilWithTimeout):
1296         (waitUntil):
1297
1298         Provides utilities for running tests. For now, this is just spinning the runloop on a given condition.
1299
1300         * EditingHistory/EditingHistory/WKWebViewAdditions.h: Added.
1301         * EditingHistory/EditingHistory/WKWebViewAdditions.m: Added.
1302         (-[WKWebView loadPageFromBundleNamed:]):
1303         (-[WKWebView typeCharacter:]):
1304         (-[WKWebView keyPressWithCharacters:keyCode:]):
1305         (-[WKWebView stringByEvaluatingJavaScriptFromString:]):
1306
1307         Provides utilities for simulating interaction in a web view.
1308
1309         * EditingHistory/EditingHistory/main.m: Added.
1310         (main):
1311         * EditingHistory/EditingHistoryTests/Info.plist: Added.
1312         * EditingHistory/EditingHistoryTests/RewindAndPlaybackTests.m: Added.
1313         (-[RewindAndPlaybackTests setUp]):
1314         (-[RewindAndPlaybackTests tearDown]):
1315         (-[RewindAndPlaybackTests testTypingSingleLineOfText]):
1316         (-[RewindAndPlaybackTests testTypingMultipleLinesOfText]):
1317         (-[RewindAndPlaybackTests testTypingAndDeletingText]):
1318         (-[RewindAndPlaybackTests rewindAndPlaybackEditingInPlaybackTestHarness]):
1319         (-[RewindAndPlaybackTests originalBodySubtree:isEqualToFinalSubtree:]):
1320
1321 2016-12-07  Philippe Normand  <pnormand@igalia.com>
1322
1323         [GTK][jhbuild] missing dependency on libvpx in gst-plugins-good
1324         https://bugs.webkit.org/show_bug.cgi?id=165525
1325
1326         Reviewed by Carlos Garcia Campos.
1327
1328         * gtk/jhbuild.modules: gst-plugins-good should depend on the
1329         libvpx package built within jhbuild.
1330
1331 2016-12-07  Philippe Normand  <pnormand@igalia.com>
1332
1333         [GTK][jhbuild] gst-plugins-bad fails to build with OpenSSL 1.1.0
1334         https://bugs.webkit.org/show_bug.cgi?id=165520
1335
1336         Reviewed by Carlos Garcia Campos.
1337
1338         * gtk/jhbuild.modules: Added missing dependency on openh264 in
1339         gst-plugins-bad, along with 2 upstream patches fixing the build
1340         against OpenSSL 1.1.0.
1341         * gtk/patches/gst-plugins-bad-0001-dtls-port-to-OpenSSL-1.1.0.patch: Added.
1342         * gtk/patches/gst-plugins-bad-0002-dtlscertificate-Fix-error-checking-in-RSA_generate_k.patch: Added.
1343
1344 2016-12-06  Alexey Proskuryakov  <ap@apple.com>
1345
1346         Correct SDKROOT values in xcconfig files
1347         https://bugs.webkit.org/show_bug.cgi?id=165487
1348         rdar://problem/29539209
1349
1350         Reviewed by Dan Bernstein.
1351
1352         Fix suggested by Dan Bernstein.
1353
1354         * ContentExtensionTester/Configurations/DebugRelease.xcconfig:
1355         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1356         * MiniBrowser/Configurations/DebugRelease.xcconfig:
1357         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
1358         * WebEditingTester/Configurations/DebugRelease.xcconfig:
1359         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1360
1361 2016-12-06  Daniel Bates  <dabates@apple.com>
1362
1363         WebKitTestRunner: Plugins are disabled in new windows
1364         https://bugs.webkit.org/show_bug.cgi?id=165410
1365
1366         Reviewed by Alex Christensen.
1367
1368         Currently WebKitTestRunner only enables plugins in the main window. So, a test that opens
1369         a new window and loads a plugin will fail. We should enable plugins in all windows by
1370         default. Moreover toggling testRunner.setPluginsEnabled() should effect all windows.
1371
1372         Making these changes is a step towards running plugins/open-and-close-window-with-plugin.html
1373         in WebKitTestRunner (we still need to fix <https://bugs.webkit.org/show_bug.cgi?id=46714>) and
1374         will make the behavior of WebKitTestRunner more closely match the behavior DumpRenderTree.
1375
1376         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1377         (WTR::InjectedBundle::beginTesting): Call TestRunner::setPluginsEnabled() instead of
1378         WKBundleSetPluginsEnabled().
1379         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1380         (WTR::TestRunner::setPluginsEnabled): Take a similar approach as TestRunner::setXSSAuditorEnabled()
1381         and make use of WKBundleOverrideBoolPreferenceForTestRunner().
1382
1383 2016-12-05  Dean Jackson  <dino@apple.com>
1384
1385         pointer lock needs to be feature detectable
1386         https://bugs.webkit.org/show_bug.cgi?id=165426
1387         <rdar://problem/29486715>
1388
1389         Reviewed by Antoine Quint.
1390
1391         Expose the comment line to turn on/off pointer lock.
1392
1393         * DumpRenderTree/TestOptions.h:
1394         * DumpRenderTree/TestOptions.mm:
1395         (TestOptions::TestOptions):
1396         * DumpRenderTree/mac/DumpRenderTree.mm:
1397         (resetWebPreferencesToConsistentValues):
1398         * WebKitTestRunner/TestController.cpp:
1399         (WTR::TestController::resetPreferencesToConsistentValues):
1400         (WTR::updateTestOptionsFromTestHeader):
1401         * WebKitTestRunner/TestOptions.h:
1402         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1403         (WTR::PlatformWebView::viewSupportsOptions):
1404         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1405         (WTR::PlatformWebView::viewSupportsOptions):
1406
1407 2016-12-05  Jonathan Bedard  <jbedard@apple.com>
1408
1409         Make it possible to use an existing simulator instance for one-off testing
1410         https://bugs.webkit.org/show_bug.cgi?id=164568
1411         <rdar://problem/29189133>
1412
1413         Reviewed by Daniel Bates.
1414
1415         With this patch, if a simulator is currently running on the machine and
1416         '--dedicated-simulators' is not passed into the application, only one simulator
1417         instance will be used, and this instance will be the existing instance.
1418         If no simulator is running or '--dedicated-simulators' is passed to the script,
1419         previous behavior will be used.
1420
1421         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1422         (parse_args):
1423         * Scripts/webkitpy/port/ios.py:
1424         (IOSSimulatorPort.__init__): Logic for enabling usage of currently running simulator.
1425         (IOSSimulatorPort._create_simulators): Only create simulators when needed, don't reset already running simulators.
1426         (IOSSimulatorPort.setup_test_run): Don't open already running simulators.
1427         (IOSSimulatorPort._quit_ios_simulator): Only quit simulators if we manage them.
1428         (IOSSimulatorPort.clean_up_test_run): Only clean up simulators if we manage them. 
1429         (IOSSimulatorPort._using_dedicated_simulators): True if simulators need to be managed, false if using an existing instance.
1430         (IOSSimulatorPort.device_id_for_worker_number): Access currently running simulator if not managing devices.
1431         * Scripts/webkitpy/xcode/simulator.py:
1432         (Simulator.refresh): Check if xcode_simctl_list returned None instead of a generator.
1433         (Simulator.current_device): Get currently running device.
1434
1435 2016-12-05  Dan Bernstein  <mitz@apple.com>
1436
1437         Disable a crashing test on iOS.
1438
1439         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
1440
1441 2016-12-04  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1442
1443         Fix a build break on EFL since r209303.
1444
1445         Unreviewed build fix.
1446
1447         * Scripts/webkitperl/FeatureList.pm: Disable SS Device Adaptation temporarily.
1448
1449 2016-12-03  Yusuke Suzuki  <utatane.tea@gmail.com>
1450
1451         Refactor SymbolImpl layout
1452         https://bugs.webkit.org/show_bug.cgi?id=165247
1453
1454         Reviewed by Darin Adler.
1455
1456         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
1457         (TestWebKitAPI::TEST):
1458
1459 2016-12-03  Dan Bernstein  <mitz@apple.com>
1460
1461         Fixed the build after r209307.
1462
1463         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
1464         (TEST):
1465
1466 2016-12-03  Dan Bernstein  <mitz@apple.com>
1467
1468         [Cocoa] Expose InjectedBundlePageEditorClient via the Objective-C bundle SPI
1469         https://bugs.webkit.org/show_bug.cgi?id=165276
1470         <rdar://problem/29467040>
1471
1472         Reviewed by Darin Adler.
1473
1474         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1475         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm: Added.
1476         (-[BundleEditingDelegateRemoteObject willWriteToPasteboard:]):
1477         (-[BundleEditingDelegateRemoteObject didWriteToPasteboard]):
1478         (TEST):
1479         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm: Added.
1480         (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1481         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:willWriteRangeToPasteboard:]):
1482         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:pasteboardDataForRange:]):
1483         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextControllerDidWriteToPasteboard:]):
1484         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Added.
1485
1486 2016-12-02  Andy Estes  <aestes@apple.com>
1487
1488         [Cocoa] Adopt the PRODUCT_BUNDLE_IDENTIFIER build setting
1489         https://bugs.webkit.org/show_bug.cgi?id=164492
1490
1491         Reviewed by Dan Bernstein.
1492
1493         * DumpRenderTree/TestNetscapePlugIn/mac/Info.plist: Changed CFBundleIdentifier's value from
1494         com.apple.testnetscapeplugin to ${PRODUCT_BUNDLE_IDENTIFIER}.
1495         * DumpRenderTree/ios/Info.plist: Changed CFBundleIdentifier's value from
1496         org.webkit.DumpRenderTree to ${PRODUCT_BUNDLE_IDENTIFIER}.
1497         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig: Set
1498         PRODUCT_BUNDLE_IDENTIFIER to org.webkit.DumpRenderTree.
1499         * DumpRenderTree/mac/Configurations/TestNetscapePlugIn.xcconfig: Set
1500         PRODUCT_BUNDLE_IDENTIFIER to com.apple.testnetscapeplugin.
1501         * MiniBrowser/Configurations/MiniBrowser.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1502         org.webkit.$(PRODUCT_NAME:rfc1034identifier).
1503         * MiniBrowser/Configurations/MiniBrowserBundle.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1504         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1505         * MiniBrowser/mac/Bundle/Info.plist: Changed CFBundleIdentifier's value from
1506         com.apple.${PRODUCT_NAME:rfc1034identifier} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1507         * MiniBrowser/mac/Info.plist: Changed CFBundleIdentifier's value from
1508         org.webkit.${PRODUCT_NAME} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1509         * TestWebKitAPI/Configurations/InjectedBundle.xcconfig: Set INFOPLIST_FILE to
1510         InjectedBundle-Info.plist and set PRODUCT_BUNDLE_IDENTIFIER to
1511         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1512         * TestWebKitAPI/Configurations/WebProcessPlugIn.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
1513         com.apple.$(PRODUCT_NAME:rfc1034identifier).
1514         * TestWebKitAPI/InjectedBundle-Info.plist: Changed CFBundleIdentifier's value from
1515         com.yourcompany.${PRODUCT_NAME:rfc1034identifier} to ${PRODUCT_BUNDLE_IDENTIFIER}.
1516         * TestWebKitAPI/cocoa/WebProcessPlugIn/Info.plist: Added a CFBundleIdentifier key with the
1517         value ${PRODUCT_BUNDLE_IDENTIFIER}.
1518         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Set INFOPLIST_FILE to
1519         InjectedBundle-Info.plist and set PRODUCT_BUNDLE_IDENTIFIER to
1520         com.apple.WebKitTestRunner.InjectedBundle.
1521         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: Set
1522         PRODUCT_BUNDLE_IDENTIFIER to org.webkit.$(PRODUCT_NAME:rfc1034identifier).
1523         * WebKitTestRunner/InjectedBundle-Info.plist: Changed CFBundleIdentifier's value from
1524         com.apple.WebKitTestRunner.InjectedBundle to ${PRODUCT_BUNDLE_IDENTIFIER}.
1525         * WebKitTestRunner/WebKitTestRunnerApp/WebKitTestRunnerApp-Info.plist: Changed
1526         CFBundleIdentifier's value from org.webkit.${PRODUCT_NAME:rfc1034identifier} to
1527         ${PRODUCT_BUNDLE_IDENTIFIER}.
1528
1529 2016-12-02  Brady Eidson  <beidson@apple.com>
1530
1531         Make IndexedDB.WebProcessKillIDBCleanup even more reliable.
1532         https://bugs.webkit.org/show_bug.cgi?id=165330
1533
1534         Reviewed by Alex Christensen.
1535
1536         The test currently nulls out a RetainPtr<WKWebView> to try to destroy the view and kill the process.
1537
1538         Problem is that doesn't reliably destroy the view.
1539         We should explicitly kill the process instead.
1540
1541         Also, by relocating when we kill the process, we can better test behavior of the IndexedDB mechanism.
1542         e.g. We explicitly confirm that a second WebProcess can simultaneously attach to the same unique database as the first.
1543
1544         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
1545         (TEST):
1546
1547 2016-12-02  Commit Queue  <commit-queue@webkit.org>
1548
1549         Unreviewed, rolling out r209136.
1550         https://bugs.webkit.org/show_bug.cgi?id=165337
1551
1552         broke 36 webkitpy tests (Requested by mcatanzaro on #webkit).
1553
1554         Reverted changeset:
1555
1556         "Make it possible to use an existing simulator instance for
1557         one-off testing"
1558         https://bugs.webkit.org/show_bug.cgi?id=164568
1559         http://trac.webkit.org/changeset/209136
1560
1561 2016-12-02  Chris Dumez  <cdumez@apple.com>
1562
1563         [Mac][WK1] Implement new HTML interactive form validation user interface
1564         https://bugs.webkit.org/show_bug.cgi?id=164483
1565
1566         Reviewed by Simon Fraser.
1567
1568         Add support for UIScriptController's contentsOfUserInterfaceItem("validationBubble")
1569         on Mac DRT as this is needed by the HTML form validation layout tests.
1570
1571         * DumpRenderTree/mac/UIScriptControllerMac.mm:
1572         (WTR::UIScriptController::contentsOfUserInterfaceItem):
1573
1574 2016-12-02  Brady Eidson  <beidson@apple.com>
1575
1576         IndexedDB.IndexedDBMultiProcess and IndexedDB.WebProcessKillIDBCleanup sometimes timeout.
1577         https://bugs.webkit.org/show_bug.cgi?id=160780 and https://bugs.webkit.org/show_bug.cgi?id=161001
1578
1579         Reviewed by Alexey Proskuryakov.
1580
1581         These tests had "run-loop races."
1582         
1583         The test spins the runloop waiting for one message.
1584         Two messages might come in from the WebProcess in short succession, and both be delivered to the
1585         UIProcess in the same spin of the runloop.
1586
1587         Therefore by the time the test stops spinning the runloop, notified that a message was received,
1588         the first message has been overwritten by the second.
1589
1590         These tests are fixed by queueing the incoming messages instead of just storing one.
1591
1592         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
1593         (-[IndexedDBMPMessageHandler userContentController:didReceiveScriptMessage:]):
1594         (getNextMessage):
1595         (TEST):
1596
1597         * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
1598         (-[IndexedDBWebProcessKillMessageHandler userContentController:didReceiveScriptMessage:]):
1599         (getNextMessage):
1600         (TEST):
1601
1602 2016-12-01  Jiewen Tan  <jiewen_tan@apple.com>
1603
1604         Add a runtime flag for SubtleCrypto
1605         https://bugs.webkit.org/show_bug.cgi?id=164982
1606
1607         Reviewed by Brent Fulgham.
1608
1609         * DumpRenderTree/mac/DumpRenderTree.mm:
1610         (resetWebPreferencesToConsistentValues):
1611         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1612         (WTR::InjectedBundle::beginTesting):
1613         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1614         (WTR::TestRunner::setSubtleCryptoEnabled):
1615         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1616
1617 2016-12-01  Alexey Proskuryakov  <ap@apple.com>
1618
1619         Remove webkitpy dependency on Eliza
1620         https://bugs.webkit.org/show_bug.cgi?id=164979
1621
1622         Reviewed by Daniel Bates.
1623
1624         This module is not on pypi, so installing it is a challenge. The jokes feel pretty old too!
1625
1626         * Scripts/webkitpy/thirdparty/__init__.py:
1627         * Scripts/webkitpy/thirdparty/__init___unittest.py: Changed mock import hook to
1628         test buildbot instead of eliza.
1629         * Scripts/webkitpy/tool/bot/ircbot.py:
1630         * Scripts/webkitpy/tool/bot/ircbot_unittest.py:
1631
1632 2016-12-01  Beth Dakin  <bdakin@apple.com>
1633
1634         Force clicking tests fail on some machines
1635         https://bugs.webkit.org/show_bug.cgi?id=165263
1636
1637         Reviewed by Tim Horton.
1638
1639         Initialize com.apple.trackpad.forceClick to 1 so that we don’t have to depend on 
1640         the user account having this feature enabled. 
1641         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
1642         (WTR::InjectedBundle::platformInitialize):
1643         * WebKitTestRunner/mac/main.mm:
1644         (setDefaultsToConsistentValuesForTesting):
1645
1646 2016-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
1647
1648         Introduce StringImpl::StaticStringImpl with constexpr constructor
1649         https://bugs.webkit.org/show_bug.cgi?id=165093
1650
1651         Reviewed by Darin Adler.
1652
1653         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
1654         (TestWebKitAPI::TEST):
1655
1656 2016-11-30  Antoine Quint  <graouts@apple.com>
1657
1658         [Modern Media Controls] Add an HTML comment flag to turn the feature on
1659         https://bugs.webkit.org/show_bug.cgi?id=165226
1660
1661         Reviewed by Dean Jackson.
1662
1663         Add a new flag to turn Modern Media Controls on in the test runners.
1664
1665         * DumpRenderTree/TestOptions.h:
1666         * DumpRenderTree/TestOptions.mm:
1667         (TestOptions::TestOptions):
1668         * DumpRenderTree/mac/DumpRenderTree.mm:
1669         (resetWebPreferencesToConsistentValues):
1670         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1671         (WTR::InjectedBundle::beginTesting):
1672         * WebKitTestRunner/TestController.cpp:
1673         (WTR::TestController::resetPreferencesToConsistentValues):
1674         (WTR::updateTestOptionsFromTestHeader):
1675         * WebKitTestRunner/TestOptions.h:
1676         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1677         (WTR::PlatformWebView::viewSupportsOptions):
1678         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1679         (WTR::PlatformWebView::viewSupportsOptions):
1680
1681 2016-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
1682
1683         Add separate settings and preferences to enable/disable async decoding for large images and animated images
1684         https://bugs.webkit.org/show_bug.cgi?id=165177
1685
1686         Reviewed by Simon Fraser.
1687         
1688         Pref and a menu item to toggle async image decoding settings for WebKits 1 and 2.
1689
1690         * MiniBrowser/mac/SettingsController.h:
1691         * MiniBrowser/mac/SettingsController.m:
1692         (-[SettingsController _populateMenu]):
1693         (-[SettingsController validateMenuItem:]):
1694         (-[SettingsController toggleLargeImageAsyncDecodingEnabled:]):
1695         (-[SettingsController largeImageAsyncDecodingEnabled]):
1696         (-[SettingsController toggleAnimatedImageAsyncDecodingEnabled:]):
1697         (-[SettingsController animatedImageAsyncDecodingEnabled]):
1698         (-[SettingsController toggleAsyncImageDecodingEnabled:]): Deleted.
1699         (-[SettingsController asyncImageDecodingEnabled]): Deleted.
1700         * MiniBrowser/mac/WK1BrowserWindowController.m:
1701         (-[WK1BrowserWindowController didChangeSettings]):
1702         * MiniBrowser/mac/WK2BrowserWindowController.m:
1703         (-[WK2BrowserWindowController didChangeSettings]):
1704
1705 2016-11-30  Jonathan Bedard  <jbedard@apple.com>
1706
1707         Make it possible to use an existing simulator instance for one-off testing
1708         https://bugs.webkit.org/show_bug.cgi?id=164568
1709         <rdar://problem/29189133>
1710
1711         Reviewed by Daniel Bates.
1712
1713         With this patch, if a simulator is currently running on the machine and
1714         '--dedicated-simulators' is not passed into the application, only one simulator
1715         instance will be used, and this instance will be the existing instance.
1716         If no simulator is running or '--dedicated-simulators' is passed to the script,
1717         previous behavior will be used.
1718
1719         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
1720         (parse_args):
1721         * Scripts/webkitpy/port/ios.py:
1722         (IOSSimulatorPort.__init__): Logic for enabling usage of currently running simulator.
1723         (IOSSimulatorPort._create_simulators): Only create simulators when needed, don't reset already running simulators.
1724         (IOSSimulatorPort.setup_test_run): Don't open already running simulators.
1725         (IOSSimulatorPort._quit_ios_simulator): Only quit simulators if we manage them.
1726         (IOSSimulatorPort.clean_up_test_run): Only clean up simulators if we manage them. 
1727         (IOSSimulatorPort._using_dedicated_simulators): True if simulators need to be managed, false if using an existing instance.
1728         (IOSSimulatorPort.device_id_for_worker_number): Access currently running simulator if not managing devices.
1729         * Scripts/webkitpy/xcode/simulator.py:
1730         (Simulator.current_device): Get currently running device.
1731
1732 2016-11-29  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1733
1734         [Linux] run-benchmark should be able to execute the benchmarks with more browsers.
1735         https://bugs.webkit.org/show_bug.cgi?id=164792
1736
1737         Reviewed by Michael Catanzaro.
1738
1739         This removes the GTKBrowserDriver (and the platform 'gtk') from the run-benchmark script,
1740         and adds a new LinuxBrowserDriver with a platform 'linux'.
1741
1742         It add also drivers for Chrome (Chromium), Firefox, Epiphany and MiniBrowser-GTK (previously MiniBrowser).
1743
1744         The detection of the platform is now done automatically, so it is not longer needed to pass a "--platform" parameter.
1745
1746         The tracking of the browser process is now more robust, we track the pid of the browser process and we only try to
1747         kill the ones that were executed by this script, instead of doing a 'killall $browser' (like before).
1748         We also check for browser process childs and we kill them if they are still alive after the main browser process has been killed.
1749         This depends on psutil, so this will only be done if psutil is installed.
1750
1751         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1752         (RunBenchmarkTests.start): The platform is now autodetected and the MiniBrowser driver is renamed to MiniBrowser-GTK.
1753         * Scripts/webkitpy/benchmark_runner/benchmark_runner.py:
1754         (BenchmarkRunner._run_benchmark): Fix a bug that caused close_browsers to be called twice. Its already called inside BenchmarkRunner._run_one_test.
1755         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_browser_driver.py: Added.
1756         (LinuxBrowserDriver): Implement base class that has all the needed functionality for driving the browsers.
1757         (LinuxBrowserDriver.__init__):
1758         (LinuxBrowserDriver.prepare_env):
1759         (LinuxBrowserDriver.restore_env):
1760         (LinuxBrowserDriver.close_browsers): Made the dependency on psutil optional (because it was listed as such on the README file <Tools/Scripts/webkitpy/benchmark_runner/README.md>)
1761         (LinuxBrowserDriver.launch_url):
1762         (LinuxBrowserDriver._get_first_executable_path_from_list):
1763         (LinuxBrowserDriver._screen_size):
1764         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_chrome_driver.py: Copied from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1765         (LinuxChromeDriver):
1766         (LinuxChromeDriver.launch_url):
1767         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_epiphany_driver.py: Renamed from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_browser_driver.py.
1768         (EpiphanyBrowserDriver):
1769         (EpiphanyBrowserDriver.launch_url):
1770         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_firefox_driver.py: Copied from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1771         (LinuxFirefoxDriver):
1772         (LinuxFirefoxDriver.launch_url):
1773         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_minibrowsergtk_driver.py: Renamed from Tools/Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py.
1774         (GTKMiniBrowserDriver):
1775         (GTKMiniBrowserDriver.launch_url):
1776         * Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
1777         (SimpleHTTPServerDriver):
1778         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
1779         (getplatform):
1780         (getdefaultbrowser):
1781         (parse_args):
1782         * Scripts/webkitpy/benchmark_runner/utils.py:
1783         (load_subclasses): The loading of subclasses was still (even after r196979) sensitive to the order in which the modules are loaded.
1784         We have to ensure that the files containing subclasses of the base_class_file are loaded after the base_class_file,
1785         we can do that by matching against the base_class_file pattern when the list is created.
1786
1787 2016-11-29  Andy Estes  <aestes@apple.com>
1788
1789         [Cocoa] Enable two clang warnings recommended by Xcode
1790         https://bugs.webkit.org/show_bug.cgi?id=164498
1791
1792         Reviewed by Mark Lam.
1793
1794         * DumpRenderTree/mac/Configurations/Base.xcconfig: Enabled CLANG_WARN_INFINITE_RECURSION and CLANG_WARN_SUSPICIOUS_MOVE.
1795         * MiniBrowser/Configurations/Base.xcconfig: Ditto.
1796         * TestWebKitAPI/Configurations/Base.xcconfig: Ditto.
1797         * WebKitTestRunner/Configurations/Base.xcconfig: Ditto.
1798
1799 2016-11-29  Eric Carlson  <eric.carlson@apple.com>
1800
1801         [MediaStream] Don't request user permission for a device if it has already been granted in the current browsing context
1802         https://bugs.webkit.org/show_bug.cgi?id=164760
1803         <rdar://problem/29261266>
1804
1805         Reviewed by Youenn Fablet.
1806         
1807         Allow scripts to determine the number of times the user has been prompted for capture device access.
1808
1809         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1810         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1811         (WTR::InjectedBundle::setUserMediaPersistentPermissionForOrigin):
1812         (WTR::InjectedBundle::userMediaPermissionRequestCountForOrigin):
1813         (WTR::InjectedBundle::resetUserMediaPermissionRequestCountForOrigin):
1814         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): Deleted.
1815         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1816         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1817         (WTR::TestRunner::setUserMediaPersistentPermissionForOrigin):
1818         (WTR::TestRunner::userMediaPermissionRequestCountForOrigin):
1819         (WTR::TestRunner::resetUserMediaPermissionRequestCountForOrigin):
1820         (WTR::TestRunner::setUserMediaPermissionForOrigin): Deleted.
1821         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1822         * WebKitTestRunner/TestController.cpp:
1823         (WTR::TestController::resetStateToConsistentValues):
1824         (WTR::OriginSettings::incrementRequestCount):
1825         (WTR::OriginSettings::resetRequestCount):
1826         (WTR::OriginSettings::requestCount):
1827         (WTR::TestController::saltForOrigin):
1828         (WTR::TestController::setUserMediaPersistentPermissionForOrigin):
1829         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
1830         (WTR::TestController::settingsForOrigin):
1831         (WTR::TestController::userMediaPermissionRequestCountForOrigin):
1832         (WTR::TestController::resetUserMediaPermissionRequestCountForOrigin):
1833         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
1834         (WTR::TestController::setUserMediaPermissionForOrigin): Deleted.
1835         * WebKitTestRunner/TestController.h:
1836         * WebKitTestRunner/TestInvocation.cpp:
1837         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1838         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1839
1840 2016-11-29  Simon Fraser  <simon.fraser@apple.com>
1841
1842         intersection-observer-entry-interface.html test fails on the bots
1843         https://bugs.webkit.org/show_bug.cgi?id=165133
1844
1845         Reviewed by Darin Adler.
1846         
1847         Tests that enabled Intersection Observer via <!-- webkit-test-runner [ enableIntersectionObserver=true ] -->
1848         would fail sometimes, because TestController::ensureViewSupportsOptionsForTest() failed to check
1849         to see if this option required creating a new web view, so would just use the old view without
1850         even resetting preferences.
1851         
1852         In general, TestController doesn't distinguish properly between options that require the creation
1853         of a new view (like mock scrollbars), and those that can be simply reset as resetPreferencesToConsistentValues()
1854         does.
1855         
1856         Do the easy fix of having viewSupportsOptions() check options.enableIntersectionObserver. We should probably
1857         just call resetPreferencesToConsistentValues() even when re-use the same view.
1858         
1859         * WebKitTestRunner/TestController.cpp:
1860         (WTR::TestController::resetPreferencesToConsistentValues):
1861         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1862         (WTR::PlatformWebView::viewSupportsOptions):
1863         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
1864         (WTR::PlatformWebView::viewSupportsOptions):
1865
1866 2016-11-28  Ryan Haddad  <ryanhaddad@apple.com>
1867
1868         Unreviewed, rolling out r209008.
1869
1870         This change appears to have caused two fast/mediastrem
1871         LayoutTests to fail.
1872
1873         Reverted changeset:
1874
1875         "[MediaStream] Don't request user permission for a device if
1876         it has already been granted in the current browsing context"
1877         https://bugs.webkit.org/show_bug.cgi?id=164760
1878         http://trac.webkit.org/changeset/209008
1879
1880 2016-11-28  Daniel Bates  <dabates@apple.com>
1881
1882         Teach webkitpy how to read CSSProperties.json r209001
1883         https://bugs.webkit.org/show_bug.cgi?id=165108
1884
1885         Reviewed by Simon Fraser.
1886
1887         Fix webkitpy logic so that it can read CSS property names from CSSProperties.json following r209001.
1888
1889         Following r209001 CSSPropertyNames.in no longer exists as it was replaced with CSSProperties.json.
1890         We need to modify the webkitpy machinery that processed CSSPropertyNames.in to process CSSProperties.json.
1891
1892         * Scripts/webkitpy/w3c/test_converter.py:
1893         (_W3CTestConverter.__init__): Make self._css_property_file and self._css_property_value_file local
1894         variables as it is unnecessary for them to be instance variables. Call read_webkit_prefixed_css_property_list()
1895         to read the property names from file CSSProperties.json. Call legacy_read_webkit_prefixed_css_property_list() to
1896         read CSS keyword values from CSSValueKeywords.in.
1897         (_W3CTestConverter.read_webkit_prefixed_css_property_list): Added.
1898         (_W3CTestConverter):
1899         (_W3CTestConverter.legacy_read_webkit_prefixed_css_property_list): Renamed from read_webkit_prefixed_css_property_list.
1900         * Scripts/webkitpy/w3c/test_importer_unittest.py:
1901         (TestImporterTest.test_harnesslinks_conversion): Substitute CSSProperties.json for CSSPropertyNames.in.
1902
1903 2016-11-28  Eric Carlson  <eric.carlson@apple.com>
1904
1905         [MediaStream] Don't request user permission for a device if it has already been granted in the current browsing context
1906         https://bugs.webkit.org/show_bug.cgi?id=164760
1907         <rdar://problem/29261266>
1908
1909         Reviewed by Youenn Fablet.
1910         
1911         Allow scripts to determine the number of times the user has been prompted for capture device access.
1912
1913         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1914         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1915         (WTR::InjectedBundle::setUserMediaPersistentPermissionForOrigin):
1916         (WTR::InjectedBundle::userMediaPermissionRequestCountForOrigin):
1917         (WTR::InjectedBundle::resetUserMediaPermissionRequestCountForOrigin):
1918         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): Deleted.
1919         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1920         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1921         (WTR::TestRunner::setUserMediaPersistentPermissionForOrigin):
1922         (WTR::TestRunner::userMediaPermissionRequestCountForOrigin):
1923         (WTR::TestRunner::resetUserMediaPermissionRequestCountForOrigin):
1924         (WTR::TestRunner::setUserMediaPermissionForOrigin): Deleted.
1925         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1926         * WebKitTestRunner/TestController.cpp:
1927         (WTR::TestController::resetStateToConsistentValues):
1928         (WTR::OriginSettings::incrementRequestCount):
1929         (WTR::OriginSettings::resetRequestCount):
1930         (WTR::OriginSettings::requestCount):
1931         (WTR::TestController::saltForOrigin):
1932         (WTR::TestController::setUserMediaPersistentPermissionForOrigin):
1933         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
1934         (WTR::TestController::settingsForOrigin):
1935         (WTR::TestController::userMediaPermissionRequestCountForOrigin):
1936         (WTR::TestController::resetUserMediaPermissionRequestCountForOrigin):
1937         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
1938         (WTR::TestController::setUserMediaPermissionForOrigin): Deleted.
1939         * WebKitTestRunner/TestController.h:
1940         * WebKitTestRunner/TestInvocation.cpp:
1941         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1942         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1943
1944 2016-11-18  Jer Noble  <jer.noble@apple.com>
1945
1946         Add some performance tests for various aspects of media loading and playback.
1947         https://bugs.webkit.org/show_bug.cgi?id=164977
1948
1949         Reviewed by Darin Adler.
1950
1951         Allow callers to pass in extra alias/directory pairs to run-webkit-httpd.
1952
1953         * Scripts/run-webkit-httpd:
1954         (parse_args):
1955         (main):
1956
1957 2016-11-27  Simon Fraser  <simon.fraser@apple.com>
1958
1959         Another fix for CMake.
1960
1961         * DumpRenderTree/TestOptions.h:
1962         * DumpRenderTree/TestOptions.mm:
1963
1964 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1965
1966         Better fix for the Mac CMake build.
1967
1968         * DumpRenderTree/PlatformMac.cmake:
1969
1970 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
1971
1972         Attempt to fix Mac CMake build.
1973
1974         * DumpRenderTree/PlatformMac.cmake:
1975
1976 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1977
1978         [WTF] Import std::optional reference implementation as WTF::Optional
1979         https://bugs.webkit.org/show_bug.cgi?id=164199
1980
1981         Reviewed by Saam Barati and Sam Weinig.
1982
1983         Use WTF::Optional::value_or.
1984
1985         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1986         (WTR::UIScriptController::stableStateOverride):
1987         (WTR::UIScriptController::setStableStateOverride):
1988         * TestRunnerShared/Bindings/JSWrappable.h:
1989         (WTR::JSValueMakeBooleanOrNull):
1990         (WTR::JSValueToNullableBoolean):
1991         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1992         (WTR::UIScriptController::stableStateOverride):
1993         (WTR::UIScriptController::setStableStateOverride):
1994         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1995         * TestWebKitAPI/Tests/WTF/Optional.cpp:
1996         (TestWebKitAPI::TEST):
1997         * TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp:
1998         (TestWebKitAPI::testParseHTMLInteger):
1999         (TestWebKitAPI::testParseHTMLNonNegativeInteger):
2000         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2001         (TestWebKitAPI::checkURL):
2002         (TestWebKitAPI::checkRelativeURL):
2003         (TestWebKitAPI::checkURLDifferences):
2004         (TestWebKitAPI::checkRelativeURLDifferences):
2005         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2006         (WTR::UIScriptController::stableStateOverride):
2007         (WTR::UIScriptController::setStableStateOverride):
2008
2009 2016-11-26  Sam Weinig  <sam@webkit.org>
2010
2011         Convert IntersectionObserver over to using RuntimeEnabledFeatures so it can be properly excluded from script
2012         https://bugs.webkit.org/show_bug.cgi?id=164965
2013
2014         Reviewed by Simon Fraser.
2015
2016         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2017         Add new files.
2018
2019         * DumpRenderTree/TestOptions.h: Added.
2020         * DumpRenderTree/TestOptions.mm: Added.
2021         (parseBooleanTestHeaderValue):
2022         (TestOptions::TestOptions):
2023         Port TestOption parsing from WKTR to DRT.
2024
2025         * DumpRenderTree/mac/DumpRenderTree.mm:
2026         (resetWebPreferencesToConsistentValues):
2027         (resetWebViewToConsistentStateBeforeTesting):
2028         (runTest):
2029         * WebKitTestRunner/TestController.cpp:
2030         Pass TestOptions down to resetWebPreferencesToConsistentValues to allow setting
2031         preferences conditionally.
2032
2033         (WTR::TestController::resetPreferencesToConsistentValues):
2034         (WTR::updateTestOptionsFromTestHeader):
2035         * WebKitTestRunner/TestOptions.h:
2036         Add a new test option header, enableIntersectionObserver, to enable IntersectionObserver.
2037
2038 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
2039
2040         Migrate some layout timer-related code from std::chrono to Seconds and MonotonicTime
2041         https://bugs.webkit.org/show_bug.cgi?id=164992
2042
2043         Reviewed by Darin Adler.
2044         
2045         Use Seconds::zero().
2046
2047         * TestWebKitAPI/Tests/WTF/Condition.cpp:
2048
2049 2016-11-26  Simon Fraser  <simon.fraser@apple.com>
2050
2051         Add literals for various time units
2052         https://bugs.webkit.org/show_bug.cgi?id=165074
2053
2054         Reviewed by Filip Pizlo.
2055         
2056         Add tests for new time literals. Add new tests for units.
2057
2058         * TestWebKitAPI/Tests/WTF/Time.cpp:
2059         (TestWebKitAPI::TEST):
2060
2061 2016-11-25  Csaba Osztrogonác  <ossy@webkit.org>
2062
2063         Fix compile warnings after r208415
2064         https://bugs.webkit.org/show_bug.cgi?id=165061
2065
2066         Reviewed by Andy Estes.
2067
2068         * TestWebKitAPI/Tests/WTF/Time.cpp:
2069         (TestWebKitAPI::TEST):
2070
2071 2016-11-24  Michael Catanzaro  <mcatanzaro@igalia.com>
2072
2073         [GTK] Notifications API does not expose or respect the "tag" attribute
2074         https://bugs.webkit.org/show_bug.cgi?id=164771
2075
2076         Reviewed by Gustavo Noronha Silva.
2077
2078         Verify that showing a notification with the same tag as another notification closes the
2079         previous notification before the new notification is shown.
2080
2081         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2082         (testWebViewNotification):
2083
2084 2016-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
2085
2086         Unreviewed. Fix GTK+ test /webkit2/WebKitWebContext/get-plugins after r208429.
2087
2088         Test plugin library was renamed as libTestNetscapePlugIn.so in r208429.
2089
2090         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2091         (testWebContextGetPlugins): Update the library name.
2092
2093 2016-11-22  Darin Adler  <darin@apple.com>
2094
2095         Make normal case fast in the input element limitString function
2096         https://bugs.webkit.org/show_bug.cgi?id=165023
2097
2098         Reviewed by Dan Bernstein.
2099
2100         * TestWebKitAPI/CMakeLists.txt: Added TextBreakIterator.cpp.
2101         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
2102         * TestWebKitAPI/Tests/WTF/TextBreakIterator.cpp: Added.
2103         Contains some tests for the numGraphemeClusters and
2104         numCharactersInGraphemeClusters functions that I used to make sure
2105         that the new fast paths I added work correctly.
2106
2107 2016-11-22  Tomas Popela  <tpopela@redhat.com>
2108
2109         Unreviewed, add myself as a WebKit committer.
2110
2111         * Scripts/webkitpy/common/config/contributors.json:
2112
2113 2016-11-21  Mark Lam  <mark.lam@apple.com>
2114
2115         Hasher::addCharacters() should be able to handle zero length strings.
2116         https://bugs.webkit.org/show_bug.cgi?id=165024
2117
2118         Reviewed by Yusuke Suzuki.
2119
2120         * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
2121         (TestWebKitAPI::TEST):
2122
2123 2016-11-21  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2124
2125         [CMake] build fails after update to cmake 3.7
2126         https://bugs.webkit.org/show_bug.cgi?id=165008
2127
2128         Reviewed by Dan Bernstein.
2129
2130         When we remove the CMake cache, we should remove both the
2131         CMakeCache.txt file and the CMakeFiles directory.
2132         See: https://gitlab.kitware.com/cmake/cmake/issues/14820
2133
2134         * Scripts/webkitdirs.pm:
2135         (cmakeFilesPath):
2136         (removeCMakeCache):
2137
2138 2016-11-16  Philippe Normand  <pnormand@igalia.com>
2139
2140         [GTK][WebRTC] Switch to downstream OpenWebRTC and more recent GStreamer
2141         https://bugs.webkit.org/show_bug.cgi?id=164817
2142
2143         Reviewed by Alejandro G. Castro.
2144
2145         This is temporary, hopefully. The OpenWebRTC patches will/should
2146         be soon reviewed and upstream but meanwhile it makes sense to use
2147         the Igalia downstream fork so that the WebRTC testing is easier.
2148
2149         Recent GStreamer patches are also needed for RTP bundling support
2150         and RTP retransmission fixes.
2151
2152         * gtk/jhbuild.modules:
2153         * gtk/openwebrtc.modules: Removed.
2154         * gtk/patches/gst-plugins-good-0001-rtpbin-pipeline-gets-an-EOS-when-any-rtpsources-byes.patch: Added.
2155         * gtk/patches/gst-plugins-good-0002-rtpbin-avoid-generating-errors-when-rtcp-messages-ar.patch: Added.
2156         * gtk/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Added.
2157
2158 2016-11-20  Zan Dobersek  <zdobersek@igalia.com>
2159
2160         [EncryptedMedia] Make EME API runtime-enabled
2161         https://bugs.webkit.org/show_bug.cgi?id=164927
2162
2163         Reviewed by Jer Noble.
2164
2165         Enable the EME API via the WKTR InjectedBundle whenever testing
2166         commences. This does not have any effect unless the EME feature
2167         is enabled at compile-time, but it's still added to match other
2168         features and for future use.
2169
2170         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2171         (WTR::InjectedBundle::beginTesting):
2172         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2173         (WTR::TestRunner::setEncryptedMediaAPIEnabled):
2174         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2175
2176 2016-11-19  Simon Fraser  <simon.fraser@apple.com>
2177
2178         Fix the Mac and iOS bulds.
2179
2180         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2181         (-[TestRunnerWKWebView _stableStateOverride]):
2182         (-[TestRunnerWKWebView _setStableStateOverride:]):
2183
2184 2016-11-18  Simon Fraser  <simon.fraser@apple.com>
2185
2186         Make it possible to test non-stable-state scrolling on iOS
2187         https://bugs.webkit.org/show_bug.cgi?id=164905
2188
2189         Reviewed by Dan Bernstein.
2190
2191         Make it possible for an iOS layout test to force every visible rect update
2192         from the UI process to the web process to be in a non-stable state. This emulates
2193         what happens during panning and zooming interactions, and allows us to test the
2194         scrolling and layer trees in these transient states.
2195         
2196         This is done by adding a testing property on WKWebView, _stableStateOverride, whose
2197         getters and setters are overridden in TestRunnerWKWebView. When non-nil, we _updateVisibleContentRectAfterScrollInView
2198         consults the NSNumber's boolValue and uses it to override the stable state.
2199         
2200         To facilitate this kind of testing, also add immediateScrollToOffset() and
2201         immediateZoomToScale() to UIScriptController. Finally, add doAfterPresentationUpdate()
2202         which provides a callback that fires after one trip to the web process and back.
2203         
2204         Add code generation support for optional boolean attributes in IDL.
2205
2206         Align CodeGeneratorDumpRenderTree.pm and CodeGeneratorTestRunner.pm.
2207
2208         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
2209         (_generateImplementationFile):
2210         (_platformTypeConstructor):
2211         (_returnExpression):
2212         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2213         (WTR::UIScriptController::doAfterPresentationUpdate):
2214         (WTR::contentOffsetBoundedInValidRange):
2215         (WTR::UIScriptController::scrollToOffset):
2216         (WTR::UIScriptController::immediateScrollToOffset):
2217         (WTR::UIScriptController::immediateZoomToScale):
2218         (WTR::UIScriptController::stableStateOverride):
2219         (WTR::UIScriptController::setStableStateOverride):
2220         * DumpRenderTree/mac/UIScriptControllerMac.mm:
2221         (WTR::UIScriptController::doAfterPresentationUpdate):
2222         * TestRunnerShared/Bindings/JSWrappable.h:
2223         (WTR::JSValueMakeBooleanOrNull):
2224         (WTR::JSValueToNullableBoolean):
2225         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2226         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2227         (WTR::UIScriptController::immediateScrollToOffset):
2228         (WTR::UIScriptController::immediateZoomToScale):
2229         (WTR::UIScriptController::stableStateOverride):
2230         (WTR::UIScriptController::setStableStateOverride):
2231         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2232         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
2233         (_classRefGetter):
2234         (_platformTypeConstructor):
2235         (_returnExpression):
2236         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2237         (-[TestRunnerWKWebView dealloc]):
2238         (-[TestRunnerWKWebView _stableStateOverride]):
2239         (-[TestRunnerWKWebView _setStableStateOverride:]):
2240         * WebKitTestRunner/ios/TestControllerIOS.mm:
2241         (WTR::TestController::platformResetStateToConsistentValues):
2242         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2243         (WTR::UIScriptController::doAsyncTask):
2244         (WTR::UIScriptController::doAfterPresentationUpdate):
2245         (WTR::UIScriptController::zoomToScale):
2246         (WTR::UIScriptController::immediateScrollToOffset):
2247         (WTR::UIScriptController::immediateZoomToScale):
2248         (WTR::UIScriptController::stableStateOverride):
2249         (WTR::UIScriptController::setStableStateOverride):
2250         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
2251         (WTR::UIScriptController::doAfterPresentationUpdate):
2252
2253 2016-11-19  Joanmarie Diggs  <jdiggs@igalia.com>
2254
2255         AX: [ATK] Expose aria-busy via ATK_STATE_BUSY
2256         https://bugs.webkit.org/show_bug.cgi?id=164909
2257
2258         Reviewed by Chris Fleizach.
2259
2260         Implement boolAttributeValue() for ATK so we can test AXElementBusy.
2261
2262         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2263         (WTR::AccessibilityUIElement::boolAttributeValue):
2264
2265 2016-11-18  Simon Fraser  <simon.fraser@apple.com>
2266
2267         [iOS WK2] Eliminate a source of flakiness in layout tests by forcing WebPage into "responsive" mode for all tests, with an internals override
2268         https://bugs.webkit.org/show_bug.cgi?id=164980
2269
2270         Reviewed by Chris Dumez.
2271
2272         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2273         (WTR::InjectedBundlePage::prepare):
2274
2275 2016-11-18  Dean Jackson  <dino@apple.com>
2276
2277         AX: "(inverted-colors)" media query only matches on page reload; should match on change
2278         https://bugs.webkit.org/show_bug.cgi?id=163564
2279         <rdar://problem/28807350>
2280
2281         Reviewed by Simon Fraser.
2282
2283         Add a UIScriptController method that tricks WebKit into thinking
2284         it has received a notification that accessibility settings have
2285         changed. Combined with our forced overrides, this allows us to
2286         test if a page would react to the notifications.
2287
2288         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2289         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2290         * DumpRenderTree/mac/UIScriptControllerMac.mm:
2291         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2292         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2293         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2294         (WTR::simulateAccessibilitySettingsChangeNotification):
2295         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2296         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2297         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2298         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
2299         (WTR::UIScriptController::simulateAccessibilitySettingsChangeNotification):
2300
2301 2016-11-18  Alex Christensen  <achristensen@webkit.org>
2302
2303         Fix API test after r208902
2304         https://bugs.webkit.org/show_bug.cgi?id=144194
2305
2306         * TestWebKitAPI/Tests/Cocoa/URLExtras.mm:
2307         (TestWebKitAPI::TEST):
2308         The fullwidth solidus, U+FF0F, changed encoding from IDN2003 to IDN2008, probably to prevent domains from using it
2309         to spoof other domains.  https://webkit.org/blog/ and https://webkit.org\uFF0Fblog/ would otherwise look 
2310         too similar when rendered.
2311
2312 2016-11-17  Alex Christensen  <achristensen@webkit.org>
2313
2314         Support IDN2008 with UTS #46 instead of IDN2003
2315         https://bugs.webkit.org/show_bug.cgi?id=144194
2316
2317         Reviewed by Darin Adler.
2318
2319         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2320         (TestWebKitAPI::TEST_F):
2321         Add some tests from http://unicode.org/faq/idn.html verifying that we follow UTS46's deviations from IDN2008.
2322         Add some tests based on https://tools.ietf.org/html/rfc5893 verifying that we check for bidirectional text.
2323         Add a test based on https://tools.ietf.org/html/rfc5892 verifying that we do not do ContextO check.
2324         Add a test for U+321D and U+321E which have particularly interesting punycode encodings.  We match Firefox here now.
2325         Also add a test from http://www.unicode.org/reports/tr46/#IDNAComparison verifying we are not using IDN2003.
2326         We should consider importing all of http://www.unicode.org/Public/idna/9.0.0/IdnaTest.txt as URL domain tests.
2327
2328 2016-11-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2329
2330         Downloads started by context menu actions should also have a web view associated
2331         https://bugs.webkit.org/show_bug.cgi?id=164364
2332
2333         Reviewed by Michael Catanzaro.
2334
2335         Add a GTK+ unit tests to check that downloads started by the context menu have a web view associated.
2336
2337         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
2338         (downloadLocalFileSuccessfully):
2339         (testDownloadOverwriteDestinationDisallowed):
2340         (testDownloadLocalFileError):
2341         (testDownloadRemoteFile):
2342         (testDownloadRemoteFileError):
2343         (testDownloadMIMEType):
2344         (contextMenuCallback):
2345         (testContextMenuDownloadActions):
2346         (beforeAll):
2347
2348 2016-11-17  Ryosuke Niwa  <rniwa@webkit.org>
2349
2350         Add an experimental API to find elements across shadow boundaries
2351         https://bugs.webkit.org/show_bug.cgi?id=164851
2352         <rdar://problem/28220092>
2353
2354         Reviewed by Sam Weinig.
2355
2356         Added test cases for window.collectMatchingElementsInFlatTree to WebKit2.InjectedBundleMakeAllShadowRootOpen.
2357
2358         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2359         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRoot*s*Open_Bundle.cpp: Renamed
2360         from InjectedBundleMakeAllShadowRootOpen_Bundle.cpp.
2361         (TestWebKitAPI::InjectedBundleMakeAllShadowRootOpenTest::initialize): Added test cases for
2362         window.collectMatchingElementsInFlatTree by calling alert() many times.
2363         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp:
2364         (TestWebKitAPI::runJavaScriptAlert): Added expectations for multiple test cases. Each test case
2365         finishes with a call to alert, and moves testNumber forward.
2366         (TestWebKitAPI::TEST): Use the newly added closed-shadow-tree-test.html
2367         * TestWebKitAPI/Tests/WebKit2/closed-shadow-tree-test.html: Added. Creates a shadow tree with slots
2368         and tests that window.collectMatchingElementsInFlatTree is not present when
2369         an event named "testnormalworld" is dispatched by the injected bundle.
2370
2371 2016-11-17  Brady Eidson  <beidson@apple.com>
2372
2373         Add _WKIconLoadingDelegate SPI.
2374         https://bugs.webkit.org/show_bug.cgi?id=164894
2375
2376         Reviewed by Alex Christensen.
2377
2378         Add MiniBrowser support for this new SPI, configurable with a setting.
2379
2380         * MiniBrowser/mac/SettingsController.h:
2381         * MiniBrowser/mac/SettingsController.m:
2382         (-[SettingsController _populateMenu]):
2383         (-[SettingsController validateMenuItem:]):
2384         (-[SettingsController loadsAllSiteIcons]):
2385         (-[SettingsController toggleLoadsAllSiteIcons:]):
2386         * MiniBrowser/mac/WK2BrowserWindowController.m:
2387         (-[WK2BrowserWindowController awakeFromNib]):
2388         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]):
2389
2390 2016-11-17  Caitlin Potter  <caitp@igalia.com>
2391
2392         [JSC] remove leftover references to ES2017_ASYNCFUNCTION_SYNTAX flag
2393         https://bugs.webkit.org/show_bug.cgi?id=164879
2394
2395         Reviewed by Alex Christensen.
2396
2397         The flag was referenced in FeatureList.pm and in one of the
2398         FeatureDefines.xcconfig files, despite being removed.
2399
2400         * Scripts/webkitperl/FeatureList.pm:
2401         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2402
2403 2016-11-17  Per Arne Vollan  <pvollan@apple.com>
2404
2405         [Win] run-api-tests is failing.
2406         https://bugs.webkit.org/show_bug.cgi?id=164818
2407
2408         Reviewed by Alexey Proskuryakov.
2409
2410         Make sure Visual Studio interprets string literal as utf8.
2411  
2412         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2413         (TestWebKitAPI::TEST_F):
2414
2415 2016-11-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2416
2417         [JSC] WTF::TemporaryChange with WTF::SetForScope
2418         https://bugs.webkit.org/show_bug.cgi?id=164761
2419
2420         Reviewed by Saam Barati.
2421
2422         * TestWebKitAPI/CMakeLists.txt:
2423         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2424         * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp.
2425         (TestWebKitAPI::TEST):
2426         * WebKitTestRunner/TestController.cpp:
2427         (WTR::TestController::resetStateToConsistentValues):
2428
2429 2016-11-16  Alexey Proskuryakov  <ap@apple.com>
2430
2431         REGRESSION (r208455): LayoutTests swipe/pushState-cached-back-swipe.html and swipe/main-frame-pinning-requirement.html are failing
2432         https://bugs.webkit.org/show_bug.cgi?id=164572
2433
2434         Reviewed by Tim Horton.
2435
2436         * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues):
2437         Use the correct constant.
2438
2439 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2440
2441         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
2442         https://bugs.webkit.org/show_bug.cgi?id=164827
2443
2444         Reviewed by Ryosuke Niwa.
2445
2446         Enabled ES6 Modules in test runners.
2447
2448         * DumpRenderTree/mac/DumpRenderTree.mm:
2449         (resetWebPreferencesToConsistentValues):
2450         * DumpRenderTree/win/DumpRenderTree.cpp:
2451         (resetWebPreferencesToConsistentValues):
2452         * Scripts/webkitperl/FeatureList.pm:
2453         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2454         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2455         (WTR::InjectedBundle::beginTesting):
2456         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2457         (WTR::TestRunner::setES6ModulesEnabled):
2458         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2459
2460 2016-11-16  Simon Fraser  <simon.fraser@apple.com>
2461
2462         Hard to write reliable UIScriptController scrollingTreeAsText tests
2463         https://bugs.webkit.org/show_bug.cgi?id=164764
2464
2465         Reviewed by Wenson Hsieh.
2466
2467         Fix one cause of flakiness by resetting the WKWebView's UIScrollView scale
2468         and scroll position between tests.
2469
2470         * WebKitTestRunner/ios/TestControllerIOS.mm:
2471         (WTR::TestController::platformResetStateToConsistentValues):
2472
2473 2016-11-16  Simon Fraser  <simon.fraser@apple.com>
2474
2475         UIScriptController: script with no async tasks fails if an earlier script registered a callback
2476         https://bugs.webkit.org/show_bug.cgi?id=164762
2477
2478         Reviewed by Wenson Hsieh.
2479         
2480         Make TestRunner::callUIScriptCallback() async in DumpRenderTree to match WebKitTestRunner behavior.
2481         This fixes ui-side-script-with-callback.html in WK1, which failed because the second runUIScript()
2482         would occur inside the completion callback from the first. This no longer happens.
2483
2484         * DumpRenderTree/TestRunner.cpp:
2485         (TestRunner::callUIScriptCallback):
2486         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2487         (UIScriptContext::tryToCompleteUIScriptForCurrentParentCallback):
2488
2489 2016-11-16  Ryan Haddad  <ryanhaddad@apple.com>
2490
2491         Unreviewed, rolling out r208770.
2492
2493         The test added with this change is timing out on mac-wk1.
2494
2495         Reverted changeset:
2496
2497         "UIScriptController: script with no async tasks fails if an
2498         earlier script registered a callback"
2499         https://bugs.webkit.org/show_bug.cgi?id=164762
2500         http://trac.webkit.org/changeset/208770
2501
2502 2016-11-16  Per Arne Vollan  <pvollan@apple.com>
2503
2504         [Win] WebCore test is failing.
2505         https://bugs.webkit.org/show_bug.cgi?id=164772
2506
2507         Reviewed by Brent Fulgham.
2508
2509         The value of CGRectInfinite is not the same on Windows as on Mac.
2510
2511         * TestWebKitAPI/Tests/WebCore/FloatRect.cpp:
2512         (TestWebKitAPI::TEST):
2513
2514 2016-11-15  Alexey Proskuryakov  <ap@apple.com>
2515
2516         Update Youenn's e-mail addresses.
2517
2518         * Scripts/webkitpy/common/config/contributors.json:
2519
2520 2016-11-15  Simon Fraser  <simon.fraser@apple.com>
2521
2522         UIScriptController: script with no async tasks fails if an earlier script registered a callback
2523         https://bugs.webkit.org/show_bug.cgi?id=164762
2524
2525         Reviewed by Wenson Hsieh.
2526         
2527         UIScriptContext::runUIScript() considers a script to be "immediate" if that script doesn't
2528         queue any async tasks. However, if an earlier UI script registered a callback, UIScriptContext::runUIScript()
2529         would consider that an outstanding task.
2530         
2531         Fix by unregistering any callbacks associated with the current UI script when uiScriptComplete() is called.
2532
2533         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2534         (UIScriptContext::tryToCompleteUIScriptForCurrentParentCallback):
2535
2536 2016-11-15  Simon Fraser  <simon.fraser@apple.com>
2537
2538         UIScriptController: setting a callback to undefined should unregister it
2539         https://bugs.webkit.org/show_bug.cgi?id=164796
2540
2541         Reviewed by Dean Jackson.
2542         
2543         "Immediate" UI scripts (those that don't schedule any async tasks) should return
2544         immediately, without the need to call uiScriptComplete(). However, this is broken if
2545         an earlier UI script registered a callback (since no-one clears that callback after the
2546         first script completes).
2547
2548         Make possible the workaround of setting the callback to undefined, which previously did
2549         not clear the callback registration.
2550
2551         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
2552         (UIScriptContext::registerCallback):
2553         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
2554         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2555         (WTR::UIScriptController::platformClearAllCallbacks):
2556
2557 2016-11-14  Mark Lam  <mark.lam@apple.com>
2558
2559         Enhance run-jsc-stress-test script to allow optional test specific options to be added for all test run configurations.
2560         https://bugs.webkit.org/show_bug.cgi?id=164695
2561
2562         Reviewed by Keith Miller.
2563
2564         This gives us more flexibility when specific tests needs to enable special JSC
2565         options in order to exercise specific code paths to be tested.  It also saves us
2566         from having to create duplicate test run configurations e.g. runMiscFTLNoCJITTest.
2567         We can now just use runFTLNoCJIT in its place.
2568
2569         Also replaced the ifJSCArgIsntProvidedAreWeReleaseBuild variable with $buildType
2570         so that we have the ability to skip certain tests for release or debug builds.
2571         This will be needed in the upcoming patch for https://webkit.org/b/155145.
2572
2573         * Scripts/run-jsc-stress-tests:
2574
2575 2016-11-14  Joanmarie Diggs  <jdiggs@igalia.com>
2576
2577         AX: [ATK] Expose STATE_SINGLE_LINE and STATE_MULTI_LINE for ARIA searchbox role
2578         https://bugs.webkit.org/show_bug.cgi?id=164712
2579
2580         Reviewed by Chris Fleizach.
2581
2582         Add AccessibilityUIElement::isSingleLine, AccessibilityUIElement::isMultiLine
2583         to DRT and WKTR. Implement it for ATK.
2584
2585         * DumpRenderTree/AccessibilityUIElement.h:
2586         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2587         (AccessibilityUIElement::isSingleLine):
2588         (AccessibilityUIElement::isMultiLine):
2589         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2590         (AccessibilityUIElement::isSingleLine):
2591         (AccessibilityUIElement::isMultiLine):
2592         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2593         (AccessibilityUIElement::isSingleLine):
2594         (AccessibilityUIElement::isMultiLine):
2595         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2596         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2597         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
2598         (WTR::AccessibilityUIElement::isSingleLine):
2599         (WTR::AccessibilityUIElement::isMultiLine):
2600         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
2601         (WTR::AccessibilityUIElement::isSingleLine):
2602         (WTR::AccessibilityUIElement::isMultiLine):
2603         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2604         (WTR::AccessibilityUIElement::isSingleLine):
2605         (WTR::AccessibilityUIElement::isMultiLine):
2606
2607 2016-11-14  Youenn Fablet  <youenn@apple.com>
2608
2609         Support WPT templated tests
2610         https://bugs.webkit.org/show_bug.cgi?id=164707
2611
2612         Reviewed by Sam Weinig.
2613
2614         * Scripts/webkitpy/w3c/test_importer.py:
2615         (TestImporter.write_html_files_for_templated_js_tests): Generating empty HTML files for templated JS tests.
2616         (TestImporter.import_tests):
2617
2618 2016-11-13  JF Bastien  <jfbastien@apple.com>
2619
2620         Implement WTF::Expected
2621         https://bugs.webkit.org/show_bug.cgi?id=164526
2622
2623         Reviewed by Yusuke Suzuki.
2624
2625         std::expected isn't in C++17, and may be in C++20. It's a nice
2626         complement to std::any / std::optional because it's a type-tagged
2627         union which has a single expected result but could also contain an
2628         error.
2629
2630         This would be useful in the WebAssembly parser, for example.
2631
2632         Using this implementation will allow us to provide feedback to the
2633         standards committee and guide std::expected's design before it
2634         gets standardized. I've already sent a bunch of feedback to the
2635         author based on my experience implementing this.
2636
2637         This could supplement WTF::Either and WTF::ExceptionOr.
2638
2639         * TestWebKitAPI/CMakeLists.txt:
2640         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2641         * TestWebKitAPI/Tests/WTF/Expected.cpp: Added.
2642         (WTF::operator<<):
2643         (TestWebKitAPI::TEST):
2644         (TestWebKitAPI::foo::foo):
2645         (TestWebKitAPI::foo::~foo):
2646         (TestWebKitAPI::foo::operator==):
2647         (TestWebKitAPI::operator<<):
2648
2649 2016-11-12  Simon Fraser  <simon.fraser@apple.com>
2650
2651         Add a way to get the UI-side scrolling tree as text via UIScriptController
2652         https://bugs.webkit.org/show_bug.cgi?id=164697
2653
2654         Reviewed by Zalan Bujtas.
2655
2656         Add UIScriptController::scrollingTreeAsText(), which gets the state of the scrolling
2657         tree in the UI process, including the current positions of CALayers. This will be used
2658         to test UI-side scrolling and visual viewports.
2659
2660         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2661         (WTR::UIScriptController::scrollingTreeAsText):
2662         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2663         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2664         (WTR::UIScriptController::scrollingTreeAsText):
2665         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2666         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2667         (WTR::UIScriptController::scrollingTreeAsText):
2668
2669 2016-11-12  Wenson Hsieh  <wenson_hsieh@apple.com>
2670
2671         The main content heuristic should be robust when handling large media elements
2672         https://bugs.webkit.org/show_bug.cgi?id=164676
2673         <rdar://problem/29211503>
2674
2675         Reviewed by Eric Carlson.
2676
2677         Added a new test verifying that enormous video elements are handled gracefully when put through the main
2678         content heuristic.
2679
2680         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2681         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
2682         (TestWebKitAPI::TEST):
2683         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous-video-with-sound.html: Added.
2684
2685 2016-11-12  Dan Bernstein  <mitz@apple.com>
2686
2687         run-safari does not work for open source contributors
2688         https://bugs.webkit.org/show_bug.cgi?id=164667
2689         <rdar://problem/29229894>
2690
2691         Reviewed by Joseph Pecoraro.
2692
2693         * Scripts/run-api-tests:
2694         (archCommandLineArgumentsForRestrictedEnvironmentVariables): Moved from here…
2695         * Scripts/webkitdirs.pm:
2696         (archCommandLineArgumentsForRestrictedEnvironmentVariables): …to here
2697         (runMacWebKitApp): Have arch(1) carry the DYLD_* variables we set in our environmet over
2698           to the environment of the app being run.
2699
2700 2016-11-11  Joseph Pecoraro  <pecoraro@apple.com>
2701
2702         Removed unused INCLUDE_OPTIONS_FOR_DEBUGGING
2703         https://bugs.webkit.org/show_bug.cgi?id=164664
2704
2705         Reviewed by Dan Bernstein.
2706
2707         * Scripts/debug-minibrowser:
2708         * Scripts/debug-safari:
2709         * Scripts/debug-test-runner:
2710         * Scripts/webkitdirs.pm:
2711         (printHelpAndExitForRunAndDebugWebKitAppIfNeeded):
2712         There are no debug specific options anymore.
2713
2714 2016-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
2715
2716         [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
2717         https://bugs.webkit.org/show_bug.cgi?id=164538
2718         <rdar://problem/8418711>
2719
2720         Reviewed by Ryosuke Niwa.
2721
2722         Adds support for being able to test autocorrect and autocapitalize attributes in contenteditable areas. To do
2723         this, we add removeAllDynamicDictionaries to UIScriptController in order to ensure that autocorrect suggestions
2724         are reset to their defaults prior to running contenteditable-autocorrect-off.html.
2725
2726         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2727         (WTR::UIScriptController::removeAllDynamicDictionaries):
2728         * Scripts/webkitpy/port/ios.py:
2729         (IOSSimulatorPort._createSimulatorApp):
2730         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2731         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2732         (WTR::UIScriptController::removeAllDynamicDictionaries):
2733         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2734         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2735         (-[TestRunnerWKWebView _keyboardDidShow:]):
2736         (-[TestRunnerWKWebView _keyboardDidHide:]):
2737
2738         Work around an issue where consecutive UIKeyboardDidShowNotification would cause keyboard appearance callbacks
2739         to be fired multiple times. This was causing a single key press to cause two characters to be typed. While this
2740         does not affect the correctness of existing tests, the new autocorrection test requires this workaround.
2741
2742         * WebKitTestRunner/ios/UIKitSPI.h:
2743         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2744         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
2745         (WTR::UIScriptController::removeAllDynamicDictionaries):
2746
2747 2016-11-11  Alex Christensen  <achristensen@webkit.org>
2748
2749         Build all Mac API tests
2750         https://bugs.webkit.org/show_bug.cgi?id=164633
2751
2752         Reviewed by Gyuyoung Kim.
2753
2754         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2755         * TestWebKitAPI/Tests/mac/NavigatorLanguage.mm:
2756
2757 2016-11-11  Alex Christensen  <achristensen@webkit.org>
2758
2759         Allow mutable lambdas in HashMap::ensure
2760         https://bugs.webkit.org/show_bug.cgi?id=164642
2761
2762         Reviewed by Sam Weinig.
2763
2764         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
2765         (TestWebKitAPI::TEST):
2766
2767 2016-11-10  Wenson Hsieh  <wenson_hsieh@apple.com>
2768
2769         Composition state should be cleared when changing focus to a non-editable element
2770         https://bugs.webkit.org/show_bug.cgi?id=164595
2771         <rdar://problem/26412551>
2772
2773         Reviewed by Enrica Casucci.
2774
2775         Adds support for window.textInputController in DumpRenderTree on iOS. So far, only the methods needed for the
2776         new layout test (editing/focus-change-with-marked-text.html) are supported. These are insertText, setMarkedText,
2777         and markedRange.
2778
2779         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2780         * DumpRenderTree/TextInputController.h: Renamed from Tools/DumpRenderTree/mac/TextInputController.h.
2781
2782         Remove the PLATFORM(MAC) guard for defining the TextInputController. Also, move the TextInputController header
2783         out of the /mac platform directory.
2784
2785         * DumpRenderTree/ios/TextInputControllerIOS.m: Added.
2786         (+[TextInputController isSelectorExcludedFromWebScript:]):
2787         (+[TextInputController webScriptNameForSelector:]):
2788         (-[TextInputController initWithWebView:]):
2789         (-[TextInputController markedRange]):
2790         (-[TextInputController insertText:]):
2791         (-[TextInputController setMarkedText:selectedFrom:length:]):
2792
2793         Introduces TextInputControllerIOS.m, which contains an iOS implementation of TextInputController. Only a subset
2794         of the methods available on the Mac version will be available on iOS for now (see above).
2795
2796         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2797
2798         Remove the PLATFORM(MAC) guard for initializing the TextInputController and binding it to the window object.
2799
2800         (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]):
2801         * DumpRenderTree/mac/TextInputControllerMac.m: Renamed from Tools/DumpRenderTree/mac/TextInputController.m.
2802         (-[WebHTMLView interpretKeyEvents:]):
2803         (-[WebNSRange initWithNSRange:]):
2804         (-[WebNSRange location]):
2805         (-[WebNSRange length]):
2806         (+[WebNSRange isSelectorExcludedFromWebScript:]):
2807         (+[NSMutableAttributedString isSelectorExcludedFromWebScript:]):
2808         (+[NSMutableAttributedString webScriptNameForSelector:]):
2809         (-[NSMutableAttributedString getLength]):
2810         (-[NSMutableAttributedString ranges]):
2811         (-[NSMutableAttributedString attributeNamesAtIndex:]):
2812         (-[NSMutableAttributedString valueOfAttribute:atIndex:]):
2813         (-[NSMutableAttributedString addAttribute:value:]):
2814         (-[NSMutableAttributedString addAttribute:value:from:length:]):
2815         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:]):
2816         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:from:length:]):
2817         (-[NSMutableAttributedString addFontAttribute:fontName:size:]):
2818         (-[NSMutableAttributedString addFontAttribute:fontName:size:from:length:]):
2819         (+[TextInputController isSelectorExcludedFromWebScript:]):
2820         (+[TextInputController webScriptNameForSelector:]):
2821         (-[TextInputController initWithWebView:]):
2822         (-[TextInputController dealloc]):
2823         (-[TextInputController textInput]):
2824         (-[TextInputController insertText:]):
2825         (-[TextInputController doCommand:]):
2826         (-[TextInputController setMarkedText:selectedFrom:length:]):
2827         (-[TextInputController unmarkText]):
2828         (-[TextInputController hasMarkedText]):
2829         (-[TextInputController conversationIdentifier]):
2830         (-[TextInputController substringFrom:length:]):
2831         (-[TextInputController attributedSubstringFrom:length:]):
2832         (-[TextInputController legacyAttributedString:]):
2833         (-[TextInputController markedRange]):
2834         (-[TextInputController selectedRange]):
2835         (-[TextInputController firstRectForCharactersFrom:length:]):
2836         (-[TextInputController characterIndexForPointX:Y:]):
2837         (-[TextInputController validAttributesForMarkedText]):
2838         (-[TextInputController attributedStringWithString:]):
2839         (-[TextInputController stringWithUndoGroupingInsertion:]):
2840         (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]):
2841         (-[TextInputController setInputMethodHandler:]):
2842         (-[TextInputController interpretKeyEvents:withSender:]):
2843
2844         Fixes miscellaneous style issues.
2845
2846 2016-11-11  Philippe Normand  <pnormand@igalia.com>
2847
2848         [GTK][JHbuild] bump libnice version in openwebrtc.modules
2849         https://bugs.webkit.org/show_bug.cgi?id=164586
2850
2851         Reviewed by Michael Catanzaro.
2852
2853         Update to a recent libnice git snapshot and remove patches already
2854         upstream or not applying anymore. The patches not upstream yet
2855         will be reported in Phabricator.
2856
2857         * gtk/openwebrtc.modules:
2858         * gtk/patches/libnice-0001-agent-Remove-unnecessary-NULL-check.patch: Removed.
2859         * gtk/patches/libnice-0002-Do-not-update-a-remote-candidate-s-type.patch: Removed.
2860         * gtk/patches/libnice-0002-TURN-handle-437-Allocation-Mismatch-responses.patch: Removed.
2861         * gtk/patches/libnice-0003-Do-not-compare-scope-for-IPv6-address-when-scope-is-.patch: Removed.
2862         * gtk/patches/libnice-0004-Removing-no-op-assignment.patch: Removed.
2863
2864 2016-11-10  Alex Christensen  <achristensen@webkit.org>
2865
2866         Fix assertion after r208534.
2867         https://bugs.webkit.org/show_bug.cgi?id=160497
2868
2869         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2870         * TestWebKitAPI/Tests/mac/MemoryPressureHandler.mm: Added.
2871         (TestWebKitAPI::TEST):
2872         Add a regression test.
2873
2874 2016-11-10  Chris Dumez  <cdumez@apple.com>
2875
2876         REGRESSION (r208522): LayoutTest fast/loader/reload-zero-byte-plugin.html is a flaky failure
2877         https://bugs.webkit.org/show_bug.cgi?id=164570
2878
2879         Reviewed by Simon Fraser.
2880
2881         Properly reset TestController::m_shouldDownloadUndisplayableMIMETypes between tests to
2882         avoid flakiness.
2883
2884         * WebKitTestRunner/TestController.cpp:
2885         (WTR::TestController::resetStateToConsistentValues):
2886
2887 2016-11-10  Miguel Gomez  <magomez@igalia.com>
2888
2889         Unreviewed. Added myself to the list of committers.
2890
2891         * Scripts/webkitpy/common/config/contributors.json:
2892
2893 2016-10-27  Sergio Villar Senin  <svillar@igalia.com>
2894
2895         [GTK] New API to notify about dynamically added forms
2896         https://bugs.webkit.org/show_bug.cgi?id=164050
2897
2898         Reviewed by Carlos Garcia Campos.
2899
2900         Added a new test case to verify that dinamically added forms correctly trigger the
2901         "form-controls-associated" signal from WebPage.
2902
2903         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp:
2904         (didAssociateFormControlsCallback):
2905         (testWebExtensionFormControlsAssociated):
2906         (beforeAll):
2907         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2908         (DelayedSignal::DelayedSignal):
2909         (emitFormControlsAssociated):
2910         (formControlsAssociatedCallback):
2911         (pageCreatedCallback):
2912
2913 2016-11-09  Ryosuke Niwa  <rniwa@webkit.org>
2914
2915         WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
2916         https://bugs.webkit.org/show_bug.cgi?id=164501
2917         <rdar://problem/29152282>
2918
2919         Reviewed by Sam Weinig.
2920
2921         * DumpRenderTree/mac/TextInputController.m:
2922         (-[TextInputController legacyAttributedString:]):
2923
2924 2016-11-09  Chris Dumez  <cdumez@apple.com>
2925
2926         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
2927         https://bugs.webkit.org/show_bug.cgi?id=164458
2928         <rdar://problem/28905514>
2929
2930         Reviewed by Darin Adler.
2931
2932         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
2933         tests can request that such resources are downloaded instead of being ignored.
2934
2935         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2936         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2937         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
2938         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2939         * WebKitTestRunner/TestController.cpp:
2940         (WTR::TestController::decidePolicyForNavigationResponse):
2941         * WebKitTestRunner/TestController.h:
2942         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
2943         * WebKitTestRunner/TestInvocation.cpp:
2944         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2945
2946 2016-11-09  Carlos Garcia Campos  <cgarcia@igalia.com>
2947
2948         NetworkSession: Network process crash when converting main resource to download
2949         https://bugs.webkit.org/show_bug.cgi?id=164220
2950
2951         Reviewed by Alex Christensen.
2952
2953         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
2954         converted to a download and another one to test the cancellation as the test was doing before. When doing the
2955         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
2956         download.
2957
2958         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
2959         (testPolicyResponseDownload):
2960         (testPolicyResponseDownloadCancel):
2961         (beforeAll):
2962
2963 2016-11-09  KwangHyuk Kim  <hyuki.kim@samsung.com>
2964
2965         [EFL] fix error message caused by eina log
2966         https://bugs.webkit.org/show_bug.cgi?id=164546
2967
2968         Reviewed by Gyuyoung Kim.
2969
2970         Fix error message caused by eina log when MiniBrowser is working with help option.
2971
2972         * MiniBrowser/efl/main.c:
2973         (quit):
2974
2975 2016-11-09  Brent Fulgham  <bfulgham@apple.com>
2976
2977         Unreviewed build fix after r208509.
2978
2979         * DumpRenderTree/win/TestRunnerWin.cpp:
2980         (TestRunner::setNeedsStorageAccessFromFileURLsQuirk): Add missing TestRunner implementation."
2981
2982 2016-11-09  Alex Christensen  <achristensen@webkit.org>
2983
2984         Unreviewed, rolling out r208438.
2985
2986         crashes
2987
2988         Reverted changeset:
2989
2990         "[WK2][NETWORK_SESSION] Add support for downloading file
2991         backed blobs"
2992         https://bugs.webkit.org/show_bug.cgi?id=164458
2993         http://trac.webkit.org/changeset/208438
2994
2995 2016-11-04  Brent Fulgham  <bfulgham@apple.com>
2996
2997         Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
2998         https://bugs.webkit.org/show_bug.cgi?id=155185
2999         <rdar://problem/11101440>
3000
3001         Reviewed by Brady Eidson.
3002
3003         * DumpRenderTree/TestRunner.cpp:
3004         (setNeedsLocalStorageQuirkCallback): Added.
3005         (TestRunner::staticFunctions):
3006         * DumpRenderTree/TestRunner.h:
3007         * DumpRenderTree/mac/DumpRenderTree.mm:
3008         (resetWebPreferencesToConsistentValues): Update for new quirk setting.
3009         * DumpRenderTree/mac/TestRunnerMac.mm:
3010         (TestRunner::setNeedsLocalStorageQuirk):
3011         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3012         * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp:
3013         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
3014         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.mm:
3015         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkEnabled.html: Added.
3016         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkTest.mm: Added.
3017         (-[LocalStorageQuirkMessageHandler userContentController:didReceiveScriptMessage:]):
3018         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3019         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3020         (WTR::InjectedBundle::beginTesting): Update for new quirk setting.
3021         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3022         (WTR::TestRunner::setNeedsLocalStorageQuirk): Added.
3023         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3024
3025 2016-11-09  Alex Christensen  <achristensen@webkit.org>
3026
3027         URLParser should not consider path of URLs with no host to start at the first slash after the colon
3028         https://bugs.webkit.org/show_bug.cgi?id=164555
3029
3030         Reviewed by Tim Horton.
3031
3032         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3033         (TestWebKitAPI::TEST_F):
3034
3035 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
3036
3037         test-webkitpy failing test_create_patch_is_full_patch unit test
3038         https://bugs.webkit.org/show_bug.cgi?id=164385
3039
3040         Reviewed by Darin Adler.
3041
3042         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py: Fixed expected output to match output.
3043
3044 2016-11-09  Chris Dumez  <cdumez@apple.com>
3045
3046         [Mac] Stop using deprecated AppKit enumeration values
3047         https://bugs.webkit.org/show_bug.cgi?id=164494
3048
3049         Reviewed by Darin Adler.
3050
3051         Stop using deprecated AppKit enumeration values.
3052
3053         * DumpRenderTree/mac/EventSendingController.mm:
3054         (eventTypeForMouseButtonAndAction):
3055         (modifierFlags):
3056         (-[EventSendingController mouseMoveToX:Y:]):
3057         (-[EventSendingController contextClick]):
3058         (-[EventSendingController keyDown:withModifiers:withLocation:]):
3059         * DumpRenderTree/mac/TextInputController.m:
3060         (-[TextInputController interpretKeyEvents:withSender:]):
3061         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm:
3062         (simulateCommandArrow):
3063         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
3064         (TestWebKitAPI::TEST):
3065         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.mm:
3066         (TestWebKitAPI::TEST):
3067         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
3068         (TestWebKitAPI::TEST):
3069         * TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm:
3070         (TEST):
3071         * TestWebKitAPI/Tests/WebKit2Cocoa/UserInitiatedActionInNavigationAction.mm:
3072         (UserInitiatedActionTest::SetUp):
3073         (UserInitiatedActionTest::click):
3074         * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
3075         (TestWebKitAPI::AcceptsFirstMouse::runTest):
3076         * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm:
3077         (TestWebKitAPI::contextMenuCopyLink):
3078         (TestWebKitAPI::TEST):
3079         * TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm:
3080         (TestWebKitAPI::TEST):
3081         * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:
3082         (TestWebKitAPI::FullscreenZoomInitialFrame::runTest):
3083         * TestWebKitAPI/Tests/mac/MenuTypesForMouseEvents.mm:
3084         (TestWebKitAPI::TEST):
3085         * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
3086         (TestWebKitAPI::Util::isKeyDown):
3087         * TestWebKitAPI/mac/PlatformWebViewMac.mm:
3088         (TestWebKitAPI::PlatformWebView::initialize):
3089         (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress):
3090         (TestWebKitAPI::PlatformWebView::simulateRightClick):
3091         (TestWebKitAPI::PlatformWebView::simulateMouseMove):
3092         (TestWebKitAPI::eventTypeForButton):
3093         (TestWebKitAPI::modifierFlagsForWKModifiers):
3094         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
3095         (__simulated_forceClickAssociatedEventsMask):
3096         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
3097         (-[TestWKWebView _setUpTestWindow:]):
3098         (-[TestWKWebView typeCharacter:]):
3099         * WebKitTestRunner/mac/EventSenderProxy.mm:
3100         (WTR::eventTypeForMouseButtonAndAction):
3101         (WTR::buildModifierFlags):
3102         (WTR::EventSenderProxy::sendMouseDownToStartPressureEvents):
3103         (WTR::EventSenderProxy::mouseForceClick):
3104         (WTR::EventSenderProxy::startAndCancelMouseForceClick):
3105         (WTR::EventSenderProxy::mouseMoveTo):
3106         (WTR::EventSenderProxy::keyDown):
3107         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
3108         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
3109         (WTR::PlatformWebView::PlatformWebView):
3110         * WebKitTestRunner/mac/TestControllerMac.mm:
3111         (WTR::TestController::platformResetStateToConsistentValues):
3112
3113 2016-11-09  Beth Dakin  <bdakin@apple.com>
3114
3115         Support TouchBar in WebKit
3116         https://bugs.webkit.org/show_bug.cgi?id=164437
3117         -and corresponding-
3118         rdar://problem/28876524
3119
3120         Reviewed by Darin Adler.
3121
3122         This makes MiniBrowser support TouchBar customization. 
3123
3124         * MiniBrowser/mac/AppDelegate.m:
3125         (-[BrowserAppDelegate awakeFromNib]):
3126
3127 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3128
3129         [EFL] Use libgcrypt instead of GnuTLS for CryptoDigest
3130         https://bugs.webkit.org/show_bug.cgi?id=164461
3131
3132         Reviewed by Michael Catanzaro.
3133
3134         As GTK port in r208297, EFL port starts to use libgcrypt instead of GnuTLS as well.
3135
3136         * efl/install-dependencies: Add libgcript package dependecy.
3137
3138 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3139
3140         [EFL] Remove unused function in MiniBrowser
3141         https://bugs.webkit.org/show_bug.cgi?id=164398
3142
3143         Reviewed by Darin Adler.
3144
3145         * MiniBrowser/efl/main.c:
3146         (window_find_with_elm_window): Deleted because it is not used anywhere.
3147
3148 2016-11-09  Chris Dumez  <cdumez@apple.com>
3149
3150         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
3151         https://bugs.webkit.org/show_bug.cgi?id=164458
3152         <rdar://problem/28905514>
3153
3154         Reviewed by Darin Adler.
3155
3156         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
3157         tests can request that such resources are downloaded instead of being ignored.
3158
3159         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3160         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3161         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
3162         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3163         * WebKitTestRunner/TestController.cpp:
3164         (WTR::TestController::decidePolicyForNavigationResponse):
3165         * WebKitTestRunner/TestController.h:
3166         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
3167         * WebKitTestRunner/TestInvocation.cpp:
3168         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
3169
3170 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
3171
3172         Make rpaths more robust for iOS Simulators
3173         https://bugs.webkit.org/show_bug.cgi?id=164521
3174
3175         Reviewed by Simon Fraser.
3176
3177         * Scripts/webkitpy/port/ios.py:
3178         (IOSSimulatorPort._createSimulatorApp): Added more robust path.
3179
3180 2016-11-09  Csaba Osztrogonác  <ossy@webkit.org>
3181
3182         Fix Tools build on case sensitive file systems
3183         https://bugs.webkit.org/show_bug.cgi?id=164474
3184
3185         Unreviewed buildfix.
3186
3187         * DumpRenderTree/CMakeLists.txt:
3188         * DumpRenderTree/PlatformMac.cmake:
3189         * DumpRenderTree/PlatformWin.cmake:
3190         * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
3191         * MiniBrowser/mac/CMakeLists.txt:
3192
3193 2016-11-04  Filip Pizlo  <fpizlo@apple.com>
3194
3195         WTF::ParkingLot should stop using std::chrono because std::chrono::duration casts are prone to overflows
3196         https://bugs.webkit.org/show_bug.cgi?id=152045
3197
3198         Reviewed by Andy Estes.
3199
3200         * TestWebKitAPI/CMakeLists.txt:
3201         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3202         * TestWebKitAPI/Tests/WTF/Condition.cpp:
3203         (TestWebKitAPI::TEST):
3204         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
3205         (TestWebKitAPI::ToUpperConverter::stopProducing):
3206         (TestWebKitAPI::ToUpperConverter::stopConsuming):
3207         * TestWebKitAPI/Tests/WTF/Time.cpp: Added.
3208         (WTF::operator<<):
3209         (TestWebKitAPI::TEST):
3210
3211 2016-11-04  Alex Christensen  <achristensen@webkit.org>
3212
3213         Unreviewed, rolling out r208293.
3214
3215         asserts in API tests.
3216
3217         Reverted changeset:
3218
3219         "NetworkSession: Network process crash when converting main
3220         resource to download"
3221         https://bugs.webkit.org/show_bug.cgi?id=164220
3222         http://trac.webkit.org/changeset/208293
3223
3224 2016-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
3225
3226         Add a setting and preferences to enable/disable async image decoding
3227         https://bugs.webkit.org/show_bug.cgi?id=164417
3228
3229         Reviewed by Simon Fraser.
3230
3231         Pref and a menu item to toggle asyncImageDecodingEnabled for WebKits 1 and 2.
3232
3233         * MiniBrowser/mac/SettingsController.h:
3234         * MiniBrowser/mac/SettingsController.m:
3235         (-[SettingsController _populateMenu]):
3236         (-[SettingsController validateMenuItem:]):
3237         (-[SettingsController toggleAsyncImageDecodingEnabled:]):
3238         (-[SettingsController asyncImageDecodingEnabled]):
3239         * MiniBrowser/mac/WK1BrowserWindowController.m:
3240         (-[WK1BrowserWindowController didChangeSettings]):
3241         * MiniBrowser/mac/WK2BrowserWindowController.m:
3242         (-[WK2BrowserWindowController didChangeSettings]):
3243
3244 2016-11-04  Brady Eidson  <beidson@apple.com>
3245
3246         REGRESSION (r208349) StringHasher::hashMemory behavior changed, causing API tests to fail
3247         https://bugs.webkit.org/show_bug.cgi?id=164390
3248
3249         Reviewed by Geoffrey Garen.
3250
3251         Operating under the assumption that the behavior change is okay/desirable, this updates the test.
3252
3253         * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
3254         (TestWebKitAPI::TEST):
3255
3256 2016-11-04  Joanmarie Diggs  <jdiggs@igalia.com>
3257
3258         AX: [ATK] Attempting to clear selection on ARIA listboxes results in crash
3259         https://bugs.webkit.org/show_bug.cgi?id=164331
3260
3261         Reviewed by Chris Fleizach.
3262
3263         Add AccessibilityUIElement::clearSelectedChildren() to DRT and WKTR.
3264         Implement it for ATK.
3265
3266         * DumpRenderTree/AccessibilityUIElement.h:
3267         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3268         (AccessibilityUIElement::clearSelectedChildren):
3269         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3270         (AccessibilityUIElement::clearSelectedChildren):
3271         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
3272         (AccessibilityUIElement::clearSelectedChildren):
3273         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3274         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
3275         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3276         (WTR::AccessibilityUIElement::clearSelectedChildren):
3277         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3278         (WTR::AccessibilityUIElement::clearSelectedChildren):
3279         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
3280         (WTR::AccessibilityUIElement::clearSelectedChildren):
3281
3282 2016-11-04  Per Arne Vollan  <pvollan@apple.com>
3283
3284         [Win] Page visibility tests are timing out.
3285         https://bugs.webkit.org/show_bug.cgi?id=164363
3286
3287         Reviewed by Brent Fulgham.
3288
3289         Implement methods to set page visibility.
3290
3291         * DumpRenderTree/win/TestRunnerWin.cpp:
3292         (TestRunner::resetPageVisibility):
3293         (TestRunner::setPageVisibility):
3294
3295 2016-11-03  Simon Fraser  <simon.fraser@apple.com>
3296
3297         Give all the geometry classes a single-argument scale() function for consistency
3298         https://bugs.webkit.org/show_bug.cgi?id=164400
3299
3300         Reviewed by Zalan Bujtas.
3301         
3302         Test single-argument scale().
3303
3304         * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp:
3305         (TestWebKitAPI::TEST):
3306
3307 2016-11-03  Chris Dumez  <cdumez@apple.com>
3308
3309         [WK2][Cocoa] Implement user interface for HTML form validation
3310         https://bugs.webkit.org/show_bug.cgi?id=164143
3311         <rdar://problem/28944652>
3312
3313         Reviewed by Simon Fraser.
3314
3315         Add support for UIScriptController::contentsOfUserInterfaceItem("validationBubble")
3316         on both Mac and iOS to retrieve the currently displayed validation message.
3317
3318         * DumpRenderTree/mac/UIScriptControllerMac.mm:
3319         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3320         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3321         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3322         (WTR::UIScriptController::selectFormAccessoryPickerRow):
3323         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
3324         (WTR::UIScriptController::contentsOfUserInterfaceItem):
3325
3326 2016-11-03  Konstantin Tokarev  <annulen@yandex.ru>
3327
3328         Fixes to build JSCOnly on macOS
3329         https://bugs.webkit.org/show_bug.cgi?id=164379
3330
3331         Reviewed by Michael Catanzaro.
3332
3333         * TestWebKitAPI/PlatformJSCOnly.cmake: Moved BUILDING_JSCONLY__
3334         definition to OptionsJSCOnly.cmake
3335
3336 2016-11-03  Dan Bernstein  <mitz@apple.com>
3337
3338         WKWebView’s _observedRenderingProgressEvents not restored after web process crash
3339         https://bugs.webkit.org/show_bug.cgi?id=164368
3340         <rdar://problem/29091954>
3341
3342         Reviewed by Anders Carlsson.
3343
3344         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3345         * TestWebKitAPI/Tests/WebKit2Cocoa/ObservedRenderingProgressEventsAfterCrash.mm: Added.
3346         (TEST):
3347
3348 2016-11-03  Alex Christensen  <achristensen@webkit.org>
3349
3350         Purge PassRefPtr from Tools
3351         https://bugs.webkit.org/show_bug.cgi?id=164358
3352
3353         Reviewed by Michael Catanzaro.
3354
3355         * ImageDiff/efl/ImageDiff.cpp:
3356         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp:
3357         * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
3358         (WTR::AccessibilityController::create):
3359         (WTR::AccessibilityController::rootElement):
3360         (WTR::AccessibilityController::focusedElement):
3361         (WTR::AccessibilityController::elementAtPoint):
3362         (WTR::AccessibilityController::addNotificationListener): Deleted.
3363         (WTR::AccessibilityController::removeNotificationListener): Deleted.
3364         (WTR::AccessibilityController::accessibleElementById): Deleted.
3365         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3366         (WTR::AccessibilityController::resetToConsistentState): Deleted.
3367         (WTR::AccessibilityController::platformName): Deleted.
3368         * WebKitTestRunner/InjectedBundle/AccessibilityController.h:
3369         (WTR::AccessibilityController::logAccessibilityEvents):
3370         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.cpp:
3371         (WTR::AccessibilityTextMarker::create):
3372         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.h:
3373         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.cpp:
3374         (WTR::AccessibilityTextMarkerRange::create):
3375         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h:
3376         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
3377         (WTR::AccessibilityUIElement::create):
3378         (WTR::AccessibilityUIElement::linkedElement):
3379         (WTR::AccessibilityUIElement::headerElementAtIndex):
3380         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
3381         (WTR::AccessibilityUIElement::characterAtOffset):
3382         (WTR::AccessibilityUIElement::wordAtOffset):
3383         (WTR::AccessibilityUIElement::lineAtOffset):
3384         (WTR::AccessibilityUIElement::sentenceAtOffset):
3385         (WTR::AccessibilityUIElement::selectedTextMarkerRange):
3386         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
3387         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
3388         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
3389         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
3390         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
3391         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
3392         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
3393         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
3394         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
3395         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
3396         (WTR::AccessibilityUIElement::AccessibilityUIElement): Deleted.
3397         (WTR::AccessibilityUIElement::~AccessibilityUIElement): Deleted.
3398         (WTR::AccessibilityUIElement::isEqual): Deleted.
3399         (WTR::AccessibilityUIElement::elementAtPoint): Deleted.
3400         (WTR::AccessibilityUIElement::childAtIndex): Deleted.
3401         (WTR::AccessibilityUIElement::indexOfChild): Deleted.
3402         (WTR::AccessibilityUIElement::childrenCount): Deleted.
3403         (WTR::AccessibilityUIElement::titleUIElement): Deleted.
3404         (WTR::AccessibilityUIElement::parentElement): Deleted.
3405         (WTR::AccessibilityUIElement::takeFocus): Deleted.
3406         (WTR::AccessibilityUIElement::takeSelection): Deleted.
3407         (WTR::AccessibilityUIElement::addSelection): Deleted.
3408         (WTR::AccessibilityUIElement::removeSelection): Deleted.
3409         (WTR::AccessibilityUIElement::allAttributes): Deleted.
3410         (WTR::AccessibilityUIElement::attributesOfLinkedUIElements): Deleted.
3411         (WTR::AccessibilityUIElement::linkedUIElementAtIndex): Deleted.
3412         (WTR::AccessibilityUIElement::attributesOfDocumentLinks): Deleted.
3413         (WTR::AccessibilityUIElement::attributesOfChildren): Deleted.
3414         (WTR::AccessibilityUIElement::parameterizedAttributeNames): Deleted.
3415         (WTR::AccessibilityUIElement::increment): Deleted.
3416         (WTR::AccessibilityUIElement::decrement): Deleted.
3417         (WTR::AccessibilityUIElement::showMenu): Deleted.
3418         (WTR::AccessibilityUIElement::press): Deleted.
3419         (WTR::AccessibilityUIElement::stringAttributeValue): Deleted.
3420         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue): Deleted.
3421         (WTR::AccessibilityUIElement::uiElementAttributeValue): Deleted.
3422         (WTR::AccessibilityUIElement::numberAttributeValue): Deleted.
3423         (WTR::AccessibilityUIElement::boolAttributeValue): Deleted.
3424         (WTR::AccessibilityUIElement::isAttributeSupported): Deleted.
3425         (WTR::AccessibilityUIElement::isAttributeSettable): Deleted.
3426         (WTR::AccessibilityUIElement::isPressActionSupported): Deleted.
3427         (WTR::AccessibilityUIElement::isIncrementActionSupported): Deleted.
3428         (WTR::AccessibilityUIElement::isDecrementActionSupported): Deleted.
3429         (WTR::AccessibilityUIElement::role): Deleted.
3430         (WTR::AccessibilityUIElement::subrole): Deleted.
3431         (WTR::AccessibilityUIElement::roleDescription): Deleted.
3432         (WTR::AccessibilityUIElement::computedRoleString): Deleted.
3433         (WTR::AccessibilityUIElement::title): Deleted.
3434         (WTR::AccessibilityUIElement::description): Deleted.
3435         (WTR::AccessibilityUIElement::language): Deleted.
3436         (WTR::AccessibilityUIElement::stringValue): Deleted.
3437         (WTR::AccessibilityUIElement::accessibilityValue): Deleted.
3438         (WTR::AccessibilityUIElement::helpText): Deleted.
3439         (WTR::AccessibilityUIElement::orientation): Deleted.
3440         (WTR::AccessibilityUIElement::x): Deleted.
3441         (WTR::AccessibilityUIElement::y): Deleted.
3442         (WTR::AccessibilityUIElement::width): Deleted.
3443         (WTR::AccessibilityUIElement::height): Deleted.
3444         (WTR::AccessibilityUIElement::intValue): Deleted.
3445         (WTR::AccessibilityUIElement::minValue): Deleted.
3446         (WTR::AccessibilityUIElement::maxValue): Deleted.
3447         (WTR::AccessibilityUIElement::valueDescription): Deleted.
3448         (WTR::AccessibilityUIElement::insertionPointLineNumber): Deleted.
3449         (WTR::AccessibilityUIElement::selectedTextRange): Deleted.
3450         (WTR::AccessibilityUIElement::isEnabled): Deleted.
3451         (WTR::AccessibilityUIElement::isRequired): Deleted.
3452         (WTR::AccessibilityUIElement::isFocused): Deleted.
3453         (WTR::AccessibilityUIElement::isFocusable): Deleted.
3454         (WTR::AccessibilityUIElement::isSelected): Deleted.
3455         (WTR::AccessibilityUIElement::isSelectedOptionActive): Deleted.
3456         (WTR::AccessibilityUIElement::isSelectable): Deleted.
3457         (WTR::AccessibilityUIElement::isMultiSelectable): Deleted.
3458         (WTR::AccessibilityUIElement::setSelectedChild): Deleted.
3459         (WTR::AccessibilityUIElement::setSelectedChildAtIndex): Deleted.
3460         (WTR::AccessibilityUIElement::removeSelectionAtIndex): Deleted.
3461         (WTR::AccessibilityUIElement::selectedChildrenCount): Deleted.
3462         (WTR::AccessibilityUIElement::selectedChildAtIndex): Deleted.
3463         (WTR::AccessibilityUIElement::isExpanded): Deleted.
3464         (WTR::AccessibilityUIElement::isChecked): Deleted.
3465         (WTR::AccessibilityUIElement::isIndeterminate): Deleted.
3466         (WTR::AccessibilityUIElement::isVisible): Deleted.
3467         (WTR::AccessibilityUIElement::isOffScreen): Deleted.
3468         (WTR::AccessibilityUIElement::isCollapsed): Deleted.
3469         (WTR::AccessibilityUIElement::isIgnored): Deleted.
3470         (WTR::AccessibilityUIElement::hasPopup): Deleted.
3471         (WTR::AccessibilityUIElement::hierarchicalLevel): Deleted.
3472         (WTR::AccessibilityUIElement::clickPointX): Deleted.
3473         (WTR::AccessibilityUIElement::clickPointY): Deleted.
3474         (WTR::AccessibilityUIElement::documentEncoding): Deleted.
3475         (WTR::AccessibilityUIElement::documentURI): Deleted.
3476         (WTR::AccessibilityUIElement::url): Deleted.
3477         (WTR::AccessibilityUIElement::speak): Deleted.
3478         (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Deleted.
3479         (WTR::AccessibilityUIElement::attributesOfRowHeaders): Deleted.
3480         (WTR::AccessibilityUIElement::attributesOfColumns): Deleted.
3481         (WTR::AccessibilityUIElement::attributesOfRows): Deleted.
3482         (WTR::AccessibilityUIElement::attributesOfVisibleCells): Deleted.
3483         (WTR::AccessibilityUIElement::attributesOfHeader): Deleted.
3484         (WTR::AccessibilityUIElement::indexInTable): Deleted.
3485         (WTR::AccessibilityUIElement::rowIndexRange): Deleted.
3486         (WTR::AccessibilityUIElement::columnIndexRange): Deleted.
3487         (WTR::AccessibilityUIElement::rowCount): Deleted.
3488         (WTR::AccessibilityUIElement::columnCount): Deleted.
3489         (WTR::AccessibilityUIElement::rowHeaders): Deleted.
3490         (WTR::AccessibilityUIElement::columnHeaders): Deleted.
3491         (WTR::AccessibilityUIElement::selectedRowAtIndex): Deleted.
3492         (WTR::AccessibilityUIElement::disclosedByRow): Deleted.
3493         (WTR::AccessibilityUIElement::disclosedRowAtIndex): Deleted.
3494         (WTR::AccessibilityUIElement::rowAtIndex): Deleted.
3495         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): Deleted.
3496         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex): Deleted.
3497         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex): Deleted.
3498         (WTR::AccessibilityUIElement::ariaIsGrabbed): Deleted.
3499         (WTR::AccessibilityUIElement::ariaDropEffects): Deleted.
3500         (WTR::AccessibilityUIElement::classList): Deleted.
3501         (WTR::AccessibilityUIElement::lineForIndex): Deleted.
3502         (WTR::AccessibilityUIElement::rangeForLine): Deleted.
3503         (WTR::AccessibilityUIElement::rangeForPosition): Deleted.
3504         (WTR::AccessibilityUIElement::boundsForRange): Deleted.
3505         (WTR::AccessibilityUIElement::setSelectedTextRange): Deleted.
3506         (WTR::AccessibilityUIElement::setSelectedVisibleTextRange): Deleted.
3507         (WTR::AccessibilityUIElement::stringForRange): Deleted.
3508         (WTR::AccessibilityUIElement::attributedStringForRange): Deleted.
3509         (WTR::AccessibilityUIElement::attributedStringRangeIsMisspelled): Deleted.
3510         (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate): Deleted.
3511         (WTR::AccessibilityUIElement::uiElementForSearchPredicate): Deleted.
3512         (WTR::AccessibilityUIElement::selectTextWithCriteria): Deleted.
3513         (WTR::AccessibilityUIElement::cellForColumnAndRow): Deleted.
3514         (WTR::AccessibilityUIElement::horizontalScrollbar): Deleted.
3515         (WTR::AccessibilityUIElement::verticalScrollbar): Deleted.
3516         (WTR::AccessibilityUIElement::addNotificationListener): Deleted.
3517         (WTR::AccessibilityUIElement::removeNotificationListener): Deleted.
3518         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Deleted.
3519         (WTR::AccessibilityUIElement::textMarkerRangeForElement): Deleted.
3520         (WTR::AccessibilityUIElement::textMarkerRangeLength): Deleted.
3521         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Deleted.
3522         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange): Deleted.
3523         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange): Deleted.
3524         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker): Deleted.
3525         (WTR::AccessibilityUIElement::endTextMarkerForBounds): Deleted.
3526         (WTR::AccessibilityUIElement::startTextMarkerForBounds): Deleted.
3527         (WTR::AccessibilityUIElement::textMarkerForPoint): Deleted.
3528         (WTR::AccessibilityUIElement::previousTextMarker): Deleted.
3529         (WTR::AccessibilityUIElement::nextTextMarker): Deleted.
3530         (WTR::AccessibilityUIElement::startTextMarker): Deleted.
3531         (WTR::AccessibilityUIElement::endTextMarker): Deleted.
3532         (WTR::AccessibilityUIElement::stringForTextMarkerRange): Deleted.
3533         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute): Deleted.
3534         (WTR::AccessibilityUIElement::indexForTextMarker): Deleted.
3535         (WTR::AccessibilityUIElement::isTextMarkerValid): Deleted.
3536         (WTR::AccessibilityUIElement::textMarkerForIndex): Deleted.
3537         (WTR::AccessibilityUIElement::scrollToMakeVisible): Deleted.
3538         (WTR::AccessibilityUIElement::scrollToGlobalPoint): Deleted.
3539         (WTR::AccessibilityUIElement::scrollToMakeVisibleWithSubFocus): Deleted.
3540         (WTR::AccessibilityUIElement::supportedActions): Deleted.
3541         (WTR::AccessibilityUIElement::mathPostscriptsDescription): Deleted.
3542         (WTR::AccessibilityUIElement::mathPrescriptsDescription): Deleted.
3543         (WTR::AccessibilityUIElement::pathDescription): Deleted.
3544         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3545         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3546         (WTR::EventSendingController::create):
3547         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
3548         * WebKitTestRunner/InjectedBundle/GCController.cpp:
3549         (WTR::GCController::create):
3550         * WebKitTestRunner/InjectedBundle/GCController.h:
3551         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3552         (WTR::InjectedBundle::beginTesting):
3553         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
3554         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3555         (WTR::TestRunner::create):
3556         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3557         * WebKitTestRunner/InjectedBundle/TextInputController.cpp:
3558         (WTR::TextInputController::create):
3559         * WebKitTestRunner/InjectedBundle/TextInputController.h:
3560         * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
3561         (WTR::AccessibilityController::accessibleElementById):
3562         (WTR::AccessibilityController::rootElement):
3563         (WTR::AccessibilityController::focusedElement):
3564         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
3565         * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.h:
3566         (WTR::AccessibilityNotificationHandler::create):
3567         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
3568         (WTR::AccessibilityUIElement::elementAtPoint):
3569         (WTR::AccessibilityUIElement::childAtIndex):
3570         (WTR::accessibilityElementAtIndex):
3571         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
3572         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
3573         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
3574         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
3575         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
3576         (WTR::AccessibilityUIElement::rowAtIndex):
3577         (WTR::AccessibilityUIElement::selectedChildAtIndex):
3578         (WTR::AccessibilityUIElement::selectedRowAtIndex):
3579         (WTR::AccessibilityUIElement::titleUIElement):
3580         (WTR::AccessibilityUIElement::parentElement):
3581         (WTR::AccessibilityUIElement::disclosedByRow):
3582         (WTR::AccessibilityUIElement::uiElementAttributeValue):
3583         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
3584         (WTR::AccessibilityUIElement::cellForColumnAndRow):
3585         (WTR::AccessibilityUIElement::horizontalScrollbar):
3586         (WTR::AccessibilityUIElement::verticalScrollbar):
3587         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
3588         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
3589         (WTR::AccessibilityUIElement::previousTextMarker):
3590         (WTR::AccessibilityUIElement::nextTextMarker):