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