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