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