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