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