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