We've been running Octane/regexp all wrong in run-jsc-benchmarks
[WebKit-https.git] / Tools / ChangeLog
1 2016-02-29  Filip Pizlo  <fpizlo@apple.com>
2
3         We've been running Octane/regexp all wrong in run-jsc-benchmarks
4         https://bugs.webkit.org/show_bug.cgi?id=154827
5
6         Reviewed by Andreas Kling.
7
8         Octane v.2 and JetStream v.1.1 run this benchmark with warmup. This script was running
9         it without warmup. This patches fixes this by making this script run it with warmup.
10
11         This fix shows that my last patch, which added FTL support for regexp, was actually a 3%
12         speed-up on Octane/regexp, not a slow-down as the ChangeLog claimed.
13
14         It discovered this bug because for each Octane test that I want to debug, I usually make
15         a standalone .js file that contains the whole test along with a miniharness - usually
16         a plain loop - that runs it almost like it would for real but with whatever hacks I'm
17         using for debugging. When I wrote such a thing for regexp, I used a ~20 iteration warmup
18         to match the one second of warmup that this benchmark gets in Octane. To my surprise,
19         this quite faithful regexp runner did not see the regression that run-jsc-benchmarks
20         saw. That's when I found out that run-jsc-benchmarks was running it wrong.
21
22         The reason for the no-warmup slow-down is that the FTL is actually fairly expensive to
23         run on some of these very large functions in the regexp benchmark. I don't think we can
24         do anything about that, and I'd argue that the speed-up we see after the compilation is
25         done suggests that it was worth it.
26
27         * Scripts/run-jsc-benchmarks:
28
29 2016-02-29  Gavin Barraclough  <barraclough@apple.com>
30
31         RefCounter<T>::Event -> RefCounterEvent
32         https://bugs.webkit.org/show_bug.cgi?id=154767
33
34         Reviewed by Darin Adler.
35
36         RefCounter<T>::Event is kinda verbose to use, and there is no need for this
37         to be specific to a particular typeof RefCounter. Move the enum class up to
38         the top level & rename to RefCounterEvent.
39
40         * TestWebKitAPI/Tests/WTF/RefCounter.cpp:
41         (TestWebKitAPI::TEST):
42
43 2016-02-29  Csaba Osztrogonác  <ossy@webkit.org>
44
45         Remove more LLVM related cruft
46         https://bugs.webkit.org/show_bug.cgi?id=154821
47
48         Reviewed by Darin Adler.
49
50         * Scripts/build-jsc:
51         * Scripts/build-webkit:
52         * Scripts/copy-webkitlibraries-to-product-directory:
53         * Scripts/export-llvm-build: Removed.
54         * Scripts/run-jsc-stress-tests:
55
56 2016-02-28  Sam Weinig  <sam@webkit.org>
57
58         Reimplement WKPageGroup in terms of WKUserContentController
59         https://bugs.webkit.org/show_bug.cgi?id=154804
60
61         Reviewed by Dan Bernstein.
62
63         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
64         * TestWebKitAPI/Tests/WebKit2/PageGroup.cpp: Added.
65
66 2016-02-28  Sam Weinig  <sam@webkit.org>
67
68         Bind _WKUserStyleSheets to WKUserContentWorlds to allow for grouping of user content by associating to a world
69         https://bugs.webkit.org/show_bug.cgi?id=154798
70
71         Reviewed by Dan Bernstein.
72
73         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
74         Add tests for removing _WKUserStyleSheets and WKUserScripts
75
76 2016-02-27  Alexey Proskuryakov  <ap@apple.com>
77
78         Silence leaks under TextCodecICU::registerCodecs
79         https://bugs.webkit.org/show_bug.cgi?id=154737
80
81         Reviewed by Darin Adler.
82
83         * Scripts/webkitpy/port/leakdetector.py:
84         (LeakDetector._callstacks_to_exclude_from_leaks):
85
86 2016-02-26  Michael Catanzaro  <mcatanzaro@igalia.com>
87
88         [GTK] Fix incorrect cast
89
90         Unreviewed.
91
92         * MiniBrowser/gtk/main.c:
93         (createBrowserWindow):
94
95 2016-02-26  Chris Dumez  <cdumez@apple.com>
96
97         Fix the behavior of reflecting IDL attributes of type unsigned long
98         https://bugs.webkit.org/show_bug.cgi?id=154771
99
100         Reviewed by Ryosuke Niwa.
101
102         Update API tests to cover the fixes to the parseHTMLNonNegativeInteger()
103         implementation:
104         - "-0" is parsed as 0.
105         - Range boundaries are now [0; 2147483647].
106
107         * TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp:
108         (TestWebKitAPI::TEST):
109
110 2016-02-26  Brady Eidson  <beidson@apple.com>
111
112         Modern IDB: New database versions are never committed to SQLite.
113         <rdar://problem/24860952> and https://bugs.webkit.org/show_bug.cgi?id=154741
114         
115         Modern IDB: If a database handle is not open, files are not actually deleted from disk
116         https://bugs.webkit.org/show_bug.cgi?id=154756
117
118         Reviewed by Alex Christensen.
119
120         This also happens to test the previously untested fix for http://trac.webkit.org/changeset/197190
121
122         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
123         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-1.html: Added.
124         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence-2.html: Added.
125         * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm: Added.
126         (-[IndexedDBNavigationDelegate webView:didFinishNavigation:]):
127         (-[IndexedDBMessageHandler userContentController:didReceiveScriptMessage:]):
128         (TEST):
129
130 2016-02-26  Commit Queue  <commit-queue@webkit.org>
131
132         Unreviewed, rolling out r197216.
133         https://bugs.webkit.org/show_bug.cgi?id=154766
134
135         Test simply needs updated result (Requested by litherum on
136         #webkit).
137
138         Reverted changeset:
139
140         "Unreviewed, rolling out r197158."
141         https://bugs.webkit.org/show_bug.cgi?id=154758
142         http://trac.webkit.org/changeset/197216
143
144 2016-02-26  Alexey Proskuryakov  <ap@apple.com>
145
146         [iOS Simulator] Reftests don't work
147         https://bugs.webkit.org/show_bug.cgi?id=154764
148
149         Reviewed by Daniel Bates.
150
151         * Scripts/webkitpy/port/image_diff.py: (IOSSimulatorImageDiffer._start):
152         Use simctl instead of sim.
153
154 2016-02-26  Chris Dumez  <cdumez@apple.com>
155
156         Add API test coverage for parseHTMLInteger / parseHTMLNonNegativeInteger
157         https://bugs.webkit.org/show_bug.cgi?id=154714
158
159         Reviewed by Darin Adler.
160
161         Add API test coverage for parseHTMLInteger / parseHTMLNonNegativeInteger as per:
162         - https://html.spec.whatwg.org/multipage/infrastructure.html#signed-integers
163         - https://html.spec.whatwg.org/multipage/infrastructure.html#non-negative-integers
164
165         * TestWebKitAPI/PlatformEfl.cmake:
166         * TestWebKitAPI/PlatformGTK.cmake:
167         * TestWebKitAPI/PlatformWin.cmake:
168         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
169         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
170         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
171         * TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp: Added.
172         (TestWebKitAPI::testParseHTMLInteger):
173         (TestWebKitAPI::parseHTMLIntegerFails):
174         (TestWebKitAPI::TEST):
175         (TestWebKitAPI::testParseHTMLNonNegativeInteger):
176         (TestWebKitAPI::parseHTMLNonNegativeIntegerFails):
177
178 2016-02-26  Commit Queue  <commit-queue@webkit.org>
179
180         Unreviewed, rolling out r197158.
181         https://bugs.webkit.org/show_bug.cgi?id=154758
182
183         This change did not fix the failing test (Requested by
184         ryanhaddad on #webkit).
185
186         Reverted changeset:
187
188         "REGRESSION(r195795): [WK2] fast/text/crash-complex-text-
189         surrogate.html is flakey"
190         https://bugs.webkit.org/show_bug.cgi?id=154709
191         http://trac.webkit.org/changeset/197158
192
193 2016-02-26  Anders Carlsson  <andersca@apple.com>
194
195         WKWebsiteDataStore/WKWebsiteDataRecord needs to provide size information about each type of data
196         https://bugs.webkit.org/show_bug.cgi?id=154750
197         rdar://problem/23861395
198
199         Reviewed by Tim Horton.
200
201         * MiniBrowser/mac/WK2BrowserWindowController.m:
202         (-[WK2BrowserWindowController fetchWebsiteData:]):
203         Use the new WKWebsiteDataStore SPI to compute data sizes.
204
205 2016-02-25  Gavin Barraclough  <barraclough@apple.com>
206
207         RefCounter value changed callback should be called on all changes (not just zero edge).
208         https://bugs.webkit.org/show_bug.cgi?id=154699
209
210         Reviewed by Geoff Garen.
211
212         RefCounter currently only triggers a callback when the count goes from zero
213         to non-zero and vice-versa. Change that, to be useful to more clients.
214
215         * TestWebKitAPI/Tests/WTF/RefCounter.cpp:
216         (TestWebKitAPI::TEST):
217             - Updated for change in RefCounter callback siganture & behaviour.
218
219 2016-02-25  Sam Weinig  <sam@webkit.org>
220
221         Allow WKUserScripts to be run in isolated worlds
222         https://bugs.webkit.org/show_bug.cgi?id=154701
223
224         Reviewed by Anders Carlsson.
225
226         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
227         * TestWebKitAPI/Tests/WebKit2Cocoa/_WKUserContentWorld.mm: Added.
228         (-[SimpleDelegate webView:didFinishNavigation:]):
229         (-[UserContentWorldRemoteObject didObserveNormalWorld]):
230         (-[UserContentWorldRemoteObject didObserveWorldWithName:]):
231         * TestWebKitAPI/Tests/WebKit2Cocoa/_WKUserContentWorldPlugIn.mm: Added.
232         (-[_WKUserContentWorldPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
233         (-[_WKUserContentWorldPlugIn webProcessPlugInBrowserContextController:globalObjectIsAvailableForFrame:inScriptWorld:]):
234         * TestWebKitAPI/Tests/WebKit2Cocoa/_WKUserContentWorldProtocol.h: Added.
235
236 2016-02-26  Youenn Fablet  <youenn.fablet@crf.canon.fr>
237
238         W3C test importer should have an option to clean the destination directory
239         https://bugs.webkit.org/show_bug.cgi?id=152685
240
241         Reviewed by Darin Adler.
242
243         Adding --clean-dest-dir option to W3C test importer.
244         When this option is set, all files in the destination directory will be deleted
245         except for WebKit specific files (test expectations, .gitignore...) before new tests import.
246         Dangling test expectations are removed after tests import.'
247
248         Adding unit test and minor refactoring for the other tests.
249
250         * Scripts/webkitpy/w3c/test_importer.py:
251         (parse_args): Add '--clean-dest-dir' option.
252         (TestImporter.do_import):
253         (TestImporter._is_baseline): helper routine to capture -expected.txt files.
254         (TestImporter):
255         (TestImporter._should_not_keep_when_importing): helper routine to filter files that should not be cleaned before importing.
256         (TestImporter.clean_destination_directory):
257         (TestImporter.remove_dangling_expectations):
258         * Scripts/webkitpy/w3c/test_importer_unittest.py:
259         (TestImporterTest._parse_options):
260         (TestImporterTest.test_import_dir_with_no_tests_and_no_hg):
261         (TestImporterTest.test_import_dir_with_no_tests):
262         (TestImporterTest.test_import_dir_with_empty_init_py):
263         (test_clean_directory_option):
264
265 2016-02-25  Myles C. Maxfield  <mmaxfield@apple.com>
266
267         REGRESSION(r195795): [WK2] fast/text/crash-complex-text-surrogate.html is flakey
268         https://bugs.webkit.org/show_bug.cgi?id=154709
269         <rdar://problem/24483596>
270
271         Reviewed by Dan Bernstein.
272
273         Force auto-activation rules to a consistent state.
274
275         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
276         (WTR::InjectedBundle::platformInitialize):
277
278 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
279
280         Unreivewed build fix for r197150.
281
282         * TestWebKitAPI/Tests/mac/IsNavigationActionTrusted.mm:
283
284 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
285
286         Restrict information passed with navigation action which is triggered by untrusted event
287         https://bugs.webkit.org/show_bug.cgi?id=154571
288         <rdar://problem/15967937>
289
290         Reviewed by Andy Estes.
291
292         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
293         * TestWebKitAPI/Tests/mac/IsNavigationActionTrusted.mm: Added.
294         (-[WKNavigationActionDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
295         (TestWebKitAPI::TEST):
296         (-[NavigationActionDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
297         * TestWebKitAPI/Tests/mac/IsNavigationActionTrusted.html: Added.
298
299 2016-02-25  Gavin Barraclough  <barraclough@apple.com>
300
301         Should template RefCounter instead of RefCounter::Token
302         https://bugs.webkit.org/show_bug.cgi?id=154691
303
304         Reviewed by Anders Carlsson.
305
306         Mechanical update per RefCounter interface change.
307
308         * TestWebKitAPI/Tests/WTF/RefCounter.cpp:
309         (TestWebKitAPI::TEST):
310
311 2016-02-25  Skachkov Aleksandr  <gskachkov@gmail.com>
312
313         Unreviewed: Add Aleksandr Skachkov as a commiter
314
315         * Scripts/webkitpy/common/config/contributors.json:
316
317 2016-02-25  Sam Weinig  <sam@webkit.org>
318
319         HashMap::ensure() should return an AddResult like all the other add-like functions
320         https://bugs.webkit.org/show_bug.cgi?id=154680
321
322         Reviewed by Anders Carlsson.
323
324         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
325         (TestWebKitAPI::TEST):
326         Update tests to use/test the new AddResult result.
327
328 2016-02-25  Alexey Proskuryakov  <ap@apple.com>
329
330         Enable MallocScribble when detecting leaks
331         https://bugs.webkit.org/show_bug.cgi?id=154679
332
333         Reviewed by Geoffrey Garen.
334
335         * Scripts/webkitpy/port/ios.py:
336         (IOSSimulatorPort.setup_environ_for_server):
337         * Scripts/webkitpy/port/mac.py:
338         (MacPort.setup_environ_for_server):
339         * Scripts/webkitpy/port/mac_unittest.py:
340         (MacTest.test_setup_environ_for_server):
341
342 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
343
344         Unreviewed, fix iOS builds after r197114.
345
346         * WebKitTestRunner/TestController.cpp:
347         (WTR::createCanonicalUUIDString):
348         (WTR::TestController::saltForOrigin):
349
350 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
351
352         [MediaStream] MediaDeviceInfo deviceId and groupId must be unique to the page's origin
353         https://bugs.webkit.org/show_bug.cgi?id=153163
354         <rdar://problem/24334526>
355
356         Reviewed by Tim Horton.
357
358         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
359         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): Take top level document origin.
360         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
361
362         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
363         (WTR::TestRunner::setUserMediaPermissionForOrigin): Ditto.
364         * WebKitTestRunner/InjectedBundle/TestRunner.h:
365
366         * WebKitTestRunner/TestController.cpp:
367         (WTR::decidePolicyForUserMediaPermissionRequest): Pass through top level document origin.
368         (WTR::checkUserMediaPermissionForOrigin): Ditto.
369         (WTR::TestController::resetStateToConsistentValues): m_userMediaOriginPermissions -> m_cahcedUserMediaPermissions.
370         (WTR::originUserVisibleName): Return a String.
371         (WTR::userMediaOriginHash): Create a hash of the origin plus top level document origin.
372         (WTR::TestController::saltForOrigin): Return salt for an origin.
373         (WTR::TestController::setUserMediaPermissionForOrigin): Return permission for an origin.
374         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin):
375         (WTR::TestController::handleUserMediaPermissionRequest):
376         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible):
377         (WTR::OriginSettings::OriginSettings): New, class to cache settings for an origin.
378         (WTR::OriginSettings::persistentPermission): Persistent permissions for origin.
379         (WTR::OriginSettings::setPersistentPermission): Set permissions for origin.
380         (WTR::OriginSettings::persistentSalt): Return the persistent salt for the origin, if any.
381         (WTR::OriginSettings::setPersistentSalt): Set the persistent salt for the origin
382         (WTR::OriginSettings::ephemeralSalts): Return hashmap used to store per-frame salts.
383         * WebKitTestRunner/TestController.h:
384
385         * WebKitTestRunner/TestInvocation.cpp:
386         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
387
388 2016-02-24  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
389
390         [web-animations] Add AnimationTimeline, DocumentTimeline and add extensions to Document interface
391         https://bugs.webkit.org/show_bug.cgi?id=151688
392
393         Reviewed by Dean Jackson.
394
395         Enables the WEB_ANIMATIONS compiler switch by default.
396
397         * Scripts/webkitperl/FeatureList.pm:
398
399 2016-02-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
400
401         W3C importer should generate all web-platform-tests submodules descriptions
402         https://bugs.webkit.org/show_bug.cgi?id=154587
403
404         Reviewed by Darin Adler.
405
406         Updated submodules description format (removing submodule name as it is the last string of the path really).
407         Added git subroutines.
408
409         * Scripts/webkitpy/common/checkout/scm/git.py:
410         (Git.origin_url):
411         (Git):
412         (Git.init_submodules):
413         (Git.submodules_status):
414         (Git.deinit_submodules):
415         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
416         (WebPlatformTestServer._install_modules): Updated to submodule name removal.
417         * Scripts/webkitpy/w3c/test_downloader.py:
418         (TestDownloader._git_submodules_description): Updated to cope with recursive submodules (use of submodule init/deinit).
419         * Scripts/webkitpy/w3c/test_importer_unittest.py:
420         (TestImporterTest.test_submodules_generation): Reactivated partially this test.
421
422 2016-02-23  Dan Bernstein  <mitz@apple.com>
423
424         [Xcode] Linker errors display mangled names, but no longer should
425         https://bugs.webkit.org/show_bug.cgi?id=154632
426
427         Reviewed by Sam Weinig.
428
429         * ContentExtensionTester/Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
430         * DumpRenderTree/mac/Configurations/Base.xcconfig: Ditto.
431         * LayoutTestRelay/Configurations/Base.xcconfig: Ditto.
432         * MiniBrowser/Configurations/Base.xcconfig: Ditto.
433         * TestWebKitAPI/Configurations/Base.xcconfig: Ditto.
434         * WebEditingTester/Configurations/Base.xcconfig: Ditto.
435         * WebKitTestRunner/Configurations/Base.xcconfig: Ditto.
436
437 2016-02-23  Anders Carlsson  <andersca@apple.com>
438
439         WKWebView should implement NSCoding
440         https://bugs.webkit.org/show_bug.cgi?id=137160
441
442         Reviewed by Dan Bernstein.
443
444         Add tests.
445
446         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
447         (TEST):
448
449 2016-02-23  Anders Carlsson  <andersca@apple.com>
450
451         WKProcessPool should conform to NSCoding
452         https://bugs.webkit.org/show_bug.cgi?id=154608
453
454         Reviewed by Sam Weinig.
455
456         Add tests.
457
458         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
459         (TEST):
460
461 2016-02-23  Anders Carlsson  <andersca@apple.com>
462
463         WKWebsiteDataStore should conform to NSCoding
464         https://bugs.webkit.org/show_bug.cgi?id=154605
465
466         Reviewed by Dan Bernstein.
467
468         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
469         (TEST):
470
471 2016-02-23  Anders Carlsson  <andersca@apple.com>
472
473         WKWebViewConfiguration should conform to NSCoding
474         https://bugs.webkit.org/show_bug.cgi?id=154602
475
476         Reviewed by Beth Dakin.
477
478         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
479         (TEST):
480
481 2016-02-23  Anders Carlsson  <andersca@apple.com>
482
483         WKPreferences should conform to NSCoding
484         https://bugs.webkit.org/show_bug.cgi?id=154597
485
486         Reviewed by Sam Weinig.
487
488         Test encoding and decoding WKPreferences.
489
490         * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
491         (encodeAndDecode):
492         (TEST):
493
494 2016-02-23  Anders Carlsson  <andersca@apple.com>
495
496         Fix build.
497
498         * TestWebKitAPI/mac/SyntheticBackingScaleFactorWindow.m:
499         (-[SyntheticBackingScaleFactorWindow initWithContentRect:styleMask:backing:defer:]):
500
501 2016-02-23  Carlos Alberto Lopez Perez  <clopez@igalia.com>
502
503         [GTK] Allow to run the WebKitGTK+ MiniBrowser with the run-benchmark script.
504         https://bugs.webkit.org/show_bug.cgi?id=153993
505
506         Reviewed by Carlos Garcia Campos.
507
508         * MiniBrowser/gtk/main.c:
509         (createBrowserWindow): Support --geometry argument for MiniBrowser.
510         We use this on the gtk_minibrowser_driver script to start the MiniBrowser maximized.
511         * Scripts/webkitpy/benchmark_runner/browser_driver/__init__.py: Fix loading of subclasses:
512         The base class has to be loaded first, otherwise any subclase referencing it will give import error.
513         In OSX the ordering of os.listdir() causes the base class (browser_driver.py) to be first on the list, but not on Linux.
514         By specifiying the name of the base class file, we ensure it is always loaded first on any system despite the ordering of listdir.
515         * Scripts/webkitpy/benchmark_runner/browser_driver/browser_driver_factory.py:
516         (BrowserDriverFactory.create):
517         * Scripts/webkitpy/benchmark_runner/browser_driver/gtk_browser_driver.py: Added.
518         (GTKBrowserDriver):
519         (GTKBrowserDriver.prepare_env):
520         (GTKBrowserDriver.restore_env):
521         (GTKBrowserDriver.close_browsers):
522         (GTKBrowserDriver._launch_process):
523         (GTKBrowserDriver._terminate_processes):
524         (GTKBrowserDriver._screen_size):
525         * Scripts/webkitpy/benchmark_runner/browser_driver/gtk_minibrowser_driver.py: Added.
526         (GTKMiniBrowserDriver):
527         (GTKMiniBrowserDriver.prepare_env):
528         (GTKMiniBrowserDriver.launch_url):
529         (GTKMiniBrowserDriver.close_browsers):
530         * Scripts/webkitpy/benchmark_runner/http_server_driver/__init__.py: Fix loading of subclasses. See description above.
531         * Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
532         (SimpleHTTPServerDriver):
533         (SimpleHTTPServerDriver.kill_server): Check if the server is still running before trying to terminate it.
534         Usually the server ends gracefully (no need to terminate it), so this was causing ugly errors on the log.
535         * Scripts/webkitpy/benchmark_runner/utils.py: Fix loading of subclasses. See description above.
536         (load_subclasses):
537
538 2016-02-23  Alejandro G. Castro  <alex@igalia.com>
539
540         [GTK] Missing configuration patch for openh264 compilation
541         https://bugs.webkit.org/show_bug.cgi?id=154455
542
543         This patch is required for the openh264 compilation with the
544         jhbuild-webrtc.modules. The code was implemented by Alessandro
545         Decina.
546
547         Reviewed by Philippe Normand.
548
549         * gtk/patches/openh264-configure.patch: Added.
550
551 2016-02-20  Olivier Blin  <olivier.blin@softathome.com>
552
553         [cmake] Use ICU include dirs in WebKit2 and WebKitTestRunner
554         https://bugs.webkit.org/show_bug.cgi?id=154479
555
556         Reviewed by Michael Catanzaro.
557
558         * WebKitTestRunner/CMakeLists.txt:
559
560 2016-02-19  Konstantin Tokarev  <annulen@yandex.ru>
561
562         [GTK] Fixed link error when G_DEFINE_AUTOPTR_CLEANUP_FUNC is not defined.
563         https://bugs.webkit.org/show_bug.cgi?id=154467
564
565         Reviewed by Michael Catanzaro.
566
567         * TestWebKitAPI/Tests/WebKit2Gtk/TestAutocleanups.cpp:
568         (beforeAll):
569         (afterAll):
570
571 2016-02-19  Brady Eidson  <beidson@apple.com>
572
573         Add "databaseProcessDidCrash" to the WKContextClient; Adopt it in WKTR.
574         https://bugs.webkit.org/show_bug.cgi?id=154428
575
576         Reviewed by Jer Noble.
577
578         * WebKitTestRunner/TestController.cpp:
579         (WTR::TestController::generatePageConfiguration):
580         (WTR::TestController::databaseProcessName):
581         (WTR::TestController::databaseProcessDidCrash):
582         * WebKitTestRunner/TestController.h:
583
584 2016-02-18  Philippe Normand  <pnormand@igalia.com>
585
586         [GStreamer] Bump internal jhbuild versions to 1.6.3
587         https://bugs.webkit.org/show_bug.cgi?id=149594
588
589         Reviewed by Michael Catanzaro.
590
591         * gtk/jhbuild.modules: Bump to GStreamer 1.6.3.
592         * gtk/patches/gst-plugins-bad-fix-faad2-version-check.patch: Removed.
593         * gtk/patches/gst-plugins-bad-remove-gnustep-support.patch: Removed.
594         * gtk/patches/gst-plugins-base-rtp-rtcpbuffer-fix-typo-in-enum.patch: Removed.
595
596 2016-02-18  Brent Fulgham  <bfulgham@apple.com>
597
598         Extend HashCountedSet with a method to efficiently set the count of an entry
599         https://bugs.webkit.org/show_bug.cgi?id=154352
600
601         Reviewed by Geoffrey Garen.
602
603         * TestWebKitAPI/CMakeLists.txt: Add new HashCountedSet test files.
604         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
605         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp: Added.
606
607 2016-02-18  Commit Queue  <commit-queue@webkit.org>
608
609         Unreviewed, rolling out r196791.
610         https://bugs.webkit.org/show_bug.cgi?id=154438
611
612         broke windows build (Requested by alexchristensen on #webkit).
613
614         Reverted changeset:
615
616         "Extend HashCountedSet with a method to efficiently set the
617         count of an entry"
618         https://bugs.webkit.org/show_bug.cgi?id=154352
619         http://trac.webkit.org/changeset/196791
620
621 2016-02-18  Brent Fulgham  <bfulgham@apple.com>
622
623         Extend HashCountedSet with a method to efficiently set the count of an entry
624         https://bugs.webkit.org/show_bug.cgi?id=154352
625
626         Reviewed by Geoffrey Garen.
627
628         * TestWebKitAPI/CMakeLists.txt: Add new HashCountedSet test files.
629         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
630         * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp: Added.
631
632 2016-02-18  Anders Carlsson  <andersca@apple.com>
633
634         Get rid of the --target-web-process and --use-web-process-xpc-service options.
635
636         Rubber-stamped by Dan Bernstein.
637
638         We now always use XPC, and --target-web-process is no longer supported.
639
640         * Scripts/webkitdirs.pm:
641         (execMacWebKitAppForDebugging):
642         (shouldTargetWebProcess): Deleted.
643         (determineShouldTargetWebProcess): Deleted.
644         (shouldUseXPCServiceForWebProcess): Deleted.
645         (determineShouldUseXPCServiceForWebProcess): Deleted.
646         (printHelpAndExitForRunAndDebugWebKitAppIfNeeded): Deleted.
647         (argumentsForRunAndDebugMacWebKitApp): Deleted.
648
649 2016-02-18  Ryan Haddad  <ryanhaddad@apple.com>
650
651         Skip API test WTF_ParkingLot.UnparkOneFiftyThenFiftyAll on ios-simulator
652         https://bugs.webkit.org/show_bug.cgi?id=153997
653
654         Reviewed by Filip Pizlo.
655
656         * TestWebKitAPI/Tests/WTF/ParkingLot.cpp:
657
658 2016-02-18  Jer Noble  <jer.noble@apple.com>
659
660         run-webkit-httpd should use webkitpy to run httpd.
661         https://bugs.webkit.org/show_bug.cgi?id=154271
662
663         Reviewed by Alexey Proskuryakov.
664
665         Update run-webkit-httpd to use webkitpy.port to launch httpd. Pass on http_port and http_all_interface
666         options to match the current run-webkit-httpd (optional) behavior.
667
668         * Scripts/run-webkit-httpd:
669         (parse_args):
670         (main):
671         * Scripts/webkitpy/layout_tests/servers/apache_http_server.py:
672         (LayoutTestApacheHttpd.__init__):
673         * Scripts/webkitpy/layout_tests/servers/http_server.py:
674         (Lighttpd._prepare_config):
675         * Scripts/webkitpy/port/base.py:
676         (Port.to.start_http_server):
677
678 2016-02-18  Filip Pizlo  <fpizlo@apple.com>
679
680         Remove remaining references to LLVM, and make sure comments refer to the backend as "B3" not "LLVM"
681         https://bugs.webkit.org/show_bug.cgi?id=154383
682
683         Reviewed by Saam Barati.
684
685         * Scripts/run-jsc-stress-tests:
686
687 2016-02-17  Filip Pizlo  <fpizlo@apple.com>
688
689         Remove LLVM dependencies from WebKit
690         https://bugs.webkit.org/show_bug.cgi?id=154323
691
692         Reviewed by Antti Koivisto and Benjamin Poulain.
693
694         * Scripts/copy-webkitlibraries-to-product-directory:
695         (isContentOfFileEqualToString):
696         (fileContains): Deleted.
697         (buildLLVM): Deleted.
698         (symlinkLLVMLibrariesIfNeeded): Deleted.
699
700 2016-02-16  Sam Weinig  <sam@webkit.org>
701
702         Add an ensure function on HashMap that takes a key and a function to make the lazy value initialization idiom easier
703         https://bugs.webkit.org/show_bug.cgi?id=134857
704
705         Reviewed by Geoffrey Garen.
706
707         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
708         Add tests for HashMap::ensure.
709
710 2016-02-17  Nan Wang  <n_wang@apple.com>
711
712         AX: Implement sentence related text marker functions using TextIterator
713         https://bugs.webkit.org/show_bug.cgi?id=154312
714
715         Reviewed by Chris Fleizach.
716
717         * DumpRenderTree/AccessibilityUIElement.cpp:
718         (nextParagraphEndTextMarkerForTextMarkerCallback):
719         (sentenceTextMarkerRangeForTextMarkerCallback):
720         (previousSentenceStartTextMarkerForTextMarkerCallback):
721         (nextSentenceEndTextMarkerForTextMarkerCallback):
722         (setSelectedVisibleTextRangeCallback):
723         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
724         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
725         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
726         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
727         (AccessibilityUIElement::getJSClass):
728         * DumpRenderTree/AccessibilityUIElement.h:
729         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
730         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
731         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
732         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
733         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
734         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
735         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
736         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
737         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
738         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
739         (AccessibilityUIElement::supportedActions):
740         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
741         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
742         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
743         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
744         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
745         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
746         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
747         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
748         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
749         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
750         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
751         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
752         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
753         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
754         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
755         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
756         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
757         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
758         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
759         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
760         (WTR::_convertMathMultiscriptPairsToString):
761
762 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
763
764         [Mac] Gather some rudimentary statistics during resource load 
765         https://bugs.webkit.org/show_bug.cgi?id=153575
766         <rdar://problem/24075254>
767
768         Reviewed by Brady Eidson.
769
770         * MiniBrowser/mac/SettingsController.h:
771         * MiniBrowser/mac/SettingsController.m:
772         (-[SettingsController _populateMenu]): Add menu item for new debug flag.
773         (-[SettingsController toggleResourceLoadStatisticsEnabled:]): Added.
774         (-[SettingsController resourceLoadStatisticsEnabled]): Added.
775         * MiniBrowser/mac/WK1BrowserWindowController.m:
776         (-[WK1BrowserWindowController didChangeSettings]): React to changes in
777         users's desire to track resource load statistics.
778
779 2016-02-15  Csaba Osztrogonác  <ossy@webkit.org>
780
781         [EFL] Update Tools/efl/install-dependencies
782         https://bugs.webkit.org/show_bug.cgi?id=154239
783
784         Reviewed by Michael Catanzaro.
785
786         * efl/install-dependencies:
787
788 2016-02-15  Alex Christensen  <achristensen@webkit.org>
789
790         Fix internal Windows build of projects built after WebKit
791         https://bugs.webkit.org/show_bug.cgi?id=154249
792         rdar://problem/24644805
793
794         Reviewed by Chris Dumez.
795
796         * DumpRenderTree/PlatformWin.cmake:
797         * MiniBrowser/win/CMakeLists.txt:
798         Don't include DerivedSources/WebKit/Interfaces to make MiniBrowser and DumpRenderTree
799         more like projects built internally after WebKit.  They should only need to use what
800         is in ForwardingHeaders/WebKit.
801
802 2016-02-12  Nan Wang  <n_wang@apple.com>
803
804         AX: Implement paragraph related text marker functions using TextIterator
805         https://bugs.webkit.org/show_bug.cgi?id=154098
806         <rdar://problem/24269675>
807
808         Reviewed by Chris Fleizach.
809
810         * DumpRenderTree/AccessibilityUIElement.cpp:
811         (nextWordEndTextMarkerForTextMarkerCallback):
812         (paragraphTextMarkerRangeForTextMarkerCallback):
813         (previousParagraphStartTextMarkerForTextMarkerCallback):
814         (nextParagraphEndTextMarkerForTextMarkerCallback):
815         (setSelectedVisibleTextRangeCallback):
816         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
817         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
818         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
819         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
820         (AccessibilityUIElement::getJSClass):
821         * DumpRenderTree/AccessibilityUIElement.h:
822         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
823         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
824         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
825         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
826         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
827         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
828         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
829         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
830         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
831         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
832         (AccessibilityUIElement::supportedActions):
833         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
834         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
835         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
836         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
837         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
838         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
839         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
840         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
841         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
842         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
843         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
844         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
845         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
846         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
847         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
848         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
849         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
850         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
851         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
852         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
853         (WTR::_convertMathMultiscriptPairsToString):
854
855 2016-02-12  Jason Marcell  <jmarcell@apple.com>
856
857         Open source bot watcher's dashboard fails assertion in BuildbotQueue.prototype.compareIterationsByRevisions
858         https://bugs.webkit.org/show_bug.cgi?id=154180
859
860         Reviewed by Alexey Proskuryakov.
861
862         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: Remove reference to Internal
863         repository.
864
865 2016-02-12  Jer Noble  <jer.noble@apple.com>
866
867         [Mac] Adopt MediaResourceLoader (instead of CachedResourceLoader) in WebCoreNSURLSession.
868         https://bugs.webkit.org/show_bug.cgi?id=154136
869
870         Reviewed by Alex Christensen.
871
872         Use a MediaResourceLoader instead of a CachedResourceLoader for WebCoreNSURLSession.
873
874         Drive-by fix: generate USE and ENABLE macros for TestWebKitAPI by adding FEATURE_DEFINES
875         to GCC_PREPROCESSOR_DEFINES.
876
877         * TestWebKitAPI/Configurations/Base.xcconfig:
878         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
879         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
880         (TestWebKitAPI::WebCoreNSURLSessionTest::TearDown):
881         (TestWebKitAPI::TEST_F):
882
883 2016-02-11  Dana Burkart  <dburkart@apple.com>
884
885         Large logs can bring down the webkit master
886         https://bugs.webkit.org/show_bug.cgi?id=122112
887
888         Reviewed by Lucas Forschler.
889
890         Implement the suggested fix of throwing away stdout / stderr.
891
892         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
893         (RunWebKit1LeakTests):
894
895 2016-02-10  Jason Marcell  <jmarcell@apple.com>
896
897         Remove calls to parseInt in order to work with non-integer revisions
898         https://bugs.webkit.org/show_bug.cgi?id=153820
899
900         Reviewed by Daniel Bates.
901
902         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
903         (BuildbotIteration.prototype.sourceStampChanges): Remove calls to parseInt in order to work with non-integer
904         revisions.
905         (BuildbotIteration.prototype._parseData): Ditto.
906         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
907         (BuildbotQueue.prototype.update): Ditto.
908         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js:
909         (MockBuildbotQueueView.prototype._latestProductiveIteration): Change integers to strings in test code.
910         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
911         (MockTrac.prototype.get oldestRecordedRevisionNumber): Ditto.
912         (MockTrac.prototype.get latestRecordedRevisionNumber): Ditto.
913         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Ditto.
914
915 2016-02-10  Jason Marcell  <jmarcell@apple.com>
916
917         Teach dashboard code to compare non-integer revisions
918         https://bugs.webkit.org/show_bug.cgi?id=152345
919
920         Reviewed by Daniel Bates.
921
922         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
923         (BuildbotQueue.prototype.compareIterationsByRevisions): Compare non-integer revisions.
924         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
925         (BuildbotQueueView.prototype._appendPendingRevisionCount): Use Trac.indexOfRevision in order to compare non-integer
926         revisions. Also uses new Trac.commitsOnBranchLaterThanRevision method.
927         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Ditto.
928         (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Use Trac.indexOfRevision in order to compare non-integer
929         revisions. Also uses new Trac.nextRevision method to calculate a revision range.
930         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Ditto.
931         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
932         (Trac.prototype._commitsOnBranch): Renamed this to indicate that it should be a private method used by the latter two new
933         methods.
934         (Trac.prototype.commitsOnBranchLaterThanRevision): Finds revisions on a branch later than the specified revision.
935         (Trac.prototype.commitsOnBranchInRevisionRange): Finds revisions on a branch within a specified range.
936         (Trac.prototype.nextRevision): Finds the next revision after a given revision on a specific branch.
937         (Trac.prototype.indexOfRevision): Finds the index of a given revision within the recordedCommits array.
938         (Trac.prototype.commitsOnBranch): Deleted. Renamed to _commitsOnBranch.
939         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests.
940
941 2016-02-09  Nan Wang  <n_wang@apple.com>
942
943         AX: Implement word related text marker functions using TextIterator
944         https://bugs.webkit.org/show_bug.cgi?id=153939
945         <rdar://problem/24269605>
946
947         Reviewed by Chris Fleizach.
948
949         * DumpRenderTree/AccessibilityUIElement.cpp:
950         (endTextMarkerCallback):
951         (leftWordTextMarkerRangeForTextMarkerCallback):
952         (rightWordTextMarkerRangeForTextMarkerCallback):
953         (previousWordStartTextMarkerForTextMarkerCallback):
954         (nextWordEndTextMarkerForTextMarkerCallback):
955         (setSelectedVisibleTextRangeCallback):
956         (AccessibilityUIElement::setSelectedVisibleTextRange):
957         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
958         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
959         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
960         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
961         (AccessibilityUIElement::getJSClass):
962         * DumpRenderTree/AccessibilityUIElement.h:
963         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
964         (AccessibilityUIElement::setSelectedVisibleTextRange):
965         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
966         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
967         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
968         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
969         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
970         (AccessibilityUIElement::setSelectedVisibleTextRange):
971         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
972         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
973         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
974         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
975         (AccessibilityUIElement::supportedActions):
976         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
977         (WTR::AccessibilityUIElement::setBoolAttributeValue):
978         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
979         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
980         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
981         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
982         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
983         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
984         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
985         (WTR::AccessibilityUIElement::endTextMarker):
986         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
987         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
988         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
989         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
990         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
991         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
992         (WTR::AccessibilityUIElement::endTextMarker):
993         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
994         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
995         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
996         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
997         (WTR::_convertMathMultiscriptPairsToString):
998
999 2016-02-09  Csaba Osztrogonác  <ossy@webkit.org>
1000
1001         [EFL] Remove eail related cruft after r195725
1002         https://bugs.webkit.org/show_bug.cgi?id=154030
1003
1004         Reviewed by Alex Christensen.
1005
1006         * efl/jhbuildrc:
1007
1008 2016-02-09  Csaba Osztrogonác  <ossy@webkit.org>
1009
1010         [EFL] Remove LLVM related cruft after r196077
1011         https://bugs.webkit.org/show_bug.cgi?id=154031
1012
1013         Reviewed by Alex Christensen.
1014
1015         * efl/jhbuild.modules:
1016         * efl/patches/llvm-elf-add-stackmaps-arm64.patch: Removed.
1017         * efl/patches/llvm-elf-allow-fde-references-outside-the-2gb-range-arm64.patch: Removed.
1018         * efl/patches/llvm-version-arm64.patch: Removed.
1019
1020 2016-02-05  Aakash Jain  <aakash_jain@apple.com>
1021
1022         tests fail if display sleeps while run-webkit-tests is running
1023         https://bugs.webkit.org/show_bug.cgi?id=153919
1024
1025         Reviewed by Alexey Proskuryakov.
1026
1027         * DumpRenderTree/mac/LayoutTestHelper.m:
1028         (addDisplaySleepAssertion): Add the assertion so that the display doesn't turn off.
1029         (releaseDisplaySleepAssertion): Release the DisplaySleep Assertion.
1030         (simpleSignalHandler): Release the DisplaySleepAssertion in case of any iterrupt.
1031
1032 2016-02-05  Alex Christensen  <achristensen@webkit.org>
1033
1034         Fix iOS API tests after r196082
1035         https://bugs.webkit.org/show_bug.cgi?id=153900
1036
1037         Reviewed by Jer Noble.
1038
1039         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
1040         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
1041         [WebView initialize] doesn't call JSC::initializeThreading on iOS.
1042
1043 2016-02-04  Jason Marcell  <jmarcell@apple.com>
1044
1045         The status message for passing combined builder queues should say "all builds succeeded" when expanded.
1046         https://bugs.webkit.org/show_bug.cgi?id=153882
1047
1048         Reviewed by Alexey Proskuryakov.
1049
1050         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:
1051         (BuildbotCombinedQueueView.prototype.update): Set status to "all builds succeeded" for combined builder queues
1052         when expanded.
1053
1054 2016-02-03  Filip Pizlo  <fpizlo@apple.com>
1055
1056         run-jsc-stress-tests should be better at telling you details about test failures
1057         https://bugs.webkit.org/show_bug.cgi?id=153845
1058
1059         Reviewed by Geoffrey Garen.
1060
1061         Here's an example of the contents of results/resultsByFamily, one of the new files that this
1062         generates, for some local testing I'm doing.  Notice how it groups families of tests together.
1063
1064         You won't see this unless you cat results/resultsByFamily.
1065
1066         regress.yaml/Regress/radar-24289839.js:
1067             regress.yaml/Regress/radar-24289839.js.default: PASS
1068             regress.yaml/Regress/radar-24289839.js.ftl: PASS
1069             regress.yaml/Regress/radar-24289839.js.ftl-no-cjit: FAIL
1070             regress.yaml/Regress/radar-24289839.js.ftl-eager-no-cjit: FAIL
1071         
1072         regress.yaml/Regress/radar-24290639.js:
1073             regress.yaml/Regress/radar-24290639.js.default: PASS
1074             regress.yaml/Regress/radar-24290639.js.ftl: PASS
1075             regress.yaml/Regress/radar-24290639.js.ftl-no-cjit: PASS
1076             regress.yaml/Regress/radar-24290639.js.ftl-eager-no-cjit: FAIL
1077         
1078         regress.yaml/Regress/radar-24290670.js: FAILED
1079         
1080         * Scripts/run-jsc-stress-tests:
1081
1082 2016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1083
1084         [WTR] Crash in EventSendingController::contextClick() when context menu event is not handled
1085         https://bugs.webkit.org/show_bug.cgi?id=153835
1086
1087         Reviewed by Martin Robinson.
1088
1089         WKBundlePageCopyContextMenuAtPointInWindow() returns nullptr when
1090         the context menu event is not handled, but we are using the
1091         returned value without null checking it.
1092
1093         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
1094         (WTR::EventSendingController::contextClick):
1095
1096 2016-02-03  Jason Marcell  <jmarcell@apple.com>
1097
1098         Format revisions for display according to repository type
1099         https://bugs.webkit.org/show_bug.cgi?id=153818
1100
1101         Reviewed by Alexey Proskuryakov.
1102
1103         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1104         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Use new _formatRevisionForDisplay to display revisions according
1105         to repository type.
1106         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Ditto.
1107         (BuildbotQueueView.prototype._formatRevisionForDisplay): Formats revisions for display according to repository type.
1108         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests to test new
1109         _formatRevisionForDisplay function.
1110
1111 2016-02-03  Aakash Jain  <aakash_jain@apple.com>
1112
1113         Logs/CoreSimulator filling up OS disk on WebKit testers
1114         https://bugs.webkit.org/show_bug.cgi?id=153853
1115         <rdar://problem/24496003>
1116
1117         Reviewed by Alexey Proskuryakov.
1118
1119         * Scripts/webkitpy/port/ios.py:
1120         (IOSSimulatorPort.clean_up_test_run): Delete Logs during cleanup.
1121
1122 2016-02-03  Brian Burg  <bburg@apple.com>
1123
1124         git-add-reviewer should work when run from a subdirectory within the repository
1125         https://bugs.webkit.org/show_bug.cgi?id=153842
1126
1127         Reviewed by David Kilzer.
1128
1129         There are two problems that needed to be fixed:
1130
1131          - We can't assume .git is in $PWD/.git
1132          - We can't specify absolute paths to `git commit`
1133
1134         Fix these problems using the helpers in VCSUtils that were added to
1135         fix this same issue for prepare-changeCogs.
1136
1137         * Scripts/VCSUtils.pm: Export gitDirectory()
1138         * Scripts/git-add-reviewer:
1139         (nonInteractive): Cache gitDirectory() result.
1140         (addReviewer):
1141         (commit):
1142         (changeLogsForCommit): Make paths relative.
1143
1144 2016-02-03  Jer Noble  <jer.noble@apple.com>
1145
1146         Yet another Yosemite build fix.
1147
1148         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
1149
1150 2016-02-03  Jer Noble  <jer.noble@apple.com>
1151
1152         iOS build fix after Yosemite build fix broke iOS build.
1153
1154         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
1155
1156 2016-02-03  Jer Noble  <jer.noble@apple.com>
1157
1158         Yosemite build fix; hide the entire WebCoreNSURLSessionDataTask class from Yosemite and prior.
1159
1160         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
1161
1162 2016-02-03  Joonghun Park  <jh718.park@samsung.com>
1163
1164         [Tools] Remove $additionalCMakeArgs variable because without this variable --cmakeargs options works well
1165         https://bugs.webkit.org/show_bug.cgi?id=153827
1166
1167         Reviewed by Michael Catanzaro.
1168
1169         When an array is passed to subroutines as argument in perl,
1170         a list containing its element is returned from the array.
1171         Currently @$ arguments are being passed, then it is going to be one list
1172         including all the elements not only from @ but also from $.
1173         As a result, --cmakeargs option's value is included in @cmakeArgs
1174         at generateBuildSystemFromCMakeProject subroutine,
1175         so $additionalCMakeArgs doesn't needed anymore.
1176
1177         * Scripts/webkitdirs.pm:
1178         (generateBuildSystemFromCMakeProject):
1179
1180 2016-02-03  Jer Noble  <jer.noble@apple.com>
1181
1182         [Mac] Wrap a resource and resource loader in a NSURLSession-like object for use by lower level frameworks
1183         https://bugs.webkit.org/show_bug.cgi?id=153669
1184
1185         Reviewed by Alex Christensen.
1186
1187         Add an API test for WebCoreNSURLSession, testing that it behaves like a regulare NSURLSession, including
1188         calling appropriate NSURLSessionDelegate callbacks.
1189
1190         Drive-by fix: Add a FeatureDefines.xcconfig to TestWebKitAPI.  Without this, the ENABLE macros in WebCore
1191         header files will not match the one used when compiling WebCore, leading to strange crashes and weird
1192         inconsistencies when calling, e.g., inline methods.
1193
1194         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Added.
1195         * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig:
1196         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1197         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm: Added.
1198         (-[TestNSURLSessionLoaderDelegate webView:didCommitLoadForFrame:]):
1199         (-[TestNSURLSessionDataDelegate URLSession:task:didCompleteWithError:]):
1200         (-[TestNSURLSessionDataDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
1201         (-[TestNSURLSessionDataDelegate URLSession:dataTask:didReceiveData:]):
1202         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
1203         (TestWebKitAPI::WebCoreNSURLSessionTest::TearDown):
1204         (TestWebKitAPI::TEST_F):
1205
1206 2016-02-03  Konstantin Tokarev  <annulen@yandex.ru>
1207
1208         [webkitdirs] Clarify logic behind is{PortName} functions.
1209         https://bugs.webkit.org/show_bug.cgi?id=153554
1210
1211         Reviewed by Michael Catanzaro.
1212
1213         * Scripts/webkitdirs.pm:
1214         (prohibitUnknownPort): This function makes determinePortName()
1215         failure fatal.
1216         (determinePortName): Added new function which decides which port are
1217         we building based on command line switches and platform defaults.
1218         (portName): Added getter for determined $portName.
1219         (isEfl): Modified to use portName().
1220         (isGtk): Ditto.
1221         (isWinCairo): Ditto.
1222         (isAppleMacWebKit): Ditto.
1223         (isAppleWinWebKit): Ditto.
1224         (isIOSWebKit): Ditto.
1225         (cmakeBasedPortName): Return portName() with capitalized first letter.
1226         (determineIsEfl): Deleted.
1227         (determineIsGtk): Deleted.
1228         (determineIsWinCairo): Deleted.
1229
1230         * Scripts/build-jsc: Call prohibitUnknownPort().
1231         * Scripts/run-minibrowser: Ditto.
1232         * Scripts/webkitperl/FeatureList.pm: Ditto.
1233         * Scripts/update-webkit: Call determinePortName() instead of
1234         determineIsWinCairo().
1235
1236 2016-02-02  Dan Bernstein  <mitz@apple.com>
1237
1238         Better fix for Layout Test fast/parser/external-entities-in-xslt.xml is flaky on El Capitan (but fails most of the time)
1239         https://bugs.webkit.org/show_bug.cgi?id=153683
1240
1241         Reviewed by Darin Adler.
1242
1243         * Scripts/webkitpy/port/driver.py:
1244         (Driver._setup_environ_for_driver): Reverted change from r196013. DUMPRENDERTREE_TEMP is not
1245           used by any code in the Web Content process. If that ever changed, we should send it over
1246           as a bundle parameter.
1247
1248         * Scripts/webkitpy/port/ios.py:
1249         (IOSSimulatorPort.setup_environ_for_server): Reverted change from r196013.
1250
1251         * Scripts/webkitpy/port/mac.py:
1252         (MacPort.setup_environ_for_server): Ditto.
1253
1254         * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
1255         (WTR::InjectedBundle::platformInitialize): Set XML_CATALOG_FILES in the Web Process
1256           environment. This is early enough that libxml2 has not been initialized yet.
1257
1258         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
1259         (WTR::InjectedBundle::platformInitialize): Ditto.
1260
1261 2016-02-02  Dan Bernstein  <mitz@apple.com>
1262
1263         Layout Test fast/parser/external-entities-in-xslt.xml is flaky on El Capitan (but fails most of the time)
1264         https://bugs.webkit.org/show_bug.cgi?id=153683
1265
1266         Reviewed by Alexey Proskuryakov.
1267
1268         Ensure that XML_CATALOG_FILES is set in the Web Content service’s environment as well.
1269
1270         * Scripts/webkitpy/port/driver.py:
1271         (Driver._setup_environ_for_driver): Also set __XPC_DUMPRENDERTREE_TEMP.
1272         * Scripts/webkitpy/port/ios.py:
1273         (IOSSimulatorPort.setup_environ_for_server): Set __XPC_XML_CATALOG_FILES.
1274         * Scripts/webkitpy/port/mac.py:
1275         (MacPort.setup_environ_for_server): Ditto.
1276
1277 2016-01-29 Grzegorz Czajkowski  <g.czajkowski@samsung.com>
1278
1279         [EFL] Virtual Keyboard overlaps MiniBrowser's WebView
1280         https://bugs.webkit.org/show_bug.cgi?id=153009
1281
1282         Reviewed by Gyuyoung Kim.
1283
1284         On mobile, virtual keyboard represented by ecore_imf module appears on
1285         the top of application layer usually covering bottom part of the screen.
1286         If the web page contains the editable content on the bottom of the page
1287         it will be overlapped by keyboard which prevents user from seeing the
1288         typed text.
1289
1290         Pack MiniBrowser layout into conformant widget to allow EFL to guess
1291         the space that will be required by the keyboard, finally resizing it
1292         to the desired size. As a result, webview gets resized and scrolled
1293         into focused elements which makes the editable elements visible while
1294         typing.
1295
1296         More details about elm_conformant widger can be found at:
1297         https://docs.enlightenment.org/elementary/1.15.0/group__Conformant.html
1298         https://docs.enlightenment.org/elementary/1.15.0/conformant_example.html
1299
1300         * MiniBrowser/efl/main.c:
1301         (window_create): pack a box into conformant widget.
1302
1303 2016-02-02  Alejandro G. Castro  <alex@igalia.com>
1304
1305         [GTK][EFL] Upgrade OpenWebRTC dependency
1306         https://bugs.webkit.org/show_bug.cgi?id=153489
1307
1308         Reviewed by Philippe Normand.
1309
1310         * Scripts/run-gtk-tests:
1311         (TestRunner): Avoid running the mediastream API test.
1312         * Scripts/webkitperl/FeatureList.pm: Stop compiling mediastream by
1313         default for gtk and efl.
1314         * gtk/jhbuild-webrtc.modules: Added modules files with
1315         dependencies required to compile and test the mediastream.
1316
1317 2016-02-01  Jason Marcell  <jmarcell@apple.com>
1318
1319         Add code to parse the git branches out of the Trac RSS feed
1320         https://bugs.webkit.org/show_bug.cgi?id=153624
1321
1322         Reviewed by Daniel Bates.
1323
1324         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
1325         (Trac.prototype.commitsOnBranch): Update filter to check for Git branches.
1326         (Trac.prototype._convertCommitInfoElementToObject): Parse Git branches from the Trac RSS feed. Also changed "branchName" to
1327         "branches" and updated the code to work with an array instead of a string.
1328         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
1329         (MockTrac): Refactored example commits out into a constant, MockTrac.EXAMPLE_TRAC_COMMITS.
1330         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml: Added. Test
1331         fixture that contains XML with a Git branch.
1332         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit test to test parsing Git
1333         branches from Trac RSS feed. Also updated code to work with the new MockTrac.EXAMPLE_TRAC_COMMITS constant.
1334
1335 2016-02-01  Brady Eidson  <beidson@apple.com>
1336
1337         Add command line flag to DRT to output the number of tests completed in server mode.
1338         https://bugs.webkit.org/show_bug.cgi?id=153750
1339
1340         Reviewed by Darin Adler.
1341
1342         * DumpRenderTree/mac/DumpRenderTree.mm:
1343         (initializeGlobalsFromCommandLineOptions):
1344         (runTestingServerLoop):
1345
1346 2016-02-01  Jason Marcell  <jmarcell@apple.com>
1347
1348         Improvements to botwatcher's dashboard unit tests.
1349         https://bugs.webkit.org/show_bug.cgi?id=153621
1350
1351         Reviewed by Darin Adler.
1352
1353         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/PopoverTracker.js:
1354         (PopoverTracker): Retain a reference to the PopoverTracker so that we can make assertions about it in the unit tests.
1355         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
1356         (MockTrac): Changing revision 33019 to be on a different branch so that _appendPendingRevisionCount and
1357         _popoverLinesForCommitRange have to traverse commits from different branches.
1358         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Changing equal to strictEqual
1359         in unit test for _appendPendingRevisionCount. Also added assertions for Popover in test for
1360         _revisionContentWithPopoverForIteration.
1361
1362 2016-02-01  Jason Marcell  <jmarcell@apple.com>
1363
1364         Refactor to add event listeners and start periodic updates for all trac instances.
1365         https://bugs.webkit.org/show_bug.cgi?id=153609
1366
1367         Reviewed by Darin Adler.
1368
1369         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1370         (BuildbotQueueView): Adding event listeners for all trac instances.
1371         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
1372         for all trac instances.
1373
1374 2016-01-31  Darin Adler  <darin@apple.com>
1375
1376         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
1377         https://bugs.webkit.org/show_bug.cgi?id=153639
1378
1379         Reviewed by Filip Pizlo.
1380
1381         * Scripts/do-webcore-rename: Use script to do this rename.
1382
1383 2016-01-30  Commit Queue  <commit-queue@webkit.org>
1384
1385         Unreviewed, rolling out r195911.
1386         https://bugs.webkit.org/show_bug.cgi?id=153723
1387
1388         Caused frequent assertion failures on bots (Requested by ap on
1389         #webkit).
1390
1391         Reverted changeset:
1392
1393         "Replace CaseFoldingHash with ASCIICaseInsensitiveHash"
1394         https://bugs.webkit.org/show_bug.cgi?id=153639
1395         http://trac.webkit.org/changeset/195911
1396
1397 2016-01-30  Darin Adler  <darin@apple.com>
1398
1399         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
1400         https://bugs.webkit.org/show_bug.cgi?id=153639
1401
1402         Reviewed by Filip Pizlo.
1403
1404         * Scripts/do-webcore-rename: Use script to do this rename.
1405
1406 2016-01-30  Ryosuke Niwa  <rniwa@webkit.org>
1407
1408         TouchList should be retargeted
1409         https://bugs.webkit.org/show_bug.cgi?id=149592
1410
1411         Reviewed by Antti Koivisto.
1412
1413         Added touchDownAtPoint and liftUpAtPoint to UIScriptController so that we can test touch events with
1414         multiple touch targets on iOS. fast/shadow-dom/touch-event-ios.html uses this new testing feature.
1415
1416         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
1417         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1418         (WTR::UIScriptController::touchDownAtPoint): Added.
1419         (WTR::UIScriptController::liftUpAtPoint): Added.
1420         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1421         * WebKitTestRunner/ios/HIDEventGenerator.h:
1422         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1423         (-[HIDEventGenerator touchDown:touchCount:completionBlock:]): Added. Sends touch down and waits.
1424         (-[HIDEventGenerator liftUp:touchCount:completionBlock:]): Ditto for lift up.
1425         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1426         (WTR::UIScriptController::touchDownAtPoint): Added.
1427         (WTR::UIScriptController::liftUpAtPoint): Added.
1428
1429 2016-01-30  Yusuke Suzuki  <utatane.tea@gmail.com>
1430
1431         Enable SamplingProfiler on POSIX environment
1432         https://bugs.webkit.org/show_bug.cgi?id=153584
1433
1434         Reviewed by Michael Saboff.
1435
1436         * Scripts/run-jsc-stress-tests:
1437
1438 2016-01-29  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
1439
1440         update-webkit-dependency fails to fetch updates through firewall on Windows
1441         https://bugs.webkit.org/show_bug.cgi?id=153619
1442
1443         Reviewed by Myles C. Maxfield.
1444
1445         On Windows, when a firewall is present we need to read proxy settings
1446         from environment variables.
1447
1448         This patch relies on the following environment variables being set:
1449         HTTP_PROXY
1450         HTTPS_PROXY
1451
1452         * Scripts/update-webkit-dependency:
1453
1454 2016-01-28  Dan Bernstein  <mitz@apple.com>
1455
1456         [Cocoa] Use the non-Development variants of XPC services for development
1457         https://bugs.webkit.org/show_bug.cgi?id=152545
1458
1459         Reviewed by Darin Adler.
1460
1461         * Scripts/webkitdirs.pm:
1462         (setUpGuardMallocIfNeeded): Ensure that libgmalloc is loaded into XPC services as well.
1463
1464         * Scripts/webkitpy/port/driver.py:
1465         (Driver._setup_environ_for_driver): Ensure that the DYLD_LIBRARY_PATH and ASAN_OPTIONS are
1466           set in the XPC services as well.
1467
1468         * Scripts/webkitpy/port/ios.py:
1469         (IOSSimulatorPort.setup_environ_for_server): Ensure that malloc stack logging for leaks and
1470           Guard Malloc are enabled in XPC services as well.
1471
1472         * Scripts/webkitpy/port/mac.py:
1473         (MacPort.setup_environ_for_server): Ditto.
1474
1475 2016-01-28  Csaba Osztrogonác  <ossy@webkit.org>
1476
1477         Unreviewed buildfix after r195743.
1478
1479         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
1480         (WTR::AccessibilityUIElement::isPressActionSupported):
1481
1482 2016-01-12  Jer Noble  <jer.noble@apple.com>
1483
1484         Custom protocol loading through AVFoundation does not support byte-range requests.
1485         https://bugs.webkit.org/show_bug.cgi?id=152919
1486         <rdar://problem/23664657>
1487
1488         Reviewed by Alex Christensen.
1489
1490         Add tests for new ParsedContntRange class.
1491
1492         * TestWebKitAPI/PlatformWin.cmake:
1493         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
1494         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
1495         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1496         * TestWebKitAPI/Tests/WebCore/ParsedContentRange.cpp: Added.
1497         (TestWebKitAPI::TEST):
1498
1499 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
1500
1501         Use isAnyWindows() instead of isCygwin() || isWindows() in Perl scripts.
1502         https://bugs.webkit.org/show_bug.cgi?id=153594
1503
1504         Reviewed by Alex Christensen.
1505
1506         * Scripts/webkitdirs.pm:
1507         (determineNumberOfCPUs):
1508         (jscPath):
1509         (checkFrameworks):
1510         (setupCygwinEnv):
1511         (wrapperPrefixIfNeeded):
1512         (cmakeGeneratedBuildfile):
1513         (generateBuildSystemFromCMakeProject):
1514         * Scripts/webkitperl/features.pm:
1515         (libraryContainsSymbol):
1516
1517 2016-01-28  Chris Dumez  <cdumez@apple.com>
1518
1519         Unreviewed, rolling out r195742.
1520
1521         Broke EWS
1522
1523         Reverted changeset:
1524
1525         "[webkitdirs] Clarify logic behind is{PortName} functions."
1526         https://bugs.webkit.org/show_bug.cgi?id=153554
1527         http://trac.webkit.org/changeset/195742
1528
1529 2016-01-28  Darin Adler  <darin@apple.com>
1530
1531         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
1532         https://bugs.webkit.org/show_bug.cgi?id=153411
1533
1534         Reviewed by Ryosuke Niwa.
1535
1536         * Scripts/do-webcore-rename: Removed rename of equalIgnoringCase since we
1537         have removed the function instead.
1538
1539         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
1540         (TestWebKitAPI::TEST): Updated test since nullptr is now ambiguous since we
1541         added overloads for const char*.
1542
1543         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
1544         (WTR::AccessibilityUIElement::isPressActionSupported): Use equalLettersIgnoringASCIICase.
1545         (WTR::AccessibilityUIElement::hasPopup): Ditto.
1546         * WebKitTestRunner/cocoa/CrashReporterInfo.mm:
1547         (WTR::testPathFromURL): Ditto.
1548
1549 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
1550
1551         [webkitdirs] Clarify logic behind is{PortName} functions.
1552         https://bugs.webkit.org/show_bug.cgi?id=153554
1553
1554         Reviewed by Darin Adler.
1555
1556         * Scripts/webkitdirs.pm:
1557         (determinePortName): Added new function which decides which port are
1558         we building based on command line switches and platform defaults.
1559         (portName): Added getter for determined $portName.
1560         (isEfl): Modified to use portName().
1561         (isGtk): Ditto.
1562         (isWinCairo): Ditto.
1563         (isAppleMacWebKit): Ditto.
1564         (isAppleWinWebKit): Ditto.
1565         (isIOSWebKit): Ditto.
1566         (cmakeBasedPortName): Code replaced with portName() call.
1567         (determineIsEfl): Deleted.
1568         (determineIsGtk): Deleted.
1569         (determineIsWinCairo): Deleted.
1570
1571 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
1572
1573         [webkitdirs] Don't pass cmakeBasedPortName around.
1574         https://bugs.webkit.org/show_bug.cgi?id=153589
1575
1576         Reviewed by Darin Adler.
1577
1578         It should be local function of webkitdirs.pm instead.
1579
1580         * Scripts/build-jsc: Don't pass cmakeBasedPortName to
1581         buildCMakeProjectOrExit().
1582         * Scripts/build-webkit: Don't pass cmakeBasedPortName to
1583         buildCMakeProjectOrExit() and generateBuildSystemFromCMakeProject().
1584         * Scripts/run-efl-tests: Don't pass cmakeBasedPortName to
1585         generateBuildSystemFromCMakeProject().
1586         * Scripts/webkitdirs.pm: Don't export cmakeBasedPortName.
1587         (generateBuildSystemFromCMakeProject): Removed $port argument as we
1588         can get it from cmakeBasedPortName().
1589         (buildCMakeProjectOrExit): Ditto.
1590
1591 2016-01-28  Gwang Yoon Hwang  <yoon@igalia.com>
1592
1593         [GStreamer] Clean up includes and headers related with GStreamerGL
1594         https://bugs.webkit.org/show_bug.cgi?id=153590
1595
1596         Reviewed by Philippe Normand.
1597
1598         * Scripts/webkitpy/style/checker.py: Skips
1599         include_order check for MediaPlayerPrivateGStreamerBase.cpp
1600         Removes VideoSinkGStreamer1.cpp which doesn't exist anymore.
1601
1602 2016-01-27  Krzysztof Czech  <k.czech@samsung.com>
1603
1604         [EFL] Remove unused accessibility related code
1605         https://bugs.webkit.org/show_bug.cgi?id=153543
1606
1607         Reviewed by Darin Adler.
1608
1609         Removed reference to EAIL library.
1610         It not going to be support anymore. There have been changes in
1611         EFL/Elementary in terms of the accessibility and we should
1612         follow those.
1613
1614         * efl/jhbuild-optional.modules:
1615
1616 2016-01-27  Daniel Bates  <dabates@apple.com>
1617
1618         Remove WebKitSystemInterface for iOS SDK < 9
1619         https://bugs.webkit.org/show_bug.cgi?id=153570
1620
1621         Reviewed by Andy Estes.
1622
1623         * Scripts/copy-webkitlibraries-to-product-directory:
1624
1625 2016-01-27  Jason Marcell  <jmarcell@apple.com>
1626
1627         Fix bugs caused by incorrect usage of "branch" vs. "branchName".
1628         https://bugs.webkit.org/show_bug.cgi?id=153330
1629
1630         Reviewed by Daniel Bates.
1631
1632         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
1633         "branchName" implies that the variable or property in question is simply a string. We fixed some
1634         inconsistencies regarding this issue in 152982 but further bugs and inconsistencies were recently
1635         spotted in BuildbotQueueView.js.
1636
1637         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1638         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branchName to branch in method signature.
1639         Changed branchName to branch.name in call to commitsOnBranch.
1640         (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Change branch.name to branch in call to
1641         _popoverLinesForCommitRange.
1642         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Changed context.branchName to context.branch.name.
1643         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Changed branch.name to branch.
1644         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests to verify
1645         fix.
1646
1647 2016-01-27  Ryosuke Niwa  <rniwa@webkit.org>
1648
1649         Add API to access closed shadowRoot in InjectedBundle
1650         https://bugs.webkit.org/show_bug.cgi?id=153533
1651
1652         Reviewed by Antti Koivisto.
1653
1654         Added WebKit2 API test for WKBundleScriptWorldMakeAllShadowRootsOpen.
1655
1656         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1657         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp: Added.
1658         (TestWebKitAPI::runJavaScriptAlert):
1659         (TestWebKitAPI::TEST):
1660         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakrAllShadowRootOpen_Bundle.cpp: Added.
1661         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::InjectedBundleMakrAllShadowRootOpenTest):
1662         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::initialize):
1663
1664 2016-01-27  Jason Marcell  <jmarcell@apple.com>
1665
1666         Refactor logic for parsing Trac revisions into its own function and add logic for parsing git hashes.
1667         https://bugs.webkit.org/show_bug.cgi?id=153332
1668
1669         Reviewed by Alexey Proskuryakov.
1670
1671         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
1672         (Trac.prototype._xmlTimelineURL): Uses new function.
1673         (Trac.prototype._parseRevisionFromURL): Added. Pulled out logic for parsing revisions from a URL. Also added
1674         logic for parsing git hashes.
1675         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests for
1676         Trac._parseRevisionFromURL.
1677
1678 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1679
1680         Remove Mavericks from the flakiness dashboard
1681         https://bugs.webkit.org/show_bug.cgi?id=153521
1682
1683         Reviewed by Dan Bernstein.
1684
1685         * TestResultServer/static-dashboards/builders.jsonp:
1686         * TestResultServer/static-dashboards/flakiness_dashboard.js:
1687
1688 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1689
1690         Remove ENABLE_CURRENTSRC
1691         https://bugs.webkit.org/show_bug.cgi?id=153545
1692
1693         Reviewed by Simon Fraser.
1694
1695         * Scripts/webkitperl/FeatureList.pm:
1696
1697 2016-01-26  Jason Marcell  <jmarcell@apple.com>
1698
1699         Sort incoming commits via date instead of revision number.
1700         https://bugs.webkit.org/show_bug.cgi?id=153467
1701
1702         Reviewed by Alexey Proskuryakov.
1703
1704         Future Trac instances may use Git or other revision control systems where we cannnot rely on the revision number
1705         for sorting revisions. Instead we use the commit date to sort revisions chronologically.
1706
1707         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
1708         (Trac.prototype._loaded): Sort via date instead of revision number.
1709         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
1710         (MockTrac): Fix up the mock data to look more like real-world data.
1711         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml: Added.
1712         Fake RSS feed that adds three more commits.
1713         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests to test
1714         Trac._loaded().
1715
1716 2016-01-26  I-Ting Liu  <iting_liu@apple.com>
1717
1718         Add a test for WebKit::stringMatchesWildcardString.
1719         https://bugs.webkit.org/show_bug.cgi?id=153090
1720
1721         Reviewed by Darin Adler.
1722
1723         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1724         Add the file to the project.
1725
1726         * TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm: Added.
1727         (TestWebKitAPI::TEST):
1728         Test that a string matches another string that may contain wildcard characters.
1729
1730 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
1731
1732         [webkitdirs] Removed check for bison, gperf, and flex.
1733         https://bugs.webkit.org/show_bug.cgi?id=153496
1734
1735         Reviewed by Alex Christensen.
1736
1737         This prerequisites are checked in WebKitCommon.cmake and don't
1738         have to be in $PATH.
1739
1740         * Scripts/webkitdirs.pm:
1741         (checkRequiredSystemConfig):
1742
1743 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
1744
1745         [webkitdirs] isCMakeBuild should be true by default
1746         https://bugs.webkit.org/show_bug.cgi?id=153497
1747
1748         Reviewed by Michael Catanzaro.
1749
1750         * Scripts/webkitdirs.pm:
1751         (isCMakeBuild):
1752
1753 2016-01-26  Daniel Bates  <dabates@apple.com>
1754
1755         Add WebKitSystemInterface for iOS 9.2
1756         https://bugs.webkit.org/show_bug.cgi?id=153355
1757
1758         Rubber-stamped by David Kilzer.
1759
1760         * Scripts/copy-webkitlibraries-to-product-directory:
1761
1762 2016-01-26  Daniel Bates  <dabates@apple.com>
1763
1764         WebKitTestRunner: Credential cache is not cleared between tests
1765         https://bugs.webkit.org/show_bug.cgi?id=153407
1766         <rdar://problem/24280834>
1767
1768         Reviewed by Alexey Proskuryakov.
1769
1770         * WebKitTestRunner/TestController.cpp:
1771         (WTR::TestController::resetStateToConsistentValues): Call WKContextClearCachedCredentials()
1772         to clear cached credentials.
1773
1774 2016-01-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1775
1776         kill-old-processes: allow to specify on the environment of the bot a list of process that should be killed.
1777         https://bugs.webkit.org/show_bug.cgi?id=153483
1778
1779         Reviewed by Csaba Osztrogonác.
1780
1781         * BuildSlaveSupport/kill-old-processes:
1782         (main): Allow to specify extra tasks to kill via the environment variable WEBKITBOT_TASKSTOKILL
1783
1784 2016-01-25  Simon Fraser  <simon.fraser@apple.com>
1785
1786         Give the layout test results file a <title> showing the date and time the tests were run
1787         https://bugs.webkit.org/show_bug.cgi?id=153187
1788
1789         Reviewed by Darin Adler.
1790         
1791         Include a 'date' property in the JSON with the date and time the tests completed.
1792
1793         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
1794         (summarize_results):
1795
1796 2016-01-25  Commit Queue  <commit-queue@webkit.org>
1797
1798         Unreviewed, rolling out r195543.
1799         https://bugs.webkit.org/show_bug.cgi?id=153451
1800
1801         regressed performance of test bots by ~6% (Requested by dydz
1802         on #webkit).
1803
1804         Reverted changeset:
1805
1806         "WebKitTestRunner: Credential cache is not cleared between
1807         tests"
1808         https://bugs.webkit.org/show_bug.cgi?id=153407
1809         http://trac.webkit.org/changeset/195543
1810
1811 2016-01-25  Aakash Jain  <aakash_jain@apple.com>
1812
1813         Failing to upload to flakiness dashboard should not be a hard error
1814         https://bugs.webkit.org/show_bug.cgi?id=153444
1815         <rdar://problem/22146294>
1816
1817         Reviewed by Alexey Proskuryakov.
1818
1819         * Scripts/webkitpy/layout_tests/controllers/manager.py:
1820         (Manager._upload_json_files): If JSON file is not generated, do not try to upload it.
1821
1822 2016-01-25  Daniel Bates  <dabates@apple.com>
1823
1824         WebKitTestRunner: Credential cache is not cleared between tests
1825         https://bugs.webkit.org/show_bug.cgi?id=153407
1826         <rdar://problem/24280834>
1827
1828         Reviewed by Brady Eidson.
1829
1830         * WebKitTestRunner/TestController.cpp:
1831         (WTR::TestController::resetStateToConsistentValues): Reset testing network session
1832         to clear cached credentials.
1833
1834 2016-01-24  Dan Bernstein  <mitz@apple.com>
1835
1836         Added project.xcworkspace and xcuserdata to this project’s svn:ignore.
1837
1838         * LayoutTestRelay/LayoutTestRelay.xcodeproj: Added property svn:ignore.
1839
1840 2016-01-22  Enrica Casucci  <enrica@apple.com>
1841
1842         Unreviewed build fix after http://trac.webkit.org/changeset/195474.
1843
1844         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1845         (WTR::TestController::platformCreateWebView):
1846
1847 2016-01-22  Tim Horton  <timothy_horton@apple.com>
1848
1849         Add a test for iOS arrow-key repeat
1850         https://bugs.webkit.org/show_bug.cgi?id=152857
1851         <rdar://problem/24017380>
1852
1853         Reviewed by Darin Adler.
1854
1855         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
1856         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1857         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
1858         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
1859         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1860         * WebKitTestRunner/ios/HIDEventGenerator.h:
1861         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1862         (-[HIDEventGenerator keyPress:completionBlock:]):
1863         (-[HIDEventGenerator keyDown:completionBlock:]):
1864         (-[HIDEventGenerator keyUp:completionBlock:]):
1865         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1866         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
1867         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
1868         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
1869         Make it possible to independently send keyUp/keyDown, instead of just paired.
1870
1871 2016-01-22  Tim Horton  <timothy_horton@apple.com>
1872
1873         Reproducible "Unhanded web process message 'WebUserContentController:AddUserScripts'" and friends
1874         https://bugs.webkit.org/show_bug.cgi?id=153193
1875         <rdar://problem/24222034>
1876
1877         Reviewed by Darin Adler.
1878
1879         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
1880         (webViewForScriptMessageHandlerMultipleHandlerRemovalTest):
1881         (TEST):
1882         Add a test that exhibits the problems we're fixing here.
1883         Before, it would both log and assert in debug, and crash in release.
1884         Now it runs happily to completion.
1885
1886 2016-01-22  Enrica Casucci  <enrica@apple.com>
1887
1888         Add support for testing data detection.
1889         https://bugs.webkit.org/show_bug.cgi?id=153360
1890
1891         Reviewed by Tim Horton.
1892
1893         Adding a new testing option (useDataDetection) to turn on
1894         data detection when running the a test.
1895
1896         * WebKitTestRunner/TestController.cpp:
1897         (WTR::updateTestOptionsFromTestHeader):
1898         * WebKitTestRunner/TestOptions.h:
1899         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1900         (WTR::TestController::platformCreateWebView):
1901
1902 2016-01-21  Simon Fraser  <simon.fraser@apple.com>
1903
1904         Fix the lldb WebCoreLayoutUnitProvider to not dynamically look up the LayoutUnit denominator
1905         https://bugs.webkit.org/show_bug.cgi?id=153334
1906
1907         Reviewed by Zalan Bujtas.
1908         
1909         Evaluating expressions in the LayoutUnit summary provider seems to cause
1910         re-entrancy problems in lldb python bindings, so just hardcode the LayoutUnit
1911         denominator to 64.
1912
1913         * lldb/lldb_webkit.py:
1914         (WebCoreLayoutUnitProvider.to_string):
1915
1916 2016-01-21  Filip Pizlo  <fpizlo@apple.com>
1917
1918         display-profiler-output should be able to display code blocks sorted by machine counts
1919         https://bugs.webkit.org/show_bug.cgi?id=153298
1920
1921         Reviewed by Oliver Hunt.
1922
1923         * Scripts/display-profiler-output:
1924
1925 2016-01-21  Julien Isorce  <j.isorce@samsung.com>
1926
1927         Ensure to use compatible liborc version with wanted gstreamer version
1928         https://bugs.webkit.org/show_bug.cgi?id=153276
1929
1930         For example gst-plugins-base-1.4.4 fails to build with liborc-0.4.24.
1931         The user may have a very recent liborc installed on his system.
1932
1933         Reviewed by Philippe Normand.
1934
1935         * efl/jhbuild.modules: add liborc-0.4.17 and make it a gst dependency.
1936         * gtk/jhbuild.modules: add liborc-0.4.17 and make it a gst depencendy.
1937
1938 2016-01-21  Nan Wang  <n_wang@apple.com>
1939
1940         AX: [IOS] Implement next/previous text marker functions using TextIterator
1941         https://bugs.webkit.org/show_bug.cgi?id=153292
1942         <rdar://problem/24268243>
1943
1944         Reviewed by Chris Fleizach.
1945
1946         Made text marker tests available on iOS.
1947
1948         * DumpRenderTree/AccessibilityTextMarker.h:
1949         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1950         * DumpRenderTree/ios/AccessibilityTextMarkerIOS.mm: Added.
1951         (AccessibilityTextMarker::AccessibilityTextMarker):
1952         (AccessibilityTextMarker::~AccessibilityTextMarker):
1953         (AccessibilityTextMarker::isEqual):
1954         (AccessibilityTextMarker::platformTextMarker):
1955         (AccessibilityTextMarkerRange::AccessibilityTextMarkerRange):
1956         (AccessibilityTextMarkerRange::~AccessibilityTextMarkerRange):
1957         (AccessibilityTextMarkerRange::isEqual):
1958         (AccessibilityTextMarkerRange::platformTextMarkerRange):
1959         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
1960         (AccessibilityUIElement::pathDescription):
1961         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
1962         (AccessibilityUIElement::textMarkerRangeForElement):
1963         (AccessibilityUIElement::selectedTextMarkerRange):
1964         (AccessibilityUIElement::resetSelectedTextMarkerRange):
1965         (AccessibilityUIElement::textMarkerRangeLength):
1966         (AccessibilityUIElement::textMarkerRangeForMarkers):
1967         (AccessibilityUIElement::startTextMarkerForTextMarkerRange):
1968         (AccessibilityUIElement::endTextMarkerForTextMarkerRange):
1969         (AccessibilityUIElement::accessibilityElementForTextMarker):
1970         (AccessibilityUIElement::endTextMarkerForBounds):
1971         (AccessibilityUIElement::startTextMarkerForBounds):
1972         (AccessibilityUIElement::textMarkerForPoint):
1973         (AccessibilityUIElement::previousTextMarker):
1974         (AccessibilityUIElement::nextTextMarker):
1975         (AccessibilityUIElement::stringForTextMarkerRange):
1976         (AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
1977         (AccessibilityUIElement::indexForTextMarker):
1978         (AccessibilityUIElement::isTextMarkerValid):
1979         (AccessibilityUIElement::textMarkerForIndex):
1980         (AccessibilityUIElement::startTextMarker):
1981         (AccessibilityUIElement::endTextMarker):
1982         (AccessibilityUIElement::setSelectedVisibleTextRange):
1983         (AccessibilityUIElement::getLinkedUIElements):
1984         * DumpRenderTree/mac/AccessibilityTextMarkerMac.mm:
1985         (AccessibilityTextMarkerRange::platformTextMarkerRange):
1986         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
1987         (AccessibilityUIElement::removeSelection):
1988         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
1989         (AccessibilityUIElement::setSelectedVisibleTextRange):
1990         (AccessibilityUIElement::supportedActions):
1991         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1992         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
1993         (WTR::AccessibilityUIElement::textMarkerRangeLength):
1994         (WTR::AccessibilityUIElement::previousTextMarker):
1995         (WTR::AccessibilityUIElement::nextTextMarker):
1996         (WTR::AccessibilityUIElement::stringForTextMarkerRange):
1997         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
1998         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
1999         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
2000         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
2001         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
2002         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
2003
2004 2016-01-20  Filip Pizlo  <fpizlo@apple.com>
2005
2006         Unreviewed, revert accidental unreviewed commit.
2007
2008         * Scripts/display-profiler-output:
2009
2010 2016-01-20  Jason Marcell  <jmarcell@apple.com>
2011
2012         Refactor compareIterations to remove duplicate code.
2013         https://bugs.webkit.org/show_bug.cgi?id=152913
2014
2015         Reviewed by Daniel Bates.
2016
2017         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
2018         (BuildbotQueue.prototype.compareIterations): Refactored to remove duplicate code.
2019         (BuildbotQueue.prototype.sortIterations): Add binding to call to compareIterations.
2020         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests in order to ensure
2021         the same behavior before and after refactor.
2022
2023 2016-01-20  Dana Burkart  <dburkart@apple.com>
2024
2025         Botwatcher's dashboard should show an 'X' when the build is broken
2026         https://bugs.webkit.org/show_bug.cgi?id=152507
2027
2028         Reviewed by David Kilzer.
2029
2030         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:
2031         (BuildbotStaticAnalyzerQueueView.prototype.appendStaticAnalyzerQueueStatus):
2032         (BuildbotStaticAnalyzerQueueView.prototype.update):
2033
2034 2016-01-19  Jason Marcell  <jmarcell@apple.com>
2035
2036         Remove assertion from revisionContentForIteration that is causing errors on the dashboard.
2037         https://bugs.webkit.org/show_bug.cgi?id=153262
2038
2039         Reviewed by Alexey Proskuryakov.
2040
2041         Occasionaly some buildbot iterations will not have their "got_revisions" property populated. In
2042         such cases this revisionContentForIteration method does not have any content to return, thus the
2043         assertion fails.
2044
2045         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
2046         (BuildbotQueueView.prototype.revisionContentForIteration): Removed assertion that was causing errors.
2047
2048 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2049
2050         [GTK] Runtime critical warnings when loading a URL after a session restore
2051         https://bugs.webkit.org/show_bug.cgi?id=153233
2052
2053         Reviewed by Michael Catanzaro.
2054
2055         Add new test case.
2056
2057         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
2058         (viewLoadChanged):
2059         (testWebKitWebViewNavigationAfterSessionRestore):
2060         (beforeAll):
2061
2062 2016-01-19  Michael Catanzaro  <mcatanzaro@igalia.com>
2063
2064         [GTK] Remove jhbuild-optional.modules
2065         https://bugs.webkit.org/show_bug.cgi?id=152964
2066
2067         Reviewed by Alex Christensen.
2068
2069         * gtk/jhbuild-optional.modules: Removed.
2070         * gtk/jhbuild.modules:
2071
2072 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2073
2074         [GTK] Add support to load/save session in MiniBrowser
2075         https://bugs.webkit.org/show_bug.cgi?id=153201
2076
2077         Reviewed by Michael Catanzaro.
2078
2079         It makes it easier to test the new WebView session API.
2080
2081         * MiniBrowser/gtk/BrowserWindow.c:
2082         (browserWindowFinalize): Free the session file path.
2083         (browserWindowSaveSession): Save the current WebView session if
2084         there's a session file path.
2085         (browserWindowDeleteEvent): Call browserWindowSaveSession().
2086         (browser_window_load_session): Try to load the session from the
2087         given file path, otherwise fall back to homepage and keep the
2088         session file to save the session on window close.
2089         * MiniBrowser/gtk/BrowserWindow.h:
2090         * MiniBrowser/gtk/main.c:
2091         (createBrowserWindow): Pass the given session file path when
2092         shouldLoadSession is TRUE.
2093         (main): Only allow to restore/save session when MiniBrowser is
2094         launched without URL arguments.
2095
2096 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
2097
2098         Unreviewed. Fix GTK+ test /webkit2/WebKitWebView/geolocation-permission-requests after r195075.
2099
2100         Geolocation is no longer allowed for unique origins after r195075.
2101
2102         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
2103         (testWebViewGeolocationPermissionRequests):
2104
2105 2016-01-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2106
2107         [GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute '_pa_module_index' when the build is not ready.
2108         https://bugs.webkit.org/show_bug.cgi?id=153216
2109
2110         Reviewed by Michael Catanzaro.
2111
2112         * Scripts/webkitpy/port/pulseaudio_sanitizer.py:
2113         (PulseAudioSanitizer.__init__): initialize _pa_module_index in the constructor.
2114
2115 2016-01-18  Nan Wang  <n_wang@apple.com>
2116
2117         AX: [Mac] Implement next/previous text marker functions using TextIterator
2118         https://bugs.webkit.org/show_bug.cgi?id=152728
2119
2120         Reviewed by Chris Fleizach.
2121
2122         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2123         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
2124
2125 2016-01-18  Csaba Osztrogonác  <ossy@webkit.org>
2126
2127         [cmake] Add testair to the build system
2128         https://bugs.webkit.org/show_bug.cgi?id=153126
2129
2130         Reviewed by Michael Catanzaro.
2131
2132         * Scripts/build-jsc:
2133
2134 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
2135
2136         Remove TextRun::allowsRoundingHacks()
2137         https://bugs.webkit.org/show_bug.cgi?id=153185
2138
2139         Reviewed by Simon Fraser.
2140
2141         * DumpRenderTree/mac/DumpRenderTree.mm:
2142         (resetWebViewToConsistentStateBeforeTesting): Deleted.
2143
2144 2016-01-15  Konstantin Tokarev  <annulen@yandex.ru>
2145
2146         [webkitdirs] Avoid list form of open because it broke WinCairo
2147         https://bugs.webkit.org/show_bug.cgi?id=153106
2148
2149         Reviewed by Alex Christensen.
2150
2151         * Scripts/webkitdirs.pm:
2152         (determineArchitecture):
2153
2154 2016-01-15  Simon Fraser  <simon.fraser@apple.com>
2155
2156         Add kdebug_trace signposts for a few WebCore operations
2157         https://bugs.webkit.org/show_bug.cgi?id=153136
2158         rdar://problem/24208487
2159
2160         Reviewed by Sam Weinig.
2161         
2162         Plist used by kdebug_trace() viewing tools.
2163
2164         * Tracing/SystemTracePoints.plist: Added.
2165
2166 2016-01-14  Konstantin Tokarev  <annulen@yandex.ru>
2167
2168         [webkitdirs] Replaced grep invocation with perl code
2169         https://bugs.webkit.org/show_bug.cgi?id=153106
2170
2171         Reviewed by Alex Christensen.
2172
2173         * Scripts/webkitdirs.pm:
2174         (determineArchitecture):
2175
2176 2016-01-14  Brian Burg  <bburg@apple.com>
2177
2178         prepare-changelog does not read paths containing spaces properly
2179         https://bugs.webkit.org/show_bug.cgi?id=137982
2180
2181         Reviewed by Joseph Pecoraro.
2182
2183         Escape whitespace in filenames before passing the file path to other functions.
2184
2185         * Scripts/prepare-ChangeLog:
2186         (generateFunctionLists): Use the more explicit 3-argument form of 'open'.
2187
2188 2016-01-14  Jason Marcell  <jmarcell@apple.com>
2189
2190         Standardize the usage of "branch" vs. "branchName".
2191         https://bugs.webkit.org/show_bug.cgi?id=152982
2192
2193         Reviewed by Daniel Bates.
2194
2195         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
2196         "branchName" implies that the variable or property in question is simply a string.
2197
2198         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
2199         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branch to branchName.
2200         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Change branch to branch.name.
2201         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Change branch to branchName.
2202         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
2203         (Trac.prototype.commitsOnBranch): Change branch to branchName.
2204         (Trac.prototype._convertCommitInfoElementToObject): Ditto.
2205         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
2206         (MockTrac): Ditto.
2207
2208 2016-01-14  Jason Marcell  <jmarcell@apple.com>
2209
2210         Add a unit test to test BuildbotQueueView._appendPendingRevisionCount.
2211         https://bugs.webkit.org/show_bug.cgi?id=152910
2212
2213         Reviewed by Daniel Bates.
2214
2215         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js: Added.
2216         (MockBuildbotQueue): Added. Mock BuildbotQueue object that doesn't need to talk to an actual Buildbot server.
2217         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js: Added.
2218         (MockBuildbotQueueView): Added. Mock BuildbotQueueView object that returns a pre-specified _latestProductiveIteration without
2219         the need to talk to a real Buildbot server.
2220         (MockBuildbotQueueView.prototype._latestProductiveIteration): Added. Returns a pre-specified _latestProductiveIteration
2221         without the need to talk to a real Buildbot server.
2222         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js: Added.
2223         (MockTrac): Added. Mock Trac constructor that has pre-populated "recordedCommits" and does not need to talk to a real Trac
2224         server.
2225         (MockTrac.prototype.get oldestRecordedRevisionNumber): Added. Returns a pre-specified revision.
2226         (MockTrac.prototype.get latestRecordedRevisionNumber): Ditto.
2227         (MockTrac.prototype.loadMoreHistoricalData): Added. Overrides the real loadMoreHistoricalData so that we don't waste time
2228         trying to talk to Trac.
2229         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html: Added. Web page container for
2230         QUnit unit tests.
2231         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added. QUnit unit tests.
2232
2233 2016-01-14  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
2234
2235         [CMake][GTK] CMake Error: Could not create named generator Eclipse CDT4 - Ninja
2236         https://bugs.webkit.org/show_bug.cgi?id=132599
2237
2238         Reviewed by Michael Catanzaro.
2239
2240         Check if cmake Ninja generators are installed.
2241
2242         * Scripts/webkitdirs.pm:
2243         (canUseNinjaGenerator):
2244         (canUseEclipseNinjaGenerator):
2245         (generateBuildSystemFromCMakeProject):
2246         (canUseEclipse): Deleted.
2247
2248 2016-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
2249
2250         [Cocoa] Testing with font family name "System Font" is unused
2251         https://bugs.webkit.org/show_bug.cgi?id=153073
2252         <rdar://problem/24091683>
2253
2254         Reviewed by Brent Fulgham.
2255
2256         * DumpRenderTree/mac/DumpRenderTree.mm:
2257         (allowedFontFamilySet): Deleted.
2258         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
2259         (WTR::allowedFontFamilySet): Deleted.
2260         * WebKitTestRunner/mac/TestControllerMac.mm:
2261         (WTR::allowedFontFamilySet): Deleted.
2262
2263 2016-01-13  Daniel Bates  <dabates@apple.com>
2264
2265         [XSS Auditor] Add test when XSS payload is in the path portion of the URL
2266         https://bugs.webkit.org/show_bug.cgi?id=152871
2267
2268         Reviewed by Brent Fulgham.
2269
2270         Merged from Blink (patch by Tom Sepez <tsepez@chromium.org>):
2271         <https://src.chromium.org/viewvc/blink?revision=164746&view=revision>
2272
2273         * Scripts/webkitpy/layout_tests/servers/lighttpd.conf:
2274
2275 2016-01-08  Andy Estes  <aestes@apple.com>
2276
2277         [Content Filtering] Lazily load platform frameworks
2278         https://bugs.webkit.org/show_bug.cgi?id=152881
2279         rdar://problem/23270886
2280
2281         Reviewed by Brady Eidson.
2282
2283         Added an API test that verifies that the Parental Controls and Network Extension frameworks are loaded at the
2284         expected times. The test verifies that they are not loaded after creating a WKWebView, loading an HTML string,
2285         loading NSData, loading a file, or loading from a custom protocol. It verifies that Network Extension on Mac/iOS
2286         and Parental Controls on iOS are loaded after an HTTP request. It finally verifies that Parental Controls on Mac
2287         is loaded after an HTTPS request.
2288
2289         To accomplish this, TestProtocol was generalized to allow tests to specify the scheme they wish to use.
2290         Other tests that used TestProtocol were updated to account for this change. TestProtocol was removed from
2291         WebKit2.PreventImageLoadWithAutoResizingTest, which didn't actually need to use it. ContentFiltering tests were
2292         also re-enabled on iOS after mistakenly being disabled by r188892.
2293
2294         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2295         * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm:
2296         (TestWebKitAPI::TEST):
2297         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.h: Added.
2298         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.html: Added.
2299         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:
2300         (TEST):
2301         (downloadTest):
2302         (-[LazilyLoadPlatformFrameworksController init]):
2303         (-[LazilyLoadPlatformFrameworksController webView]):
2304         (-[LazilyLoadPlatformFrameworksController expectParentalControlsLoaded:networkExtensionLoaded:]):
2305         (-[LazilyLoadPlatformFrameworksController webView:didFinishNavigation:]):
2306         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm:
2307         (-[ContentFilteringPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
2308         (-[ContentFilteringPlugIn observeValueForKeyPath:ofObject:change:context:]):
2309         (-[ContentFilteringPlugIn checkIfPlatformFrameworksAreLoaded:]):
2310         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
2311         (TestWebKitAPI::TEST):
2312         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
2313         (TestWebKitAPI::TEST): Deleted.
2314         * TestWebKitAPI/cocoa/TestProtocol.h:
2315         * TestWebKitAPI/cocoa/TestProtocol.mm:
2316         (+[TestProtocol registerWithScheme:]):
2317         (+[TestProtocol unregister]):
2318
2319 2016-01-12  Dewei Zhu  <dewei_zhu@apple.com>
2320
2321         Fix the Sunpider converage in slow device.
2322         https://bugs.webkit.org/show_bug.cgi?id=152938
2323         <rdar://problem/22511411>
2324
2325         Reviewed by Ryosuke Niwa.
2326
2327         Updated the patch for RunBenchmark to resume sunspider coverage by removing unused subresources in sub-tests.
2328
2329         * Scripts/webkitpy/benchmark_runner/data/patches/SunSpider.patch:
2330
2331 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
2332
2333         Add a build flag for custom element
2334         https://bugs.webkit.org/show_bug.cgi?id=153005
2335
2336         Reviewed by Alex Christensen.
2337
2338         Added --custom-elements option to enable custom elements support.
2339
2340         * Scripts/webkitperl/FeatureList.pm:
2341
2342 2016-01-12  Benjamin Poulain  <bpoulain@apple.com>
2343
2344         [JSC] Add a help message when run-jsc-stress-tests fails
2345         https://bugs.webkit.org/show_bug.cgi?id=153014
2346
2347         Reviewed by Csaba Osztrogonác.
2348
2349         * Scripts/run-jsc-stress-tests:
2350
2351 2016-01-11  Saam barati  <sbarati@apple.com>
2352
2353         run-jsc-stress-tests should try to figure out a JSC path
2354         https://bugs.webkit.org/show_bug.cgi?id=152971
2355
2356         Reviewed by Yusuke Suzuki.
2357
2358         This patch now allows run-jsc-stress-tests to be run
2359         without a "--jsc <jsc-path>" argument. It tries
2360         to take its best guess at a <jsc-path> automagically.
2361         
2362         This makes it much easier to just run run-jsc-stress-tests
2363         with a directory or a yaml file as an argument.
2364         You now just do this:
2365         `run-jsc-stress-tests <path-to-yaml>`
2366         or
2367         `run-jsc-stress-tests <path-to-directory-of-js-files>`
2368         
2369         I wrote this patch because I'd often find myself hacking the 
2370         run-javascriptcore-tests file just to run a particular subset of tests.
2371         Because I always forget the arguments to run-jsc-stress-tests (which means
2372         I always forgot to provide a --jsc argument), I always found it easier to 
2373         just hack on that file instead of calling run-jsc-stress-tests directly.
2374         No longer is this true!
2375
2376         * Scripts/run-jsc-stress-tests:
2377
2378 2016-01-09  Andy Estes  <aestes@apple.com>
2379
2380         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
2381         https://bugs.webkit.org/show_bug.cgi?id=152950
2382         rdar://problem/24066652
2383
2384         Reviewed by Tim Horton.
2385
2386         Added an API test.
2387
2388         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2389         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
2390         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
2391         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
2392         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
2393         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
2394         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
2395         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
2396         (TEST):
2397
2398 2016-01-11  Commit Queue  <commit-queue@webkit.org>
2399
2400         Unreviewed, rolling out r194866.
2401         https://bugs.webkit.org/show_bug.cgi?id=152986
2402
2403         This change broke the mac build (Requested by ryanhaddad on
2404         #webkit).
2405
2406         Reverted changeset:
2407
2408         "[Cocoa] Add SPI to opt out a URL scheme from the memory
2409         cache"
2410         https://bugs.webkit.org/show_bug.cgi?id=152950
2411         http://trac.webkit.org/changeset/194866
2412
2413 2016-01-11  Andy Estes  <aestes@apple.com>
2414
2415         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
2416         https://bugs.webkit.org/show_bug.cgi?id=152950
2417         rdar://problem/24066652
2418
2419         Reviewed by Tim Horton.
2420
2421         Added an API test.
2422
2423         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2424         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
2425         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
2426         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
2427         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
2428         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
2429         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
2430         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
2431         (TEST):
2432
2433 2016-01-11  Konstantin Tokarev  <annulen@yandex.ru>
2434
2435         [webkitdirs] Use CMake to determine architecture on isCMakeBuild()
2436         https://bugs.webkit.org/show_bug.cgi?id=152959
2437
2438         Reviewed by Brent Fulgham.
2439
2440         * Scripts/webkitdirs.pm:
2441         (determineArchitecture):
2442
2443 2016-01-11  Michael Catanzaro  <mcatanzaro@igalia.com>
2444
2445         [GTK] W3C CSS2.1 anonymous table tests are failing
2446         https://bugs.webkit.org/show_bug.cgi?id=152455
2447
2448         Reviewed by Mario Sanchez Prada.
2449
2450         Add shared-mime-info to the jhbuild environment, since it affects the results of layout
2451         tests. Add upstream patches to fix detection of XHTML files.
2452
2453         * gtk/jhbuild.modules:
2454         * gtk/patches/shared-mime-info-xht-glob.patch: Added.
2455         * gtk/patches/shared-mime-info-xhtml-magic.patch: Added.
2456
2457 2016-01-10  Saam barati  <sbarati@apple.com>
2458
2459         Implement a sampling profiler
2460         https://bugs.webkit.org/show_bug.cgi?id=151713
2461
2462         Reviewed by Filip Pizlo.
2463
2464         * Scripts/run-jsc-stress-tests:
2465
2466 2016-01-10  Konstantin Tokarev  <annulen@yandex.ru>
2467
2468         [webkitdirs] Try arch and uname commands on non-windows OS
2469         https://bugs.webkit.org/show_bug.cgi?id=152958
2470
2471         Reviewed by Michael Catanzaro.
2472
2473         Right now, determineArchitecture()  uses `arch` and `uname -m`
2474         commands to determine architecture in case of condition (isGtk() ||
2475         isAppleMacWebKit() || isEfl()) is true. This should be !anyWindows()
2476         instead, because this code is applicable to any non-windows OS WebKit
2477         supports (even Haiku which once was supported is moderately
2478         POSIX-compliant and has uname command).
2479
2480         * Scripts/webkitdirs.pm:
2481         (determineArchitecture):
2482
2483 2016-01-08  Aakash Jain  <aakash_jain@apple.com>
2484
2485         run-webkit-tests mis-counts totals when there are other crashes
2486         https://bugs.webkit.org/show_bug.cgi?id=152894
2487         <rdar://problem/24098697>
2488
2489         Reviewed by Alexey Proskuryakov.
2490
2491         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
2492         (TestRunResults.add): Do not update result counters for other crashes.
2493
2494 2016-01-08  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2495
2496         webkit-patch build-and-test should have an option to iterate over new tests
2497         https://bugs.webkit.org/show_bug.cgi?id=143093
2498
2499         Reviewed by Michael Catanzaro.
2500
2501         This patch introduces the --iterate-on-new-tests option to webkit-patch build-and-test.
2502         It allows running run-webkit-tests on modified or new paths in LayoutTests.
2503         Computation of new or modified tests is done by LayoutTestFinder.find_touched_tests
2504         It implements the translation of -expected.* paths to their related tests.
2505         It also implements the removal of skipped tests.
2506
2507         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py:
2508         (LayoutTestFinder.find_touched_tests):
2509         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py: Added.
2510         (MockPort):
2511         (MockPort.__init__):
2512         (MockPort.tests):
2513         (LayoutTestFinderTests):
2514         (LayoutTestFinderTests.touched_files):
2515         (LayoutTestFinderTests.test_touched_test):
2516         (LayoutTestFinderTests.test_expected_touched_test):
2517         (LayoutTestFinderTests.test_platform_expected_touched_test):
2518         (LayoutTestFinderTests.test_platform_duplicate_touched_test):
2519         (LayoutTestFinderTests.test_touched_but_skipped_test):
2520         * Scripts/webkitpy/port/base.py:
2521         (Port.potential_test_names_from_expected_file):
2522         * Scripts/webkitpy/tool/commands/download_unittest.py:
2523         (DownloadCommandsTest._default_options):
2524         * Scripts/webkitpy/tool/steps/options.py:
2525         (Options):
2526         * Scripts/webkitpy/tool/steps/runtests.py:
2527         (RunTests.options):
2528         (RunTests.run):
2529         (RunTests):
2530         (RunTests._new_or_modified_tests):
2531         (RunTests._run_webkit_tests):
2532         * Scripts/webkitpy/tool/steps/runtests_unittest.py:
2533         (RunTestsTest.test_webkit_run_unit_tests):
2534         * Scripts/webkitpy/tool/steps/steps_unittest.py:
2535         (StepsTest._step_options):
2536
2537 2016-01-07  Joseph Pecoraro  <pecoraro@apple.com>
2538
2539         prepare-ChangeLog should include radar number
2540         https://bugs.webkit.org/show_bug.cgi?id=152839
2541         <rdar://problem/24093563>
2542
2543         Reviewed by Daniel Bates.
2544
2545         When running `prepare-ChangeLog -b ###`, check for a bugzilla comment that
2546         starts with a "<rdar://problem/####>" URL. If found, include that radar URL
2547         in the ChangeLog description after the bug URL.
2548
2549         * Scripts/prepare-ChangeLog:
2550         (main): Update signatures.
2551         (fetchBugXMLData): XML Data is now used for multiple reasons. Extract this to just get the data.
2552         (fetchBugDescriptionFromBugXMLData): Search data for <short_desc>.
2553         (fetchRadarURLFromBugXMLData): Search comment text for radar URL.
2554         (generateNewChangeLogs): Include radar URL if we found one.
2555
2556         * Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl: Added.
2557         Tests for the radar URL extraction.
2558
2559 2016-01-07  Alexey Proskuryakov  <ap@apple.com>
2560
2561         testRunner.runUIScript crashes while running multiple tests in a row that invokes the same UIScript
2562         https://bugs.webkit.org/show_bug.cgi?id=152390
2563         <rdar://problem/23948321>
2564
2565         Reviewed by Simon Fraser.
2566
2567         Fix two use-after-frees.
2568
2569         1. WKPageCallAfterNextPresentationUpdate's callback has a pointer to TestInvocation,
2570         but we may have already progressed to another test by the time the callback fires,
2571         having destroyed the TestInvocation.
2572         2. UIScriptController is a RefCounted object, but it has a raw pointer to
2573         UIScriptContext which has the same lifetime as a TestInvocation.
2574         As a result, completion blocks of UIScriptController actions would use a destroyed
2575         TestInvocation.
2576
2577         * WebKitTestRunner/TestInvocation.cpp:
2578         (WTR::TestInvocation::~TestInvocation):
2579         (WTR::TestInvocation::url):
2580         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
2581         (WTR::TestInvocation::runUISideScriptAfterUpdateCallback):
2582         (WTR::TestInvocation::runUISideScript):
2583         * WebKitTestRunner/TestInvocation.h:
2584         * WebKitTestRunner/UIScriptContext/UIScriptContext.cpp:
2585         (UIScriptContext::UIScriptContext):
2586         (UIScriptContext::~UIScriptContext):
2587         (UIScriptContext::runUIScript):
2588         * WebKitTestRunner/UIScriptContext/UIScriptContext.h:
2589         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
2590         (WTR::UIScriptController::UIScriptController):
2591         (WTR::UIScriptController::contextDestroyed):
2592         (WTR::UIScriptController::makeWindowObject):
2593         (WTR::UIScriptController::setWillBeginZoomingCallback):
2594         (WTR::UIScriptController::willBeginZoomingCallback):
2595         (WTR::UIScriptController::setDidEndZoomingCallback):
2596         (WTR::UIScriptController::didEndZoomingCallback):
2597         (WTR::UIScriptController::setDidEndScrollingCallback):
2598         (WTR::UIScriptController::didEndScrollingCallback):
2599         (WTR::UIScriptController::setDidShowKeyboardCallback):
2600         (WTR::UIScriptController::didShowKeyboardCallback):
2601         (WTR::UIScriptController::setDidHideKeyboardCallback):
2602         (WTR::UIScriptController::didHideKeyboardCallback):
2603         (WTR::UIScriptController::uiScriptComplete):
2604         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
2605         (WTR::UIScriptController::create):
2606         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2607         (WTR::UIScriptController::doAsyncTask):
2608         (WTR::UIScriptController::zoomToScale):
2609         (WTR::UIScriptController::singleTapAtPoint):
2610         (WTR::UIScriptController::doubleTapAtPoint):
2611         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
2612         (WTR::UIScriptController::contentVisibleRect):
2613         (WTR::UIScriptController::platformSetWillBeginZoomingCallback):
2614         (WTR::UIScriptController::platformSetDidEndZoomingCallback):
2615         (WTR::UIScriptController::platformSetDidShowKeyboardCallback):
2616         (WTR::UIScriptController::platformSetDidHideKeyboardCallback):
2617         (WTR::UIScriptController::platformSetDidEndScrollingCallback):
2618         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
2619         (WTR::UIScriptController::doAsyncTask):
2620
2621 2016-01-07  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2622
2623         [buildbot] clean-build script should remove untracked files and revert local changes too
2624         https://bugs.webkit.org/show_bug.cgi?id=142400
2625
2626         Reviewed by Ryosuke Niwa.
2627
2628         This patch cleans the WebKit folder by reverting tracked files changes and deleting SCM untracked files, including SCM ignored files.
2629         A helper routine SCM.discard_untracked_files is added for that purpose.
2630
2631         * BuildSlaveSupport/clean-build:
2632         (main): Making call to Scripts/clean-webkit
2633         * Scripts/clean-webkit: Added.
2634         (main): Revert changes and delete untracked files.
2635         * Scripts/webkitpy/common/checkout/scm/scm.py:
2636         (SCM.discard_untracked_files): Helper function to discard untracked files or folders found by SCM.
2637         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2638         (SCMTest._shared_test_discard_untracked_files):
2639         (test_discard_untracked_files): Tests that untracked file and untracked folder get discarded correctly.
2640
2641 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
2642
2643         Add a setting and preferences to enable display-list drawing. Does nothing yet.
2644         https://bugs.webkit.org/show_bug.cgi?id=152807
2645
2646         Reviewed by Zalan Bujtas.
2647         
2648         Add an item to the Settings menu to toggle display-list drawing.
2649
2650         * MiniBrowser/mac/SettingsController.h:
2651         * MiniBrowser/mac/SettingsController.m:
2652         (-[SettingsController _populateMenu]):
2653         (-[SettingsController validateMenuItem:]):
2654         (-[SettingsController toggleDisplayListDrawingEnabled:]):
2655         (-[SettingsController displayListDrawingEnabled]):
2656         * MiniBrowser/mac/WK2BrowserWindowController.m:
2657         (-[WK2BrowserWindowController didChangeSettings]):
2658
2659 2016-01-06  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2660
2661         Python SCM should be able to retrieve untracked files - Add GIT support
2662         https://bugs.webkit.org/show_bug.cgi?id=143135
2663
2664         Reviewed by Michael Catanzaro.
2665
2666         * Scripts/webkitpy/common/checkout/scm/git.py:
2667         (Git.untracked_files): Adding support for git.
2668         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2669         (GitTest.setUp):
2670         (GitTest.test_untracked_files): Adding test.
2671
2672 2016-01-05  Mark Lam  <mark.lam@apple.com>
2673
2674         Rename badly named JSC_timeout env var to JSCTEST_timeout.
2675         https://bugs.webkit.org/show_bug.cgi?id=152748
2676
2677         Reviewed by Geoffrey Garen.
2678
2679         Now that we validate JSC options, the badly named JSC_timeout env var causes the
2680         bots to have a bad time.
2681
2682         * Scripts/run-javascriptcore-tests:
2683         * Scripts/run-jsc-stress-tests:
2684
2685 2016-01-04  Carlos Garcia Campos  <cgarcia@igalia.com>
2686
2687         [GTK] Allow to save and restore session
2688         https://bugs.webkit.org/show_bug.cgi?id=115600
2689
2690         Reviewed by Michael Catanzaro.
2691
2692         Add test case to check the new session API.
2693
2694         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
2695         (testWebKitWebViewSessionState):
2696         (testWebKitWebViewSessionStateWithFormData):
2697         (beforeAll):
2698
2699 2016-01-04  Csaba Osztrogonác  <ossy@webkit.org>
2700
2701         [EFL] Bump EFL version to 1.16.1
2702         https://bugs.webkit.org/show_bug.cgi?id=152688
2703
2704         Reviewed by Gyuyoung Kim.
2705
2706         * efl/jhbuild.modules:
2707
2708 2016-01-04  Aakash Jain  <aakash_jain@apple.com>
2709
2710         error running layout tests on iOS simulator on latest build
2711         https://bugs.webkit.org/show_bug.cgi?id=152719
2712         <rdar://problem/24009549>
2713
2714         Reviewed by Alexey Proskuryakov.
2715
2716         * Scripts/webkitpy/xcode/simulator.py:
2717         (Simulator.wait_until_device_is_booted): Ensure that simulator device is in booted state
2718           before running simctl spawn command.
2719
2720 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
2721
2722         Unreviewed, move Frédéric Wang to committers list
2723
2724         He seems to be on the contributors list by accident. He has been landing his own commits for
2725         about two years now.
2726
2727         * Scripts/webkitpy/common/config/contributors.json:
2728
2729 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
2730
2731         Unreviewed, move Sebastian Dröge to committers list harder
2732
2733         He accidentally added himself to the reviewers list because the file is confusing. Then I
2734         accidentially moved him to the contributors list because the file is confusing, even though
2735         I knew the contributors list existed in this file and was attempting to add him to the
2736         committers list. Really move him to the committers list now.
2737
2738         * Scripts/webkitpy/common/config/contributors.json:
2739
2740 2016-01-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2741
2742         Python SCM should be able to retrieve untracked files - Add SVN support
2743         https://bugs.webkit.org/show_bug.cgi?id=152546
2744
2745         Reviewed by Michael Catanzaro.
2746
2747         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2748         (test_untracked_files): Activating test for SVN.
2749         * Scripts/webkitpy/common/checkout/scm/svn.py:
2750         (SVN.untracked_files): Implementing untracked files retrieval for SVN.
2751
2752 2015-12-31  Andy Estes  <aestes@apple.com>
2753
2754         Replace WTF::move with WTFMove
2755         https://bugs.webkit.org/show_bug.cgi?id=152601
2756
2757         Reviewed by Brady Eidson.
2758
2759         * DumpRenderTree/TestRunner.h:
2760         (TestRunner::setAllowedHosts):
2761         * DumpRenderTree/win/DRTDataObject.cpp:
2762         (DRTDataObject::SetData):
2763         * TestWebKitAPI/Tests/WTF/Deque.cpp:
2764         (TestWebKitAPI::TEST):
2765         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
2766         (TestWebKitAPI::TEST):
2767         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
2768         (TestWebKitAPI::TEST):
2769         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2770         (TestWebKitAPI::TEST):
2771         * TestWebKitAPI/Tests/WTF/Ref.cpp:
2772         (TestWebKitAPI::passWithRef):
2773         (TestWebKitAPI::TEST):
2774         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2775         (TestWebKitAPI::TEST):
2776         * TestWebKitAPI/Tests/WTF/Vector.cpp:
2777         (TestWebKitAPI::TEST):
2778         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2779         (TestWebKitAPI::TEST):
2780         * TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm:
2781         (TestWebKitAPI::TEST):
2782         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
2783         (TestWebKitAPI::createTestValue):
2784         (TestWebKitAPI::TEST):
2785         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2786         (TestWebKitAPI::InMemoryCompiledContentExtension::createFromFilter):
2787         (TestWebKitAPI::InMemoryCompiledContentExtension::create):
2788         (TestWebKitAPI::InMemoryCompiledContentExtension::InMemoryCompiledContentExtension):
2789         (TestWebKitAPI::createNFAs):
2790         (TestWebKitAPI::TEST_F):
2791         * TestWebKitAPI/Tests/WebCore/DFACombiner.cpp:
2792         (TestWebKitAPI::combine):
2793         * TestWebKitAPI/Tests/WebCore/DFAHelpers.h:
2794         (TestWebKitAPI::createNFAs):
2795         * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm:
2796         (TEST):
2797         * TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.cpp:
2798         (WebProcessTest::add):
2799
2800 2016-01-01  Michael Catanzaro  <mcatanzaro@igalia.com>
2801
2802         [SOUP] REGRESSION(r192761): Broke resource URIs for applications that use g_resource_load in a web extension
2803         https://bugs.webkit.org/show_bug.cgi?id=152634
2804
2805         Reviewed by Carlos Garcia Campos.
2806
2807         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2808         (testLoadFromGResource): Added test.
2809         (beforeAll):
2810         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2811         (registerGResource): Added.
2812         (webkit_web_extension_initialize_with_user_data): Load the test gresource.
2813         * TestWebKitAPI/Tests/WebKit2Gtk/resources/boring.html: Added.
2814         * TestWebKitAPI/Tests/WebKit2Gtk/resources/webkit2gtk-tests.gresource.xml: Add an HTML file.
2815
2816 2015-12-31  David Kilzer  <ddkilzer@apple.com>
2817
2818         REGRESSION (r194470): Fix warnings uncovered by migrating to WTF_MOVE
2819         <https://bugs.webkit.org/show_bug.cgi?id=152601>
2820
2821         Ignore unknown pragmas on older clangs.  Fixes the following
2822         build failure:
2823
2824             Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp:184:34: error: unknown warning group '-Wself-move', ignored [-Werror,-Wunknown-pragmas]
2825             #pragma clang diagnostic ignored "-Wself-move"
2826                                              ^
2827             1 error generated.
2828
2829         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2830         (TestWebKitAPI::TEST):
2831         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2832         (TestWebKitAPI::TEST):
2833
2834 2015-12-31  Andy Estes  <aestes@apple.com>
2835
2836         Update the style checker to advise using WTFMove() instead of WTF::move()
2837         https://bugs.webkit.org/show_bug.cgi?id=152601
2838
2839         Reviewed by Daniel Bates.
2840
2841         * Scripts/webkitpy/style/checkers/cpp.py:
2842         (check_wtf_move):
2843         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2844         (WebKitStyleTest.test_wtf_move):
2845
2846 2015-12-31  Andy Estes  <aestes@apple.com>
2847
2848         Fix warnings uncovered by migrating to WTF_MOVE
2849         https://bugs.webkit.org/show_bug.cgi?id=152601
2850
2851         Reviewed by Daniel Bates.
2852
2853         Ignored -Wself-move warnings in these two API tests. It's useful to test that these classes properly handle
2854         self-move, even if doing so would trigger a warning.
2855
2856         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2857         (TestWebKitAPI::TEST):
2858         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2859         (TestWebKitAPI::TEST):
2860
2861 2015-12-31  Martin Robinson  <mrobinson@igalia.com>
2862
2863         [GTK] The install-dependencies script has a syntax error
2864         https://bugs.webkit.org/show_bug.cgi?id=152613
2865
2866         Reviewed by Michael Catanzaro.
2867
2868         * gtk/install-dependencies: Add the missing 'then.'
2869
2870 2015-12-30  Philippe Normand  <pnormand@igalia.com>
2871
2872         [Mac][GTK] Jhbuild support for OSX
2873         https://bugs.webkit.org/show_bug.cgi?id=150799
2874
2875         Reviewed by Michael Catanzaro.
2876
2877         * gtk/install-dependencies: Install dependencies on OSX with Homebrew.
2878         * gtk/jhbuild.modules: Moved platform-specific build settings in condition tags.
2879         * gtk/patches/foxbntconfig-fix-osx-cache.diff: Added.
2880         * gtk/jhbuildrc: GTK+ makeargs clean-up, the 3.0.12 hack is no longer needed.
2881
2882 2015-12-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2883
2884         Unreviewed, move Sebastian Dröge to committers list
2885
2886         He accidentally added himself to the reviewers list because the file is confusing.
2887
2888         * Scripts/webkitpy/common/config/contributors.json:
2889
2890 2015-12-24  Simon Fraser  <simon.fraser@apple.com>
2891
2892         Remove the unused #define _USE_MATH_DEFINES
2893         https://bugs.webkit.org/show_bug.cgi?id=152034
2894
2895         Reviewed by Tim Horton.
2896         
2897         Update this test to use piDouble from MathExtras.h, and
2898         std::numeric_limits<>.
2899
2900         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
2901
2902 2015-12-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2903
2904         Python SCM should be able to retrieve untracked files - Generic changes
2905         https://bugs.webkit.org/show_bug.cgi?id=152536
2906
2907         Reviewed by Brent Fulgham.
2908
2909         This patch introduces SCM.untracked_files to retrieve a list of untracked files.
2910         No support is yet added to GIT and SVN specific implementations.
2911
2912         * Scripts/webkitpy/common/checkout/scm/scm.py:
2913         (SCM.untracked_files):
2914         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2915         (SCMTest._shared_test_untracked_files):
2916
2917 2015-12-23  Dewei Zhu  <dewei_zhu@apple.com>
2918
2919         SVN checkout used by RunBenchmark should be non-interactive
2920         https://bugs.webkit.org/show_bug.cgi?id=152542
2921
2922         Reviewed by Ryosuke Niwa.
2923
2924         RunBenchmark should not require user interaction while running.
2925
2926         * Scripts/webkitpy/benchmark_runner/benchmark_builder.py:
2927         (BenchmarkBuilder._checkout_with_subversion):
2928
2929 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
2930
2931         Web Inspector: add support for running protocol-test.js tests on Windows
2932         https://bugs.webkit.org/show_bug.cgi?id=148037
2933         <rdar://problem/22292237>
2934
2935         Reviewed by Simon Fraser.
2936
2937         * DumpRenderTree/win/TestRunnerWin.cpp:
2938         (TestRunner::inspectorTestStubURL): Provide implementation.
2939
2940 2015-12-23  Eric Carlson  <eric.carlson@apple.com>
2941
2942         [MediaStream] MediaDeviceInfo.label must be empty in some situations
2943         https://bugs.webkit.org/show_bug.cgi?id=152000
2944
2945         Reviewed by Brent Fulgham.
2946
2947         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2948         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2949         (WTR::InjectedBundle::setUserMediaPermission):
2950         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): New.
2951         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
2952
2953         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2954         (WTR::TestRunner::setUserMediaPermissionForOrigin): New.
2955         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2956
2957         * WebKitTestRunner/TestController.cpp:
2958         (WTR::TestController::setUserMediaPermissionForOrigin):
2959         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Add NULL check.
2960         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Don't add 
2961           persistent permission for origin, that can be done from script now.
2962         * WebKitTestRunner/TestController.h:
2963
2964         * WebKitTestRunner/TestInvocation.cpp:
2965         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Add support for
2966           SetUserMediaPermissionForOrigin.
2967
2968 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
2969
2970         [Win] Unreviewed build fix: Recognize Windows 10 variants.
2971
2972         * Scripts/webkitpy/common/system/platforminfo.py:
2973         (PlatformInfo._determine_win_version):
2974
2975 2015-12-23  Chris Aljoudi <chris@chrismatic.io> and Alex Christensen <achristensen@webkit.org>
2976
2977         Content blockers should be able to promote http to https
2978         https://bugs.webkit.org/show_bug.cgi?id=148966
2979
2980         Reviewed by Benjamin Poulain.
2981
2982         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2983         (WebCore::ContentExtensions::operator<<):
2984         (TestWebKitAPI::TEST_F):
2985
2986 2015-12-22  Hunseop Jeong  <hs85.jeong@samsung.com>
2987
2988         [EFL] MiniBrowser should be able to choose the offline-web-application-cache option
2989         https://bugs.webkit.org/show_bug.cgi?id=152516
2990
2991         Reviewed by Gyuyoung Kim.
2992
2993         * MiniBrowser/efl/main.c:
2994
2995 2015-12-22  Brent Fulgham  <bfulgham@apple.com>
2996
2997         Unreviewed: Add John Wilander as a contributor.
2998
2999         * Scripts/webkitpy/common/config/contributors.json:
3000
3001 2015-12-22  Chris Fleizach  <cfleizach@apple.com>
3002
3003         [WK2] Looping in testcase: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
3004         https://bugs.webkit.org/show_bug.cgi?id=152482
3005
3006         Reviewed by Brent Fulgham.
3007
3008         vertical/horizontalScrollbar returns an accessibility element. That element can also be queried
3009         for the same property. On WK2, the element returned will not be valid, but is still present and
3010         that can lead to looping.
3011
3012         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3013         (AccessibilityUIElement::horizontalScrollbar):
3014         (AccessibilityUIElement::verticalScrollbar):
3015         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
3016         (WTR::AccessibilityUIElement::horizontalScrollbar):
3017         (WTR::AccessibilityUIElement::verticalScrollbar):
3018
3019 2015-12-22  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3020
3021         Unreviewed.
3022
3023         * Scripts/webkitpy/common/config/contributors.json: Marking myself as reviewer.
3024
3025 2015-12-21  Hunseop Jeong  <hs85.jeong@samsung.com>
3026
3027         [EFL] test_ewk2_context failed after r192808
3028         https://bugs.webkit.org/show_bug.cgi?id=151846
3029
3030         Reviewed by Gyuyoung Kim.
3031
3032         Used the added ewk_context_web_process_count_limit_set api
3033         instead of the deprecated ewk_context_process_model_set.
3034
3035         * MiniBrowser/efl/main.c:
3036         (elm_main):
3037
3038 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
3039
3040         Unreviewed, move myself to reviewer list.
3041
3042         * Scripts/webkitpy/common/config/contributors.json:
3043
3044 2015-12-21  Aakash Jain  <aakash_jain@apple.com>
3045
3046         Unreviewed, add myself to the committers list.
3047
3048         * Scripts/webkitpy/common/config/contributors.json:
3049
3050 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
3051
3052         [GTK] jquery.min.js violates DFSG
3053         https://bugs.webkit.org/show_bug.cgi?id=152428
3054
3055         Reviewed by Joseph Pecoraro.
3056
3057         Stop distributing Source/WebInspectorUI/Tools. It is not needed in tarballs. This brings us
3058         into compliance with DFSG by removing a bundled, minified copy of jQuery from our tarball.
3059
3060         * gtk/manifest.txt.in:
3061
3062 2015-12-19  Dan Bernstein  <mitz@apple.com>
3063
3064         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
3065         https://bugs.webkit.org/show_bug.cgi?id=152462
3066
3067         Reviewed by Alexey Proskuryakov.
3068
3069         - Removed definitions of MACOSX_DEPLOYMENT_TARGET and WEBKIT_SYSTEM_INTERFACE_LIBRARY for
3070           OS X 10.9:
3071
3072         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
3073         * LayoutTestRelay/Configurations/DebugRelease.xcconfig:
3074         * MiniBrowser/Configurations/DebugRelease.xcconfig:
3075         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
3076         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
3077
3078         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
3079           never getting compiled:
3080
3081         * DumpRenderTree/mac/TextInputController.m:
3082         * MiniBrowser/mac/BrowserWindowController.m:
3083         * TestWebKitAPI/Tests/mac/AttributedString.mm:
3084         * WebKitTestRunner/mac/EventSenderProxy.mm:
3085
3086 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
3087
3088         Unreviewed, add WebKitGTK+ Bugzilla email to committers list
3089
3090         This is to make it easy to CC it on Bugzilla.
3091
3092         * Scripts/webkitpy/common/config/contributors.json:
3093
3094 2015-12-18  Aakash Jain  <aakash_jain@apple.com>
3095
3096         Pasteboard get messed up after running kill-old-processes
3097         https://bugs.webkit.org/show_bug.cgi?id=152426
3098
3099         Reviewed by Alexey Proskuryakov.
3100
3101         * BuildSlaveSupport/kill-old-processes:
3102         (main): Do not kill pasteboard anymore.
3103
3104 2015-12-17  Aakash Jain  <aakash_jain@apple.com>
3105
3106         run-webkit-tests shouldn't start multiple iOS simulators while only running one test
3107         https://bugs.webkit.org/show_bug.cgi?id=152157
3108         <rdar://problem/23851817>
3109
3110         Reviewed by Alexey Proskuryakov.
3111
3112         * Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py:
3113         (LayoutTestRunner.get_worker_count): Calculate required number of workers.
3114         * Scripts/webkitpy/layout_tests/controllers/manager.py:
3115         (Manager._get_test_inputs): Common method to calculate test_inputs.
3116         (Manager._update_worker_count): Calculate and update required number of workers.
3117
3118 2015-12-16  Aakash Jain  <aakash_jain@apple.com>
3119
3120         run-webkit-tests fails to delete Simulator device during cleanup
3121         https://bugs.webkit.org/show_bug.cgi?id=152363
3122
3123         Reviewed by Alexey Proskuryakov.
3124
3125         * Scripts/webkitpy/xcode/simulator.py:
3126         (Simulator.delete_device): Ensure that device is Shutdown before deleting it.
3127
3128 2015-12-16  Tim Horton  <timothy_horton@apple.com>
3129
3130         [mac-wk2] fast/events force click tests crashing
3131         https://bugs.webkit.org/show_bug.cgi?id=152339
3132
3133         Reviewed by Beth Dakin.
3134
3135         * WebKitTestRunner/mac/EventSenderProxy.mm:
3136         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]):
3137         Set the NSEvent's _type member in addition to overriding -type,
3138         because there are assertions in touch event handling code that depend on it.
3139
3140 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3141
3142         Enforce temporarily bots to sync WebKit and WPT testharness.js
3143         https://bugs.webkit.org/show_bug.cgi?id=152334
3144
3145         Reviewed by Darin Adler.
3146
3147         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
3148         (WebPlatformTestServer._copy_webkit_test_files): Temporarily overwrite wpt testharness.js with WebKit testharness.js.
3149
3150 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3151
3152         [Fetch API] Add fetch API compile time flag
3153         https://bugs.webkit.org/show_bug.cgi?id=152254
3154
3155         Reviewed by Darin Adler.
3156
3157         * Scripts/webkitperl/FeatureList.pm:
3158
3159 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3160
3161         Unreviewed.
3162
3163         Added files that have impact in building Streams API to the watchlist.
3164
3165         * Scripts/webkitpy/common/config/watchlist:
3166
3167 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3168
3169         Unreviewed.
3170
3171         Added imported tests to Streams API watchlist.
3172
3173         * Scripts/webkitpy/common/config/watchlist:
3174
3175 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3176
3177         Remove default copy of wpt testharness.js when launching wpt server
3178         https://bugs.webkit.org/show_bug.cgi?id=152298
3179
3180         Reviewed by Darin Adler.
3181
3182         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
3183         (WebPlatformTestServer._copy_webkit_test_files): Deleted default copy of WebKit testharness.js to WPT.
3184
3185 2015-12-15  David Kilzer  <ddkilzer@apple.com>
3186
3187         REGRESSION (r192375): DumpRenderTree.app exits immediately with no error
3188         <http://webkit.org/b/152314>
3189
3190         Reviewed by Daniel Bates.
3191
3192         The change to DumpRenderTreeMain.mm in r192375 caused the iOS
3193         code path to exit immediately when calling main().
3194         Unfortunately, DumpRenderTreeMain.mm was used for both
3195         DumpRenderTree command-line binary and DumpRenderTree.app, which
3196         meant that the app would exit immediately with no error code
3197         when run!
3198
3199         The workaround is to introduce a separate source file called
3200         DumpRenderTreeAppMain.mm, similar to what WebKitTestRunner
3201         already does.
3202
3203         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add
3204         DumpRenderTreeAppMain.mm to the project.  Make it the only
3205         compiled source for the DumpRenderTree.app target.
3206         * DumpRenderTree/ios/DumpRenderTreeAppMain.mm: Copied from Tools/DumpRenderTree/mac/DumpRenderTreeMain.mm.
3207         (main): Call DumpRenderTreeMain() on iOS.  Assert on OS X in
3208         case someone tries mistakenly to use the app.
3209         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig:
3210         Link to JavaScriptCore.framework on iOS for the assert.
3211         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig:
3212         Link to JavaScriptCore.framework on OS X for the assert.  Remove
3213         unneeded EXCLUDED_SOURCE_FILE_NAMES setting.
3214         * DumpRenderTree/mac/DumpRenderTreeMain.mm:
3215         (main): Add assert for iOS so that a crash occurs if someone
3216         tries to run the wrong command.
3217
3218 2015-12-14  Tim Horton  <timothy_horton@apple.com>
3219
3220         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
3221         https://bugs.webkit.org/show_bug.cgi?id=152266
3222         <rdar://problem/22092676>
3223
3224         Reviewed by Simon Fraser.
3225
3226         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3227         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm: Added.
3228         Add a test that crashed before this change, and doesn't crash after.
3229
3230 2015-12-14  Chris Fleizach  <cfleizach@apple.com>
3231
3232         AX: iOS: Text field variations do not have the correct traits
3233         https://bugs.webkit.org/show_bug.cgi?id=152237
3234
3235         Reviewed by Mario Sanchez Prada.
3236
3237         Add iOS calls for determing if an object is a search field or a text area.
3238
3239         * DumpRenderTree/AccessibilityUIElement.cpp:
3240         (getIsSearchFieldCallback):
3241         (getIsTextAreaCallback):
3242         (stringForSelectionCallback):
3243         (AccessibilityUIElement::getJSClass):
3244         * DumpRenderTree/AccessibilityUIElement.h:
3245         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
3246         (AccessibilityUIElement::identifier):
3247         (AccessibilityUIElement::isTextArea):
3248         (AccessibilityUIElement::isSearchField):
3249         (AccessibilityUIElement::traits):
3250         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
3251         (WTR::AccessibilityUIElement::scrollPageRight):
3252         (WTR::AccessibilityUIElement::hasContainedByFieldsetTrait):
3253         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
3254         (WTR::AccessibilityUIElement::isSearchField):
3255         (WTR::AccessibilityUIElement::isTextArea):
3256         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3257         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
3258         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3259         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
3260         (WTR::AccessibilityUIElement::isTextArea):
3261         (WTR::AccessibilityUIElement::isSearchField):
3262         (WTR::AccessibilityUIElement::rowCount):
3263
3264 2015-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3265
3266         [GTK] [JHBuild] package libtool-bin is now required on Debian systems.
3267         https://bugs.webkit.org/show_bug.cgi?id=152252
3268
3269         Reviewed by Sergio Villar Senin.
3270
3271         * gtk/install-dependencies: Add libtool-bin to the list of packages required
3272         for building the JHBuild on Debian systems.
3273
3274 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
3275
3276         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
3277         https://bugs.webkit.org/show_bug.cgi?id=152156
3278
3279         Reviewed by Dan Bernstein.
3280
3281         Our frameworks should appropriately prefix all ObjC classes,
3282         not just external symbols.
3283
3284         * Scripts/check-for-inappropriate-objc-class-names:
3285         Remove the -g switch to check all ObjC class names.
3286
3287 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
3288
3289         [MediaStream] Expose media capture devices persistent permissions to WebCore
3290         https://bugs.webkit.org/show_bug.cgi?id=152087
3291
3292         Add support for the new user media permission checker page UI client method.
3293
3294         Reviewed by Chris Dumez.
3295
3296         * WebKitTestRunner/TestController.cpp:
3297         (WTR::decidePolicyForUserMediaPermissionRequest):
3298         (WTR::checkUserMediaPermissionForOrigin):
3299         (WTR::TestController::createOtherPage): Add checkUserMediaPermissionForOrigin.
3300         (WTR::TestController::createWebViewWithOptions): Ditto.
3301         (WTR::TestController::resetStateToConsistentValues): Clear m_userMediaOriginPermissions.
3302         (WTR::originUserVisibleName): New, create a string for the origin.
3303         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Set the WKUserMediaPermissionCheckRef
3304           according to the state of the origin permission map.
3305         (WTR::TestController::handleUserMediaPermissionRequest): Remember both the origin and the
3306           request so we can update the origin permission map in decidePolicyForUserMediaPermissionRequestIfPossible.
3307         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Update the
3308           origin permission map.
3309         * WebKitTestRunner/TestController.h:
3310
3311 2015-12-10  Alex Christensen  <achristensen@webkit.org>
3312
3313         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
3314         https://bugs.webkit.org/show_bug.cgi?id=152022
3315         rdar://problem/23763584
3316
3317         Reviewed by Darin Adler.
3318
3319         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3320         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
3321         (WTR::InjectedBundlePage::willSendRequestForFrame):
3322         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3323         (WTR::TestRunner::setWillSendRequestReturnsNull):
3324         (WTR::TestRunner::willSendRequestReturnsNullOnRedirect):
3325         (WTR::TestRunner::setWillSendRequestReturnsNullOnRedirect):
3326         (WTR::TestRunner::setWillSendRequestAddsHTTPBody):
3327         (WTR::TestRunner::willSendRequestHTTPBody):
3328         Added setWillSendRequestAddsHTTPBody that uses new SPI for testing.
3329
3330 2015-12-10  Aakash Jain  <aakash_jain@apple.com>
3331
3332         Remove additional simulator checks before running layout-tests
3333         https://bugs.webkit.org/show_bug.cgi?id=152146
3334
3335         Reviewed by Darin Adler.
3336
3337         * Scripts/webkitpy/port/ios.py:
3338         (IOSSimulatorPort.check_sys_deps): Removed additional simulators verifications.
3339         * Scripts/webkitpy/xcode/simulator.py:
3340         (Simulator._boot_and_shutdown_simulator_device): Deleted.
3341         (Simulator.check_simulator_device_and_erase_if_needed): Deleted.
3342
3343 2015-12-09  Aakash Jain  <aakash_jain@apple.com>
3344
3345         Run atleast one simulator even if max process limit is low
3346         https://bugs.webkit.org/show_bug.cgi?id=152081
3347         <rdar://problem/23819694>
3348
3349         Reviewed by Alexey Proskuryakov.
3350
3351 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
3352
3353         [GTK] Crash in WebProcess when loading large content with custom URI schemes
3354         https://bugs.webkit.org/show_bug.cgi?id=144262
3355
3356         Reviewed by Carlos Garcia Campos.
3357
3358         Added new unit test to check the additional scenarios we now
3359         handle for custom URI schemes.
3360
3361         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
3362         (generateHTMLContent): New helper function to generate big enough content.
3363         (testWebContextURIScheme): New unit test.
3364
3365 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
3366
3367         [EFL] Fix unhandled web process message when launching MiniBrowser
3368         https://bugs.webkit.org/show_bug.cgi?id=152048
3369
3370         Reviewed by Gyuyoung Kim.
3371
3372         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewUserViewportToContents.cpp:
3373         (TestWebKitAPI::TEST):
3374
3375 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
3376
3377         [GTK] Add API to handle beforeunload events
3378         https://bugs.webkit.org/show_bug.cgi?id=139090
3379
3380         Reviewed by Gustavo Noronha Silva.
3381
3382         * MiniBrowser/gtk/BrowserWindow.c:
3383         (browserWindowConstructed):
3384         (browserWindowDeleteEvent):
3385         (browser_window_class_init):
3386         Handle delete-event to prevent the window from being closed when
3387         the page has beforeunload handlers. Use
3388         webkit_web_view_try_close() when the window is requested to be
3389         closed.
3390         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
3391         (testWebViewJavaScriptDialogs):
3392         Add a test case for the WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
3393         script dialog type.
3394
3395 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
3396
3397         Refactored initialization code in LoadTrackingTest.
3398
3399         Rubber-stamped by Carlos Garcia Campos.
3400
3401         Small refactoring to make sure that the state of a LoadTrackingTest
3402         gets properly reset before loading new web content.
3403
3404         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.h:
3405         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
3406         (LoadTrackingTest::reset): New, refactored code from *load*() and go*()
3407         functions and reset the remaining local variables.
3408         (LoadTrackingTest::loadURI): Call reset();
3409         (LoadTrackingTest::loadHtml): Ditto.
3410         (LoadTrackingTest::loadPlainText): Ditto.
3411         (LoadTrackingTest::loadBytes): Ditto.
3412         (LoadTrackingTest::loadRequest): Ditto.
3413         (LoadTrackingTest::reload): Ditto.
3414         (LoadTrackingTest::goBack): Ditto.
3415         (LoadTrackingTest::goForward): Ditto.
3416
3417 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3418
3419         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
3420         https://bugs.webkit.org/show_bug.cgi?id=151942
3421
3422         Reviewed by Darin Adler.
3423
3424         * MiniBrowser/efl/main.c:
3425         (window_create): Enable offline web application cache feature on MiniBrowser.
3426         (elm_main):
3427
3428 2015-12-08  Aakash Jain  <aakash_jain@apple.com>
3429
3430         https://bugs.webkit.org/show_bug.cgi?id=151243
3431         <rdar://problem/22955197>
3432
3433         Reviewed by Alexey Proskuryakov.
3434
3435         * LayoutTestRelay/LayoutTestRelay/main.m:
3436         (getTestingSimDevice): Use separate testing device for each worker.
3437         * Scripts/webkitpy/layout_tests/controllers/manager.py:
3438         (Manager.run): Perform cleanup even if setup fails.
3439         * Scripts/webkitpy/port/ios.py:
3440         (IOSSimulatorPort.default_child_processes): Calculate number of simulators to use.
3441         (IOSSimulatorPort.child_processes): Gets the number of simulators from options variable.
3442         (IOSSimulatorPort.setup_test_run): Handle mulitple simulators.
3443         (IOSSimulatorPort._quit_ios_simulator): Same
3444         (IOSSimulatorPort.clean_up_test_run): Same
3445         (IOSSimulatorPort.check_sys_deps): Same
3446         (IOSSimulatorPort.testing_device): Same
3447         (IOSSimulatorPort.reset_preferences): Same
3448         (IOSSimulatorPort.get_simulator_path): Return simulator path.
3449         (IOSSimulatorPort._createSimulatorApp): Create the copy of simulator app.
3450         * Scripts/webkitpy/xcode/simulator.py:
3451         (Device.delete): Delete the simulator device.
3452         (Simulator.delete_device): Same
3453         (Simulator.wait_until_device_is_booted): Wait for device booting.
3454
3455 2015-12-08  Ryuan Choi  <ryuan.choi@navercorp.com>
3456
3457         [EFL] Add API to provide preferences before creating ewk_view
3458         https://bugs.webkit.org/show_bug.cgi?id=151587
3459
3460         Reviewed by Gyuyoung Kim.
3461
3462         * MiniBrowser/efl/main.c:
3463         (on_key_down):
3464         (quit):
3465         (window_create):
3466         Moved settings related code to configuration() not to update settings
3467         whenever ewk_view is created.
3468         (configuration):
3469         (elm_main):
3470
3471 2015-12-08  Carlos Garcia Campos  <cgarcia@igalia.com>
3472
3473         Unreviewed. Fix GTK+ API tests after r193639.
3474
3475         The new jhbuild version needs some more variables ot be present in
3476         the builtin dict, even if they are set to None.
3477
3478         * jhbuild/jhbuildutils.py:
3479         (enter_jhbuild_environment_if_available):
3480
3481 2015-12-07  Gustavo Noronha Silva  <gns@gnome.org>
3482
3483         [GTK] Notify WebCore when notification is clicked
3484         https://bugs.webkit.org/show_bug.cgi?id=151951
3485
3486         Reviewed by Carlos Garcia Campos.
3487
3488         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
3489         (testWebViewNotification): test the new API.
3490
3491 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
3492
3493         'jhbuild build' should fail immediately when building any module fails
3494         https://bugs.webkit.org/show_bug.cgi?id=145697
3495
3496         Reviewed by Carlos Garcia Campos.
3497
3498         * efl/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
3499         * gtk/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
3500         Everything is placed under lib instead of lib64 now.
3501         * jhbuild/jhbuild-wrapper: Update jhbuild to the latest upstream commit, and pass
3502         --exit-on-error when running 'jhbuild build'.
3503         * jhbuild/jhbuildrc_common.py:
3504         (init): Don't override PKG_CONFIG_PATH, CMAKE_PREFIX_PATH, or CMAKE_LIBRARY_PATH. Modern
3505         jhbuild should be able to handle these for us without breaking things....
3506
3507 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3508
3509         Add support to import w3c tests from a repository with a different root that the main repo dir
3510         https://bugs.webkit.org/show_bug.cgi?id=151751
3511
3512         Reviewed by Ryosuke Niwa and Youenn Fablet.
3513
3514         We should be able to import tests from repositories that are not pure test repositories and where tests are kept
3515         in a different directory than the repository root.
3516
3517         This patch introduces a new parameter tests_directory that we will use as root directory to search for
3518         tests. All paths will be flattened when copying tests to have a less complicated directory structure. This
3519         requires having the copy_path lists including tuples of origin and destination directories.
3520
3521         * Scripts/webkitpy/w3c/test_downloader.py:
3522         (TestDownloader._add_test_suite_paths): Adds the paths as a tuple of origin and destination directory.
3523         (TestDownloader.copy_tests): Uses the origin and destination tuple for the paths to copy when copying files.
3524         * Scripts/webkitpy/w3c/test_importer_unittest.py:
3525         (TestImporterTest.test_tests_directory): Test.
3526
3527 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3528
3529         Mock TestRepositories in W3C importer tests
3530         https://bugs.webkit.org/show_bug.cgi?id=151938
3531
3532         Reviewed by Youenn Fablet.
3533
3534         The test importer tests should use a fake repository instead of using the real one. The reason why this happened
3535         is because the test repository method reading the file was using the filesystem directly instead of taking the
3536         host one. This patch changes that.
3537
3538         * Scripts/webkitpy/w3c/test_downloader.py:
3539         (TestDownloader.load_test_repositories): Take a filesystem and use it. If we get no filesystem, we use the
3540         default one.
3541         (TestDownloader.__init__): When loading the repositories, pass the host filesystem.
3542         * Scripts/webkitpy/w3c/test_importer_unittest.py:
3543         (TestImporterTest.test_harnesslinks_conversion):
3544         (TestImporterTest.test_submodules_generation): Use a fake test repository file.
3545
3546 2015-12-07  David Kilzer  <ddkilzer@apple.com>
3547
3548         TestNetscapePlugIn: Address review comment on 193607
3549         <http://webkit.org/b/151881>
3550
3551         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
3552         (testSetStatus): Initializing std::unique_ptr<char[]> with
3553         nullptr is redundant.
3554
3555 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
3556
3557         [GTK] Add webkit_uri_request_get_http_method
3558         https://bugs.webkit.org/show_bug.cgi?id=151601
3559
3560         Reviewed by Martin Robinson.
3561
3562         Add test case to check HTTP method of WebKitURIRequest.
3563
3564         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
3565         (testURIRequestHTTPMethod):
3566         (serverCallback):
3567         (beforeAll):
3568         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
3569         (sendRequestCallback):
3570
3571 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
3572
3573         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
3574         https://bugs.webkit.org/show_bug.cgi?id=79918
3575
3576         Reviewed by Gustavo Noronha Silva.
3577
3578         Add unit tests to check the different console messages.
3579
3580         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
3581         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp: Added.
3582         (ConsoleMessageTest::ConsoleMessage::operator==):
3583         (ConsoleMessageTest::consoleMessageReceivedCallback):
3584         (ConsoleMessageTest::ConsoleMessageTest):
3585         (ConsoleMessageTest::~ConsoleMessageTest):
3586         (ConsoleMessageTest::waitUntilConsoleMessageReceived):
3587         (testWebKitConsoleMessageConsoleAPI):
3588         (testWebKitConsoleMessageJavaScriptException):
3589         (testWebKitConsoleMessageNetworkError):
3590         (testWebKitConsoleMessageSecurityError):
3591         (beforeAll):
3592         (afterAll):
3593         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
3594         (consoleMessageSentCallback):
3595         (pageCreatedCallback):
3596
3597 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
3598
3599         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
3600         https://bugs.webkit.org/show_bug.cgi?id=151934
3601
3602         Reviewed by Csaba Osztrogonác.
3603
3604         * MiniBrowser/efl/main.c:
3605         (on_window_deletion): Revert the changes of r192767.
3606
3607 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
3608
3609         [GTK] update-webkitgtk-libs cannot build mesa
3610         https://bugs.webkit.org/show_bug.cgi?id=151535
3611
3612         Reviewed by Martin Robinson.
3613
3614         Upgrade to newer mesa in order to build successfully against LLVM 3.7. Add missing
3615         dependency of mesa on LLVM, to ensure LLVM is built first. Build LLVM unconditionally, even
3616         on architectures where FTL is not supported, to ensure mesa is always buildable, since LLVM
3617         does not have a stable API and we cannot expect mesa to be buildable unless we control the
3618         LLVM version. Build mesa with --disable-egl since --enable-egl conflicts with
3619         --enable-xlib-glx. This fixes update-webkitgtk-libs on distros with LLVM 3.7.
3620
3621         * gtk/jhbuild.modules:
3622
3623 2015-12-07  Philippe Normand  <pnormand@igalia.com>
3624
3625         [GTK][Mac] libWebExtensionTest link error
3626         https://bugs.webkit.org/show_bug.cgi?id=150802
3627
3628         Reviewed by Carlos Garcia Campos.
3629
3630         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt: add dependencies to the webextension library.
3631
3632 2015-12-06  David Kilzer  <ddkilzer@apple.com>
3633
3634         TestNetscapePlugIn: Fix leaks found by static analyzer
3635         <http://webkit.org/b/151881>
3636
3637         Reviewed by Darin Adler.
3638
3639         Fixes the following leaks found by the static analyzer:
3640             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'path'
3641                     return false;
3642                            ^~~~~
3643             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'target'
3644                     return false;
3645                            ^~~~~
3646             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'url'
3647                     return false;
3648                            ^~~~~
3649
3650         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
3651         (toCString): Switch to returning std::unique_ptr<char[]>.  Add
3652         early return if allocation fails.
3653         (testPostURLFile): Switch to using std::unique_ptr<char[]>.
3654         Make sure to call fclose() on filehandle, even for an early
3655         return.
3656         (testSetStatus): Switch to using std::unique_ptr<char[]>.
3657
3658 2015-12-05  David Kilzer  <ddkilzer@apple.com>
3659
3660         prepare-ChangeLog: Fix some warning messages when using svn
3661         <http://webkit.org/b/151914>
3662
3663         Reviewed by Daniel Bates.
3664
3665         * Scripts/prepare-ChangeLog:
3666         (generateFunctionLists): Simplify logic so that we never call
3667         normalizePath() with an undefined value.
3668         (attributeCommand): Quote $subPath for the shell so that we
3669         don't try to run "svn propget" on invalid paths.
3670
3671 2015-12-04  David Kilzer  <ddkilzer@apple.com>
3672
3673         TestNetscapePlugIn: Fix remaining static analyzer warnings
3674         <http://webkit.org/b/151888>
3675
3676         Reviewed by Alexey Proskuryakov.
3677
3678         Fixes the following static analyzer warnings:
3679             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:101:9: warning: Called function pointer is null (null dereference)
3680                     CRASH();
3681                     ^~~~~~~
3682             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:46:5: note: expanded from macro 'CRASH'
3683                 ((void(*)())0)(); /* More reliable, but doesn't say BBADBEEF */ \
3684                 ^~~~~~~~~~~~~~~~
3685             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:375:12: warning: Access to field 'pluginTest' results in a dereference of a null pointer (loaded from variable 'obj')
3686                 return obj->pluginTest->NPP_SetWindow(window);
3687                        ^~~~~~~~~~~~~~~
3688             2 warnings generated.
3689
3690         * DumpRenderTree/TestNetscapePlugIn/main.cpp:
3691         (CRASH): Use __builtin_trap() for gcc/clang.
3692         (NPP_SetWindow): Add early return if obj is nullptr.
3693
3694 2015-12-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3695
3696         [GTK] Test /webkit2/WebKitWebResource/get-data is flaky
3697         https://bugs.webkit.org/show_bug.cgi?id=151797
3698
3699         Reviewed by Martin Robinson.
3700
3701         Since we switched to use the network process to run the unit tests
3702         the test /webkit2/WebKitWebResource/get-data sometimes fails and
3703         sometimes passes. We are now also getting the notification for the
3704         css image. Since we wait for 3 resources, sometimes the css image
3705         is loaded before and then checkResourceData is called for it, but
3706         not handled. When the css image is the last one loaded the test
3707         passes. So, we just need to wait for the 4 resources.
3708
3709         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
3710         (testWebResourceGetData):
3711
3712 2015-12-03  David Kilzer  <ddkilzer@apple.com>
3713
3714         DumpRenderTree: Use-after-free in createBitmapContext() in PixelDumpSupportMac.mm
3715         <http://webkit.org/b/151845>
3716
3717         Reviewed by Simon Fraser.
3718
3719         Fixes the following static analyzer warning:
3720             DumpRenderTree/mac/PixelDumpSupportMac.mm:67:9: warning: Use of memory after it is freed
3721                     WTFLogAlways("DumpRenderTree: CGBitmapContextCreate(%p, %llu, %llu, 8, %llu, %p, 0x%x) failed\n", buffer, pixelsHigh, pixelsWide, rowBytes, colorSpace.get(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
3722                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3723
3724         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
3725         (createBitmapContext): Free 'buffer' after using it in logging
3726         to fix the use-after-free.  Assign a value of nullptr to buffer
3727         so we don't return with it set to a freed address.
3728
3729 2015-12-03  Jer Noble  <jer.noble@apple.com>
3730
3731         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
3732         https://bugs.webkit.org/show_bug.cgi?id=151830
3733
3734         Reviewed by Anders Carlsson.
3735
3736         Set invisibleAutoplayNotPermitted to NO by default both in WKTR and DRT.
3737
3738         * DumpRenderTree/mac/DumpRenderTree.mm:
3739         (resetWebPreferencesToConsistentValues):
3740         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3741         (WTR::initializeWebViewConfiguration):
3742
3743 2015-12-03  Anders Carlsson  <andersca@apple.com>
3744
3745         Remove Objective-C GC support
3746         https://bugs.webkit.org/show_bug.cgi?id=151819
3747         rdar://problem/23746991
3748
3749         Reviewed by Dan Bernstein.
3750
3751         * asan/asan.xcconfig:
3752
3753 2015-12-02  Yusuke Suzuki  <utatane.tea@gmail.com>
3754
3755         Allow nil for unspecified benchmark pathes
3756         https://bugs.webkit.org/show_bug.cgi?id=151784
3757
3758         Reviewed by Filip Pizlo.
3759
3760         `Pathname.new(nil)` will raise an error.
3761         Only generate Pathname if the benchmark path is specified.
3762
3763         * Scripts/run-jsc-benchmarks:
3764
3765 2015-12-02  Brent Fulgham  <bfulgham@apple.com>
3766
3767         [Win] Run non-http tests without Cygwin
3768         https://bugs.webkit.org/show_bug.cgi?id=151721
3769
3770         Reviewed by Andy Estes.
3771
3772         Support native 32-bit and 64-bit Python (and Perl) builds
3773         for running tests:
3774
3775         1. Use "startswith('win')", rather than "== 'win32'" to support
3776         various Windows build types.
3777         2. Supply full path for some native Windows utilities, since the
3778         path environment does not always have the specified, and they are
3779         guaranteed to exist in those specific locations.
3780         3. Make sure native Windows Python test runs pass proper environment
3781         variables to run programs.
3782         4. Append 'exe' suffix when running Windows executables.
3783         5. Use the _winreg Python module on Windows, since the Cygwin 'regtool'
3784         command doesn't exist.
3785         
3786         * Scripts/update-webkit: Use Perl $^X command to refer to the path of
3787         the current Perl executable, rather than requiring a new path search.
3788         * Scripts/webkitpy/common/find_files_unittest.py:
3789         (TestWinNormalize.test_win): Use startswith('win').
3790         * Scripts/webkitpy/common/prettypatch_unittest.py:
3791         (test_pretty_diff_encodings): Ditto.
3792         * Scripts/webkitpy/common/system/executive.py:
3793         (Executive._should_close_fds): Ditto.
3794         (Executive.shell_command_for_script): Use startswith('win').
3795         (Executive.kill_process): Use full path to killall executable.
3796         (Executive.check_running_pid): Use startswith('win').
3797         (Executive.running_pids): Ditto.
3798         (Executive.kill_all): Ditto. Also use path to 'killall' executable when
3799         running under native Windows Python.
3800         (Executive._child_process_encoding): Use startswith('win').
3801         (Executive._should_encode_child_process_arguments): Ditto.
3802         (Executive.popen): Recognize proper script engine on Windows, since it
3803         does not support the shebang syntax.
3804         (Executive.run_in_parallel): Use startswith('win').
3805         * Scripts/webkitpy/common/system/executive_unittest.py:
3806         (never_ending_command): Ditto.
3807         (ExecutiveTest.test_run_command_with_unicode): Ditto.
3808         (ExecutiveTest.serial_test_kill_process): Ditto.
3809         (ExecutiveTest.serial_test_kill_all): Ditto.
3810         (ExecutiveTest.serial_test_check_running_pid): Ditto.
3811         (ExecutiveTest.serial_test_run_in_parallel): Ditto.
3812         (main): Ditto.
3813         * Scripts/webkitpy/common/system/file_lock.py:
3814         (FileLock._create_lock): Ditto.
3815         (FileLock._remove_lock): Ditto.
3816         * Scripts/webkitpy/common/system/filesystem_unittest.py:
3817         (RealFileSystemTest.test_chdir): Ditto.
3818         (RealFileSystemTest.test_chdir__notexists): Ditto.
3819         (RealFileSystemTest.test_maybe_make_directory__failure): Ditto.
3820         * Scripts/webkitpy/common/system/path_unittest.py:
3821         (AbspathTest.test_abspath_to_uri_win): Ditto.
3822         * Scripts/webkitpy/common/system/platforminfo.py:
3823         (PlatformInfo._determine_os_name): Ditto.
3824         * Scripts/webkitpy/common/system/user.py: Ditto.
3825         * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
3826         (ManagerTest.integration_test_needs_servers): Ditto.
3827         * Scripts/webkitpy/layout_tests/servers/apache_http_server.py:
3828         (LayoutTestApacheHttpd.__init__): Handle upper and lower-case
3829         driver letters.
3830         (LayoutTestApacheHttpd._get_apache_config_file_path): Ditto.
3831         * Scripts/webkitpy/layout_tests/servers/apache_http_server_unittest.py:
3832         (TestLayoutTestApacheHttpd.test_start_cmd): Ditto.
3833         * Scripts/webkitpy/layout_tests/servers/http_server_base.py:
3834         (HttpServerBase._check_that_all_ports_are_available): Ditto.
3835         * Scripts/webkitpy/layout_tests/servers/http_server_unittest.py:
3836         (TestHttpServer.test_start_cmd): Ditto.
3837         * Scripts/webkitpy/port/base.py:
3838         (Port.to.setup_environ_for_server): Include 'COMSPEC', 'SYSTEMDRIVE',
3839         and 'SYSTEMROOT' in environment passed to test runners.
3840         (Port._apache_config_file_name_for_platform): Use startswith('win').
3841         (Port._build_path): Ditto.
3842         (Port._path_to_driver): Include 'exe' suffix when running under native
3843         Windows.
3844         * Scripts/webkitpy/port/driver.py:
3845         (Driver._setup_environ_for_driver): Explicitly make some environment
3846         variables strings.
3847         * Scripts/webkitpy/port/server_process.py:
3848         (ServerProcess.__init__): Use startswith('win').
3849         * Scripts/webkitpy/port/win.py:
3850         (WinPort): Use the win32 registry utilities on Windows, and appropriate
3851         registry key formats.
3852         (WinPort._ntsd_location): Revise tool search paths for Windows 10.
3853         (WinPort.read_registry_value): Revise to use _winreg library on Windows,
3854         and regtool on Cygwin.
3855         (WinPort.write_registry_value): Ditto.
3856         (WinPort.setup_crash_log_saving): Ditto.
3857         (WinPort.restore_crash_log_saving): Ditto.
3858         (WinPort.prevent_error_dialogs): Ditto.
3859         (WinPort.allow_error_dialogs): Ditto.
3860         (WinPort.find_system_pid): Revise to use Windows management
3861         infrastructure on native Windows, continue using 'ps' on Cygwin.
3862         (WinPort.read_registry_string): Deleted.
3863         (WinPort.write_registry_string): Deleted.
3864         * Scripts/webkitpy/test/main.py:
3865         (main): Use startswith('win').
3866         (Tester._parse_args): Ditto.
3867
3868 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3869
3870         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3871         https://bugs.webkit.org/show_bug.cgi?id=150792
3872
3873         Reviewed by Saam Barati.
3874
3875         * Scripts/webkitperl/FeatureList.pm:
3876
3877 2015-12-01  Commit Queue  <commit-queue@webkit.org>
3878
3879         Unreviewed, rolling out r192914.
3880         https://bugs.webkit.org/show_bug.cgi?id=151734
3881
3882         JSC tests for this change are failing on 32 and 64-bit bots
3883         (Requested by ryanhaddad on #webkit).
3884
3885         Reverted changeset:
3886
3887         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
3888         enable this feature"
3889         https://bugs.webkit.org/show_bug.cgi?id=150792
3890         http://trac.webkit.org/changeset/192914
3891
3892 2015-12-01  David Kilzer  <ddkilzer@apple.com>
3893
3894         EventSenderProxy::swipeGestureWithWheelAndMomentumPhases() leaks an EventSenderSyntheticEvent
3895         <http://webkit.org/b/151726>
3896
3897         Reviewed by Simon Fraser.
3898
3899         * WebKitTestRunner/mac/EventSenderProxy.mm:
3900         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
3901         Deploy RetainPtr<EventSenderSyntheticEvent> to fix leak.
3902
3903 2015-12-01  Myles C. Maxfield  <mmaxfield@apple.com>
3904
3905         Give String and AtomicString an existingHash() function
3906         https://bugs.webkit.org/show_bug.cgi?id=151717
3907
3908         Reviewed by Andreas Kling.
3909
3910         * TestWebKitAPI/Tests/WTF/AtomicString.cpp:
3911         (TestWebKitAPI::TEST):
3912         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
3913         (TestWebKitAPI::TEST):
3914
3915 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3916
3917         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3918         https://bugs.webkit.org/show_bug.cgi?id=150792
3919
3920         Reviewed by Saam Barati.
3921
3922         * Scripts/webkitperl/FeatureList.pm:
3923
3924 2015-12-01  Sam Weinig  <sam@webkit.org>
3925
3926         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
3927         <rdar://problem/23320863>
3928         https://bugs.webkit.org/show_bug.cgi?id=151708
3929
3930         Reviewed by Anders Carlsson.
3931
3932         * WebKitTestRunner/TestController.cpp:
3933         (WTR::TestController::createOtherPage):
3934         (WTR::TestController::createWebViewWithOptions):
3935         Update for new WKPageUIClient.
3936
3937 2015-12-01  Anders Carlsson  <andersca@apple.com>
3938
3939         Remove WebKit2.framework
3940         https://bugs.webkit.org/show_bug.cgi?id=151715
3941
3942         Reviewed by Dan Bernstein.
3943
3944         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp:
3945         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp:
3946         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm:
3947         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
3948         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
3949         * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm:
3950         * TestWebKitAPI/mac/TestBrowsingContextLoadDelegate.h:
3951
3952 2015-12-01  Joseph Pecoraro  <pecoraro@apple.com>
3953
3954         Unreviewed common typo fix "occurance" => "occurrence".
3955
3956         * Scripts/webkitpy/tool/commands/queries.py:
3957         (FindFlakyTests._print_statistics):
3958
3959 2015-11-30  Alex Christensen  <achristensen@webkit.org>
3960
3961         Make ProcessModel always MultipleSecondaryProcesses
3962         https://bugs.webkit.org/show_bug.cgi?id=151662
3963
3964         Reviewed by Antti Koivisto.
3965
3966         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
3967         (TestWebKitAPI::TEST):
3968         * WebKitTestRunner/TestController.cpp:
3969         (WTR::TestController::generatePageConfiguration):
3970
3971 2015-11-30  Alex Christensen  <achristensen@webkit.org>
3972
3973         Make usesNetworkProcess always true
3974         https://bugs.webkit.org/show_bug.cgi?id=151580
3975
3976         Reviewed by Darin Adler.
3977
3978         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
3979         (TestWebKitAPI::TEST):
3980         * TestWebKitAPI/Tests/WebKit2/mac/GetPIDAfterAbortedProcessLaunch.cpp:
3981         (TestWebKitAPI::TEST):
3982         * WebKitTestRunner/TestController.cpp:
3983         (WTR::TestController::generatePageConfiguration):
3984
3985 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
3986
3987         Unreviewed. Skip GTK+ test /webkit2/WebKitWebView/editable/editable in Debug.
3988
3989         Add a way to skip unit tests only for Debug or Release builds and
3990         skipt the test /webkit2/WebKitWebView/editable/editable only for Debug.
3991
3992         * Scripts/run-gtk-tests:
3993         (SkippedTest):
3994         (SkippedTest.__init__):
3995         (SkippedTest.__str__):
3996         (SkippedTest.skip_entire_suite):
3997         (SkippedTest.skip_for_build_type):
3998         (TestRunner):
3999         (TestRunner.__init__):
4000
4001 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
4002
4003         Unreviewed. Fix a crash in GTK+ test /webkit2/WebKitWebView/custom-charset.
4004
4005         It's an assert hit because we are reloading a view loaded with
4006         HTML data which is not supported. Use loadURI instead.
4007
4008         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
4009         (testWebViewCustomCharset):
4010
4011 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
4012
4013         [GLIB] Remove GMainLoopSource and GThreadSafeMainLoopSource
4014         https://bugs.webkit.org/show_bug.cgi?id=151633
4015
4016         Reviewed by Csaba Osztrogonác.
4017
4018         * TestWebKitAPI/PlatformGTK.cmake:
4019         * TestWebKitAPI/Tests/WTF/glib/GMainLoopSource.cpp: Removed.
4020
4021 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
4022
4023         [GTK] Remove the remaining uses of GMainLoopSource
4024         https://bugs.webkit.org/show_bug.cgi?id=151632
4025
4026         Reviewed by Žan Doberšek.
4027
4028         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
4029         (testWebViewSyncRequestOnMaxConns):
4030         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
4031         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
4032         (WTR::TestRunner::TestRunner):
4033         * WebKitTestRunner/InjectedBundle/TestRunner.h:
4034         * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:
4035         (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer):
4036         (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded):
4037         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
4038         (WTR::timeoutSource):
4039         (WTR::TestController::notifyDone):
4040         (WTR::TestController::platformRunUntil):
4041
4042 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
4043
4044         [cmake] Add testb3 to the build system
4045         https://bugs.webkit.org/show_bug.cgi?id=151619
4046
4047         Reviewed by Gyuyoung Kim.
4048
4049         * Scripts/build-jsc:
4050
4051 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
4052
4053         [jhbuild] Fix pixman build with clang
4054         https://bugs.webkit.org/show_bug.cgi?id=151441
4055
4056         Reviewed by Carlos Garcia Campos.
4057
4058         * efl/jhbuild.modules:
4059         * gtk/jhbuild.modules:
4060
4061 2015-11-26  David Kilzer  <ddkilzer@apple.com>
4062
4063         Extract prependToEnvironmentVariableList
4064         <http://webkit.org/b/151536>
4065
4066         Reviewed by Daniel Bates.
4067
4068         Tests: webkitdirs_unittest/appendToEnvironmentVariableList.pl
4069                webkitdirs_unittest/prependToEnvironmentVariableList.pl
4070
4071         * Scripts/webkitdirs.pm: Export appendToEnvironmentVariableList
4072         and prependToEnvironmentVariableList.
4073         (appendToEnvironmentVariableList): Simplify variable name.
4074         Switch to use $Config{path_sep}.
4075         (prependToEnvironmentVariableList): Add new method.
4076         (setupMacWebKitEnvironment): Switch to use
4077         prependToEnvironmentVariableList().
4078         (setupIOSWebKitEnvironment): Ditto.
4079
4080         * Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl: Added.
4081         * Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl: Added.
4082
4083 2015-11-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
4084
4085         REGRESSION(r192053): MiniBrowser doesn't exit when clicking on the close-window button
4086         https://bugs.webkit.org/show_bug.cgi?id=151567
4087
4088         Reviewed by Darin Adler.
4089
4090         * MiniBrowser/efl/main.c: Call window_close() instead of ewk_view_try_close().
4091         (on_window_deletion):
4092
4093 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
4094
4095         [GTK] Use the network process unconditionally
4096         https://bugs.webkit.org/show_bug.cgi?id=151541
4097
4098         Reviewed by Alex Christensen.
4099
4100         Fix TestInspectorServer test. Do not assume we already have the
4101         title we want when the page has been loaded, since the title is
4102         changed afterwards. So, check if the title has already been set,
4103         and if not wait for it.
4104
4105         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp:
4106         (openRemoteDebuggingSession):
4107
4108 2015-11-23  Alex Christensen  <achristensen@webkit.org>
4109
4110         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
4111         https://bugs.webkit.org/show_bug.cgi?id=151532
4112
4113         Reviewed by Benjamin Poulain.
4114
4115         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
4116         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::eventsChanged):
4117         (TestWebKitAPI::TEST):
4118         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::eventsChanged):
4119         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::GeolocationTransitionToHighAccuracyStateTracker): Deleted.
4120         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::GeolocationTransitionToLowAccuracyStateTracker): Deleted.
4121         Properly load about:blank in all WebViews to clean up.  Without this change, we had a 
4122         Geolocation provider stopping after its state tracker was destroyed with its stack frame,
4123         so it was calling a function on a test object that had gone out of scope.
4124         Also, call WKContextSetUsesNetworkProcess(context, true) to show what crash this fixed,
4125         but that will become the default soon and that call will be removed.
4126
4127 2015-11-22  David Kilzer  <ddkilzer@apple.com>
4128
4129         run-webkit-tests: http server for imported W3C tests doesn't work with --layout-tests-directory switch
4130         <http://webkit.org/b/151542>
4131
4132         Reviewed by Daniel Bates.
4133
4134         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
4135         (base_url): Use the Port object (already passed in) to give us
4136         the path to the LayoutTests directory, which already checks for a
4137         --layout-tests-directory command-line switch.
4138         (WebPlatformTestServer.__init__): Remove layout_test_results_dir
4139         argument since we can get this from the Port object already
4140         passed in via Port.results_directory().  Also switch to use
4141         Port.layout_tests_dir() to get the LayoutTests directory.
4142
4143         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server_unittest.py:
4144         (TestWebPlatformTestServer.test_custom_layout_tests_directory):
4145         Add test case for custom LayoutTests directory.
4146         (TestWebPlatformTestServer.test_previously_spawned_instance):
4147         Update Port object to set mock results directory as if it was
4148         set on the command-line.  Remove unneeded argument from
4149         WebPlatformTestServer constructor.
4150         (TestWebPlatformTestServer.test_corrupted_subserver_files): Ditto.
4151
4152         * Scripts/webkitpy/port/base.py:
4153         (Port.to.start_web_platform_test_server): Remove unneeded
4154         argument from WebPlatformTestServer constuctor.
4155
4156 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
4157
4158         [GTK] Some unit tests fail when using the network process
4159         https://bugs.webkit.org/show_bug.cgi?id=151490
4160
4161         Reviewed by Martin Robinson.
4162
4163         Run the soup server in a separate thread in TestResources test to
4164         avoid deadlocks.
4165
4166         This fixes /webkit2/WebKitWebView/sync-request-on-max-conns and
4167         /webkit2/WebKitWebResource/get-data when using the network process.
4168
4169         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
4170         (beforeAll): Create the WebKitTestServer with ServerRunInThread flag.
4171         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp:
4172         (WebKitTestServer::WebKitTestServer): When ServerRunInThread is
4173         present, create a WorkQueue to run the server.
4174         (WebKitTestServer::run): Run the server in the work queue if it
4175         has been created.
4176         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.h: Convert server
4177         type into server options as flags.
4178
4179 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
4180
4181         [GTK] ImageDiff should normalize the diff image
4182         https://bugs.webkit.org/show_bug.cgi?id=151261
4183
4184         Reviewed by Sergio Villar Senin.
4185
4186         * ImageDiff/gtk/ImageDiff.cpp:
4187         (readPixbufFromStdin): Fix memory leak.
4188         (differenceImageFromDifferenceBuffer): Normalize diff buffer.
4189         (calculateDifference): Pass max distance to differenceImageFromDifferenceBuffer.
4190
4191 == Rolled over to ChangeLog-2015-11-21 ==