Revert r211991
[WebKit-https.git] / Tools / ChangeLog
1 2017-02-09  Alex Christensen  <achristensen@webkit.org>
2
3         Revert r211991
4         https://bugs.webkit.org/show_bug.cgi?id=168062
5
6         * Scripts/build-webkit:
7         Not quite ready yet.
8
9 2017-02-09  Alex Christensen  <achristensen@webkit.org>
10
11         Build libwebrtc on bots without using it yet
12         https://bugs.webkit.org/show_bug.cgi?id=168062
13
14         Reviewed by Brent Fulgham.
15
16         * Scripts/build-webkit:
17         Build libwebrtc on Mac when we build ANGLE.
18
19 2017-02-09  Youenn Fablet  <youenn@apple.com>
20
21         Improve W3C importer command line options
22         https://bugs.webkit.org/show_bug.cgi?id=167448
23
24         Reviewed by Ryosuke Niwa.
25
26         Making the list of test paths to import the main arguments of the script.
27         Allow passing the source directory to import as a -s option.
28         Adding a warning when given test paths are skipped by default in ImportExpectations.
29
30         Making link conversion off by default when importing from a specific directory since this script is mostly used with web-platform-tests.
31         Link conversion rules do not change when imported tests are downloaded by the script.
32
33         * Scripts/webkitpy/w3c/test_importer.py:
34         (main):
35         (parse_args):
36         (TestImporter.__init__):
37         (TestImporter.do_import):
38         (TestImporter):
39         (TestImporter.check_imported_expectations):
40
41 2017-02-08  Chris Dumez  <cdumez@apple.com>
42
43         Update web-platform-tests resources
44         https://bugs.webkit.org/show_bug.cgi?id=168026
45
46         Reviewed by Youenn Fablet.
47
48         Stop copying testharness.js from resources/ to web-platform-tests/resources.
49
50         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
51         (WebPlatformTestServer._copy_webkit_test_files):
52
53 2017-02-08  Andy Estes  <aestes@apple.com>
54
55         Custom protocols should not continue loading after a network process crash
56         https://bugs.webkit.org/show_bug.cgi?id=168028
57         <rdar://problem/27607520>
58
59         Reviewed by Brady Eidson.
60
61         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
62         (processGroup):
63         (-[CloseWhileStartingProtocol startLoading]):
64         (-[CloseWhileStartingProtocol stopLoading]):
65         (TestWebKitAPI::runTest):
66         (TestWebKitAPI::TEST):
67
68 2017-02-08  Dan Bernstein  <mitz@apple.com>
69
70         [Cocoa] WKRemoteObjectCoder doesn’t handle CGSize
71         https://bugs.webkit.org/show_bug.cgi?id=168031
72
73         Reviewed by Tim Horton.
74
75         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.h:
76         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistry.mm:
77         (TEST):
78         * TestWebKitAPI/Tests/WebKit2Cocoa/RemoteObjectRegistryPlugIn.mm:
79         (-[RemoteObjectRegistryPlugIn takeSize:completionHandler:]):
80
81 2017-02-08  Chris Dumez  <cdumez@apple.com>
82
83         Use smaller tiles in windows that are not active to facilitate App Napping
84         https://bugs.webkit.org/show_bug.cgi?id=167997
85         <rdar://problem/30358835>
86
87         Reviewed by Simon Fraser.
88
89         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
90         (WTR::PlatformWebView::setWindowIsKey):
91         Actually update windowIsKey state of NSWindow so the WebView
92         properly updates its activity state.
93
94 2017-02-08  Wenson Hsieh  <wenson_hsieh@apple.com>
95
96         Add kUTTypeUTF8PlainText and kUTTypeJPEG to the list of compatible content types in DragData
97         https://bugs.webkit.org/show_bug.cgi?id=167942
98         <rdar://problem/30315079>
99
100         Reviewed by Tim Horton.
101
102         Adds a new test case that simulates dragging from a source that only vends JPEG images or UTF8 plaintext into a
103         contenteditable area. An image element and the plain text content, respectively, should be inserted into the
104         contenteditable in these cases.
105
106         The DragSource and DragInfo are used to mock dragging into the WebView. There is no reliance on using mouse
107         events in this test, since we call the dragging delegate methods (draggingEntered:, draggingUpdated:, and
108         performDragOperation:) directly.
109
110         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
111         * TestWebKitAPI/Tests/mac/DragAndDropPasteboardTests.mm: Added.
112         (+[FrameLoadCompletionListener listenerWithCompletionBlock:]):
113         (-[FrameLoadCompletionListener initWithCompletionBlock:]):
114         (-[FrameLoadCompletionListener webView:didFinishLoadForFrame:]):
115         (-[DragSource draggingSourceOperationMaskForLocal:]):
116         (-[DragInfo initWithImage:offset:pasteboard:source:destinationWindow:]):
117         (-[DragInfo lastMousePosition]):
118         (-[DragInfo setLastMousePosition:]):
119         (-[DragInfo draggingDestinationWindow]):
120         (-[DragInfo draggingSourceOperationMask]):
121         (-[DragInfo draggingLocation]):
122         (-[DragInfo draggedImageLocation]):
123         (-[DragInfo draggedImage]):
124         (-[DragInfo draggingPasteboard]):
125         (-[DragInfo draggingSource]):
126         (-[DragInfo draggingSequenceNumber]):
127         (-[DragInfo slideDraggedImageTo:]):
128         (-[DragInfo namesOfPromisedFilesDroppedAtDestination:]):
129         (-[DragInfo draggingFormation]):
130         (-[DragInfo setDraggingFormation:]):
131         (-[DragInfo animatesToDestination]):
132         (-[DragInfo setAnimatesToDestination:]):
133         (-[DragInfo numberOfValidItemsForDrop]):
134         (-[DragInfo setNumberOfValidItemsForDrop:]):
135         (-[DragInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]):
136         (-[DragInfo springLoadingHighlight]):
137         (-[DragInfo resetSpringLoading]):
138         (TestWebKitAPI::getTestImage):
139         (TestWebKitAPI::webViewAfterPerformingDragOperation):
140         (TestWebKitAPI::TEST):
141         * TestWebKitAPI/Tests/mac/full-page-contenteditable.html: Added.
142
143 2017-02-08  Jer Noble  <jer.noble@apple.com>
144
145         Move FullscreenClient creation into WebViewImpl, for use in (deprecated) WKView.
146         https://bugs.webkit.org/show_bug.cgi?id=168007
147
148         Reviewed by Alex Christensen.
149
150         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
151         (didFinishLoadForFrame):
152         (TestWebKitAPI::TEST):
153
154 2017-02-08  Commit Queue  <commit-queue@webkit.org>
155
156         Unreviewed, rolling out r211873.
157         https://bugs.webkit.org/show_bug.cgi?id=168001
158
159         It's in jhbuild for consistent layout tests (Requested by
160         mcatanzaro on #webkit).
161
162         Reverted changeset:
163
164         "[GTK] Add icu packages to Tools/gtk/install-dependencies"
165         https://bugs.webkit.org/show_bug.cgi?id=167993
166         http://trac.webkit.org/changeset/211873
167
168 2017-02-08  Adrian Perez de Castro  <aperez@igalia.com>
169
170         [GTK] Add icu packages to Tools/gtk/install-dependencies
171         https://bugs.webkit.org/show_bug.cgi?id=167993
172
173         Reviewed by Michael Catanzaro.
174
175         * gtk/install-dependencies: Add "icu" to the list of required packages (or "icu-dev", or "icu-devel"
176         depending in the GNU/Linux distribution)
177
178 2017-02-07  Ryan Haddad  <ryanhaddad@apple.com>
179
180         Update flakiness dashboard configuration.
181         https://bugs.webkit.org/show_bug.cgi?id=167957
182
183         Reviewed by Alexey Proskuryakov.
184
185         * TestResultServer/static-dashboards/builders.jsonp:
186
187 2017-02-07  Ryan Haddad  <ryanhaddad@apple.com>
188
189         Replace a bot that has an incorrect configuration.
190         https://bugs.webkit.org/show_bug.cgi?id=167747
191
192         Rubber-stamped by Alexey Proskuryakov.
193
194         * BuildSlaveSupport/build.webkit.org-config/config.json:
195
196 2017-02-07  Myles C. Maxfield  <mmaxfield@apple.com>
197
198         [Win] [GTK] [EFL] Compile (but don't use, yet) the platform-independent piece of ComplexTextController
199         https://bugs.webkit.org/show_bug.cgi?id=167927
200
201         Reviewed by Brent Fulgham.
202
203         Enable ComplexTextController API tests on the Win and GTK ports.
204
205         * TestWebKitAPI/PlatformGTK.cmake:
206         * TestWebKitAPI/PlatformWin.cmake:
207
208 2017-02-07  Jonathan Bedard  <jbedard@apple.com>
209
210         File index appended to previous file in svn-create-patch with SVN 1.9
211         https://bugs.webkit.org/show_bug.cgi?id=167903
212         <rdar://problem/30387395>
213
214         Reviewed by Daniel Bates.
215
216         * Scripts/VCSUtils.pm:
217         (fixSVNPatchForAdditionWithHistory): Append a trailing newline character.
218         * Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl: Do not remove
219         trailing newline character from the expected result before comparing it to the actual result.
220
221 2017-02-07  Olivier Blin  <olivier.blin@softathome.com>
222
223         [webkitdirs] remove unused host_processor variable in determineArchitecture()
224         https://bugs.webkit.org/show_bug.cgi?id=167936
225
226         Reviewed by Michael Catanzaro.
227
228         * Scripts/webkitdirs.pm:
229         (determineArchitecture):
230         The host_processor variable in webkitdirs.pm's determineArchitecture() is not used anymore,
231         since r195083.
232
233 2017-02-07  Youenn Fablet  <youenn@apple.com>
234
235         Use a JSON file to define which WPT files/folders to import
236         https://bugs.webkit.org/show_bug.cgi?id=167923
237
238         Reviewed by Alex Christensen.
239
240         * Scripts/webkitpy/w3c/test_downloader.py:
241         (TestDownloader.__init__):
242         (TestDownloader._init_paths_from_expectations):
243         * Scripts/webkitpy/w3c/test_importer.py:
244         (parse_args):
245         * Scripts/webkitpy/w3c/test_importer_unittest.py:
246
247 2017-02-06  Fujii Hironori  <Hironori.Fujii@sony.com>
248
249         [GTK] jhbuild fails: mesa-11.0.6.tar.xz: 404 Not Found
250         https://bugs.webkit.org/show_bug.cgi?id=167916
251
252         Reviewed by Carlos Garcia Campos.
253
254         URL of mesa-11.0.6.tar.xz has been moved.
255
256         * gtk/jhbuild.modules: Fix the module path.
257
258 2017-02-06  Joseph Pecoraro  <pecoraro@apple.com>
259
260         Static Analyzer: Address some leaks in MiniBrowser
261         https://bugs.webkit.org/show_bug.cgi?id=167897
262
263         Reviewed by Alexey Proskuryakov.
264
265         * MiniBrowser/mac/BrowserWindowController.m:
266         (-[BrowserWindowController sharingService:transitionImageForShareItem:contentRect:]):
267         * MiniBrowser/mac/ExtensionManagerWindowController.m:
268         (-[ExtensionManagerWindowController add:]):
269         (-[ExtensionManagerWindowController remove:]):
270         * MiniBrowser/mac/SettingsController.m:
271         (-[SettingsController _populateMenu]):
272         (-[SettingsController togglePerWindowWebProcessesDisabled:]):
273         Address obvious leaks caught by the static analyzer.
274
275 2017-02-06  Myles C. Maxfield  <mmaxfield@apple.com>
276
277         Migrate ComplexTextController to use platform-independent types
278         https://bugs.webkit.org/show_bug.cgi?id=167833
279
280         Reviewed by Brent Fulgham.
281
282         Migrate tests away from platform-dependent types.
283
284         * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp:
285         (TestWebKitAPI::TEST_F):
286
287 2017-02-06  Brent Fulgham  <bfulgham@apple.com>
288
289         Correct File Path Handling in SecurityOrigin and FileSystem
290         https://bugs.webkit.org/show_bug.cgi?id=167894
291         <rdar://problem/30380080>
292
293         Reviewed by Alexey Proskuryakov.
294
295         * TestWebKitAPI/Tests/WebCore/FileSystem.cpp: Don't encode the temporary files,
296         and perform same-volume checks using filesystem-compatible paths.        
297         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: Create SecurityOrigins from
298         filesystem paths, and perform validation of same-volume checks.
299         (TestWebKitAPI::SecurityOriginTest::tempFilePath): Added.
300         (TestWebKitAPI::SecurityOriginTest::spaceContainingFilePath): Added.
301         (TestWebKitAPI::SecurityOriginTest::bangContainingFilePath): Added.
302         (TestWebKitAPI::SecurityOriginTest::quoteContainingFilePath): Added.
303
304 2017-02-06  Jer Noble  <jer.noble@apple.com>
305
306         Playback stalls when a SourceBuffer append causes frame eviction
307         https://bugs.webkit.org/show_bug.cgi?id=167834
308
309         Reviewed by Eric Carlson.
310
311         Add new correctness tests for the Webcore::SampleMap class. Add additional subtests
312         for the WTF::MediaTime class.
313
314         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
315         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
316         (TestWebKitAPI::TEST):
317         * TestWebKitAPI/Tests/WebCore/SampleMap.cpp: Added.
318         (WTF::operator<<):
319         (TestWebKitAPI::TestSample::create):
320         (TestWebKitAPI::TestSample::TestSample):
321         (TestWebKitAPI::TEST_F):
322
323 2017-02-06  Ryan Haddad  <ryanhaddad@apple.com>
324
325         Change capitalization in platform name after r211735.
326
327         Unreviewed dashboard fix.
328
329         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
330         (WebKitBuildbot):
331
332 2017-02-06  Alexey Proskuryakov  <ap@apple.com>
333
334         Move the Leaks bot to Sierra
335         https://bugs.webkit.org/show_bug.cgi?id=167886
336
337         Reviewed by Daniel Bates.
338
339         * BuildSlaveSupport/build.webkit.org-config/config.json:
340         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
341         * BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/LeaksViewer.js:
342         (LeaksViewer._displayURLPrompt):
343         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
344         (WebKitBuildbot):
345
346 2017-02-06  Jonathan Bedard  <jbedard@apple.com>
347
348         Prevent app crash on launch during simctl install workaround
349         https://bugs.webkit.org/show_bug.cgi?id=167685
350
351         Reviewed by Daniel Bates.
352
353         * Scripts/webkitpy/port/simulator_process.py:
354         (SimulatorProcess.__init__): Pass environment to install.
355         * Scripts/webkitpy/xcode/simulator.py:
356         (Device.install_app): Accept environment, pass environment to launch.
357
358 2017-02-06  Alex Christensen  <achristensen@webkit.org>
359
360         Rebase API tests after r211638
361         https://bugs.webkit.org/show_bug.cgi?id=167779
362
363         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
364         (TestWebKitAPI::TEST_F):
365         URLs with non-special schemes and characters like % in the host now fail to parse,
366         more like their special counterparts and according to spec.
367
368 2017-02-06  Csaba Osztrogonác  <ossy@webkit.org>
369
370         Unreviewed trivial fix after r211697.
371         https://bugs.webkit.org/show_bug.cgi?id=167863
372
373         * Scripts/run-javascriptcore-tests:
374         (runJSCStressTests): Renamed ES6SampleBench to ARES-6.
375
376 2017-02-04  Simon Fraser  <simon.fraser@apple.com>
377
378         Clean up how GraphicsLayer's "inWindow" state is set, and fix some issues with Page Overlays
379         https://bugs.webkit.org/show_bug.cgi?id=167850
380
381         Reviewed by Tim Horton.
382
383         * DumpRenderTree/TestRunner.cpp:
384         (TestRunner::uiScriptDidComplete): Fix an assertion that fires for non-16-bit strings.
385
386 2017-02-04  Andreas Kling  <akling@apple.com>
387
388         Plug some leaks in TestController and UIScriptContext.
389         <https://webkit.org/b/167839>
390
391         Reviewed by Alexey Proskuryakov.
392
393         Fix a couple of the leaks seen on the leaks bot.
394
395         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
396         (UIScriptContext::runUIScript):
397         * WebKitTestRunner/TestController.cpp:
398         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
399         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
400
401 2017-02-03  Jeremy Jones  <jeremyj@apple.com>
402
403         WK1 mouse events are missing movementX and movementY for pointerlock.
404         https://bugs.webkit.org/show_bug.cgi?id=167775
405         rdar://problem/30343810
406
407         Reviewed by Alexey Proskuryakov.
408
409         Set kCGMouseEventDeltaX and kCGMouseEventDeltaY when synthesizing mouse move events.
410
411         * DumpRenderTree/mac/EventSendingController.mm:
412         (-[EventSendingController mouseMoveToX:Y:]):
413         * WebKitTestRunner/mac/EventSenderProxy.mm:
414         (WTR::EventSenderProxy::mouseMoveTo):
415
416 2017-02-03  Simon Fraser  <simon.fraser@apple.com>
417
418         Correctly set the "inWindow" flag for TileControllers that aren't the page tiles, and clarify "usingTiledBacking" logic
419         https://bugs.webkit.org/show_bug.cgi?id=167774
420
421         Reviewed by Tim Horton.
422
423         Implement UIScriptController removeViewFromWindow() and addViewToWindow(), and hook
424         up for Mac WK1 and WK2, and iOS WK2. It takes a callback because view state updates to the
425         web process are async, so the callback fires after the web process gets the new state.
426
427         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
428         (WTR::UIScriptController::removeViewFromWindow):
429         (WTR::UIScriptController::addViewToWindow):
430         * DumpRenderTree/mac/DumpRenderTree.mm:
431         (createWebViewAndOffscreenWindow):
432         (resetWebViewToConsistentStateBeforeTesting):
433         * DumpRenderTree/mac/DumpRenderTreeMac.h:
434         * DumpRenderTree/mac/UIScriptControllerMac.mm:
435         (WTR::UIScriptController::removeViewFromWindow):
436         (WTR::UIScriptController::addViewToWindow):
437         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
438         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
439         (WTR::UIScriptController::removeViewFromWindow):
440         (WTR::UIScriptController::addViewToWindow):
441         * TestRunnerShared/UIScriptContext/UIScriptController.h:
442         * WebKitTestRunner/PlatformWebView.h:
443         * WebKitTestRunner/TestController.cpp:
444         (WTR::TestController::resetStateToConsistentValues):
445         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
446         (WTR::PlatformWebView::removeFromWindow):
447         (WTR::PlatformWebView::addToWindow):
448         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
449         (WTR::UIScriptController::removeViewFromWindow):
450         (WTR::UIScriptController::addViewToWindow):
451         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
452         (WTR::PlatformWebView::removeFromWindow):
453         (WTR::PlatformWebView::addToWindow):
454         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
455         (WTR::UIScriptController::removeViewFromWindow):
456         (WTR::UIScriptController::addViewToWindow):
457
458 2017-02-03  Alexey Proskuryakov  <ap@apple.com>
459
460         Remove check for SkipSafariExecutableEntitlementChecks
461         https://bugs.webkit.org/show_bug.cgi?id=167762
462
463         Reviewed by Dan Bernstein.
464
465         Follow-up fix: don't break internal behavior.
466
467         * Scripts/webkitdirs.pm:
468         (safariPath):
469         (executableHasEntitlements): Deleted.
470         (safariPathFromSafariBundle): Deleted.
471         (installedSafariPath): Deleted.
472
473 2017-02-03  Daniel Bates  <dabates@apple.com>
474
475         [Mac][WK2] Add SPI to override the Content Security Policy of a page
476         https://bugs.webkit.org/show_bug.cgi?id=167810
477         <rdar://problem/30102568>
478
479         Reviewed by Anders Carlsson.
480
481         Add tests to ensure that we do not regress -[WKWebView _setOverrideContentSecurityPolicy:].
482
483         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
484         * TestWebKitAPI/Tests/WebKit2Cocoa/OverrideContentSecurityPolicy.mm: Added.
485         (TEST):
486         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp-iframe.html: Added.
487         * TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html: Added.
488         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp-iframe.html: Added.
489         * TestWebKitAPI/Tests/WebKit2Cocoa/page-without-csp.html: Added.
490
491 2017-02-02  Alex Christensen  <achristensen@webkit.org>
492
493         URLParser: Fix parsing invalid IPv4 addresses with non-ASCII characters
494         https://bugs.webkit.org/show_bug.cgi?id=167773
495         <rdar://problem/30221102>
496
497         Reviewed by Ryosuke Niwa.
498
499         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
500         (TestWebKitAPI::TEST_F):
501
502 2017-02-02  Alexey Proskuryakov  <ap@apple.com>
503
504         Remove check for SkipSafariExecutableEntitlementChecks
505         https://bugs.webkit.org/show_bug.cgi?id=167762
506         rdar://problem/22480673
507
508         Reviewed by Dan Bernstein.
509
510         * Scripts/webkitdirs.pm:
511         (safariPathFromSafariBundle):
512         (skipSafariExecutableEntitlementChecks): Deleted.
513
514 2017-02-02  Jonathan Bedard  <jbedard@apple.com>
515
516         Undefined subroutine in svn-create-patch
517         https://bugs.webkit.org/show_bug.cgi?id=167742
518
519         Unreviewed build-fix after r211543.
520
521         * Scripts/VCSUtils.pm: fixSVNPatchForAdditionWithHistory was not exported.
522
523 2017-02-02  Xabier Rodriguez Calvar  <calvaris@igalia.com>
524
525         Unreviewed. Fix jhbuild dependencies build.
526
527         * gtk/patches/gst-plugins-good-0004-qtdemux-add-context-for-a-preferred-protection.patch:
528         Patch updated.
529
530 2017-02-02  Xabier Rodriguez Calvar  <calvaris@igalia.com>
531
532         [EME][GStreamer] Fixed decryptor selection
533         https://bugs.webkit.org/show_bug.cgi?id=167588
534
535         Reviewed by Žan Doberšek.
536
537         This patches are pending at https://bugzilla.gnome.org/show_bug.cgi?id=770107
538
539         * gtk/jhbuild.modules: Added patches to gstreamer and
540         gst-plugins-good packages.
541         * gtk/patches/gst-plugins-good-0004-qtdemux-add-context-for-a-preferred-protection.patch: Added.
542         * gtk/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Added.
543
544 2017-02-01  Dewei Zhu  <dewei_zhu@apple.com>
545
546         Make run-benchmark script supports 'config' key in test plan.
547         https://bugs.webkit.org/show_bug.cgi?id=167715
548
549         Reviewed by Ryosuke Niwa.
550
551         Add support for 'config' key in test paln.
552         'config' key is a dictionary that specifies environment configurations while test is running.
553         Specifies orientation to be portrait in MotionMark benchmark.
554
555         * Scripts/webkitpy/benchmark_runner/README.md:
556         * Scripts/webkitpy/benchmark_runner/benchmark_runner.py:
557         (BenchmarkRunner.__init__):
558         (BenchmarkRunner._run_benchmark):
559         * Scripts/webkitpy/benchmark_runner/browser_driver/browser_driver.py:
560         (BrowserDriver.prepare_env):
561         * Scripts/webkitpy/benchmark_runner/browser_driver/linux_browser_driver.py:
562         (LinuxBrowserDriver.prepare_env):
563         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:
564         (OSXBrowserDriver.prepare_env):
565         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:
566         (OSXSafariDriver.prepare_env):
567         * Scripts/webkitpy/benchmark_runner/data/plans/motionmark.plan:
568
569 2017-02-01  Daniel Bates  <dabates@apple.com>
570
571         REGRESSION (r210820): svn-create-patch does not emit property change only diff
572         https://bugs.webkit.org/show_bug.cgi?id=167169
573
574         Reviewed by David Kilzer.
575
576         More directly handle the SVN 1.9 or newer syntax change for a diff of a copied or moved file
577         - a SVN diff header and an empty body. In particular, remove a duplicate leading SVN diff
578         header from the output of "svn diff" on a file that was copied or moved.
579
580         Following r210820 svn-create-patch emits to standard output a diff only if it has at least one
581         chunk range line (e.g. @@ -0,0 +1,7 @@) as a means to workaround a syntax change in the diff
582         output of a copied or moved file in SVN version 1.9 or newer. In SVN 1.9 or newer "svn diff"
583         of a copied or moved file always emits to standard output a leading SVN diff header (an "Index:"
584         line followed by a separator line) with an empty body; => no chunk range lines. However a diff
585         of a file with only a property change also does not contain any chunk range lines. Therefore
586         svn-create-patch no longer emitted to standard output such a diff. Instead of indirectly detecting
587         a SVN diff header with an empty body by counting the number of chunk range lines in the diff
588         we should directly test for the presence of a leading SVN diff header with an empty body and
589         remove such lines from the diff.
590
591         * Scripts/VCSUtils.pm:
592         (fixSVNPatchForAdditionWithHistory): Added.
593         * Scripts/svn-create-patch:
594         (generateDiff): Pass the output from "svn diff" to fixSVNPatchForAdditionWithHistory() when
595         we have a non empty patch for an added file with history (i.e. a copied or moved file).
596         * Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl: Added.
597
598 2017-02-01  Eric Carlson  <eric.carlson@apple.com>
599
600         [Mac] Update CARingBuffer class
601         https://bugs.webkit.org/show_bug.cgi?id=167656
602
603         Reviewed by Jer Noble.
604
605         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
606         * TestWebKitAPI/Tests/WebCore/CARingBuffer.cpp: Added.
607         (TestWebKitAPI::CARingBufferTest::SetUp):
608         (TestWebKitAPI::CARingBufferTest::setup):
609         (TestWebKitAPI::CARingBufferTest::setListDataBuffer):
610         (TestWebKitAPI::CARingBufferTest::description):
611         (TestWebKitAPI::CARingBufferTest::bufferList):
612         (TestWebKitAPI::CARingBufferTest::ringBuffer):
613         (TestWebKitAPI::CARingBufferTest::capacity):
614         (TestWebKitAPI::CARingBufferTest::audioBufferListSizeForStream):
615         (TestWebKitAPI::CARingBufferTest::configureBufferListForStream):
616         (TestWebKitAPI::TEST_F):
617         (TestWebKitAPI::MixingTest::run):
618
619 2017-02-01  Alexey Proskuryakov  <ap@apple.com>
620
621         [Mac] TestWebKitAPI includes system frameworks incorrectly
622         https://bugs.webkit.org/show_bug.cgi?id=167703
623         rdar://problem/30301498
624
625         Reviewed by Ryosuke Niwa.
626
627         FRAMEWORK_SEARCH_PATH results in frameworks being treated as user ones, not system.
628         Make TestWebKitAPI use -iframework instead, like the rest of WebKit does.
629
630         Also, reduced the number of subframework search paths, looks like we only need one now.
631
632         * TestWebKitAPI/Configurations/Base.xcconfig:
633
634 2017-02-01  Brent Fulgham  <bfulgham@apple.com>
635
636         Correct "filesHaveSameVolume" predicate
637         https://bugs.webkit.org/show_bug.cgi?id=167696
638         <rdar://problem/30298722>
639
640         Reviewed by David Kilzer.
641
642         Add new tests that confirm that the 'filesHaveSamePath' predicate properly handles
643         percent-escaped path inputs.
644
645         * TestWebKitAPI/Tests/WebCore/FileSystem.cpp:
646         (TestWebKitAPI::FileSystemTest::spaceContainingFilePath):
647         (TestWebKitAPI::FileSystemTest::bangContainingFilePath):
648         (TestWebKitAPI::FileSystemTest::quoteContainingFilePath):
649         (TestWebKitAPI::TEST_F):
650
651 2017-02-01  Tomas Popela  <tpopela@redhat.com>
652
653         Unreviewed. Fix coding style in MiniBrowser
654
655         * MiniBrowser/gtk/BrowserWindow.c:
656         (editingCommandCallback):
657         (insertImageCommandCallback):
658         (insertLinkCommandCallback):
659
660 2017-02-01  Tomas Popela  <tpopela@redhat.com>
661
662         [GTK] Add an API to add a custom tab into the print dialog
663         https://bugs.webkit.org/show_bug.cgi?id=151998
664
665         Reviewed by Carlos Garcia Campos.
666
667         Add a new WebKitPrintOperation/custom-widget test in TestPrinting
668         that is testing a newly added API.
669
670         * TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting.cpp:
671         (testPrintCustomWidget):
672         (beforeAll):
673
674 2017-02-01  Enrique Ocaña González  <eocanha@igalia.com>
675
676         [GStreamer][MSE] qtdemux: Update the tfdt patch to the version finally accepted upstream
677         https://bugs.webkit.org/show_bug.cgi?id=166529
678
679         Reviewed by Xabier Rodriguez-Calvar.
680
681         * gtk/patches/gst-plugins-good-use-the-tfdt-decode-time.patch:
682         New patch version accepted in GStreamer upstream.
683
684 2017-02-01  Xabier Rodriguez Calvar  <calvaris@igalia.com>
685
686         [GTK] Install either libxfont1-dev or libxfont-dev as dependency
687         https://bugs.webkit.org/show_bug.cgi?id=167498
688
689         Reviewed by Carlos Garcia Campos.
690
691         Depending on the distro version you can need either libxfont1-dev
692         or libfont-dev to build with jhbuild.
693
694         * gtk/install-dependencies:
695
696 2017-01-31  Ryan Haddad  <ryanhaddad@apple.com>
697
698         Disable API test WebKit2.WKWebProcessPlugInRangeHandle
699         https://bugs.webkit.org/show_bug.cgi?id=167594
700
701         Unreviewed test gardening.
702
703         Disabling this test while we investigate the cause of a timeout on ios-simulator.
704
705         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandle.mm:
706         (TEST):
707
708 2017-01-31  Filip Pizlo  <fpizlo@apple.com>
709
710         Move slow-running microbenchmarks out of JSTests/microbenchmarks
711         https://bugs.webkit.org/show_bug.cgi?id=167676
712
713         Reviewed by Saam Barati.
714
715         * Scripts/run-javascriptcore-tests:
716         (runJSCStressTests): Add slowMicrobenchmarks.yaml.
717
718 2017-01-31  Megan Gardner  <megan_gardner@apple.com>
719
720         Make Dump Render Tree not crash
721         https://bugs.webkit.org/show_bug.cgi?id=167667
722
723         DumpRenderTree is crashing when running WK2 tests that it's not supposed to be running. 
724         DumpRenderTree uses RunLoop::main.dispatch(), but that crashes because it's not set up on iOS.
725         So we're making use of RunWebThread, which is the correct thing to do on iOS, and it doesn't crash.
726         This does not fix any tests, it just fixes the crash.
727         
728         Reviewed by Simon Fraser.
729
730         * DumpRenderTree/TestRunner.cpp:
731         (TestRunner::callUIScriptCallback):
732
733 2017-01-31  Jonathan Bedard  <jbedard@apple.com>
734
735         Workaround for simctl install failing to report install failure
736         https://bugs.webkit.org/show_bug.cgi?id=167654
737
738         Reviewed by Daniel Bates.
739
740         simctl install will sometimes report success even though install has failed.
741         To workaround this bug, we attempt an app launch after install to ensure
742         install has succeeded.
743
744         * Scripts/webkitpy/xcode/simulator.py:
745         (Device.install_app): Attempt app launch after install, retry install if launch fails.
746         (Device.launch_app): Correct comment.
747
748 2017-01-31  Jonathan Bedard  <jbedard@apple.com>
749
750         Unreviewed webkitpy fix after r211405.
751
752         * Scripts/webkitpy/xcode/simulator.py:
753         (Device.launch_app): Remove @staticmethod on _log_debug_error.
754
755 2017-01-31  Carlos Garcia Campos  <cgarcia@igalia.com>
756
757         Unreviewed. Do not include libwebrtc and qunit in GTK+ tarballs.
758
759         * gtk/manifest.txt.in:
760
761 2017-01-31  Chris Fleizach  <cfleizach@apple.com>
762
763         AX: enable search predication for iOS
764         https://bugs.webkit.org/show_bug.cgi?id=167558
765         <rdar://problem/30251367>
766
767         Reviewed by Joanmarie Diggs.
768
769         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
770         (AccessibilityUIElement::uiElementForSearchPredicate):
771         * DumpRenderTree/mac/AccessibilityCommonMac.h:
772         * DumpRenderTree/mac/AccessibilityCommonMac.mm:
773         (searchPredicateParameterizedAttributeForSearchCriteria):
774         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
775         (searchPredicateParameterizedAttributeForSearchCriteria): Deleted.
776         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
777         (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate):
778         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
779         * WebKitTestRunner/InjectedBundle/mac/AccessibilityCommonMac.h:
780         * WebKitTestRunner/InjectedBundle/mac/AccessibilityCommonMac.mm:
781         (WTR::searchPredicateParameterizedAttributeForSearchCriteria):
782         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
783         (WTR::searchPredicateParameterizedAttributeForSearchCriteria): Deleted.
784         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
785
786 2017-01-30  Jonathan Bedard  <jbedard@apple.com>
787
788         Workaround for simctl launch bug
789         https://bugs.webkit.org/show_bug.cgi?id=167613
790
791         Reviewed by Daniel Bates.
792
793         simctl launch will sometimes fail because of a race condition when many
794         simulators are being run simultaneously. These failures will always have
795         an exit code of 1. This change attempts to launch an app multiple times
796         before reporting a failure to workaround this bug.
797
798         * Scripts/webkitpy/xcode/simulator.py:
799         (Device.launch_app): Execute multiple launch attempts, better logging of failures.
800
801 2017-01-30  Alexey Proskuryakov  <ap@apple.com>
802
803         Commit queue fails to look at real name aliases for the reviewer
804         https://bugs.webkit.org/show_bug.cgi?id=167422
805
806         Reviewed by Joseph Pecoraro.
807
808         * Scripts/webkitpy/common/checkout/changelog_unittest.py:
809         (test_has_valid_reviewer): Added tests.
810
811         * Scripts/webkitpy/common/config/committers.py:
812         (CommitterList._name_to_contributor_map):
813         Made _name_to_contributor_map include alias names.
814
815         * Scripts/webkitpy/common/config/committers_unittest.py:
816         (CommittersTest.test_contributors_by_fuzzy_match):
817         Removed subtests that are now obsolete, as these matches are strict. It is not
818         obvious if distance based fuzzy matching for names is useful at all, but we can
819         look into that some other time.
820
821 2017-01-30  Aakash Jain  <aakash_jain@apple.com>
822
823         QueueStatusServer should have an explicit timeout for _fetch_url
824         https://bugs.webkit.org/show_bug.cgi?id=167467
825
826         Reviewed by Alexey Proskuryakov.
827
828         * Scripts/webkitpy/common/net/statusserver.py:
829         (StatusServer._fetch_url): Add an explicit timeout of 300s.
830
831 2017-01-30  Kocsen Chung  <kocsen_chung@apple.com>
832
833         Add support for Trac instances that host multiple projects.
834         https://bugs.webkit.org/show_bug.cgi?id=167524
835
836         Reviewed by Alexey Proskuryakov.
837
838         When multiple projects are hosted on a single Trac instance, the current
839         behavior will retrieve changesets from all tracked projects.
840         This patch teaches Trac.js to get project-specific changesets from Trac.
841         We do this by replacing the parameter `changeset=on` to `repo-projectname=on`
842         when querying the Trac timeline.
843
844         To tell Trac to be aware of multi-project instances we leverage the 
845         `options` parameter when creating a new instance: 
846
847             new Trac("https://mytrac.com/", { projectIdentifier: "tracProjectName" });
848
849         If this option is not provided, the original behaviour will prevail.
850         Additionally, add corresponding tests.
851
852         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
853         (Trac): Reason about new optional parameter 'projectIdentifier'.
854         (Trac.prototype.revisionURL): Given a projectIdentifier, append it to the end of the URL.
855         (Trac.prototype._xmlTimelineURL): Given a projectIdentifier,
856         replace default parameter `changeset=on` with `repo-projectname=on`.
857         (Trac.prototype._convertCommitInfoElementToObject): Fix missing ';'.
858         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js:
859         (MockTrac): Add support for instantiating Trac with a projectIdentifier.
860         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js:
861         (setup): Provide a multiple-project MockTrac instance to all test cases for testing.
862         Add the following tests:
863             test("revisionURL")
864             test("revisionURL with Trac Identifier")
865             test("_xmlTimelineURL")
866             test("_xmlTimelineURL with Trac Identifier")
867         (this.view._latestProductiveIteration): Fix missing ';'.
868
869 2017-01-30  Myles C. Maxfield  <mmaxfield@apple.com>
870
871         Correct spacing regression on inter-element complex path shaping on some fonts
872         https://bugs.webkit.org/show_bug.cgi?id=166013
873
874         Reviewed by Simon Fraser.
875
876         Unskip existing tests and make some new tests:
877         - Testing complex text with no origins
878         - Testing initial expansions
879         - Testing the sign of vertical advances
880
881         * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp:
882         (TestWebKitAPI::TEST_F):
883
884 2017-01-30  Carlos Alberto Lopez Perez  <clopez@igalia.com>
885
886         [GTK][EFL] Avoid using a thin directory to create the built product on the archive-built-product step.
887         https://bugs.webkit.org/show_bug.cgi?id=167596
888
889         Reviewed by Daniel Bates.
890
891         We avoid needing a thin directory by invoking the zip program with
892         the list of directories from the build directory to be zipped,
893         and by using the zip feature to exclude files matching a pattern.
894
895         * BuildSlaveSupport/built-product-archive:
896         (copyBuildFiles):
897         (createZipFromList):
898         (archiveBuiltProduct):
899
900 2017-01-30  Jonathan Bedard  <jbedard@apple.com>
901
902         Use simctl instead of LayoutTestRelay
903         https://bugs.webkit.org/show_bug.cgi?id=165927
904
905         Reviewed by Daniel Bates.
906
907         Part 1
908
909         LayoutTestRelay uses SPI, since recent versions of the iOS SDK allow for installing apps on
910         simulators through simctl (iOS 10 and later), use this functionality instead.
911
912         * Scripts/webkitpy/port/base.py:
913         (Port.__init__): Added _test_runner_process_constructor.
914         * Scripts/webkitpy/port/darwin.py:
915         (DarwinPort.app_identifier_from_bundle): Added function to extract bundle ID from plist.
916         * Scripts/webkitpy/port/driver.py:
917         (Driver._start): Pass worker_number to server_process so we can look up the correct simulator device to use.
918         (IOSSimulatorDriver): Deleted.
919         * Scripts/webkitpy/port/driver_unittest.py:
920         (DriverTest.test_stop_cleans_up_properly): Set _test_runner_process_constructor for testing.
921         (DriverTest.test_two_starts_cleans_up_properly): Ditto.
922         (DriverTest.test_start_actually_starts): Ditto.
923         * Scripts/webkitpy/port/ios.py:
924         (IOSSimulatorPort): Remove relay_name.
925         (IOSSimulatorPort.__init__): Set _test_runner_process_constructor to SimulatorProcess for IOSSimulatorPort.
926         (IOSSimulatorPort._create_simulators): Formatting change.
927         (IOSSimulatorPort.relay_path): Deleted.
928         (IOSSimulatorPort._check_relay): Deleted.
929         (IOSSimulatorPort._check_port_build): Deleted. Use base class implementation
930         (IOSSimulatorPort._build_relay): Deleted.
931         (IOSSimulatorPort._build_driver): Deleted. Use base class implementation
932         (IOSSimulatorPort._driver_class): Deleted. Use base class implementation
933         * Scripts/webkitpy/port/ios_unittest.py:
934         (iosTest.test_32bit): Update test.
935         (iosTest.test_64bit): Update test.
936         * Scripts/webkitpy/port/server_process.py:
937         (ServerProcess.__init__): Added argument worker_number. This class does not make use of it. We will make use of this argument in SimulatorProcess to lookup the associated simulator device.
938         (ServerProcess._set_file_nonblocking): Added to share common code.
939         * Scripts/webkitpy/port/server_process_mock.py:
940         (MockServerProcess.__init__): Added argument worker_number.
941         * Scripts/webkitpy/port/simulator_process.py: Added.
942         (SimulatorProcess): Added.
943         (SimulatorProcess.Popen): Added.
944         (SimulatorProcess.Popen.__init__): Added. Initialize Popen structure with stdin, stdout, stderr and pid.
945         (SimulatorProcess.Popen.poll): Added. Check if the process is running.
946         (SimulatorProcess.Popen.wait): Added. Wait for process to close.
947         (SimulatorProcess.__init__): Added. Install app to device specified through port and worker_number.
948         (SimulatorProcess._reset): Added. Unlink fifos.
949         (SimulatorProcess._start): Added. Launch app on simulator, link fifos.
950         (SimulatorProcess._kill): Added. Shutdown app on simulator.
951         * Scripts/webkitpy/xcode/simulator.py:
952         (Device.__init__): Accept host to run install/launch/terminate.
953         (Device.install_app): Install app to target Device.
954         (Device.launch_app): Launch app on target Device.
955         (Device.terminate_app): Shutdown app on target Device.
956         (Simulator._parse_devices): Pass host to Device.
957
958 2017-01-30  Carlos Alberto Lopez Perez  <clopez@igalia.com>
959
960         [GTK] pixman fails to compile on Raspberry Pi (GCC crash)
961         https://bugs.webkit.org/show_bug.cgi?id=167411
962
963         Reviewed by Michael Catanzaro.
964
965         Disable the ARM iwMMXt fast path for pixman, because it triggers
966         a GCC bug on the RPi with Raspbian/PIXEL causing a build failure.
967
968         * gtk/jhbuild.modules:
969
970 2017-01-30  Carlos Garcia Campos  <cgarcia@igalia.com>
971
972         [GTK] Add API to handle the accelerated compositing policy
973         https://bugs.webkit.org/show_bug.cgi?id=167509
974
975         Reviewed by Michael Catanzaro.
976
977         Handle new setting in MiniBrowser. The settings dialog doesn't support enum settings so it needs to be handled
978         as a special case. Also add test cases to the get/set API.
979
980         * MiniBrowser/gtk/BrowserSettingsDialog.c:
981         (hardwareAccelerationPolicyToString):
982         (stringToHardwareAccelerationPolicy):
983         (cellRendererChanged):
984         (browserSettingsDialogConstructed):
985         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSettings.cpp:
986         (testWebKitSettings):
987
988 2017-01-29  Andy Estes  <aestes@apple.com>
989
990         [QuickLook] Add a WebPreference to enable saving QuickLook documents in WebKitLegacy
991         https://bugs.webkit.org/show_bug.cgi?id=167563
992         <rdar://problem/30253207>
993
994         Reviewed by Andreas Kling.
995
996         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm:
997         (-[QuickLookNavigationDelegate _webView:didStartLoadForQuickLookDocumentInMainFrameWithFileName:uti:]):
998         (-[QuickLookNavigationDelegate _webView:didFinishLoadForQuickLookDocumentInMainFrame:]):
999         (runTest):
1000         (-[QuickLookFrameLoadDelegate webView:didFinishLoadForFrame:]):
1001         (TEST):
1002
1003 2017-01-29  Dan Bernstein  <mitz@apple.com>
1004
1005         [iOS] Expose WebCore::DataDetection::detectContentInRange WKWebProcessPlugInRangeHandle
1006         https://bugs.webkit.org/show_bug.cgi?id=167565
1007
1008         Reviewed by Sam Weinig.
1009
1010         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1011         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandle.mm: Added.
1012         (-[BundleRangeHandleRemoteObject textFromBodyRange:]):
1013         (-[BundleRangeHandleRemoteObject bodyInnerHTMLAfterDetectingData:]):
1014         (TEST):
1015         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandlePlugIn.mm: Added.
1016         (-[BundleRangeHandlePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1017         (-[BundleRangeHandlePlugIn webProcessPlugInBrowserContextController:didFinishDocumentLoadForFrame:]):
1018         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleRangeHandleProtocol.h: Added.
1019
1020 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
1021
1022         Add Link Preload as an off-by-default experimental feature menu item.
1023         https://bugs.webkit.org/show_bug.cgi?id=167201
1024
1025         Reviewed by Ryosuke Niwa.
1026
1027         * DumpRenderTree/mac/DumpRenderTree.mm:
1028         (resetWebPreferencesToConsistentValues):
1029         * DumpRenderTree/win/DumpRenderTree.cpp:
1030         (resetWebPreferencesToConsistentValues):
1031
1032 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1033
1034         Add User Timing Experimental Feature
1035         https://bugs.webkit.org/show_bug.cgi?id=167542
1036         <rdar://problem/22746307>
1037
1038         Reviewed by Ryosuke Niwa.
1039
1040         * DumpRenderTree/mac/DumpRenderTree.mm:
1041         (enableExperimentalFeatures):
1042         (resetWebPreferencesToConsistentValues):
1043         * DumpRenderTree/win/DumpRenderTree.cpp:
1044         (enableExperimentalFeatures):
1045
1046 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1047
1048         Patch Review: EWS Bubbles wrap to multiple lines but can fit on one line
1049         https://bugs.webkit.org/show_bug.cgi?id=167519
1050
1051         Reviewed by Ryosuke Niwa.
1052
1053         * QueueStatusServer/templates/statusbubble.html:
1054         To measure the bubbleContainer's width, it must not be wrapping based
1055         on its parent container. So when measuring the width temporarily set
1056         the parent to a very large width so as to not artificially wrap us.
1057         Restore the parent's width after measuring.
1058
1059 2017-01-27  Andy Estes  <aestes@apple.com>
1060
1061         [iOS] Add a test for _WKNSFileManagerExtras
1062         https://bugs.webkit.org/show_bug.cgi?id=167478
1063
1064         Reviewed by Andreas Kling.
1065
1066         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1067         * TestWebKitAPI/Tests/WebKit2Cocoa/NSFileManagerExtras.mm: Added.
1068         (expectAttributes):
1069         (TEST):
1070
1071 2017-01-27  Keith Miller  <keith_miller@apple.com>
1072
1073         run-benchmarks should make sure it passes the test url to the right application
1074         https://bugs.webkit.org/show_bug.cgi?id=167533
1075
1076         Reviewed by Joseph Pecoraro.
1077
1078         This fixes an issue when trying to run-benchmark script with the
1079         system default browser set to STP. Previously, it would run
1080         the test in STP rather than the provided build. Now, it should run
1081         in the provided build.
1082
1083         * Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:
1084         (OSXSafariDriver.launch_url):
1085
1086 2017-01-27  Myles C. Maxfield  <mmaxfield@apple.com>
1087
1088         [Cocoa] Prepare ComplexTextController for unit testing
1089         https://bugs.webkit.org/show_bug.cgi?id=167493
1090
1091         Reviewed by Simon Fraser.
1092
1093         Addressing post-review comments from Simon Fraser.
1094
1095         * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp:
1096         (TestWebKitAPI::TEST_F):
1097
1098 2017-01-27  Myles C. Maxfield  <mmaxfield@apple.com>
1099
1100         [Cocoa] Prepare ComplexTextController for unit testing
1101         https://bugs.webkit.org/show_bug.cgi?id=167493
1102
1103         Reviewed by Dean Jackson.
1104
1105         Create four unit tests.
1106
1107         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1108         * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp: Added.
1109         (TestWebKitAPI::ComplexTextControllerTest::SetUp):
1110         (TestWebKitAPI::TEST_F):
1111
1112 2017-01-26  Chris Dumez  <cdumez@apple.com>
1113
1114         Crash when navigating back to a page in PacheCache when one of its frames has been removed
1115         https://bugs.webkit.org/show_bug.cgi?id=167421
1116         <rdar://problem/30188490>
1117
1118         Reviewed by Darin Adler.
1119
1120         Add a new setting allowing layout tests to enable PageCache in a window
1121         that has an opener, for convenience.
1122
1123         * DumpRenderTree/mac/DumpRenderTree.mm:
1124         (resetWebPreferencesToConsistentValues):
1125         * DumpRenderTree/win/DumpRenderTree.cpp:
1126         (resetWebPreferencesToConsistentValues):
1127         * WebKitTestRunner/TestController.cpp:
1128         (WTR::TestController::resetPreferencesToConsistentValues):
1129
1130 2017-01-26  Keith Miller  <keith_miller@apple.com>
1131
1132         classInfo should take a VM so it is not materialized from the object on each call
1133         https://bugs.webkit.org/show_bug.cgi?id=167424
1134
1135         Rubber Stamped by Michael Saboff.
1136
1137         Previously, classInfo() would get the VM from the target's
1138         MarkedBlock.  Most callers already have a VM on hand, so it is
1139         wasteful to compute the VM from the marked block every time. This
1140         patch refactors some of the most common callers of classInfo(),
1141         jsDynamicCast and inherits to take a VM as well.
1142
1143         * DumpRenderTree/TestRunner.cpp:
1144         (setAudioResultCallback):
1145
1146 2017-01-26  Jer Noble  <jer.noble@apple.com>
1147
1148         Autoplay muted videos stop playback of any streaming app in the background
1149         https://bugs.webkit.org/show_bug.cgi?id=163993
1150         <rdar://problem/29020431>
1151
1152         Reviewed by Eric Carlson.
1153
1154         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1155         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm:
1156         (TestWebKitAPI::TEST):
1157         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio-and-webaudio.html: Added.
1158
1159 2017-01-26  Ryan Haddad  <ryanhaddad@apple.com>
1160
1161         Disable API test WebKit2.WebsitePoliciesPlayAfterPreventedAutoplay.
1162         https://bugs.webkit.org/show_bug.cgi?id=167466
1163
1164         Unreviewed test gardening.
1165
1166         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1167         (TEST):
1168
1169 2017-01-26  Matt Rajca  <mrajca@apple.com>
1170
1171         Notify clients when the user plays media otherwise prevented from autoplaying
1172         https://bugs.webkit.org/show_bug.cgi?id=167390
1173
1174         Reviewed by Alex Christensen.
1175
1176         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1177         * TestWebKitAPI/Tests/WebKit2/autoplay-with-controls.html: Added.
1178         * TestWebKitAPI/Tests/WebKit2/js-play-with-controls.html: Added.
1179         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1180         (didPlayMediaPreventedFromPlayingWithoutUserGesture):
1181         (TEST):
1182         * TestWebKitAPI/cocoa/TestWKWebView.h:
1183         * TestWebKitAPI/cocoa/TestWKWebView.mm:
1184         (-[TestWKWebViewHostWindow _mouseUpAtPoint:]):
1185         (-[TestWKWebView waitForLoad]):
1186         (-[TestWKWebView mouseUpAtPoint:]):
1187         * WebKitTestRunner/TestController.cpp:
1188         (WTR::TestController::createOtherPage):
1189         (WTR::TestController::createWebViewWithOptions):
1190
1191 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
1192
1193         Crash when setting custom scale factor.
1194         https://bugs.webkit.org/show_bug.cgi?id=167369
1195
1196         Reviewed by Sam Weinig.
1197
1198         Added API test.
1199
1200         * TestWebKitAPI/PlatformWin.cmake:
1201         * TestWebKitAPI/Tests/WebKit/win/ScaleWebView.cpp: Added.
1202         (TestWebKitAPI::WebKitCreateInstance):
1203         (TestWebKitAPI::ScaleWebView::SetUp):
1204         (TestWebKitAPI::ScaleWebView::TearDown):
1205         (TestWebKitAPI::TEST_F):
1206
1207 2017-01-25  Ryosuke Niwa  <rniwa@webkit.org>
1208
1209         run-benchmark nests MotionMark results by the suite name twice
1210         https://bugs.webkit.org/show_bug.cgi?id=164948
1211
1212         Reviewed by Said Abou-Hallawa.
1213
1214         Use a single level MotionMark now that this is the name of the benchmark,
1215         and we no longer have tests that aren't part of the MotionMark suite.
1216
1217         * Scripts/webkitpy/benchmark_runner/data/patches/MotionMark.patch:
1218
1219 2017-01-25  Ryan Haddad  <ryanhaddad@apple.com>
1220
1221         Unreviewed, rolling out r211193.
1222
1223         This change broke internal builds.
1224
1225         Reverted changeset:
1226
1227         "Notify clients when the user plays media otherwise prevented
1228         from autoplaying"
1229         https://bugs.webkit.org/show_bug.cgi?id=167390
1230         http://trac.webkit.org/changeset/211193
1231
1232 2017-01-25  Matt Rajca  <mrajca@apple.com>
1233
1234         Notify clients when the user plays media otherwise prevented from autoplaying
1235         https://bugs.webkit.org/show_bug.cgi?id=167390
1236
1237         Reviewed by Alex Christensen.
1238
1239         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1240         * TestWebKitAPI/Tests/WebKit2/autoplay-with-controls.html: Added.
1241         * TestWebKitAPI/Tests/WebKit2/js-play-with-controls.html: Added.
1242         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1243         (didPlayMediaPreventedFromPlayingWithoutUserGesture):
1244         (TEST):
1245         * TestWebKitAPI/cocoa/TestWKWebView.h:
1246         * TestWebKitAPI/cocoa/TestWKWebView.mm:
1247         (-[TestWKWebViewHostWindow _mouseUpAtPoint:]):
1248         (-[TestWKWebView waitForLoad]):
1249         (-[TestWKWebView mouseUpAtPoint:]):
1250         * WebKitTestRunner/TestController.cpp:
1251         (WTR::TestController::createOtherPage):
1252         (WTR::TestController::createWebViewWithOptions):
1253
1254 2017-01-25  Matt Rajca  <mrajca@apple.com>
1255
1256         [ios-simulator] API test WebKit2.WebsitePoliciesAutoplayEnabled timing out
1257         https://bugs.webkit.org/show_bug.cgi?id=167385
1258
1259         Reviewed by Alex Christensen.
1260
1261         * TestWebKitAPI/Tests/WebKit2/autoplay-check.html: Avoid arbitrary timeouts in favor of promises.
1262         * TestWebKitAPI/Tests/WebKit2/autoplay-no-audio-check.html:
1263         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1264         (TEST): Allow inline (rather than full screen) media playback on iOS.
1265
1266 2017-01-25  Carlos Garcia Campos  <cgarcia@igalia.com>
1267
1268         [GTK] Icon Database should be in private browsing mode for ephemeral web views
1269         https://bugs.webkit.org/show_bug.cgi?id=167414
1270
1271         Reviewed by Michael Catanzaro.
1272
1273         Add a test case to check ephemeral web views don't write favicons to the database.
1274
1275         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitFaviconDatabase.cpp:
1276         (ephemeralViewLoadChanged):
1277         (testPrivateBrowsing):
1278         (testFaviconDatabase):
1279
1280 2017-01-25  Carlos Garcia Campos  <cgarcia@igalia.com>
1281
1282         [GTK] Add a private browsing mode to MiniBrowser
1283         https://bugs.webkit.org/show_bug.cgi?id=167413
1284
1285         Reviewed by Michael Catanzaro.
1286
1287         Add -p/--private command line option to create a private instance. Also add CTRL+SHIFT+P shortcut to create
1288         private windows, even on non-private instances.
1289
1290         * MiniBrowser/gtk/BrowserWindow.c:
1291         (webViewTitleChanged): Add [Private] to title window for private windows.
1292         (webViewCreate): Pass web context to browser_window_new.
1293         (openPrivateWindow): Create a new ephemeral web view and add it to a new window.
1294         (browserWindowFinalize): Disconnect web context signal handlers.
1295         (browser_window_init): Add shortcut for opening private window.
1296         (browser_window_new): It now receives the context and connect to download-started here.
1297         (browser_window_get_web_context): Return the context.
1298         * MiniBrowser/gtk/BrowserWindow.h:
1299         * MiniBrowser/gtk/main.c:
1300         (createBrowserTab): Create the web view for the window web context.
1301         (aboutDataScriptMessageReceivedCallback): Do not use the default web context, but the window one.
1302         (aboutDataHandleRequest): Ditto.
1303         (aboutURISchemeRequestCallback): Ditto.
1304         (main): Create ephemeral web context if private command line option is used.
1305
1306 2017-01-25  Ryosuke Niwa  <rniwa@webkit.org>
1307
1308         collectMatchingElementsInFlatTree should not find elements inside an user agent shadow tree
1309         https://bugs.webkit.org/show_bug.cgi?id=167409
1310
1311         Reviewed by Antti Koivisto.
1312
1313         Added a test case for collectMatchingElementsInFlatTree not finding elements inside an user agent shadow tree
1314         as well as tests for the newly added matchingElementInFlatTree.
1315
1316         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp:
1317         (TestWebKitAPI::runJavaScriptAlert):
1318         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen_Bundle.cpp:
1319         (TestWebKitAPI::InjectedBundleMakeAllShadowRootOpenTest::initialize):
1320         * TestWebKitAPI/Tests/WebKit2/closed-shadow-tree-test.html:
1321
1322 2017-01-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1323
1324         [GTK] Add API to create ephemeral web views and deprecate the private browsing setting
1325         https://bugs.webkit.org/show_bug.cgi?id=167370
1326
1327         Reviewed by Michael Catanzaro.
1328
1329         Add several test cases of ephemeral web views.
1330
1331         * TestWebKitAPI/Tests/WebKit2Gtk/TestAuthentication.cpp:
1332         (testWebViewAuthenticationStorage):
1333         * TestWebKitAPI/Tests/WebKit2Gtk/TestCookieManager.cpp:
1334         (ephemeralViewloadChanged):
1335         (testCookieManagerEphemeral):
1336         (beforeAll):
1337         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSettings.cpp:
1338         (testWebKitSettings):
1339         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
1340         (testWebContextEphemeral):
1341         (ephemeralViewloadChanged):
1342         (testWebContextProxySettings):
1343         (beforeAll):
1344         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
1345         (ephemeralViewloadChanged):
1346         (testWebViewEphemeral):
1347         (beforeAll):
1348         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebsiteData.cpp:
1349         (ephemeralViewloadChanged):
1350         (testWebsiteDataEphemeral):
1351         (beforeAll):
1352
1353 2017-01-24  Alex Christensen  <achristensen@webkit.org>
1354
1355         REGRESSION (r208902): URLWithUserTypedString returns nil with file URLs
1356         https://bugs.webkit.org/show_bug.cgi?id=167402
1357
1358         Reviewed by Ryosuke Niwa.
1359
1360         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
1361         (TestWebKitAPI::TEST):
1362
1363 2017-01-24  Zalan Bujtas  <zalan@apple.com>
1364
1365         Add simple line layout toggle to MiniBrowser
1366         https://bugs.webkit.org/show_bug.cgi?id=167405
1367
1368         Reviewed by Andreas Kling.
1369
1370         * MiniBrowser/mac/SettingsController.h:
1371         * MiniBrowser/mac/SettingsController.m:
1372         (-[SettingsController _populateMenu]):
1373         (-[SettingsController validateMenuItem:]):
1374         (-[SettingsController toggleSimpleLineLayoutEnabled:]):
1375         (-[SettingsController simpleLineLayoutEnabled]):
1376         * MiniBrowser/mac/WK1BrowserWindowController.m:
1377         (-[WK1BrowserWindowController didChangeSettings]):
1378         * MiniBrowser/mac/WK2BrowserWindowController.m:
1379         (-[WK2BrowserWindowController didChangeSettings]):
1380
1381 2017-01-24  Joseph Pecoraro  <pecoraro@apple.com>
1382
1383         WKR does not include my nick when commit-queue lands my patch
1384         https://bugs.webkit.org/show_bug.cgi?id=167388
1385
1386         Reviewed by Ryosuke Niwa.
1387
1388         * Scripts/webkitpy/tool/commands/newcommitbot.py:
1389         (NewCommitBot._summarize_commit_log):
1390         * Scripts/webkitpy/tool/commands/newcommitbot_unittest.py:
1391         Perform nickname insertion before grabbing "Patch by" details.
1392         This way we can include the nickname with the full name.
1393
1394 2017-01-24  Joseph Pecoraro  <pecoraro@apple.com>
1395
1396         Fold USER_TIMING into WEB_TIMING and make it a RuntimeEnabledFeature
1397         https://bugs.webkit.org/show_bug.cgi?id=167394
1398
1399         Reviewed by Ryosuke Niwa.
1400
1401         * Scripts/webkitperl/FeatureList.pm:
1402         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1403
1404 2017-01-24  Youenn Fablet  <youenn@apple.com>
1405
1406         [WebRTC] Use HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE for libwebrtc
1407         https://bugs.webkit.org/show_bug.cgi?id=167353
1408
1409         Reviewed by Alex Christensen.
1410
1411         * Scripts/webkitpy/libwebrtc/generate_cmake.py:
1412         (CMakeGenerator.initialize_targets):
1413
1414 2017-01-24  Michael Catanzaro  <mcatanzaro@igalia.com>
1415
1416         WKR should not confuse Miguel Gomez with Andres Gomez
1417         https://bugs.webkit.org/show_bug.cgi?id=167389
1418
1419         Reviewed by Lucas Forschler.
1420
1421         Andres's email is a substring of Miguel's, causing WKR to credit Miguel's commits to
1422         "mAndres Gomez". Fix this.
1423
1424         * Scripts/webkitpy/tool/commands/newcommitbot.py:
1425         (NewCommitBot._summarize_commit_log): Be stricter about matching emails. SVN logs include a
1426         space on each side of the email address, so expect both spaces to be there before
1427         considering the email for replacement.
1428         * Scripts/webkitpy/tool/commands/newcommitbot_unittest.py: Add a test.
1429
1430 2017-01-24  Matt Rajca  <mrajca@apple.com>
1431
1432         Pass down website autoplay policies to media elements
1433         https://bugs.webkit.org/show_bug.cgi?id=167355
1434
1435         Reviewed by Alex Christensen.
1436
1437         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1438         * TestWebKitAPI/Tests/WebKit2/autoplay-check.html: Renamed from Tools/TestWebKitAPI/Tests/WebKit2/autoplayCheck.html to match our naming conventions.
1439         * TestWebKitAPI/Tests/WebKit2/autoplay-no-audio-check.html: Added.
1440         * TestWebKitAPI/Tests/WebKit2/test-without-audio-track.mp4: Added.
1441         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
1442         (-[AutoplayPoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
1443         (TEST):
1444
1445 2017-01-24  Nan Wang  <n_wang@apple.com>
1446
1447         AX: Speak Selection does not work in an iframe
1448         https://bugs.webkit.org/show_bug.cgi?id=166794
1449         <rdar://problem/29913013>
1450
1451         Reviewed by Chris Fleizach.
1452
1453         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1454         (WTR::UIScriptController::retrieveSpeakSelectionContent):
1455         (WTR::UIScriptController::accessibilitySpeakSelectionContent):
1456         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1457         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1458         (WTR::UIScriptController::retrieveSpeakSelectionContent):
1459         (WTR::UIScriptController::accessibilitySpeakSelectionContent):
1460         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1461         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
1462         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
1463         (-[TestRunnerWKWebView dealloc]):
1464         (-[TestRunnerWKWebView _accessibilityDidGetSpeakSelectionContent:]):
1465         (-[TestRunnerWKWebView accessibilityRetrieveSpeakSelectionContentWithCompletionHandler:]):
1466         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1467         (WTR::UIScriptController::retrieveSpeakSelectionContent):
1468         (WTR::UIScriptController::accessibilitySpeakSelectionContent):
1469
1470 2017-01-24  Daniel Bates  <dabates@apple.com>
1471
1472         StringView.split() should use an iterator design pattern instead of allocating a Vector
1473         https://bugs.webkit.org/show_bug.cgi?id=163225
1474
1475         Reviewed by Darin Adler.
1476
1477         Add unit tests for StringView.split().
1478
1479         * TestWebKitAPI/Tests/WTF/StringView.cpp:
1480         (TestWebKitAPI::stringViewFromLiteral): Moved to the top of the file so that it can be
1481         used in the StringView.split() unit tests.
1482         (TestWebKitAPI::stringViewFromUTF8): Ditto.
1483         (TestWebKitAPI::vectorFromSplitResult): Convenience function to convert a StringView::SplitResult
1484         object to a Vector of String objects.
1485         (TestWebKitAPI::TEST): Added the following tests:
1486             - WTF.StringViewSplitEmptyAndNullStrings
1487             - WTF.StringViewSplitBasic
1488             - WTF.StringViewSplitWithConsecutiveSeparators
1489
1490 2017-01-23  Anders Carlsson  <andersca@apple.com>
1491
1492         The Score Esports crashes on launch
1493         https://bugs.webkit.org/show_bug.cgi?id=167338
1494         rdar://problem/29948645
1495
1496         Reviewed by Dan Bernstein.
1497
1498         * TestWebKitAPI/Tests/WebKit2Cocoa/WKObject.mm:
1499         (TestWebKitAPI::TEST):
1500         Add a test.
1501
1502 2017-01-23  Carlos Garcia Campos  <cgarcia@igalia.com>
1503
1504         [GTK] Add API to WebKitWebsiteDataManager to handle website data
1505         https://bugs.webkit.org/show_bug.cgi?id=146589
1506
1507         Reviewed by Michael Catanzaro.
1508
1509         Add about:data handler to MiniBrowser to manually test the website data API. Also add unit tests to test all the
1510         new API, moving the WebKitWebsiteDataManager configuration API to the new file too.
1511
1512         * MiniBrowser/gtk/BrowserWindow.c:
1513         (webViewDecidePolicy):
1514         (newTabCallback):
1515         * MiniBrowser/gtk/main.c:
1516         (createBrowserTab):
1517         (aboutDataRequestFree):
1518         (aboutDataRequestNew):
1519         (aboutDataRequestForView):
1520         (websiteDataRemovedCallback):
1521         (websiteDataClearedCallback):
1522         (aboutDataScriptMessageReceivedCallback):
1523         (domainListFree):
1524         (aboutDataFillTable):
1525         (gotWebsiteDataCallback):
1526         (aboutDataHandleRequest):
1527         (aboutURISchemeRequestCallback):
1528         (main):
1529         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
1530         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
1531         (serverCallback):
1532         (beforeAll):
1533         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebsiteData.cpp: Added.
1534         (serverCallback):
1535         (WebsiteDataTest::WebsiteDataTest):
1536         (WebsiteDataTest::~WebsiteDataTest):
1537         (WebsiteDataTest::fetch):
1538         (WebsiteDataTest::remove):
1539         (WebsiteDataTest::clear):
1540         (testWebsiteDataConfiguration):
1541         (testWebsiteDataCache):
1542         (testWebsiteDataStorage):
1543         (testWebsiteDataDatabases):
1544         (testWebsiteDataAppcache):
1545         (beforeAll):
1546         (afterAll):
1547
1548 2017-01-23  Commit Queue  <commit-queue@webkit.org>
1549
1550         Unreviewed, rolling out r211062.
1551         https://bugs.webkit.org/show_bug.cgi?id=167354
1552
1553         broke API tests (Requested by alexchristensen on #webkit).
1554
1555         Reverted changeset:
1556
1557         "Pass down website autoplay policies to media elements"
1558         https://bugs.webkit.org/show_bug.cgi?id=167132
1559         http://trac.webkit.org/changeset/211062
1560
1561 2017-01-23  Alex Christensen  <achristensen@webkit.org>
1562
1563         URLParser should fail to parse percent-encoded invalid UTF-8 sequences
1564         https://bugs.webkit.org/show_bug.cgi?id=167330
1565
1566         Reviewed by Tim Horton.
1567
1568         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1569         (TestWebKitAPI::TEST_F):
1570
1571 2017-01-23  Alex Christensen  <achristensen@webkit.org>
1572
1573         Make URLs with non-special schemes and a query or fragment but no slash after the host more compatible
1574         https://bugs.webkit.org/show_bug.cgi?id=167317
1575
1576         Reviewed by Sam Weinig.
1577
1578         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1579         (TestWebKitAPI::TEST_F):
1580
1581 2017-01-23  Jonathan Bedard  <jbedard@apple.com>
1582
1583         svn-create-patch should emit properties when files are moved or copied
1584         https://bugs.webkit.org/show_bug.cgi?id=167264
1585
1586         Reviewed by Daniel Bates.
1587
1588         * Scripts/svn-create-patch:
1589         (manufacturePatchForAdditionWithHistory): Diff the source file against nothing to get properties.
1590
1591 2017-01-23  Youenn Fablet  <youenn@apple.com>
1592
1593         [WebRTC] Filter libwebrtc link flags
1594         https://bugs.webkit.org/show_bug.cgi?id=167287
1595
1596         Reviewed by Alex Christensen.
1597
1598         * Scripts/webkitpy/libwebrtc/generate_cmake.py:
1599         (CMakeGenerator._compute_link_flags):
1600         (CMakeGenerator._compute_link_flags.keep_flag):
1601         (CMakeGenerator._generate_compile_target_options):
1602
1603 2017-01-23  Youenn Fablet  <youennf@gmail.com>
1604
1605         [WebRTC] Make VP8 optional in libwebrtc
1606         https://bugs.webkit.org/show_bug.cgi?id=167257
1607
1608         Reviewed by Darin Adler.
1609
1610         * Scripts/webkitpy/libwebrtc/generate_cmake.py:
1611         (CMakeGenerator.remove_libvpx): Adding vp8_noop.cc to the build system.
1612
1613 2017-01-23  Jer Noble  <jer.noble@apple.com>
1614
1615         Video details does not apear and missing scrubber in Control Center
1616         https://bugs.webkit.org/show_bug.cgi?id=167233
1617
1618         Reviewed by Alex Christensen.
1619
1620         Refactor TestWKWebViewMac to work on PLATFORM(IOS). Add a new test to
1621         NowPlayingControlTests for iOS.
1622
1623         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1624         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
1625         (-[NowPlayingTestWebView setWindowVisible:]):
1626         (TestWebKitAPI::TEST):
1627         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm:
1628         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
1629         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewCandidateTests.mm:
1630         * TestWebKitAPI/cocoa/TestWKWebView.h: Renamed from Tools/TestWebKitAPI/mac/TestWKWebViewMac.h.
1631         * TestWebKitAPI/cocoa/TestWKWebView.mm: Renamed from Tools/TestWebKitAPI/mac/TestWKWebViewMac.mm.
1632         (SOFT_LINK_CLASS):
1633         (-[TestMessageHandler addMessage:withHandler:]):
1634         (-[TestMessageHandler userContentController:didReceiveScriptMessage:]):
1635         (__simulated_forceClickAssociatedEventsMask):
1636         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
1637         (-[TestWKWebViewHostWindow isKeyWindow]):
1638         (-[TestWKWebViewHostWindow makeKeyWindow]):
1639         (-[TestWKWebViewHostWindow resignKeyWindow]):
1640         (-[TestWKWebView initWithFrame:]):
1641         (-[TestWKWebView initWithFrame:configuration:]):
1642         (-[TestWKWebView _setUpTestWindow:]):
1643         (-[TestWKWebView performAfterReceivingMessage:action:]):
1644         (-[TestWKWebView loadTestPageNamed:]):
1645         (-[TestWKWebView synchronouslyLoadTestPageNamed:]):
1646         (-[TestWKWebView stringByEvaluatingJavaScript:]):
1647         (-[TestWKWebView waitForMessage:]):
1648         (-[TestWKWebView performAfterLoading:]):
1649         (-[TestWKWebView mouseDownAtPoint:simulatePressure:]):
1650         (-[TestWKWebView typeCharacter:]):
1651
1652 2017-01-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1653
1654         Unreviewed. Bring back gtk-doc error messages after r209981.
1655
1656         Since r209981, if gtk-doc shows warnings the build fails but those warnings are not printed to stdout so it's
1657         impossible to know what's wrong.
1658
1659         * gtk/gtkdoc.py:
1660         (GTKDoc._run_command): Make print_output True by default again and use debug instead of info to log "Running" messages.
1661
1662 2017-01-20  Youenn Fablet  <youennf@gmail.com>
1663
1664         [WebRTC] Update build system to make G711 optional in libwebrtc
1665         https://bugs.webkit.org/show_bug.cgi?id=167256
1666
1667         Reviewed by Alex Christensen.
1668
1669         * Scripts/webkitpy/libwebrtc/generate_cmake.py:
1670         (CMakeGenerator.remove_webrtc_g711): Adding a missing file to the build system as this file includes generic pcm encoder functions.
1671
1672 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1673
1674         Cleanup RuntimeEnabledFeatures
1675         https://bugs.webkit.org/show_bug.cgi?id=167228
1676
1677         Reviewed by Simon Fraser.
1678
1679         * DumpRenderTree/mac/DumpRenderTree.mm:
1680         (enableExperimentalFeatures):
1681         (resetWebPreferencesToConsistentValues):
1682         (setWebPreferencesForTestOptions):
1683         (resetWebViewToConsistentStateBeforeTesting):
1684         * DumpRenderTree/win/DumpRenderTree.cpp:
1685         (enableExperimentalFeatures):
1686         (resetWebPreferencesToConsistentValues):
1687         More closely match WebKitTestRunner initialization of preferences
1688         for experimental features.
1689
1690 2017-01-20  Alex Christensen  <achristensen@webkit.org>
1691
1692         Build Fix for Windows DumpRenderTree after r210976
1693         https://bugs.webkit.org/show_bug.cgi?id=167115
1694
1695         * DumpRenderTree/win/DumpRenderTree.cpp:
1696         (resetWebPreferencesToConsistentValues):
1697
1698 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1699
1700         Remove outdated ENABLE(CSP_NEXT) build flag
1701         https://bugs.webkit.org/show_bug.cgi?id=167252
1702
1703         Reviewed by Brent Fulgham.
1704
1705         * Scripts/webkitperl/FeatureList.pm:
1706         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1707
1708 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1709
1710         Build Fix for Windows DumpRenderTree after r210976
1711
1712         * DumpRenderTree/win/DumpRenderTree.cpp:
1713         (resetWebPreferencesToConsistentValues):
1714
1715 2017-01-20  Antoine Quint  <graouts@apple.com>
1716
1717         Web Animations should be off by default and enabled as an experimental feature
1718         https://bugs.webkit.org/show_bug.cgi?id=167115
1719         <rdar://problem/30048963>
1720
1721         Reviewed by Joseph Pecoraro.
1722
1723         Turn Web Animations on in DRT.
1724
1725         * DumpRenderTree/mac/DumpRenderTree.mm:
1726         (resetWebPreferencesToConsistentValues):
1727         * DumpRenderTree/win/DumpRenderTree.cpp:
1728         (resetWebPreferencesToConsistentValues):
1729
1730 2017-01-20  Youenn Fablet  <youenn@apple.com>
1731
1732         [WebRTC] Add libwebrtc build infrastructure
1733         https://bugs.webkit.org/show_bug.cgi?id=167207
1734
1735         Reviewed by Alex Christensen.
1736
1737         Adding a script doing the libwebrtc project json to CMake file conversion.
1738
1739         * Scripts/generate-libwebrtc-cmake: Added.
1740         * Scripts/webkitpy/libwebrtc/__init__.py: Added.
1741         * Scripts/webkitpy/libwebrtc/generate_cmake.py: Added.
1742
1743 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1744
1745         Mini Browser: Show tooltip for Experimental Features
1746         https://bugs.webkit.org/show_bug.cgi?id=167225
1747
1748         Reviewed by Alex Christensen.
1749
1750         * MiniBrowser/mac/SettingsController.m:
1751         (-[SettingsController _populateMenu]):
1752         Include the full details string as a tooltip.
1753
1754 2017-01-20  Per Arne Vollan  <pvollan@apple.com>
1755
1756         [Win] Test output results should not be written twice.
1757         https://bugs.webkit.org/show_bug.cgi?id=167197
1758
1759         Reviewed by Brent Fulgham.
1760
1761         Prevent test output from being written twice by returning early from
1762         the dump() function, if it already has been called.
1763         This patch also adds a missing newline to a test output line. 
1764         
1765         * DumpRenderTree/win/DumpRenderTree.cpp:
1766         (dump):
1767
1768 2017-01-20  Antoine Quint  <graouts@apple.com>
1769
1770         [Modern Media Controls] Turn modern media controls on by default
1771         https://bugs.webkit.org/show_bug.cgi?id=165668
1772
1773         Reviewed by Dean Jackson.
1774
1775         Enabled modern media controls by default in test runners.
1776
1777         * DumpRenderTree/TestOptions.h:
1778         * WebKitTestRunner/TestOptions.h:
1779
1780 2017-01-19  Chris Dumez  <cdumez@apple.com>
1781
1782         iterable<> should be enabled on WK1
1783         https://bugs.webkit.org/show_bug.cgi?id=167221
1784         <rdar://problem/30108531>
1785
1786         Reviewed by Youenn Fablet.
1787
1788         * DumpRenderTree/mac/DumpRenderTree.mm:
1789         (resetWebPreferencesToConsistentValues):
1790         * DumpRenderTree/win/DumpRenderTree.cpp:
1791         (resetWebPreferencesToConsistentValues):
1792         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1793         (WTR::InjectedBundle::beginTesting):
1794         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1795         (WTR::TestRunner::setDOMIteratorEnabled): Deleted.
1796         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1797
1798 2017-01-19  Aakash Jain  <aakash_jain@apple.com>
1799
1800         Ensure status server logs go to log file
1801         https://bugs.webkit.org/show_bug.cgi?id=167210
1802
1803         Reviewed by Alexey Proskuryakov.
1804
1805         * Scripts/webkitpy/common/net/statusserver.py:
1806         (StatusServer.next_work_item): Change log level from debug to info in
1807         order to facilitate deubgging issues.
1808         (StatusServer.update_work_items): Same.
1809
1810 2017-01-19  Megan Gardner  <megan_gardner@apple.com>
1811
1812         Additional selection tests and interpolation fix
1813         https://bugs.webkit.org/show_bug.cgi?id=167171
1814
1815         Reviewed by Simon Fraser.
1816
1817         We weren't adding the final event when interpolating event streams.
1818
1819         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1820         (-[HIDEventGenerator interpolatedEvents:]):
1821
1822 2017-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
1823
1824         [Cocoa] Variation fonts are erroneously disabled on iOS
1825         https://bugs.webkit.org/show_bug.cgi?id=167172
1826
1827         Reviewed by Simon Fraser.
1828
1829         OpenSource builders don't seem to understand sdk=embedded*.
1830
1831         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1832
1833 2017-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1834
1835         Unreviewed. Fix GTK+ unit tests failing since r210531.
1836
1837         Avoid using paths to files that don't actually exist.
1838
1839         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp:
1840         (testWebKitConsoleMessageNetworkError):
1841         * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
1842         (testContextMenuDefaultMenu):
1843         * TestWebKitAPI/Tests/WebKit2Gtk/resources/silence.mpg: Added.
1844         * TestWebKitAPI/Tests/WebKit2Gtk/resources/simple.json: Added.
1845         * TestWebKitAPI/Tests/WebKit2Gtk/resources/tracks.ogg: Added.
1846
1847 2017-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1848
1849         [GTK] Provide API to set proxy settings
1850         https://bugs.webkit.org/show_bug.cgi?id=128674
1851
1852         Reviewed by Michael Catanzaro.
1853
1854         Add tests for new proxy settings API.
1855
1856         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
1857         (serverCallback):
1858         (ProxyTest::ProxyTest):
1859         (ProxyTest::~ProxyTest):
1860         (ProxyTest::loadURIAndGetMainResourceData):
1861         (ProxyTest::proxyServerPortAsString):
1862         (testWebContextProxySettings):
1863         (beforeAll):
1864
1865 2017-01-19  Timothy Hatcher  <timothy@hatcher.name>
1866
1867         Add back my old email address so old commits will still match it.
1868
1869         * Scripts/webkitpy/common/config/contributors.json:
1870
1871 2017-01-19  Timothy Hatcher  <timothy@hatcher.name>
1872
1873         Remove my old email address from contributors.json and watchlist.
1874
1875         * Scripts/validate-committer-lists:
1876         (CommitterListFromGit): Change the mapping to the correct email.
1877         * Scripts/webkitpy/common/config/contributors.json:
1878         * Scripts/webkitpy/common/config/watchlist:
1879
1880 2017-01-18  Ryan Haddad  <ryanhaddad@apple.com>
1881
1882         Unreviewed, rolling out r210848.
1883
1884         This change introduced media-related LayoutTest failures and
1885         crashes on macOS.
1886
1887         Reverted changeset:
1888
1889         "[Modern Media Controls] Turn modern media controls on by
1890         default"
1891         https://bugs.webkit.org/show_bug.cgi?id=165668
1892         http://trac.webkit.org/changeset/210848
1893
1894 2017-01-18  Andreas Kling  <akling@apple.com>
1895
1896         Document::securityOrigin() should return a reference.
1897         <https://webkit.org/b/167124>
1898
1899         Reviewed by Sam Weinig.
1900
1901         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp:
1902         (TestWebKitAPI::TEST_F):
1903
1904 2017-01-18  Per Arne Vollan  <pvollan@apple.com>
1905
1906         [Win] Clipboard tests are flaky.
1907         https://bugs.webkit.org/show_bug.cgi?id=167088
1908
1909         Reviewed by Brent Fulgham.
1910
1911         Tests involving the clipboard are flaky when running with multiple DRTs, since the clipboard is global. 
1912         We can fix this by assigning each DRT a separate window station (each window station has its own clipboard).
1913
1914         * DumpRenderTree/win/DumpRenderTree.cpp:
1915         (main):
1916
1917 2017-01-18  Antoine Quint  <graouts@apple.com>
1918
1919         [Modern Media Controls] Turn modern media controls on by default
1920         https://bugs.webkit.org/show_bug.cgi?id=165668
1921
1922         Reviewed by Dean Jackson.
1923
1924         Enabled modern media controls by default in test runners. 
1925
1926         * DumpRenderTree/TestOptions.h:
1927         * WebKitTestRunner/TestOptions.h:
1928
1929 2017-01-17  Michael Catanzaro  <mcatanzaro@igalia.com>
1930
1931         Unreviewed, rolling out r210834
1932         https://bugs.webkit.org/show_bug.cgi?id=165668
1933
1934         It introduced dozens of test timeouts.
1935
1936         Reverted changeset:
1937         "[Modern Media Controls] Turn modern media controls on by default"
1938         https://bugs.webkit.org/show_bug.cgi?id=165668
1939         http://trac.webkit.org/changeset/210834
1940
1941 2017-01-17  Antoine Quint  <graouts@apple.com>
1942
1943         [Modern Media Controls] Turn modern media controls on by default
1944         https://bugs.webkit.org/show_bug.cgi?id=165668
1945
1946         Reviewed by Dean Jackson.
1947
1948         Enabled modern media controls by default in test runners. 
1949
1950         * DumpRenderTree/TestOptions.h:
1951         * WebKitTestRunner/TestOptions.h:
1952
1953 2017-01-17  Chris Dumez  <cdumez@apple.com>
1954
1955         Document title changed twice when setting document.title
1956         https://bugs.webkit.org/show_bug.cgi?id=167065
1957
1958         Reviewed by Darin Adler.
1959
1960         Add WebKit2GTK API test that was written by Michael Catanzaro.
1961
1962         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
1963         (testWebViewTitleChange):
1964         (beforeAll):
1965
1966 2017-01-17  Joseph Pecoraro  <pecoraro@apple.com>
1967
1968         ENABLE(USER_TIMING) Not Defined for Apple Windows or OS X Ports
1969         https://bugs.webkit.org/show_bug.cgi?id=116551
1970         <rdar://problem/13949830>
1971
1972         Reviewed by Alex Christensen.
1973
1974         * Scripts/webkitperl/FeatureList.pm:
1975         Remove stale RESOURCE_TIMING references which are now a runtime enabled feature
1976         that is part of the existing WEB_TIMING feature.
1977
1978         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1979
1980 2017-01-17  Jonathan Bedard  <jbedard@apple.com>
1981
1982         'webkit-patch post' no longer works with moved/copied files
1983         https://bugs.webkit.org/show_bug.cgi?id=166914
1984         <rdar://problem/29979707>
1985
1986         Reviewed by Daniel Bates.
1987
1988         SVN 1.9 has a bug where when a file has been moved or copied, the svn diff of the new
1989         file outputs only the "Index:" line with an empty body.  This workaround
1990         ignores such output from svn diff.  A issue has been filed with SVN, a link to the
1991         public email list tracking this bug is below.
1992         http://mail-archives.apache.org/mod_mbox/subversion-users/201701.mbox/%3cCF9BDE0A-7454-4405-8259-1120C6B76A03@apple.com%3e
1993         
1994
1995         * Scripts/svn-create-patch:
1996         (generateDiff): Ignore an "Index:" line with an empty body.
1997
1998 2017-01-16  Joseph Pecoraro  <pecoraro@apple.com>
1999
2000         Remove the REQUEST_ANIMATION_FRAME flag
2001         https://bugs.webkit.org/show_bug.cgi?id=156980
2002         <rdar://problem/25906849>
2003
2004         Reviewed by Simon Fraser.
2005
2006         * Scripts/webkitperl/FeatureList.pm:
2007         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2008
2009 2017-01-15  Sam Weinig  <sam@webkit.org>
2010
2011         Add the ability to use numbers in makeString()
2012         https://bugs.webkit.org/show_bug.cgi?id=167087
2013
2014         Reviewed by Darin Adler.
2015
2016         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2017         * TestWebKitAPI/Tests/WTF/StringConcatenate.cpp: Added.
2018         Add tests for StringConcatenate, focusing on new numeric additions.
2019
2020 2017-01-15  Michael Catanzaro  <mcatanzaro@igalia.com>
2021
2022         Unreviewed, remove stale comment.
2023
2024         This test was fixed by r163173.
2025
2026         * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp:
2027
2028 2017-01-14  Yusuke Suzuki  <utatane.tea@gmail.com>
2029
2030         Annotate large string tests with largeHeap
2031         https://bugs.webkit.org/show_bug.cgi?id=167054
2032
2033         Reviewed by Filip Pizlo.
2034
2035         * Scripts/run-javascriptcore-tests:
2036         * Scripts/run-jsc-stress-tests:
2037
2038 2017-01-14  Joseph Pecoraro  <pecoraro@apple.com>
2039
2040         Remove stale references to ENABLE_ES6_GENERATORS and ENABLE_PROMISES
2041         https://bugs.webkit.org/show_bug.cgi?id=167043
2042
2043         Reviewed by Darin Adler.
2044
2045         * Scripts/webkitperl/FeatureList.pm:
2046
2047 2017-01-13  Joseph Pecoraro  <pecoraro@apple.com>
2048
2049         Remove ENABLE(DETAILS_ELEMENT) guards
2050         https://bugs.webkit.org/show_bug.cgi?id=167042
2051
2052         Reviewed by Alex Christensen.
2053
2054         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2055
2056 2017-01-13  Said Abou-Hallawa  <sabouhallawa@apple.com>
2057
2058         26 MotionMark performance tests failing
2059         https://bugs.webkit.org/show_bug.cgi?id=166854
2060
2061         Reviewed by Ryosuke Niwa.
2062
2063         Unrelated change. This is the last place that we need to rename Animometer
2064         to MotionMark.
2065
2066         * Scripts/webkitpy/common/config/watchlist:
2067
2068 2017-01-13  Yusuke Suzuki  <utatane.tea@gmail.com>
2069
2070         run-jsc-benchmarks' echo should have -e option
2071         https://bugs.webkit.org/show_bug.cgi?id=167009
2072
2073         Reviewed by Sam Weinig.
2074
2075         echo requires `-e` option to use escape sequence.
2076         Without it, in some environment (in my Fedora 25), the escape sequence is not
2077         recognized and just dumped as `\c` etc.
2078
2079         * Scripts/run-jsc-benchmarks:
2080
2081 2017-01-12  Chris Dumez  <cdumez@apple.com>
2082
2083         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
2084         https://bugs.webkit.org/show_bug.cgi?id=166995
2085
2086         Reviewed by Jer Noble.
2087
2088         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
2089         as some people are having trouble building without it.
2090
2091         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2092
2093 2017-01-12  Sam Weinig  <sam@webkit.org>
2094
2095         Add the ability to filter the set of bindings tests you want to run
2096         https://bugs.webkit.org/show_bug.cgi?id=166977
2097
2098         Reviewed by Tim Horton.
2099
2100         Allows doing things like:
2101             run-bindings-tests TestObj* TestCEReactions*
2102         
2103         to run only those tests that match the patterns.
2104
2105         * Scripts/run-bindings-tests:
2106         (main):
2107         Switch to using optparse and pass the remaining args as the filters.
2108
2109         * Scripts/webkitpy/bindings/main.py:
2110         (BindingsTests.__init__):
2111         Store the pattens.
2112
2113         (BindingsTests.test_matches_patterns):
2114         Add helper predicate to determine if a test should be run. When no
2115         patterns are present, all tests should run.
2116
2117         (BindingsTests.run_tests):
2118         Filter tests using the passed in patterns.
2119
2120 2017-01-12  Per Arne Vollan  <pvollan@apple.com>
2121
2122         Followup fix after r210503.
2123         https://bugs.webkit.org/show_bug.cgi?id=166887
2124
2125         Reviewed by Alex Christensen.
2126
2127         After <http://trac.webkit.org/changeset/210503>, test results are written to a
2128         duplicated file handle on Windows. This patch fixes the remaining call sites.
2129
2130         * DumpRenderTree/PixelDumpSupport.cpp:
2131         * DumpRenderTree/TestRunner.cpp:
2132         (TestRunner::waitToDumpWatchdogTimerFired):
2133         * DumpRenderTree/TestRunner.h:
2134         * DumpRenderTree/win/AccessibilityControllerWin.cpp:
2135         * DumpRenderTree/win/DumpRenderTree.cpp:
2136         * DumpRenderTree/win/DumpRenderTreeWin.h:
2137         * DumpRenderTree/win/TestRunnerWin.cpp:
2138         (TestRunner::setSpellCheckerLoggingEnabled):
2139
2140 2017-01-11  Megan Gardner  <megan_gardner@apple.com>
2141
2142         Add committer status for Megan
2143         https://bugs.webkit.org/show_bug.cgi?id=166954
2144
2145         Reviewed by Tim Horton.
2146
2147         Add committer status for Megan Gardner
2148
2149         * Scripts/webkitpy/common/config/contributors.json:
2150
2151 2017-01-11  Brent Fulgham  <bfulgham@apple.com>
2152
2153         Unreviewed test fix after r210599.
2154
2155         * TestWebKitAPI/Tests/WebKit2/WKPageIsPlayingAudio.cpp:
2156         (TestWebKitAPI::TEST): Remove debugging code that was causing a timeout.
2157
2158 2017-01-11  Brent Fulgham  <bfulgham@apple.com>
2159
2160         Unreviewed build fix after r210599.
2161
2162         Add missing files.
2163
2164         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.html: Added.
2165         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.mm: Added.
2166
2167 2017-01-11  Brent Fulgham  <bfulgham@apple.com>
2168
2169         File scheme should not allow access of a resource on a different volume.
2170         https://bugs.webkit.org/show_bug.cgi?id=158552
2171         <rdar://problem/15307582>
2172
2173         Reviewed by Alex Christensen.
2174
2175         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add new files.
2176         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.html: Added.
2177         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.mm: Added.
2178
2179 2017-01-11  Ryan Haddad  <ryanhaddad@apple.com>
2180
2181         Unreviewed, rolling out r210571.
2182
2183         This change broke the 32-bit macOS build and caused LayoutTest
2184         failures.
2185
2186         Reverted changeset:
2187
2188         "File scheme should not allow access of a resource on a
2189         different volume."
2190         https://bugs.webkit.org/show_bug.cgi?id=158552
2191         http://trac.webkit.org/changeset/210571
2192
2193 2017-01-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2194
2195         [GTK] install-dependencies script misses gdb
2196         https://bugs.webkit.org/show_bug.cgi?id=166917
2197
2198         Reviewed by Michael Catanzaro.
2199
2200         gdb is needed for generating the crash logs.
2201
2202         * gtk/install-dependencies:
2203
2204 2017-01-10  Michael Catanzaro  <mcatanzaro@igalia.com>
2205
2206         [GTK] No way for applications to set notification permissions without waiting for permission request
2207         https://bugs.webkit.org/show_bug.cgi?id=163366
2208
2209         Reviewed by Carlos Garcia Campos.
2210
2211         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2212         (testWebViewNotification):
2213         (setInitialNotificationPermissionsAllowedCallback):
2214         (setInitialNotificationPermissionsDisallowedCallback):
2215         (testWebViewNotificationInitialPermissionAllowed):
2216         (testWebViewNotificationInitialPermissionDisallowed):
2217         (beforeAll):
2218         * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.h:
2219         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
2220         (WebViewTest::WebViewTest):
2221         (WebViewTest::initializeWebView):
2222         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h:
2223
2224 2017-01-10  Tim Horton  <timothy_horton@apple.com>
2225
2226         MobileMiniBrowser tests don't work by default
2227         https://bugs.webkit.org/show_bug.cgi?id=166910
2228
2229         Reviewed by Alex Christensen.
2230
2231         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/xcshareddata/xcschemes/MobileMiniBrowserUITests.xcscheme: Added.
2232         Add a shared scheme; the Makefile depends on the MobileMiniBrowserUITests scheme existing, at the very least.
2233
2234 2017-01-10  Brent Fulgham  <bfulgham@apple.com>
2235
2236         File scheme should not allow access of a resource on a different volume.
2237         https://bugs.webkit.org/show_bug.cgi?id=158552
2238         <rdar://problem/15307582>
2239
2240         Reviewed by Alex Christensen.
2241
2242         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add new files.
2243         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.html: Added.
2244         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.mm: Added.
2245
2246 2017-01-10  Mark Lam  <mark.lam@apple.com>
2247
2248         Reverting run-jsc-stress-tests' $buildType to use string values.
2249         https://bugs.webkit.org/show_bug.cgi?id=166912
2250
2251         Rubber stamped by Filip Pizlo.
2252
2253         This is so that we can test for it in the tests e.g.
2254         //@ if $buildType == "debug" then runDefault("--maxSingleAllocationSize=1048576") else skip end
2255
2256         * Scripts/run-jsc-stress-tests:
2257
2258 2017-01-10  Ryosuke Niwa  <rniwa@webkit.org>
2259
2260         Temporarily add back the file removed in r210463 to unbreak internal bots.
2261
2262         * Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch: Copied from Tools/Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch.
2263
2264 2017-01-10  Jonathan Bedard  <jbedard@apple.com>
2265
2266         svn-apply failed to apply a patch (deleting file with svn property)
2267         https://bugs.webkit.org/show_bug.cgi?id=165953
2268
2269         Reviewed by Daniel Bates.
2270
2271         * Scripts/VCSUtils.pm:
2272         (parseSvnPropertyValue): The beginning of a diff will cause an early exit in the case of no empty newlines.
2273         * Scripts/webkitperl/VCSUtils_unittest/parseSvnProperty.pl: Add tests without break between diffs for properties.
2274
2275 2017-01-10  Ryan Haddad  <ryanhaddad@apple.com>
2276
2277         Update flakiness dashboard configuration.
2278         https://bugs.webkit.org/show_bug.cgi?id=166869
2279
2280         Reviewed by Alexey Proskuryakov.
2281
2282         * TestResultServer/static-dashboards/builders.jsonp:
2283         * TestResultServer/static-dashboards/flakiness_dashboard.js:
2284
2285 2017-01-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2286
2287         [GTK] Stop honoring the environment variable USE_NATIVE_XDISPLAY
2288         https://bugs.webkit.org/show_bug.cgi?id=165232
2289
2290         Unreviewed follow-up patch after r210539 and r210523.
2291
2292         Instead of using that environment variable, the argument
2293         --display-server=xorg should be passed now.
2294
2295         The GTK+ performance bot was the only bot using this, and is
2296         already passing --display-server=xorg after r210539.
2297
2298         * Scripts/webkitpy/port/gtk.py:
2299         (GtkPort._driver_class):
2300
2301 2017-01-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2302
2303         [GTK] Add a new release test bot for Wayland and pass --display-server=xorg to the GTK Perf bot.
2304         https://bugs.webkit.org/show_bug.cgi?id=166872
2305
2306         Reviewed by Michael Catanzaro.
2307
2308         Add the new wayland release test bot as a test-only bot. It will download the built product from the release build-only bot.
2309         Define the required "--display-server=driver" in the bot additionalArguments config entry.
2310         Implement support for honoring additionalArguments on the RunGtkAPITests and RunAndUploadPerfTests steps.
2311         The step RunWebKitTests already has support for it.
2312
2313         * BuildSlaveSupport/build.webkit.org-config/config.json:
2314         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
2315         (RunGtkAPITests.start):
2316         (RunAndUploadPerfTests.start):
2317         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
2318
2319 2017-01-09  Ryan Haddad  <ryanhaddad@apple.com>
2320
2321         Unreviewed, rolling out r210531.
2322
2323         This change broke the 32-bit macOS build and caused LayoutTest
2324         failures.
2325
2326         Reverted changeset:
2327
2328         "File scheme should not allow access of a resource on a
2329         different volume."
2330         https://bugs.webkit.org/show_bug.cgi?id=158552
2331         http://trac.webkit.org/changeset/210531
2332
2333 2017-01-09  Brent Fulgham  <bfulgham@apple.com>
2334
2335         File scheme should not allow access of a resource on a different volume.
2336         https://bugs.webkit.org/show_bug.cgi?id=158552
2337         <rdar://problem/15307582>
2338
2339         Reviewed by Alex Christensen.
2340
2341         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add new files.
2342         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.html: Added.
2343         * TestWebKitAPI/Tests/mac/CrossPartitionFileSchemeAccess.mm: Added.
2344
2345 2017-01-09  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2346
2347         [GTK][Wayland] Allow running the layout tests under a native Wayland environment.
2348         https://bugs.webkit.org/show_bug.cgi?id=165232
2349
2350         Reviewed by Michael Catanzaro.
2351
2352         Add a new WaylandDriver to run the tests in the user current wayland session.
2353
2354         Also merge all the configuration options for selecting the display server inside one
2355         switch --display-server=xvfb/xorg/wayland/weston (defaulting to xvfb).
2356
2357         This switch is supported on the scripts: run-gtk-tests, run-perf-tests and run-webkit-tests.
2358
2359         * Scripts/run-gtk-tests: Add missing logging.basicConfig() initialization for the error logger.
2360         (TestRunner._create_driver):
2361         * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
2362         (parse_args):
2363         * Scripts/webkitpy/performance_tests/perftestsrunner.py:
2364         (PerfTestsRunner._parse_args):
2365         * Scripts/webkitpy/port/gtk.py:
2366         (GtkPort.__init__):
2367         (GtkPort._driver_class):
2368         (GtkPort._search_paths):
2369         * Scripts/webkitpy/port/waylanddriver.py: Added.
2370         (WaylandDriver):
2371         (WaylandDriver.check_driver):
2372         (WaylandDriver._setup_environ_for_test):
2373         (WaylandDriver._start):
2374
2375 2017-01-09  Andy Estes  <aestes@apple.com>
2376
2377         [QuickLook] Add a layout test for webkit.org/b/135651
2378         https://bugs.webkit.org/show_bug.cgi?id=166855
2379
2380         Reviewed by Andreas Kling.
2381
2382         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2383         (-[FrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): Added output for
2384         errors with code WebKitErrorCannotShowURL.
2385         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2386         (WTR::InjectedBundlePage::didFailProvisionalLoadWithErrorForFrame): Made the error output
2387         not specific to WebKit2 error codes.
2388
2389 2017-01-09  Antoine Quint  <graouts@apple.com>
2390
2391         Support webkit-test-runner key-value pairs in http tests in DumpRenderTree
2392         https://bugs.webkit.org/show_bug.cgi?id=166837
2393
2394         Reviewed by Alex Christensen.
2395
2396         We now correctly handle the --absolutePath argument in DumpRenderTree and use
2397         the provided value when trying to determine the path to the test file. Failing
2398         that, we use the computed URL or the raw path provided to cover all cases.
2399         
2400         This was tested in the context of https://bugs.webkit.org/show_bug.cgi?id=165668
2401         by applying this patch and seeing the number test failures dramatically reduced
2402         with WK1 due to the option to turn modern media controls off for older media controls
2403         tests.
2404
2405         * DumpRenderTree/DumpRenderTree.h:
2406         * DumpRenderTree/DumpRenderTreeCommon.cpp:
2407         (parseInputLine):
2408         * DumpRenderTree/TestOptions.h:
2409         * DumpRenderTree/TestOptions.mm:
2410         (TestOptions::TestOptions):
2411         * DumpRenderTree/mac/DumpRenderTree.mm:
2412         (runTest):
2413
2414 2017-01-09  Milan Crha  <mcrha@redhat.com>
2415
2416         prepare-ChangeLog: Correct help string for --style option
2417         https://bugs.webkit.org/show_bug.cgi?id=166725
2418
2419         Reviewed by Alexey Proskuryakov.
2420
2421         * Scripts/prepare-ChangeLog:
2422         (main):
2423
2424 2017-01-09  Lucas Forschler  <lforschler@apple.com>
2425
2426         https://bugs.webkit.org/show_bug.cgi?id=166839
2427         Add php7 support for macOS.
2428         Mirror the debian logic to look for a php7 module on disk, and return the appropriate apache config file.
2429
2430         Reviewed by Alexey Proskuryakov.
2431
2432         * Scripts/webkitpy/port/base.py:
2433         (Port._is_darwin_php_version_7):
2434         (Port._debian_php_version):
2435         (Port):
2436         (Port._darwin_php_version):
2437         (Port._apache_config_file_name_for_platform):
2438
2439 2017-01-06  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
2440
2441         [GTK] Should support key and code properties on keyboard events
2442         https://bugs.webkit.org/show_bug.cgi?id=166759
2443
2444         Reviewed by Carlos Garcia Campos.
2445
2446         * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
2447         (WTR::getGDKKeySymForKeyRef): add missing modifier keys which were being reported as 'l' and 'r' only
2448         on tests.
2449
2450 2017-01-06  Per Arne Vollan  <pvollan@apple.com>
2451
2452         [Win] Some tests are flaky because certain DLLs are writing to stdout.
2453         https://bugs.webkit.org/show_bug.cgi?id=166760
2454
2455         Reviewed by Darin Adler.
2456
2457         Some tests are flaky because certain DLLs are writing to stdout, giving incorrect test results.
2458         We can work around that by duplicating and redirecting stdout.
2459
2460         * DumpRenderTree/PixelDumpSupport.cpp:
2461         (dumpWebViewAsPixelsAndCompareWithExpected):
2462         (printPNG):
2463         * DumpRenderTree/win/AccessibilityControllerWin.cpp:
2464         (logEventProc):
2465         * DumpRenderTree/win/DRTDesktopNotificationPresenter.cpp:
2466         (DRTDesktopNotificationPresenter::showDesktopNotification):
2467         (DRTDesktopNotificationPresenter::cancelDesktopNotification):
2468         (DRTDesktopNotificationPresenter::requestNotificationPermission):
2469         * DumpRenderTree/win/DumpRenderTree.cpp:
2470         (dumpFrameScrollPosition):
2471         (dumpHistoryItem):
2472         (dumpBackForwardList):
2473         (dump):
2474         (runTest):
2475         (main):
2476         * DumpRenderTree/win/DumpRenderTreeWin.h:
2477         * DumpRenderTree/win/EditingDelegate.cpp:
2478         (EditingDelegate::shouldBeginEditingInDOMRange):
2479         (EditingDelegate::shouldEndEditingInDOMRange):
2480         (EditingDelegate::shouldInsertNode):
2481         (EditingDelegate::shouldInsertText):
2482         (EditingDelegate::shouldDeleteDOMRange):
2483         (EditingDelegate::shouldChangeSelectedDOMRange):
2484         (EditingDelegate::shouldApplyStyle):
2485         (EditingDelegate::shouldChangeTypingStyle):
2486         (EditingDelegate::doPlatformCommand):
2487         (EditingDelegate::webViewDidBeginEditing):
2488         (EditingDelegate::webViewDidChange):
2489         (EditingDelegate::webViewDidEndEditing):
2490         (EditingDelegate::webViewDidChangeTypingStyle):
2491         (EditingDelegate::webViewDidChangeSelection):
2492         * DumpRenderTree/win/FrameLoadDelegate.cpp:
2493         (FrameLoadDelegate::didStartProvisionalLoadForFrame):
2494         (FrameLoadDelegate::didReceiveServerRedirectForProvisionalLoadForFrame):
2495         (FrameLoadDelegate::didChangeLocationWithinPageForFrame):
2496         (FrameLoadDelegate::didFailProvisionalLoadWithError):
2497         (FrameLoadDelegate::didCommitLoadForFrame):
2498         (FrameLoadDelegate::didReceiveTitle):
2499         (FrameLoadDelegate::didFinishLoadForFrame):
2500         (FrameLoadDelegate::didFailLoadWithError):
2501         (FrameLoadDelegate::willPerformClientRedirectToURL):
2502         (FrameLoadDelegate::didCancelClientRedirectForFrame):
2503         (FrameLoadDelegate::windowScriptObjectAvailable):
2504         (FrameLoadDelegate::didFinishDocumentLoadForFrame):
2505         (FrameLoadDelegate::didHandleOnloadEventsForFrame):
2506         (FrameLoadDelegate::didDisplayInsecureContent):
2507         (FrameLoadDelegate::didRunInsecureContent):
2508         (FrameLoadDelegate::webViewProgressFinishedNotification):
2509         * DumpRenderTree/win/HistoryDelegate.cpp:
2510         (HistoryDelegate::didNavigateWithNavigationData):
2511         (HistoryDelegate::didPerformClientRedirectFromURL):
2512         (HistoryDelegate::didPerformServerRedirectFromURL):
2513         (HistoryDelegate::updateHistoryTitle):
2514         (HistoryDelegate::populateVisitedLinksForWebView):
2515         * DumpRenderTree/win/PolicyDelegate.cpp:
2516         (PolicyDelegate::decidePolicyForNavigationAction):
2517         (PolicyDelegate::unableToImplementPolicyWithError):
2518         * DumpRenderTree/win/ResourceLoadDelegate.cpp:
2519         (ResourceLoadDelegate::willSendRequest):
2520         (ResourceLoadDelegate::didReceiveAuthenticationChallenge):
2521         (ResourceLoadDelegate::didReceiveResponse):
2522         (ResourceLoadDelegate::didFinishLoadingFromDataSource):
2523         (ResourceLoadDelegate::didFailLoadingWithError):
2524         * DumpRenderTree/win/TestRunnerWin.cpp:
2525         (TestRunner::addDisallowedURL):
2526         (TestRunner::originsWithApplicationCache):
2527         (TestRunner::setStorageDatabaseIdleInterval):
2528         (TestRunner::closeIdleLocalStorageDatabases):
2529         (TestRunner::copyDecodedHostName):
2530         (TestRunner::copyEncodedHostName):
2531         (TestRunner::numberOfPendingGeolocationPermissionRequests):
2532         (TestRunner::isGeolocationProviderActive):
2533         (TestRunner::pathToLocalResource):
2534         (TestRunner::setMockDeviceOrientation):
2535         (TestRunner::setMockGeolocationPosition):
2536         (TestRunner::setMockGeolocationPositionUnavailableError):
2537         (TestRunner::setSpatialNavigationEnabled):
2538         (TestRunner::setAutomaticLinkDetectionEnabled):
2539         (TestRunner::isCommandEnabled):
2540         (TestRunner::authenticateSession):
2541         (TestRunner::addChromeInputField):
2542         (TestRunner::removeChromeInputField):
2543         (TestRunner::focusWebView):
2544         (TestRunner::grantWebNotificationPermission):
2545         (TestRunner::denyWebNotificationPermission):
2546         (TestRunner::removeAllWebNotificationPermissions):
2547         (TestRunner::simulateWebNotificationClick):
2548         (TestRunner::imageCountInGeneralPasteboard):
2549         * DumpRenderTree/win/UIDelegate.cpp:
2550         (UIDelegate::runJavaScriptAlertPanelWithMessage):
2551         (UIDelegate::runJavaScriptConfirmPanelWithMessage):
2552         (UIDelegate::runJavaScriptTextInputPanelWithPrompt):
2553         (UIDelegate::runBeforeUnloadConfirmPanelWithMessage):
2554         (UIDelegate::webViewAddMessageToConsole):
2555         (UIDelegate::exceededDatabaseQuota):
2556         (UIDelegate::setStatusText):
2557         (UIDelegate::didPressMissingPluginButton):
2558
2559 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2560
2561         Add a setting to create editable MiniBrowser windows by default
2562         https://bugs.webkit.org/show_bug.cgi?id=166806
2563
2564         Reviewed by Beth Dakin.
2565
2566         * MiniBrowser/mac/AppDelegate.m:
2567         (-[BrowserAppDelegate createBrowserWindowController:]):
2568         (-[BrowserAppDelegate applicationDidFinishLaunching:]):
2569         (-[BrowserAppDelegate _updateNewWindowKeyEquivalents]):
2570         * MiniBrowser/mac/SettingsController.h:
2571         * MiniBrowser/mac/SettingsController.m:
2572         (-[SettingsController _populateMenu]):
2573         (-[SettingsController validateMenuItem:]):
2574         (-[SettingsController toggleCreateEditorByDefault:]):
2575         (-[SettingsController createEditorByDefault]):
2576         Add a setting and update the key equivalents accordingly.
2577         Also make sure to make the right kind of window on launch.
2578
2579 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2580
2581         Fix the 32-bit build.
2582
2583         * MiniBrowser/mac/BrowserWindowController.h:
2584         * MiniBrowser/mac/BrowserWindowController.m:
2585
2586 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2587
2588         Fix the 32-bit build.
2589
2590         * MiniBrowser/mac/BrowserWindowController.m:
2591
2592 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2593
2594         Make it possible to drop HTML files on the MiniBrowser icon
2595         https://bugs.webkit.org/show_bug.cgi?id=166802
2596
2597         Reviewed by Simon Fraser.
2598
2599         * MiniBrowser/mac/AppDelegate.m:
2600         (-[BrowserAppDelegate application:openFile:]):
2601         * MiniBrowser/mac/Info.plist:
2602         If you're using an editable window, the usual trick of dropping on the
2603         window doesn't work anymore (it makes an <attachment> instead).
2604
2605 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2606
2607         MiniBrowser window gets smaller each time it is instantiated
2608         https://bugs.webkit.org/show_bug.cgi?id=166807
2609
2610         Reviewed by Andy Estes.
2611
2612         * MiniBrowser/mac/BrowserWindowController.m:
2613         (-[BrowserWindowController windowDidLoad]):
2614         * MiniBrowser/mac/BrowserWindow.xib:
2615         Turn on full-window content view support with IB, instead of waiting
2616         until after the views have been loaded. This seems to resolve the
2617         longstanding ever-shrinking-window problem.
2618
2619 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2620
2621         Add indent/outdent items to MiniBrowser's new format menu
2622         https://bugs.webkit.org/show_bug.cgi?id=166805
2623
2624         Reviewed by Dan Bernstein.
2625
2626         * MiniBrowser/mac/MainMenu.xib:
2627
2628 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2629
2630         Add a stock Format menu to MiniBrowser
2631         https://bugs.webkit.org/show_bug.cgi?id=166804
2632
2633         Reviewed by Andy Estes.
2634
2635         * MiniBrowser/mac/MainMenu.xib:
2636         Many of the features automatically work with editable web views.
2637         However, this seems to expose a bug where none of the font-related features
2638         (Cmd-B, for example) work until the first time the font panel is shown,
2639         per process, which will need to be investigated separately.
2640
2641 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2642
2643         Remove unused applicationWillTerminate methods from MiniBrowser
2644         https://bugs.webkit.org/show_bug.cgi?id=166803
2645
2646         Reviewed by Andy Estes.
2647
2648         * MiniBrowser/mac/AppDelegate.m:
2649         (-[BrowserAppDelegate applicationWillTerminate:]): Deleted.
2650         * MiniBrowser/mac/BrowserWindowController.h:
2651         * MiniBrowser/mac/BrowserWindowController.m:
2652         (-[BrowserWindowController applicationTerminating]): Deleted.
2653         * MiniBrowser/mac/WK1BrowserWindowController.m:
2654         (-[WK1BrowserWindowController applicationTerminating]): Deleted.
2655         * MiniBrowser/mac/WK2BrowserWindowController.m:
2656         (-[WK2BrowserWindowController applicationTerminating]): Deleted.
2657
2658 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2659
2660         Add the ability to create empty contentEditable windows in MiniBrowser
2661         https://bugs.webkit.org/show_bug.cgi?id=166801
2662
2663         Reviewed by Wenson Hsieh.
2664
2665         * MiniBrowser/mac/AppDelegate.h:
2666         * MiniBrowser/mac/AppDelegate.m:
2667         (-[BrowserAppDelegate createBrowserWindowController:]):
2668         (-[BrowserAppDelegate newWindow:]):
2669         (-[BrowserAppDelegate newEditorWindow:]):
2670         (-[BrowserAppDelegate openDocument:]):
2671         (-[BrowserAppDelegate _updateNewWindowKeyEquivalents]):
2672         * MiniBrowser/mac/BrowserWindowController.h:
2673         * MiniBrowser/mac/BrowserWindowController.m:
2674         (-[BrowserWindowController loadHTMLString:]):
2675         (-[BrowserWindowController toggleEditable:]):
2676         * MiniBrowser/mac/MainMenu.xib:
2677         * MiniBrowser/mac/WK1BrowserWindowController.m:
2678         (-[WK1BrowserWindowController awakeFromNib]):
2679         (-[WK1BrowserWindowController loadHTMLString:]):
2680         (-[WK1BrowserWindowController validateMenuItem:]):
2681         (-[WK1BrowserWindowController setEditable:]):
2682         (-[WK1BrowserWindowController updateTitle:]):
2683         * MiniBrowser/mac/WK2BrowserWindowController.m:
2684         (-[WK2BrowserWindowController awakeFromNib]):
2685         (-[WK2BrowserWindowController validateMenuItem:]):
2686         (-[WK2BrowserWindowController setEditable:]):
2687         (-[WK2BrowserWindowController updateTitle:]):
2688         (-[WK2BrowserWindowController loadHTMLString:]):
2689         Merge more functionality from WebEditingTester.
2690         Add two menu items for creating empty editable WebKit1/2 windows.
2691         Add a menu item to the Edit menu to toggle editability on any window.
2692
2693 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2694
2695         Implement find-in-page in MiniBrowser
2696         https://bugs.webkit.org/show_bug.cgi?id=166799
2697
2698         Reviewed by Andy Estes.
2699
2700         * MiniBrowser/mac/BrowserWindow.xib:
2701         * MiniBrowser/mac/BrowserWindowController.h:
2702         * MiniBrowser/mac/BrowserWindowController.m:
2703         (-[BrowserWindowController find:]): Deleted.
2704         * MiniBrowser/mac/MainMenu.xib:
2705         * MiniBrowser/mac/WK1BrowserWindowController.m:
2706         (-[WK1BrowserWindowController toggleShrinkToFit:]):
2707         (-[WK1BrowserWindowController find:]): Deleted.
2708         * MiniBrowser/mac/WK2BrowserWindowController.m:
2709         (-[WK2BrowserWindowController awakeFromNib]):
2710         (-[WK2BrowserWindowController dealloc]):
2711         (-[WK2BrowserWindowController validateMenuItem:]):
2712         (-[WK2BrowserWindowController performTextFinderAction:]):
2713         (-[WK2BrowserWindowController findBarView]):
2714         (-[WK2BrowserWindowController setFindBarView:]):
2715         (-[WK2BrowserWindowController isFindBarVisible]):
2716         (-[WK2BrowserWindowController setFindBarVisible:]):
2717         (-[WK2BrowserWindowController contentView]):
2718         (-[WK2BrowserWindowController findBarViewDidChangeHeight]):
2719         (-[WK2BrowserWindowController performFindPanelAction:]): Deleted.
2720         (-[WK2BrowserWindowController find:]): Deleted.
2721         Implement find-in-page using WKWebView's conformance to the NSTextFinderClient
2722         protocol. At first glance, it's pretty broken, but vaguely works.
2723
2724 2017-01-07  Tim Horton  <timothy_horton@apple.com>
2725
2726         Share the implementation of MiniBrowser view hiding functionality
2727         https://bugs.webkit.org/show_bug.cgi?id=166800
2728
2729         Reviewed by Andy Estes.
2730
2731         * MiniBrowser/mac/BrowserWindowController.m:
2732         (-[BrowserWindowController showHideWebView:]):
2733         (-[BrowserWindowController removeReinsertWebView:]):
2734         * MiniBrowser/mac/WK1BrowserWindowController.m:
2735         (-[WK1BrowserWindowController showHideWebView:]): Deleted.
2736         (-[WK1BrowserWindowController removeReinsertWebView:]): Deleted.
2737         * MiniBrowser/mac/WK2BrowserWindowController.m:
2738         (-[WK2BrowserWindowController showHideWebView:]): Deleted.
2739         (-[WK2BrowserWindowController removeReinsertWebView:]): Deleted.
2740         Move the implementation of these two things to the shared superclass,
2741         since they don't depend on WebKit-specific things.
2742         Also, there was no reason to retain the (WK)WebView while it was unparented,
2743         as the BrowserWindowController maintains a reference the entire time.
2744
2745 2017-01-06  Andy Estes  <aestes@apple.com>
2746
2747         [Cocoa] Consolidate duplicate copies of WebArchiveDumpSupport in DRT and WKTR into WebCoreTestSupport
2748         https://bugs.webkit.org/show_bug.cgi?id=166789
2749
2750         Reviewed by Alex Christensen.
2751
2752         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2753         * DumpRenderTree/PlatformMac.cmake:
2754         * DumpRenderTree/cf/WebArchiveDumpSupport.cpp: Removed.
2755         * DumpRenderTree/cf/WebArchiveDumpSupport.h: Removed.
2756         * DumpRenderTree/mac/DumpRenderTree.mm:
2757         Called WebCoreTestSupport::createXMLStringFromWebArchiveData() instead of
2758         createXMLStringFromWebArchiveData().
2759         * DumpRenderTree/mac/WebArchiveDumpSupportMac.mm: Removed.
2760         * WebKitTestRunner/Configurations/Base.xcconfig:
2761         Added $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport to HEADER_SEARCH_PATHS.
2762         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2763         (WTR::InjectedBundlePage::dumpDOMAsWebArchive):
2764         Called WebCoreTestSupport::createXMLStringFromWebArchiveData() instead of
2765         createXMLStringFromWebArchiveData().
2766         * WebKitTestRunner/InjectedBundle/cocoa/WebArchiveDumpSupportCocoa.mm: Removed.
2767         * WebKitTestRunner/PlatformMac.cmake:
2768         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
2769         * WebKitTestRunner/cf/WebArchiveDumpSupport.h: Removed.
2770
2771 2017-01-06  Tim Horton  <timothy_horton@apple.com>
2772
2773         Minor cleanups to IndentOutdentCommand and related code
2774         https://bugs.webkit.org/show_bug.cgi?id=166791
2775
2776         Reviewed by Simon Fraser.
2777
2778         * WebEditingTester/EditingOperations.m:
2779         (editingOperations):
2780         Add the outdent operation to WebEditingTester.
2781
2782 2017-01-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
2783
2784         Create a plan and a patch files for MotionMark and delete the Animometer's ones
2785         https://bugs.webkit.org/show_bug.cgi?id=166785
2786
2787         Reviewed by Ryosuke Niwa.
2788
2789         * Scripts/webkitpy/benchmark_runner/data/patches/MotionMark.patch: Renamed from Tools/Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch.
2790         * Scripts/webkitpy/benchmark_runner/data/plans/motionmark.plan: Renamed from Tools/Scripts/webkitpy/benchmark_runner/data/plans/animometer.plan.
2791
2792 2017-01-06  Antoine Quint  <graouts@apple.com>
2793
2794         Support webkit-test-runner key-value pairs in http tests
2795         https://bugs.webkit.org/show_bug.cgi?id=149812
2796
2797         Reviewed by Alex Christensen.
2798
2799         We pass the absolute path for a test through to WKTR so that we can parse
2800         tests that are running as URLs for webkit-test-runner options.
2801
2802         * DumpRenderTree/DumpRenderTreeCommon.cpp:
2803         (parseInputLine):
2804
2805         Explicitly skip the --absolute-path option in DRT or else we'd crash.
2806
2807         * Scripts/webkitpy/port/driver.py:
2808         (Driver._command_from_driver_input):
2809
2810         Pass the absolute path to the file through the CLI.
2811
2812         * WebKitTestRunner/TestController.cpp:
2813         (WTR::updateTestOptionsFromTestHeader):
2814         (WTR::TestController::testOptionsForTest):
2815         (WTR::parseInputLine):
2816         (WTR::TestController::runTest):
2817         * WebKitTestRunner/TestController.h:
2818
2819 2017-01-06  Tim Horton  <timothy_horton@apple.com>
2820
2821         Warning about unconnectable outlets when opening a MiniBrowser window
2822         https://bugs.webkit.org/show_bug.cgi?id=166756
2823
2824         Reviewed by Dan Bernstein.
2825
2826         * MiniBrowser/mac/BrowserWindow.xib:
2827         When launching MiniBrowser, it says:
2828         Failed to connect (Share) outlet from (WK1BrowserWindowController) to
2829             (MBToolbarItem): missing setter or instance variable
2830         Failed to connect (shareButton) outlet from (WK1BrowserWindowController) to
2831             (NSButtonCell): missing setter or instance variable.
2832
2833         It looks like someone added the connection from the share button
2834         to the BrowserWindowController three times; only one of the connections
2835         is valid. Remove the other two.
2836
2837 2017-01-05  Keith Rollin  <krollin@apple.com>
2838
2839         Add WebCore::URL::protocolHostAndPort
2840         https://bugs.webkit.org/show_bug.cgi?id=166426
2841
2842         Reviewed by Alex Christensen.
2843
2844         Add test for protocolHostAndPort.
2845
2846         * TestWebKitAPI/Tests/WebCore/URL.cpp:
2847         (TestWebKitAPI::TEST_F):
2848
2849 2017-01-05  Per Arne Vollan  <pvollan@apple.com>
2850
2851         [Win] Archive test result is failing.
2852         https://bugs.webkit.org/show_bug.cgi?id=166720
2853
2854         Reviewed by Alex Christensen.
2855
2856         Deleting the layout test result folder is sometimes failing
2857         on Windows. This is not a critical error.
2858
2859         * BuildSlaveSupport/test-result-archive:
2860         (archiveTestResults):
2861
2862 2017-01-04  Tomas Popela  <tpopela@redhat.com>
2863
2864         [GTK] Minibrowser: Add printing support
2865         https://bugs.webkit.org/show_bug.cgi?id=165298
2866
2867         Open a print dialog when the Ctrl + P shortcut is pressed. If there is
2868         an error during the print, it's printed on the console.
2869
2870         Reviewed by Michael Catanzaro.
2871
2872         * MiniBrowser/gtk/BrowserWindow.c:
2873         (webKitPrintOperationFailedCallback):
2874         (printPage):
2875         (browser_window_init):
2876
2877 2017-01-04  Manuel Rego Casasnovas  <rego@igalia.com>
2878
2879         [css-grid] Fix crash clamping grid lines
2880         https://bugs.webkit.org/show_bug.cgi?id=166637
2881
2882         Reviewed by Darin Adler.
2883
2884         Creates new unit test to verify that the maximum tracks limit
2885         is used in GridPosition too.
2886
2887         * TestWebKitAPI/PlatformEfl.cmake:
2888         * TestWebKitAPI/PlatformGTK.cmake:
2889         * TestWebKitAPI/PlatformWin.cmake:
2890         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2891         * TestWebKitAPI/Tests/WebCore/GridPosition.cpp: Added.
2892         (TestWebKitAPI::TEST):
2893
2894 2017-01-04  Wenson Hsieh  <wenson_hsieh@apple.com>
2895
2896         Move editing history scripts to WebCore PrivateHeaders
2897         https://bugs.webkit.org/show_bug.cgi?id=166709
2898         <rdar://problem/29876612>
2899
2900         Reviewed by Dan Bernstein.
2901
2902         Update references to editing script files in WebCore that were moved.
2903
2904         * EditingHistory/EditingHistory.xcodeproj/project.pbxproj:
2905
2906 2017-01-04  Yusuke Suzuki  <utatane.tea@gmail.com>
2907
2908         Unreviewed, build fix after r210313 part 2
2909         https://bugs.webkit.org/show_bug.cgi?id=166676
2910
2911         Add 'U' suffix.
2912
2913         * TestWebKitAPI/Tests/WTF/StringView.cpp:
2914         (TestWebKitAPI::TEST):
2915         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2916         (TestWebKitAPI::TEST):
2917
2918 2017-01-04  Yusuke Suzuki  <utatane.tea@gmail.com>
2919
2920         Limit thread name appropriately
2921         https://bugs.webkit.org/show_bug.cgi?id=166676
2922
2923         Reviewed by Sam Weinig.
2924
2925         * TestWebKitAPI/Tests/WTF/StringView.cpp:
2926         (TestWebKitAPI::TEST):
2927         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2928         (TestWebKitAPI::TEST):
2929
2930 2017-01-04  Andy Estes  <aestes@apple.com>
2931
2932         [Cocoa] Teach SharedBuffer to return an NSArray of data segments to avoid flattening
2933         https://bugs.webkit.org/show_bug.cgi?id=166696
2934
2935         Reviewed by Tim Horton.
2936
2937         * TestWebKitAPI/PlatformGTK.cmake:
2938         * TestWebKitAPI/PlatformWin.cmake:
2939         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2940         * TestWebKitAPI/Tests/WebCore/SharedBuffer.cpp: Moved class SharedBufferTest to SharedBufferTest.{cpp,h}.
2941         * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: Moved class SharedBufferTest from SharedBuffer.cpp.
2942         * TestWebKitAPI/Tests/WebCore/SharedBufferTest.h: Ditto.
2943         * TestWebKitAPI/Tests/WebCore/cocoa/SharedBuffer.mm: Added.
2944         (TestWebKitAPI::expectDataArraysEqual): Added a helper to assert that two NSArrays of NSData are equal.
2945         (TestWebKitAPI::TEST_F): Added a test for createNSDataArray.
2946
2947 2017-01-03  Brian Burg  <bburg@apple.com>
2948
2949         Web Inspector: teach the protocol generator about platform-specific types, events, and commands
2950         https://bugs.webkit.org/show_bug.cgi?id=166003
2951         <rdar://problem/28718990>
2952
2953         Reviewed by Joseph Pecoraro.
2954
2955         Teach run-inspector-generator-tests to generate test output using the platform name
2956         derived from the directory that the test is in. For example, tests in the /generic/
2957         subdirectory will pass `--platform generic` to generate-inspector-protocol-bindings.py.
2958
2959         * Scripts/webkitpy/inspector/main.py:
2960         (InspectorGeneratorTests.generate_from_json):
2961         (InspectorGeneratorTests.run_tests):
2962         (InspectorGeneratorTests.main):
2963
2964 2017-01-04  Csaba Osztrogonác  <ossy@webkit.org>
2965
2966         Unreviewed cmake buildfix after r210266.
2967
2968         * DumpRenderTree/PlatformMac.cmake:
2969
2970 2017-01-04  Tim Horton  <timothy_horton@apple.com>
2971
2972         Provide a setting for clients to always prefer low-power WebGL
2973         https://bugs.webkit.org/show_bug.cgi?id=166675
2974         <rdar://problem/29834093>
2975
2976         Reviewed by Dan Bernstein.
2977
2978         * MiniBrowser/mac/Info.plist:
2979         Have MiniBrowser claim to be a modern app that supports
2980         automatic graphics switching. WebKit needs to support automatic
2981         graphics switching, so our test app might as well. Without this
2982         Info.plist parameter, this change has no effect, and bringing up
2983         a WebGL context still brings up the discrete GPU (also true of the
2984         existing web-exposed preferLowPowerToHighPerformance API).
2985
2986 2017-01-03  Yusuke Suzuki  <utatane.tea@gmail.com>
2987
2988         WorkQueueGeneric's platformInvalidate() can deadlock when called on the RunLoop's thread
2989         https://bugs.webkit.org/show_bug.cgi?id=166645
2990
2991         Reviewed by Carlos Garcia Campos.
2992
2993         * TestWebKitAPI/Tests/WTF/WorkQueue.cpp:
2994         (TestWebKitAPI::TEST):
2995
2996 2017-01-03  Andy Estes  <aestes@apple.com>
2997
2998         Place all the Cocoa WebCore API tests in the same directory
2999         https://bugs.webkit.org/show_bug.cgi?id=166673
3000
3001         Reviewed by Michael Catanzaro.
3002
3003         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3004         * TestWebKitAPI/Tests/WebCore/cocoa/SerializedCryptoKeyWrap.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/SerializedCryptoKeyWrap.mm.
3005         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: Renamed from Tools/TestWebKitAPI/Tests/Cocoa/URLExtras.mm.
3006         * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm: Renamed from Tools/TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm.
3007
3008 2017-01-03  Tim Horton  <timothy_horton@apple.com>
3009
3010         NSSpellChecker's recordResponse isn't called for unseen automatic corrections
3011         https://bugs.webkit.org/show_bug.cgi?id=166450
3012         <rdar://problem/29447824>
3013
3014         Reviewed by Darin Adler.
3015
3016         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3017         * DumpRenderTree/TestRunner.cpp:
3018         (TestRunner::staticFunctions):
3019         * DumpRenderTree/mac/TestRunnerMac.mm:
3020         (setSpellCheckerLoggingEnabledCallback):
3021         * DumpRenderTree/win/TestRunnerWin.cpp:
3022         (setSpellCheckerLoggingEnabledCallback):
3023         * DumpRenderTree/mac/DumpRenderTree.mm:
3024         (resetWebViewToConsistentStateBeforeTesting):
3025         * DumpRenderTree/mac/DumpRenderTreeSpellChecker.h: Added.
3026         * DumpRenderTree/mac/DumpRenderTreeSpellChecker.mm: Added.
3027         (stringForCorrectionResponse):
3028         (drt_NSSpellChecker_recordResponseToCorrection):
3029         (swizzleNSSpellCheckerMethodsIfNeeded):
3030         (setSpellCheckerLoggingEnabled):
3031         Add a new testRunner method, setSpellCheckerLoggingEnabled, which, when
3032         set to true, logs to stdout (which ends up in the test result) whenever
3033         NSSpellChecker recordResponse:toCorrection:forWord:language:inSpellDocumentWithTag:
3034         is called, and then calls the original method. It is reset to false between tests.
3035
3036 2017-01-03  Sam Weinig  <sam@webkit.org>
3037
3038         Make WTF::Expected support Ref template parameters
3039         https://bugs.webkit.org/show_bug.cgi?id=166662
3040
3041         Reviewed by Alex Christensen.
3042
3043         * TestWebKitAPI/Tests/WTF/Expected.cpp:
3044         (TestWebKitAPI::TEST):
3045         Add tests for using Ref with Expected.
3046
3047 2017-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
3048
3049         [GTK] Expose WebKitSecurityOrigin API
3050         https://bugs.webkit.org/show_bug.cgi?id=166632
3051
3052         Reviewed by Carlos Garcia Campos.
3053
3054         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
3055         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSecurityOrigin.cpp: Added.
3056         (testSecurityOriginBasicConstructor):
3057         (testSecurityOriginURIConstructor):
3058         (testSecurityOriginDefaultPort):
3059         (testSecurityOriginFileURI):
3060         (testSecurityOriginDataURI):
3061         (beforeAll):
3062         (afterAll):
3063
3064 2017-01-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3065
3066         [GTK] HTTP auth layout tests are flaky
3067         https://bugs.webkit.org/show_bug.cgi?id=158919
3068
3069         Reviewed by Michael Catanzaro.
3070
3071         * gtk/jhbuild.modules: Update libsoup to version 2.57.1.
3072         * gtk/jhbuildrc: Stop passing --enable-introspection unconditionally to all modules. We don't really need
3073         introspection for the dependencies in the internal build, and it makes newer libsoup build fail because of
3074         missing valac in the bots.
3075
3076 2017-01-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3077
3078         REGRESSION(r173753): [GTK] Source/WebKit is distributed in tarballs
3079         https://bugs.webkit.org/show_bug.cgi?id=165797
3080
3081         Reviewed by Michael Catanzaro.
3082
3083         Move directory ruleset after all exclude rules of Source rulset.
3084
3085         * gtk/manifest.txt.in:
3086
3087 2017-01-02  Yusuke Suzuki  <utatane.tea@gmail.com>
3088
3089         Leverage Substring to create new AtomicStringImpl for StaticStringImpl and SymbolImpl
3090         https://bugs.webkit.org/show_bug.cgi?id=166636
3091
3092         Reviewed by Darin Adler.
3093
3094         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
3095         (TestWebKitAPI::TEST):
3096
3097 2017-01-02  Manuel Rego Casasnovas  <rego@igalia.com>
3098
3099         [GTK] WebCore/CSSParser unit test is not being built
3100         https://bugs.webkit.org/show_bug.cgi?id=166492
3101
3102         Reviewed by Michael Catanzaro.
3103
3104         This test was introduced in r175930, but we were not building
3105         it on GTK+ port since r176015.
3106         This patch marks the test to be built again on GTK+.
3107         JFTR, the test is passing right now.
3108
3109         * TestWebKitAPI/PlatformGTK.cmake: Add CSSParser.cpp test file and use
3110         ADD_WHOLE_ARCHIVE_TO_LIBRARIES to avoid linking errors.
3111
3112 2017-01-02  Chris Fleizach  <cfleizach@apple.com>
3113
3114         AX: Expose block quote level to iOS API
3115         https://bugs.webkit.org/show_bug.cgi?id=166629
3116         <rdar://problem/29834793>
3117
3118         Reviewed by Darin Adler.
3119
3120         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3121         (AccessibilityUIElement::numberAttributeValue):
3122         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3123         (WTR::AccessibilityUIElement::numberAttributeValue):
3124
3125 2016-12-31  Michael Catanzaro  <mcatanzaro@igalia.com>
3126
3127         SecurityOrigin::create triplet constructor does not canonicalize port
3128         https://bugs.webkit.org/show_bug.cgi?id=166624
3129
3130         Reviewed by Daniel Bates.
3131
3132         * TestWebKitAPI/PlatformGTK.cmake:
3133         * TestWebKitAPI/PlatformWin.cmake:
3134         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3135         * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: Added.
3136         (TestWebKitAPI::SecurityOriginTest::SetUp):
3137         (TestWebKitAPI::TEST_F):
3138
3139 2016-12-30  Michael Catanzaro  <mcatanzaro@igalia.com>
3140
3141         [GTK] Improve user agent construction
3142         https://bugs.webkit.org/show_bug.cgi?id=142074
3143
3144         Reviewed by Carlos Garcia Campos.
3145
3146         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
3147         (TestWebKitAPI::assertUserAgentForURLHasChromeBrowserQuirk):
3148         (TestWebKitAPI::assertUserAgentForURLHasFirefoxBrowserQuirk):
3149         (TestWebKitAPI::assertUserAgentForURLHasLinuxPlatformQuirk):
3150         (TestWebKitAPI::assertUserAgentForURLHasMacPlatformQuirk):
3151         (TestWebKitAPI::TEST):
3152
3153 2016-12-27  Michael Catanzaro  <mcatanzaro@igalia.com>
3154
3155         [GTK] Improve user agent construction
3156         https://bugs.webkit.org/show_bug.cgi?id=142074
3157
3158         Reviewed by Carlos Garcia Campos.
3159
3160         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
3161         (TestWebKitAPI::TEST):
3162
3163 2016-12-23  Simon Fraser  <simon.fraser@apple.com>
3164
3165         REGRESSION (r209299): Selection is broken when you zoom in webpage using trackpad
3166         https://bugs.webkit.org/show_bug.cgi?id=166472
3167         rdar://problem/29675551
3168
3169         Reviewed by Tim Horton.
3170
3171         These changes are necessary to allow the mouse to leave the WTR window while
3172         drag-scrolling, to test autoscroll. Previously, we were never calling -mouseDragged
3173         (which DRT does); we'd always go through mouseMoved, which hits an early return
3174         in WebViewImpl::mouseMoved() when the point is outside the view.
3175
3176         * WebKitTestRunner/mac/EventSenderProxy.mm:
3177         (WTR::EventSenderProxy::mouseMoveTo):
3178
3179 2016-12-23  Andy Estes  <aestes@apple.com>
3180
3181         [iOS] Fix some crashing webarchive tests
3182         https://bugs.webkit.org/show_bug.cgi?id=166470
3183
3184         Reviewed by Andreas Kling.
3185
3186         Tests that use TestRunner.dumpDOMAsWebArchive() crashed on iOS due to a stub implementation
3187         of WebArchiveDumpSupport in WebKitTestRunner. The Mac implementation works fine on iOS too,
3188         so this change uses that on both platforms.
3189
3190         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Removed
3191         WebArchiveDumpSupportMac.mm from EXCLUDED_SOURCE_FILE_NAMES.
3192         * WebKitTestRunner/InjectedBundle/cocoa/WebArchiveDumpSupportCocoa.mm: Renamed from
3193         Tools/WebKitTestRunner/mac/WebArchiveDumpSupportMac.mm.
3194         * WebKitTestRunner/PlatformMac.cmake:
3195         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
3196         * WebKitTestRunner/ios/WebArchiveDumpSupportIOS.mm: Removed.
3197
3198 2016-12-22  Saam Barati  <sbarati@apple.com>
3199
3200         WebAssembly: Silence the output of the spec-tests
3201         https://bugs.webkit.org/show_bug.cgi?id=166417
3202
3203         Reviewed by Mark Lam.
3204
3205         * Scripts/run-jsc-stress-tests:
3206
3207 2016-12-22  Zhuo Li  <zachli@apple.com>
3208
3209         [Cocoa] SPI for setloadsImagesAutomatically.
3210         https://bugs.webkit.org/show_bug.cgi?id=166401.
3211
3212         Reviewed by Darin Adler.
3213
3214         * TestWebKitAPI/Tests/WebKit2Cocoa/Preferences.mm:
3215         (TEST): Test the _setLoadsImagesAutomatically SPI. By default,
3216         _loadsImagesAutomatically returns YES.
3217
3218 2016-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
3219
3220         fast/events/ios/viewport-shrink-to-fit-allows-double-tap.html is flaky/order dependent
3221         https://bugs.webkit.org/show_bug.cgi?id=161328
3222         <rdar://problem/28475977>
3223
3224         Reviewed by Darin Adler.
3225
3226         Running a test that scales the viewport and listens to a didEndZooming callback (such as
3227         viewport-shrink-to-fit-allows-double-tap.html) immediately after a test that may begin to trigger viewport
3228         scaling as the test completes (such as viewport-device-width-at-initial-scale-fast-clicks.html) may result in
3229         the didEndZooming callback of the latter test being fired early due to the previous test triggering a zoom
3230         animation. Ideally, -[WKScrollView _stopScrollingAndZoomingAnimations], which is called when committing the page
3231         load, should prevent this from happening, but from reading documentation and code inspection, this is not
3232         intended to fire any associated delegate methods or notifications of the UIScrollView, instead deferring them
3233         for later. Instead, what we need in this case is to clear out any started but not yet completed animations after
3234         we finish running a test and before we load the next test.
3235
3236         One way to do this is to remove all animations from the WKScrollView's layer, and the layers of its children,
3237         recursively. Doing so causes scrollViewDidEndZooming:withView:atScale: to fire at the end of the runloop if the
3238         previous test started zooming and then finished before zooming completed. Since this happens before the next
3239         test has a chance to run UI-side scripts, we won't end up firing this callback prematurely during the next test.
3240
3241         * WebKitTestRunner/ios/TestControllerIOS.mm:
3242         (WTR::TestController::platformResetStateToConsistentValues):
3243
3244 2016-12-22  Jer Noble  <jer.noble@apple.com>
3245
3246         Muted media element playback should not interrupt other audio playback
3247         https://bugs.webkit.org/show_bug.cgi?id=166347
3248
3249         Reviewed by Eric Carlson.
3250
3251         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3252         * TestWebKitAPI/Tests/WebKit/ios/AudioSessionCategoryIOS.mm:
3253         (TestWebKitAPI::TEST):
3254         * TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio.html: Added.
3255
3256 2016-12-22  Alejandro G. Castro  <alex@igalia.com>
3257
3258         [WebRTC] Add support for runtime PeeConnection setting, required after r209757
3259         https://bugs.webkit.org/show_bug.cgi?id=166346
3260
3261         Reviewed by Carlos Garcia Campos.
3262
3263         Enable WebRTC by default to simplify testing.
3264
3265         * MiniBrowser/gtk/main.c:
3266         (main):
3267
3268 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
3269
3270         REGRESSION: API test failure: WKWebView.LocalStorageClear
3271         https://bugs.webkit.org/show_bug.cgi?id=166032
3272         <rdar://problem/29758423>
3273
3274         Reviewed by Simon Fraser.
3275
3276         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
3277         to ensure that the view is destroyed before the callback fires.
3278
3279         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
3280         (TEST):
3281
3282 2016-12-21  Saam Barati  <sbarati@apple.com>
3283
3284         WebAssembly: Import spec tests
3285         https://bugs.webkit.org/show_bug.cgi?id=166395
3286
3287         Rubber stamped by Keith Miller.
3288
3289         * Scripts/run-jsc-stress-tests:
3290
3291 2016-12-21  Alexey Proskuryakov  <ap@apple.com>
3292
3293         REGRESSION: API test failure: _WKDownload.OriginatingWebView
3294         https://bugs.webkit.org/show_bug.cgi?id=166033
3295         <rdar://problem/29758428>
3296
3297         Reviewed by Simon Fraser.
3298
3299         Add an @autoreleasepool around the code that allocates the WKWebView, 
3300         so that it can be destroyed by removing the last reference in _downloadDidStart.
3301
3302         * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm:
3303         (TEST):
3304
3305 2016-12-21  Daniel Bates  <dabates@apple.com>
3306
3307         WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
3308         https://bugs.webkit.org/show_bug.cgi?id=166356
3309
3310         Add comment in TestRunner::setCanOpenWindows() to elaborate further on its purpose
3311         as a means to allow a test to explicit allow an embedding client to open a new windows
3312         such that the default behavior is for the embedding client to forbid such an action.
3313         The test plugins/get-url-with-blank-target.html assumes this default behavior though
3314         it is currently skipped on WebKit2 because questions were raised in the patch for
3315         <https://bugs.webkit.org/show_bug.cgi?id=43389> about its correctness and usefulness.
3316         We will need to implement TestRunner::setCanOpenWindows() should we decide to unskip
3317         this test.
3318
3319         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3320         (WTR::TestRunner::setCanOpenWindows):
3321
3322 2016-12-20  Simon Fraser  <simon.fraser@apple.com>
3323
3324         REGRESSION: API test failure: WKWebView.EvaluateJavaScriptBlockCrash
3325         https://bugs.webkit.org/show_bug.cgi?id=166031
3326
3327         Reviewed by Tim Horton.
3328         
3329         Add an @autoreleasepool around the code that allocates then clears the WKWebView, 
3330         to ensure that the view is destroyed before the callback fires.
3331
3332         * TestWebKitAPI/Tests/WebKit2Cocoa/WKWebViewEvaluateJavaScript.mm:
3333
3334 2016-12-20  Megan Gardner  <megan_gardner@apple.com>
3335
3336         Throw Exception when test doesn't clean up HID Events properly
3337         https://bugs.webkit.org/show_bug.cgi?id=166271
3338
3339         Reviewed by Simon Fraser.
3340
3341         Add in a check when UIScriptController is deleted to make sure that the HID event
3342         callback dictionary is empty. If it is not, and a HID event is hit, this will cause
3343         the program to crash without any good information. Crashes are race-y, and will still
3344         happen with malformed test, but the information will be much more helpful. 
3345
3346         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3347         (WTR::UIScriptController::checkForClean):
3348         * TestRunnerShared/UIScriptContext/UIScriptContext.cpp:
3349         (UIScriptContext::~UIScriptContext):
3350         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3351         (WTR::UIScriptController::checkForClean):
3352         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3353         * WebKitTestRunner/ios/HIDEventGenerator.h:
3354         * WebKitTestRunner/ios/HIDEventGenerator.mm:
3355         (-[HIDEventGenerator checkHIDCallbacksClear]):
3356         * WebKitTestRunner/ios/TestControllerIOS.mm:
3357         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3358         (WTR::UIScriptController::checkForClean):
3359
3360 2016-12-20  Andy Estes  <aestes@apple.com>
3361
3362         [Cocoa] REGRESSION (r209558): Calling decisionHandler multiple times in webView:decidePolicyForNavigationAction:decisionHandler: leads to a crash
3363         https://bugs.webkit.org/show_bug.cgi?id=165992
3364
3365         Reviewed by Brady Eidson.
3366
3367         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3368         * TestWebKitAPI/Tests/WebKit2Cocoa/DuplicateCompletionHandlerCalls.mm: Added.
3369         (expectException):
3370         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
3371         (-[DuplicateCompletionHandlerCallsDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
3372         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
3373         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:]):
3374         (-[DuplicateCompletionHandlerCallsDelegate webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:]):
3375         (-[DuplicateCompletionHandlerCallsDelegate _webView:decideDatabaseQuotaForSecurityOrigin:currentQuota:currentOriginUsage:currentDatabaseUsage:expectedUsage:decisionHandler:]):
3376         (-[DuplicateCompletionHandlerCallsDelegate _webView:willSubmitFormValues:userObject:submissionHandler:]):
3377         (TEST):
3378         * TestWebKitAPI/Tests/WebKit2Cocoa/duplicate-completion-handler-calls.html: Added.
3379
3380 2016-12-20  Dean Jackson  <dino@apple.com>
3381
3382         Remove INDIE_UI
3383         https://bugs.webkit.org/show_bug.cgi?id=165881
3384         <rdar://problem/29672532>
3385
3386         Reviewed by Simon Fraser.
3387
3388         The Indie UI work has been discontinued.
3389
3390         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
3391
3392 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
3393
3394         [ES6] Enable ES6 Modules
3395         https://bugs.webkit.org/show_bug.cgi?id=165849
3396
3397         Reviewed by Geoffrey Garen.
3398
3399         * DumpRenderTree/mac/DumpRenderTree.mm:
3400         (resetWebPreferencesToConsistentValues):
3401         * DumpRenderTree/win/DumpRenderTree.cpp:
3402         (resetWebPreferencesToConsistentValues):
3403         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3404         (WTR::InjectedBundle::beginTesting):
3405         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3406         (WTR::TestRunner::setES6ModulesEnabled): Deleted.
3407         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3408
3409 2016-12-19  Ryan Haddad  <ryanhaddad@apple.com>
3410
3411         Repurpose bots and clean up dashboard.
3412         https://bugs.webkit.org/show_bug.cgi?id=166045
3413
3414         Reviewed by Lucas Forschler.
3415
3416         * BuildSlaveSupport/build.webkit.org-config/config.json:
3417         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BubbleQueueServer.js:
3418         (BubbleQueueServer):
3419         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
3420         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3421         (WebKitBuildbot):
3422         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
3423         (table.queue-grid tr.platform.mac-os-x-yosemite img.logo): Deleted.
3424
3425 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
3426
3427         [CMake] TestWebKitAPIBase links to itself
3428         https://bugs.webkit.org/show_bug.cgi?id=165985
3429
3430         Reviewed by Alex Christensen.
3431
3432         Fix CMake warning about a target linking to itself, which makes no sense.
3433
3434         * TestWebKitAPI/CMakeLists.txt:
3435
3436 2016-12-19  Michael Catanzaro  <mcatanzaro@igalia.com>
3437
3438         [GTK] GtkDoc build should be quieter
3439         https://bugs.webkit.org/show_bug.cgi?id=165994
3440
3441         Reviewed by Carlos Garcia Campos.
3442
3443         Make it not print by default.
3444
3445         * gtk/generate-gtkdoc:
3446         (get_generator_for_config):
3447         (generate_doc):
3448         * gtk/gtkdoc.py:
3449         (GTKDoc._run_command):
3450         (GTKDoc._copy_doc_files_to_output_dir):
3451
3452 2016-12-18  Simon Fraser  <simon.fraser@apple.com>
3453
3454         Expose a way for MiniBrowser to simulate header and footer banners
3455         https://bugs.webkit.org/show_bug.cgi?id=166005
3456
3457         Reviewed by Wenson Hsieh.
3458         
3459         Add a MiniBrowser menu item and setting to toggle adding space for header and footer
3460         banners. This only works in WebKit2.
3461         
3462         We need to reset these on each navigation, since newly created FrameViews
3463         don't re-fetch the header and footer height stored on Page.
3464         
3465         Also fix the signature of webView:didFinishNavigation: to follow API changes,
3466         as well as fixing webViewWebContentProcessDidTerminate:
3467
3468         * MiniBrowser/mac/SettingsController.h:
3469         * MiniBrowser/mac/SettingsController.m:
3470         (-[SettingsController _populateMenu]):
3471         (-[SettingsController validateMenuItem:]):
3472         (-[SettingsController toggleReserveSpaceForBanners:]):
3473         (-[SettingsController isSpaceReservedForBanners]):
3474         * MiniBrowser/mac/WK2BrowserWindowController.m:
3475         (-[WK2BrowserWindowController didChangeSettings]):
3476         (-[WK2BrowserWindowController webView:didFinishNavigation:]):
3477         (-[WK2BrowserWindowController webViewWebContentProcessDidTerminate:]):
3478         (-[WK2BrowserWindowController webView:didFinishLoadingNavigation:]): Deleted.
3479         (-[WK2BrowserWindowController _webViewWebProcessDidCrash:]): Deleted.
3480
3481 2016-12-17  Simon Fraser  <simon.fraser@apple.com>
3482
3483         Fix iOS test results after r209967.
3484         
3485         Subtracting out the status bar height was erroneously happening for all tests,
3486         not just for flexible viewport tests.
3487         
3488         Fix by plumbing WebViewSizingMode through resizeTo() and setWindowFrame().
3489
3490         * WebKitTestRunner/PlatformWebView.h:
3491         * WebKitTestRunner/TestController.cpp:
3492         (WTR::TestController::resetStateToConsistentValues):
3493         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
3494         (WTR::PlatformWebView::resizeTo):
3495         (WTR::PlatformWebView::setWindowFrame):
3496         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
3497         (WTR::PlatformWebView::resizeTo):
3498         (WTR::PlatformWebView::setWindowFrame):
3499         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
3500         (WTR::PlatformWebView::resizeTo):
3501         (WTR::PlatformWebView::setWindowFrame):
3502         * WebKitTestRunner/ios/TestControllerIOS.mm:
3503         (WTR::TestController::platformConfigureViewForTest):
3504         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
3505         (WTR::PlatformWebView::resizeTo):
3506         (WTR::PlatformWebView::setWindowFrame):
3507
3508 2016-12-17  Joonghun Park  <jh718.park@samsung.com>
3509
3510         [EFL] bump EFL version to 1.18.4
3511         https://bugs.webkit.org/show_bug.cgi?id=166004
3512
3513         Reviewed by Gyuyoung Kim.
3514
3515         * efl/jhbuild.modules: Use efl-1.18.4 instead of 1.18.1.
3516
3517 2016-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3518
3519         Visual viewports: bottom fixed elements disappear behind the keyboard
3520         https://bugs.webkit.org/show_bug.cgi?id=165983
3521         <rdar://problem/29409852>
3522
3523         Reviewed by Simon Fraser.
3524
3525         Add support for UIScriptController.inputViewBounds, which UI-side scripts may use to fetch the bounding rect of
3526         the keyboard when it is up.
3527
3528         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3529         (WTR::UIScriptController::inputViewBounds):
3530         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3531         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3532         (WTR::UIScriptController::inputViewBounds):
3533         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3534         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
3535         (WTR::viewRectForWindowRect):
3536
3537         Previously, we accounted for the status bar height by translating the entire web view down by the height of the
3538         status bar. However, we did not shrink the height of the web view itself, which means that for tests which
3539         involve scrolling past the end of the document, the bottom strip of the web view is out of bounds of the window.
3540
3541         (WTR::PlatformWebView::PlatformWebView):
3542         (WTR::PlatformWebView::setWindowFrame):
3543         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3544         (WTR::UIScriptController::inputViewBounds):
3545
3546 2016-12-16  Ryosuke Niwa  <rniwa@webkit.org>
3547
3548         Deleting a character converted from pinyin after an image causes a Safari crash
3549         https://bugs.webkit.org/show_bug.cgi?id=165839
3550         <rdar://problem/27951933>
3551
3552         Reviewed by Wenson Hsieh.
3553
3554         Add a WebKit API test to call attributedSubstringForProposedRange on a WKWebView
3555         while the proposed range contains an image. This should not cause a WebProcess to crash
3556         or send an invalid message to the UIProcess.
3557
3558         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3559         * TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html: Added.
3560         * TestWebKitAPI/Tests/WebKit2/mac/AttributedSubstringForProposedRangeWithImage.mm: Added.
3561         (TestWebKitAPI::didFinishLoadForFrame):
3562         (TestWebKitAPI::processDidCrash):
3563         (TestWebKitAPI::invalidMessageFunction):
3564         (TestWebKitAPI::WebKit2.AttributedSubstringForProposedRangeWithImage):
3565
3566 2016-12-16  Wenson Hsieh  <wenson_hsieh@apple.com>
3567
3568         Visual viewports: carets and selection UI are incorrectly positioned when editing fixed elements
3569         https://bugs.webkit.org/show_bug.cgi?id=165767
3570         <rdar://problem/29602382>
3571
3572         Reviewed by Simon Fraser.
3573
3574         Introduces two new UIScriptController methods: doAfterWebPageIsInStableState and textSelectionCaretRect. See
3575         WebKit2 ChangeLog for more details.
3576
3577         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3578         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
3579         (WTR::UIScriptController::textSelectionCaretRect):
3580         * DumpRenderTree/mac/UIScriptControllerMac.mm:
3581         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
3582         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3583         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3584         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
3585         (WTR::UIScriptController::textSelectionCaretRect):
3586         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3587         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
3588         (-[TestRunnerWKWebView _setStableStateOverride:]):
3589
3590         Force the WKWebView to update its visible content rects when changing the stable state override.
3591
3592         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3593         (WTR::toNSDictionary):
3594         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
3595         (WTR::UIScriptController::selectionRangeViewRects):
3596         (WTR::UIScriptController::textSelectionCaretRect):
3597         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
3598         (WTR::UIScriptController::doAfterNextStablePresentationUpdate):
3599
3600 2016-12-15  Brent Fulgham  <bfulgham@apple.com>
3601
3602         Arguments called in wrong order
3603         https://bugs.webkit.org/show_bug.cgi?id=165923
3604
3605         Reviewed by Simon Fraser.
3606
3607         The 'audioDeviceUIDs' array is being passed to the argument that expects video devices,
3608         and the 'videoDeviceUIDs' array is being passed to the audo device argument. Fix this.
3609
3610         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp:
3611         (TestWebKitAPI::decidePolicyForUserMediaPermissionRequestCallBack): The
3612         order of arguments to WKUserMediaPermissionRequestAllow are flipped.
3613
3614 2016-12-16  Hunseop Jeong  <hs85.jeong@samsung.com>
3615
3616         [EFL] Disable non-srcdir builds for failing libraries
3617         https://bugs.webkit.org/show_bug.cgi?id=165896
3618
3619         Reviewed by Gyuyoung Kim.
3620
3621         * efl/jhbuild.modules: Set non srcdir builds to no
3622
3623 2016-12-15  Daniel Bates  <dabates@apple.com>
3624
3625         check-style should not complain about code in icu directories
3626         https://bugs.webkit.org/show_bug.cgi?id=53929
3627
3628         Reviewed by Darin Adler.
3629
3630         Skip style checking of imported ICU headers to avoid a deluge of style issues
3631         as they do not conform to the WebKit Code Style guideline. We want to preserve
3632         the formatting of these headers so as to make it straightforward to merge
3633         changes to them, if necessary.
3634
3635         * Scripts/webkitpy/style/checker.py:
3636
3637 2016-12-15  Alexey Proskuryakov  <ap@apple.com>
3638
3639         Move JSC testers from Yosemite to Sierra
3640         https://bugs.webkit.org/show_bug.cgi?id=165925
3641
3642         Reviewed by Lucas Forschler.
3643
3644         * BuildSlaveSupport/build.webkit.org-config/config.json:
3645         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
3646         (WebKitBuildbot):
3647
3648 2016-12-15  Megan Gardner  <megan_gardner@apple.com>
3649
3650         Add coordinate space to event streams and streamline tests
3651         https://bugs.webkit.org/show_bug.cgi?id=165119
3652
3653         Reviewed by Simon Fraser.
3654
3655         Update event streams to allow for both content and global coordinate space.
3656         Update example script to more accurately show all the available options.
3657
3658         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3659         * WebKitTestRunner/ios/HIDEventGenerator.h:
3660         * WebKitTestRunner/ios/HIDEventGenerator.mm:
3661         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3662         (WTR::convertCoordinates):
3663         (WTR::UIScriptController::sendEventStream):
3664
3665 2016-12-15  Claudio Saavedra  <csaavedra@igalia.com>
3666
3667         [GTK] Ensure gst* docs are not built with update-webkitgtk-libs
3668         https://bugs.webkit.org/show_bug.cgi?id=165855
3669
3670         Reviewed by Philippe Normand.
3671
3672         GStreamer's autogen.sh enables gtk-doc always so we end up building
3673         docs even if we disable them. Use the configure script instead, since
3674         we build from packages and these include it already.
3675
3676         * gtk/jhbuild.modules: Use shipped configure instead of autogen.sh for
3677         upstream gstreamer packages.
3678
3679 2016-12-15  Alex Christensen  <achristensen@webkit.org>
3680
3681         REGRESSION (r208902) Null pointer dereference in wkIsPublicSuffix
3682         https://bugs.webkit.org/show_bug.cgi?id=165885
3683         <rdar://problem/29476917>
3684
3685         Reviewed by Darin Adler.
3686
3687         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3688         (TestWebKitAPI::utf16String): Deleted.
3689         * TestWebKitAPI/Tests/mac/PublicSuffix.mm:
3690         (TestWebKitAPI::TEST_F):
3691         * TestWebKitAPI/WTFStringUtilities.h:
3692         (utf16String):
3693         Moved from URLParser to share with other tests.
3694
3695 2016-12-14  Ryosuke Niwa  <rniwa@webkit.org>
3696
3697         iOS: An element with tabindex is not focusable unless there is no mouse event handler
3698         https://bugs.webkit.org/show_bug.cgi?id=165843
3699
3700         Reviewed by Antti Koivisto.
3701
3702         Add testRunner.isWebKit2 which is always true in WebKitTestRunner.
3703         Without this, it's really hard to reliably differentiate DumpRenderTree and WebKitTestRunner,
3704         and DumpRenderTree's runUIScript would hit an assertion :(
3705
3706         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3707         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3708         (WTR::TestRunner::isWebKit2):
3709
3710 2016-12-14  Brady Eidson  <beidson@apple.com>
3711
3712         IndexedDB 2.0: Massively speedup IDBIndex.get().
3713         https://bugs.webkit.org/show_bug.cgi?id=165802
3714
3715         Reviewed by Alex Christensen.
3716
3717         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3718         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.html: Added.
3719         * TestWebKitAPI/Tests/WebKit2Cocoa/IDBIndexUpgradeToV2.mm: Added.
3720         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.blob: Added.
3721         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexUpgrade.sqlite3: Added.
3722
3723 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3724
3725         [GTK][EFL] Update the JHBuild version.
3726         https://bugs.webkit.org/show_bug.cgi?id=165838
3727
3728         Reviewed by Michael Catanzaro.
3729
3730         * jhbuild/jhbuild-wrapper: This new version fixes a bug with the
3731         usage of the JHBUILD_MIRROR feature with git repositories.
3732
3733 2016-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3734
3735         [GTK] Yasm is needed for building the JHBuild after r208940
3736         https://bugs.webkit.org/show_bug.cgi?id=165837
3737
3738         Reviewed by Alejandro G. Castro.
3739
3740         * gtk/install-dependencies: Yasm is needed for building libvpx.
3741
3742 2016-12-14  Youenn Fablet  <youenn@apple.com>
3743
3744         Test infrastructure should allow to filter out text output before doing a comparison with the baseline
3745         https://bugs.webkit.org/show_bug.cgi?id=161310
3746
3747         Reviewed by Ryosuke Niwa.
3748
3749         Adding --dump-jsconsolelog-in-stderr test option for DRT and WTR.
3750         When set, WTR and DRT output JS console log in the stderr and not the test output.
3751         This allows removing potentially flaky information while still being able to read it for investigation.
3752
3753         Updated webkitpy infrastructure to use this test option in case of DumpJSConsoleLogInStdErr modifier.
3754
3755         Changes are covered by updating a fetch test to output console log and set its option to --dump-jsconsolelog-in-stderr in TestExpectations.
3756         This test should have this option when fetch API will start logging resource loader errors.
3757
3758         * DumpRenderTree/DumpRenderTree.h:
3759         (TestCommand::TestCommand): Deleted.
3760         * DumpRenderTree/DumpRenderTreeCommon.cpp:
3761         (parseInputLine):
3762         * DumpRenderTree/TestRunner.h:
3763         (TestRunner::setDumpJSConsoleLogInStdErr):
3764         (TestRunner::dumpJSConsoleLogInStdErr):
3765         * DumpRenderTree/mac/DumpRenderTree.mm:
3766         (runTest):
3767         * DumpRenderTree/mac/UIDelegate.mm:
3768         (-[UIDelegate webView:addMessageToConsole:withSource:]):
3769         * DumpRenderTree/win/DumpRenderTree.cpp:
3770         (runTest):
3771         * DumpRenderTree/win/UIDelegate.cpp:
3772         (UIDelegate::webViewAddMessageToConsole):
3773         * Scripts/webkitpy/layout_tests/models/test_expectations.py:
3774         (TestExpectationParser._tokenize_line):
3775         * Scripts/webkitpy/port/driver.py:
3776         (Driver._command_from_driver_input):
3777         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3778         (WTR::InjectedBundle::didReceiveMessageToPage):
3779         (WTR::InjectedBundle::dumpToStdErr):
3780         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
3781         (WTR::InjectedBundle::dumpJSConsoleLogInStdErr):
3782         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3783         (WTR::InjectedBundlePage::willAddMessageToConsole):
3784         * WebKitTestRunner/TestController.cpp:
3785         (WTR::parseInputLine):
3786         (WTR::TestController::runTest):
3787         (WTR::TestCommand::TestCommand): Deleted.
3788         * WebKitTestRunner/TestInvocation.cpp:
3789         (WTR::TestInvocation::invoke):
3790         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
3791         * WebKitTestRunner/TestInvocation.h:
3792         (WTR::TestInvocation::setDumpJSConsoleLogInStdErr):
3793
3794
3795 2016-12-14  Enrique Ocaña González  <eocanha@igalia.com>
3796
3797         REGRESSION(r207879-207891): [GStreamer] Introduced many layout test failures and crashes, bots exiting early
3798         https://bugs.webkit.org/show_bug.cgi?id=164022
3799
3800         Reviewed by Xabier Rodriguez-Calvar.
3801
3802         * Scripts/webkitperl/FeatureList.pm:
3803           Re-enable MEDIA_SOURCE for the GTK+ port.
3804
3805 2016-12-13  Alex Christensen  <achristensen@webkit.org>
3806
3807         Fix CMake build.
3808
3809         * DumpRenderTree/PlatformMac.cmake:
3810         Define NS_RETURNS_RETAINED as nothing for now.
3811
3812 2016-12-13  Jer Noble  <jer.noble@apple.com>
3813
3814         Fullscreen in WebKit2 does not restore topContentInset upon exiting; leaves top of page not visible
3815         https://bugs.webkit.org/show_bug.cgi?id=165697
3816
3817         Reviewed by Tim Horton.
3818
3819         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
3820         (TestWebKitAPI::TEST):
3821
3822 2016-12-13  Andy Estes  <aestes@apple.com>
3823
3824         [Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
3825         https://bugs.webkit.org/show_bug.cgi?id=165785
3826         <rdar://problem/26929398>
3827
3828         Reviewed by Darin Adler.
3829
3830         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegate.mm:
3831         (-[BundleEditingDelegateRemoteObject shouldInsertText:replacingRange:givenAction:]): Added
3832         expectations for the text, range, and action.
3833         (TEST): Set the "EditingDelegateShouldInsertText" bundle parameter to NO so that the plug-in
3834         will return NO in -_webProcessPlugInBrowserContextController:willInsertText:. Added a
3835         plain-text string to the pasteboard, executed a paste action, and verified that the selected
3836         text in the web view did not change.
3837         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegatePlugIn.mm:
3838         (-[BundleEditingDelegatePlugIn webProcessPlugIn:didCreateBrowserContextController:]): Set
3839         _editingDelegateShouldInsertText according to the "EditingDelegateShouldInsertText" bundle
3840         parameter.
3841         (-[BundleEditingDelegatePlugIn _webProcessPlugInBrowserContextController:shouldInsertText:replacingRange:givenAction:]):
3842         Added. Called -shouldInsertText:replacingRange:givenAction: on the remote object proxy
3843         and returned the value of _editingDelegateShouldInsertText.
3844         * TestWebKitAPI/Tests/WebKit2Cocoa/BundleEditingDelegateProtocol.h: Declared
3845         -shouldInsertText:replacingRange:givenAction:.
3846
3847 2016-12-13  Chris Dumez  <cdumez@apple.com>
3848
3849         Unreviewed, rolling out r209544.
3850
3851         Looks like r209489 did not cause the performance regression
3852         after all
3853
3854         Reverted changeset:
3855
3856         "Unreviewed, rolling out r209489."
3857         https://bugs.webkit.org/show_bug.cgi?id=165550
3858         http://trac.webkit.org/changeset/209544
3859
3860 2016-12-12  Sam Weinig  <sam@webkit.org>
3861
3862         [WebIDL] Remove use of Dictionary in ApplePaySession
3863         https://bugs.webkit.org/show_bug.cgi?id=165787
3864
3865         Reviewed by Anders Carlsson.
3866
3867         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3868         (WTR::initializeWebViewConfiguration):
3869         (WTR::TestController::platformCreateWebView):
3870         Enable ApplePay for the tests (where supported).
3871
3872 2016-12-13  Eric Carlson  <eric.carlson@apple.com>
3873
3874         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
3875         https://bugs.webkit.org/show_bug.cgi?id=165251
3876
3877         Reviewed by Youenn Fablet.
3878
3879         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp:
3880         (TestWebKitAPI::TEST): Enable MediaStream, create web view from the page group upon which
3881         the preferences have been set.
3882
3883 2016-12-08  Antti Koivisto  <antti@apple.com>
3884
3885         Enable network cache speculative revalidation in MiniBrowser
3886         https://bugs.webkit.org/show_bug.cgi?id=165616
3887
3888         Reviewed by Darin Adler.
3889
3890         Match Safari. Also add a menu item to disable it.
3891
3892         * MiniBrowser/mac/AppDelegate.m:
3893         (defaultConfiguration):
3894         * MiniBrowser/mac/SettingsController.h:
3895         * MiniBrowser/mac/SettingsController.m:
3896         (-[SettingsController _populateMenu]):
3897         (-[SettingsController validateMenuItem:]):
3898         (-[SettingsController networkCacheSpeculativeRevalidationDisabled]):
3899         (-[SettingsController toggleNetworkCacheSpeculativeRevalidationDisabled:]):
3900
3901 2016-12-12  Alexey Proskuryakov  <ap@apple.com>
3902
3903         ChangeLogs become readonly after resolving a conflict
3904         https://bugs.webkit.org/show_bug.cgi?id=165440
3905         rdar://problem/29491002
3906
3907         Reviewed by Darin Adler.
3908
3909         * Scripts/resolve-ChangeLogs: (resolveChangeLog): Set correct permissions when
3910         moving the file.
3911
3912 2016-12-12  Filip Pizlo  <fpizlo@apple.com>
3913
3914         Re-enable collectContinuously since it doesn't crash anymore
3915
3916         Rubber stamped by Michael Saboff.
3917
3918         * Scripts/run-jsc-stress-tests:
3919
3920 2016-12-11  Konstantin Tokarev  <annulen@yandex.ru>
3921
3922         Unreviewed attempt to fix EFL and Mac/cmake builds after r209665.
3923         https://bugs.webkit.org/show_bug.cgi?id=165686
3924
3925         * DumpRenderTree/CMakeLists.txt: WebKit2 should precede other target
3926         so that right config.h comes first in include path.
3927
3928 2016-12-11  Dave Hyatt  <hyatt@apple.com>
3929
3930         [CSS Parser] Make sure content extensions initialize AtomicString
3931         https://bugs.webkit.org/show_bug.cgi?id=165737
3932
3933         Reviewed by Darin Adler.
3934
3935         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
3936         (TestWebKitAPI::makeBackend):
3937
3938 2016-12-08  Dave Hyatt  <hyatt@apple.com>
3939
3940         [CSS Parser] Remove the old CSS Parser
3941         https://bugs.webkit.org/show_bug.cgi?id=165645
3942
3943         Reviewed by Daniel Bates.
3944
3945         * TestWebKitAPI/Tests/WebCore/CSSParser.cpp:
3946         (TestWebKitAPI::TEST):
3947
3948 2016-12-10  Konstantin Tokarev  <annulen@yandex.ru>
3949
3950         [cmake] Include WTF, JSC, and WebCore headers automatically to targers using them
3951         https://bugs.webkit.org/show_bug.cgi?id=165686
3952
3953         Reviewed by Michael Catanzaro.
3954
3955         This change reduces duplication of include path lists between modules,
3956         and reduces future need for fixes like r209605 (broken build because of
3957         WebCore header suddenly becoming used in WebKit2).
3958
3959         * DumpRenderTree/CMakeLists.txt:
3960         * DumpRenderTree/PlatformMac.cmake:
3961         * ImageDiff/CMakeLists.txt:
3962         * MiniBrowser/gtk/CMakeLists.txt:
3963         * MiniBrowser/mac/CMakeLists.txt:
3964         * MiniBrowser/win/CMakeLists.txt:
3965         * TestWebKitAPI/CMakeLists.txt:
3966         * TestWebKitAPI/PlatformEfl.cmake:
3967         * TestWebKitAPI/PlatformJSCOnly.cmake:
3968         * TestWebKitAPI/PlatformMac.cmake:
3969         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
3970         * WebKitTestRunner/CMakeLists.txt:
3971         * WebKitTestRunner/PlatformGTK.cmake:
3972         * WebKitTestRunner/PlatformMac.cmake:
3973
3974 2016-12-09  Csaba Osztrogonác  <ossy@webkit.org>
3975
3976         Unreviewed buildfix after r209630.
3977
3978         * Scripts/build-jsc: Remove building the non-existing testWASM.
3979
3980 2016-12-09  Eric Carlson  <eric.carlson@apple.com>
3981
3982         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
3983         https://bugs.webkit.org/show_bug.cgi?id=165251
3984
3985         Reviewed by Dean Jackson.
3986
3987         Based on a patch by Dr Alex Gouaillard <agouaillard@gmail.com>
3988
3989         * DumpRenderTree/mac/DumpRenderTree.mm:
3990         (resetWebPreferencesToConsistentValues): Enable MediaStream and PeerConnection.
3991
3992         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3993         (WTR::InjectedBundle::beginTesting): Ditto.
3994
3995         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3996         (WTR::TestRunner::setMediaStreamEnabled): New.
3997         (WTR::TestRunner::setPeerConnectionEnabled): New.
3998         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3999
4000 2016-12-09  Brady Eidson  <beidson@apple.com> 
4001  
4002         Re-landing:
4003         Add _WKIconLoadingDelegate SPI. 
4004         https://bugs.webkit.org/show_bug.cgi?id=164894 
4005  
4006         Reviewed by Alex Christensen. 
4007         
4008         Add MiniBrowser support for this new SPI, configurable with a setting. 
4009  
4010         * MiniBrowser/mac/SettingsController.h: 
4011         * MiniBrowser/mac/SettingsController.m: 
4012         (-[SettingsController _populateMenu]): 
4013         (-[SettingsController validateMenuItem:]): 
4014         (-[SettingsController loadsAllSiteIcons]): 
4015         (-[SettingsController toggleLoadsAllSiteIcons:]): 
4016         * MiniBrowser/mac/WK2BrowserWindowController.m: 
4017         (-[WK2BrowserWindowController awakeFromNib]): 
4018         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): 
4019
4020 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
4021
4022         Fix the 32-bit build.
4023
4024         Unreviewed build fix.
4025
4026         * MiniBrowser/mac/SettingsController.h:
4027
4028 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
4029
4030         Fedora also needs a PHP7 config file alternative
4031         https://bugs.webkit.org/show_bug.cgi?id=165606
4032
4033         Reviewed by Michael Catanzaro.
4034
4035         * Scripts/webkitpy/port/base.py:
4036         (Port._is_fedora_php_version_7): check for the php7 library.
4037         (Port._fedora_php_version): get the appropriate filename for Fedora.
4038         (Port._apache_config_file_name_for_platform):
4039
4040 2016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
4041
4042         Complete the revert of r208865.
4043         https://bugs.webkit.org/show_bug.cgi?id=164894
4044
4045         Unreviewed build fix.
4046
4047         * MiniBrowser/mac/SettingsController.h:
4048         * MiniBrowser/mac/SettingsController.m:
4049         (-[SettingsController _populateMenu]):
4050         (-[SettingsController validateMenuItem:]):
4051         (-[SettingsController loadsAllSiteIcons]): Deleted.
4052         (-[SettingsController toggleLoadsAllSiteIcons:]): Deleted.
4053         * MiniBrowser/mac/WK2BrowserWindowController.m:
4054         (-[WK2BrowserWindowController awakeFromNib]):
4055         (-[WK2BrowserWindowController webView:shouldLoadIconWithParameters:completionHandler:]): Deleted.
4056
4057 2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
4058
4059         [GTK] Force GDK backend to x11 when running with XvfbDriver
4060         https://bugs.webkit.org/show_bug.cgi?id=165612
4061
4062         Reviewed by Michael Catanzaro.
4063
4064         When the developer is running a Wayland session, GDK may get confused
4065         and try to use its Wayland backend (which is higher priority) instead.
4066         This ensures it will use the appropriate backend when running under
4067         Xvfb.
4068
4069         * Scripts/webkitpy/port/gtk.py:
4070         (GtkPort.setup_environ_for_server): when running with XvfbDriver,
4071         force GDK_BACKEND to x11.
4072
4073 2016-12-08  Keith Miller  <keith_miller@apple.com>
4074
4075         Add 64-bit signed LEB decode method
4076         https://bugs.webkit.org/show_bug.cgi?id=165630
4077
4078         Reviewed by Ryosuke Niwa.
4079
4080         Add tests for LEB int64 and uint64 decode since I guess
4081         I forgot to add tests before.
4082
4083         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp:
4084         (TestWebKitAPI::testUInt32LEBDecode):
4085         (TestWebKitAPI::TEST):
4086         (TestWebKitAPI::testUInt64LEBDecode):
4087         (TestWebKitAPI::testInt32LEBDecode):
4088         (TestWebKitAPI::testInt64LEBDecode):
4089         (TestWebKitAPI::testUnsignedLEBDecode): Deleted.
4090
4091 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
4092
4093         Make it easy to enable --force-collectContinuously
4094         https://bugs.webkit.org/show_bug.cgi?id=165638
4095
4096         Reviewed by Keith Miller.
4097
4098         * Scripts/run-javascriptcore-tests:
4099         (runJSCStressTests):
4100
4101 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
4102
4103         Disable the collectContinuously mode until I investigate failures.
4104
4105         Rubber stamped by Keith Miller.
4106         
4107         I'm seeing collectContinuously crashes on some platforms. Disabling that testing mode
4108         while I investigate.
4109
4110         * Scripts/run-jsc-stress-tests:
4111
4112 2016-12-08  Alex Christensen  <achristensen@webkit.org>
4113
4114         REGRESSION (URL parser): Relative URLs aren’t resolved correctly when the base URL is an applewebdata: URL
4115         https://bugs.webkit.org/show_bug.cgi?id=165621
4116
4117         Reviewed by Dan Bernstein.
4118
4119         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
4120         (TestWebKitAPI::TEST_F):
4121
4122 2016-12-06  Filip Pizlo  <fpizlo@apple.com>
4123
4124         Concurrent GC should be stable enough to land enabled
4125         https://bugs.webkit.org/show_bug.cgi?id=164990
4126
4127         Reviewed by Geoffrey Garen.
4128         
4129         Add a new mode that runs GC continuously. Also made eager modes run GC continuously.
4130         
4131         It's clear that this works just fine in release, but I'm still trying to figure out if it's
4132         safe for debug. It might be too slow for debug.
4133
4134         * Scripts/run-jsc-stress-tests:
4135
4136 2016-12-08  Alex Christensen  <achristensen@webkit.org>
4137
4138         Add SPI for sending WebsiteSettings to WebProcess during navigation
4139         https://bugs.webkit.org/show_bug.cgi?id=165517
4140         <rdar://29341068>
4141
4142         Reviewed by Anders Carlsson.
4143
4144         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4145         * TestWebKitAPI/Tests/WebKit2/contentBlockerCheck.html: Added.
4146         * TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm: Added.
4147         (-[WebsitePoliciesDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
4148         (-[WebsitePoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
4149         (-[WebsitePoliciesDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]):
4150         (TEST):
4151
4152 2016-12-08  Chris Dumez  <cdumez@apple.com>
4153
4154         Unreviewed, rolling out r209489.
4155
4156         Likely caused large regressions on JetStream, Sunspider and
4157         Speedometer
4158
4159         Reverted changeset:
4160
4161         "Add system trace points for JavaScript VM entry/exit"
4162         https://bugs.webkit.org/show_bug.cgi?id=165550
4163         http://trac.webkit.org/changeset/209489
4164
4165 2016-12-08  Keith Miller  <keith_miller@apple.com>
4166
4167         Move LEB tests to API tests
4168         https://bugs.webkit.org/show_bug.cgi?id=165586
4169
4170         Reviewed by Saam Barati.
4171
4172         Move the tests from testWasm.cpp and make them functions
4173         rather than macros.
4174
4175         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4176         * TestWebKitAPI/Tests/WTF/LEBDecoder.cpp: Added.
4177         (TestWebKitAPI::testUnsignedLEBDecode):
4178         (TestWebKitAPI::TEST):
4179         (TestWebKitAPI::testInt32LEBDecode):
4180
4181 2016-12-08  Chris Dumez  <cdumez@apple.com>
4182
4183         Support running the layout tests offline
4184         https://bugs.webkit.org/show_bug.cgi?id=165534
4185
4186         Reviewed by Ryosuke Niwa.
4187
4188         * Scripts/webkitpy/common/system/autoinstall.py:
4189         (AutoInstaller._download_to_stream):
4190         getcode() returns None for file URLs so handle this.
4191
4192         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
4193         (WebPlatformTestServer._install_modules):
4194         Deal with local path in the json file and resolve them into file URLs
4195         before using AutoInstall.
4196
4197 2016-12-08  Alex Christensen  <achristensen@webkit.org>
4198
4199         Fix CMake build.
4200
4201         * DumpRenderTree/PlatformMac.cmake:
4202         Remove CheckedMalloc.cpp after r209516.
4203
4204 2016-12-07  Mark Lam  <mark.lam@apple.com>
4205
4206         DumpRenderTree should stop using CheckedMalloc.
4207         https://bugs.webkit.org/show_bug.cgi?id=165563
4208         <rdar://problem/28945820>
4209
4210         Reviewed by Geoffrey Garen.
4211
4212         1. WebKitTestRunner does not have equivalent behavior to that which is implemented
4213            in CheckedMalloc.
4214         2. bmalloc does not honor the settings of CheckedMalloc.
4215
4216         The only time CheckedMalloc comes into play is when DRT uses gmalloc or system
4217         malloc.  As a result, DRT exhibits different behavior from the normal way we run
4218         our tests.  We should obsolete CheckedMalloc and make DRT behave consistently
4219         with WKTR.
4220
4221         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
4222         * DumpRenderTree/mac/CheckedMalloc.cpp: Removed.
4223         * DumpRenderTree/mac/CheckedMalloc.h: Removed.
4224         * DumpRenderTree/mac/DumpRenderTree.mm:
4225         (prepareConsistentTestingEnvironment):
4226
4227 2016-12-07  Dean Jackson  <dino@apple.com>
4228
4229         Remove runtime toggle for pointer-lock
4230         https://bugs.webkit.org/show_bug.cgi?id=165577
4231         <rdar://problems/29566996>
4232
4233         Reviewed by Jon Lee.
4234
4235         Remove any runtime calls to check if pointer-lock is enabled. It's
4236         either compiled in or out.
4237
4238         * DumpRenderTree/mac/DumpRenderTree.mm:
4239         (resetWebPreferencesToConsistentValues):
4240         * WebKitTestRunner/TestController.cpp:
4241         (WTR::TestController::resetPreferencesToConsistentValues):
4242
4243 2016-12-07  Eric Carlson  <eric.carlson@apple.com>
4244
4245         [MediaStream][Mac] Revoke sandbox extensions when capture ends
4246         https://bugs.webkit.org/show_bug.cgi?id=165476
4247
4248         Reviewed by Brady Eidson.
4249         
4250         Add a test which loads a page that calls navigator.mediaDevices.enumerateDevices, kills the
4251         page, and loads the same page again to ensure that the WK2 UserMediaPermissionRequestManagerProxy
4252         is reset and recreated when a web page exits and is reloaded.
4253
4254         * TestWebKitAPI/PlatformGTK.cmake:
4255         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
4256         * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp: Added.
4257         (TestWebKitAPI::checkUserMediaPermissionCallback):
4258         (TestWebKitAPI::TEST):
4259         * TestWebKitAPI/Tests/WebKit2/enumerateMediaDevices.html: Added.
4260
4261 2016-12-07  Jeremy Jones  <jeremyj@apple.com>
4262
4263         One esc to exit fullscreen and pointer lock
4264         https://bugs.webkit.org/show_bug.cgi?id=165416
4265         rdar://problem/29430711
4266
4267         Reviewed by Jer Noble.
4268
4269         Implement WKPageUIClientV8 for pointer lock support.
4270         Add "escape" key support in EventSenderProxy.
4271
4272         * WebKitTestRunner/TestController.cpp:
4273         (WTR::requestPointerLock):
4274         (WTR::TestController::createOtherPage):
4275         (WTR::TestController::createWebViewWithOptions):
4276         * WebKitTestRunner/mac/EventSenderProxy.mm:
4277         (WTR::EventSenderProxy::keyDown):
4278
4279 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
4280
4281         Add system trace points for JavaScript VM entry/exit
4282         https://bugs.webkit.org/show_bug.cgi?id=165550
4283
4284         Reviewed by Tim Horton.
4285
4286         Add trace points for entry/exit into/out of the JS VM.
4287
4288         * Tracing/SystemTracePoints.plist:
4289
4290 2016-12-07  ChangSeok Oh  <changseok@webkit.org>
4291
4292         [GTK] Cannot build GTK+ with CUPS 2.* versions
4293         https://bugs.webkit.org/show_bug.cgi?id=163591
4294
4295         Reviewed by Michael Catanzaro.
4296
4297         GTK+ build has failed on the system which CUPS 2.x is installed in. GTK+ 3.16.4
4298         does not assume to use the recent CUPS thus it fails to detect the CUPS in configuration.
4299         GTK+ upstream fixed this issue but it is not easy to apply the original patch to our
4300         old gtk+ since it requires not only bumping up glib accordingly and its consequence
4301         causes many printing test failures. So, I propose to fix the configuration issue by
4302         applying the change to the configure file directly. By doing this, we don't need to
4303         upgrade glib and worry about any test failures as a consequence of the upgraded glib.
4304
4305         * gtk/jhbuild.modules:
4306         * gtk/patches/gtk+-configure-fix-detecting-CUPS-2.x.patch: Added.
4307
4308 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
4309
4310         Fix use of enum in a WK2 C SPI header.
4311         rdar://problem/28725583
4312
4313         Followup to correctly prefix the enum values.
4314
4315         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
4316         (WTR::InjectedBundlePage::prepare):
4317
4318 2016-12-07  Simon Fraser  <simon.fraser@apple.com>
4319
4320         Fix use of enum in a WK2 C SPI header.
4321         rdar://problem/28725583
4322