96ee8c5e4a12d07acebb9314a772a2dc81a5a6f6
[WebKit-https.git] / Tools / ChangeLog
1 2016-02-02  Dan Bernstein  <mitz@apple.com>
2
3         Layout Test fast/parser/external-entities-in-xslt.xml is flaky on El Capitan (but fails most of the time)
4         https://bugs.webkit.org/show_bug.cgi?id=153683
5
6         Reviewed by Alexey Proskuryakov.
7
8         Ensure that XML_CATALOG_FILES is set in the Web Content service’s environment as well.
9
10         * Scripts/webkitpy/port/driver.py:
11         (Driver._setup_environ_for_driver): Also set __XPC_DUMPRENDERTREE_TEMP.
12         * Scripts/webkitpy/port/ios.py:
13         (IOSSimulatorPort.setup_environ_for_server): Set __XPC_XML_CATALOG_FILES.
14         * Scripts/webkitpy/port/mac.py:
15         (MacPort.setup_environ_for_server): Ditto.
16
17 2016-01-29 Grzegorz Czajkowski  <g.czajkowski@samsung.com>
18
19         [EFL] Virtual Keyboard overlaps MiniBrowser's WebView
20         https://bugs.webkit.org/show_bug.cgi?id=153009
21
22         Reviewed by Gyuyoung Kim.
23
24         On mobile, virtual keyboard represented by ecore_imf module appears on
25         the top of application layer usually covering bottom part of the screen.
26         If the web page contains the editable content on the bottom of the page
27         it will be overlapped by keyboard which prevents user from seeing the
28         typed text.
29
30         Pack MiniBrowser layout into conformant widget to allow EFL to guess
31         the space that will be required by the keyboard, finally resizing it
32         to the desired size. As a result, webview gets resized and scrolled
33         into focused elements which makes the editable elements visible while
34         typing.
35
36         More details about elm_conformant widger can be found at:
37         https://docs.enlightenment.org/elementary/1.15.0/group__Conformant.html
38         https://docs.enlightenment.org/elementary/1.15.0/conformant_example.html
39
40         * MiniBrowser/efl/main.c:
41         (window_create): pack a box into conformant widget.
42
43 2016-02-02  Alejandro G. Castro  <alex@igalia.com>
44
45         [GTK][EFL] Upgrade OpenWebRTC dependency
46         https://bugs.webkit.org/show_bug.cgi?id=153489
47
48         Reviewed by Philippe Normand.
49
50         * Scripts/run-gtk-tests:
51         (TestRunner): Avoid running the mediastream API test.
52         * Scripts/webkitperl/FeatureList.pm: Stop compiling mediastream by
53         default for gtk and efl.
54         * gtk/jhbuild-webrtc.modules: Added modules files with
55         dependencies required to compile and test the mediastream.
56
57 2016-02-01  Jason Marcell  <jmarcell@apple.com>
58
59         Add code to parse the git branches out of the Trac RSS feed
60         https://bugs.webkit.org/show_bug.cgi?id=153624
61
62         Reviewed by Daniel Bates.
63
64         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
65         (Trac.prototype.commitsOnBranch): Update filter to check for Git branches.
66         (Trac.prototype._convertCommitInfoElementToObject): Parse Git branches from the Trac RSS feed. Also changed "branchName" to
67         "branches" and updated the code to work with an array instead of a string.
68         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
69         (MockTrac): Refactored example commits out into a constant, MockTrac.EXAMPLE_TRAC_COMMITS.
70         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml: Added. Test
71         fixture that contains XML with a Git branch.
72         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit test to test parsing Git
73         branches from Trac RSS feed. Also updated code to work with the new MockTrac.EXAMPLE_TRAC_COMMITS constant.
74
75 2016-02-01  Brady Eidson  <beidson@apple.com>
76
77         Add command line flag to DRT to output the number of tests completed in server mode.
78         https://bugs.webkit.org/show_bug.cgi?id=153750
79
80         Reviewed by Darin Adler.
81
82         * DumpRenderTree/mac/DumpRenderTree.mm:
83         (initializeGlobalsFromCommandLineOptions):
84         (runTestingServerLoop):
85
86 2016-02-01  Jason Marcell  <jmarcell@apple.com>
87
88         Improvements to botwatcher's dashboard unit tests.
89         https://bugs.webkit.org/show_bug.cgi?id=153621
90
91         Reviewed by Darin Adler.
92
93         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/PopoverTracker.js:
94         (PopoverTracker): Retain a reference to the PopoverTracker so that we can make assertions about it in the unit tests.
95         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
96         (MockTrac): Changing revision 33019 to be on a different branch so that _appendPendingRevisionCount and
97         _popoverLinesForCommitRange have to traverse commits from different branches.
98         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Changing equal to strictEqual
99         in unit test for _appendPendingRevisionCount. Also added assertions for Popover in test for
100         _revisionContentWithPopoverForIteration.
101
102 2016-02-01  Jason Marcell  <jmarcell@apple.com>
103
104         Refactor to add event listeners and start periodic updates for all trac instances.
105         https://bugs.webkit.org/show_bug.cgi?id=153609
106
107         Reviewed by Darin Adler.
108
109         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
110         (BuildbotQueueView): Adding event listeners for all trac instances.
111         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
112         for all trac instances.
113
114 2016-01-31  Darin Adler  <darin@apple.com>
115
116         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
117         https://bugs.webkit.org/show_bug.cgi?id=153639
118
119         Reviewed by Filip Pizlo.
120
121         * Scripts/do-webcore-rename: Use script to do this rename.
122
123 2016-01-30  Commit Queue  <commit-queue@webkit.org>
124
125         Unreviewed, rolling out r195911.
126         https://bugs.webkit.org/show_bug.cgi?id=153723
127
128         Caused frequent assertion failures on bots (Requested by ap on
129         #webkit).
130
131         Reverted changeset:
132
133         "Replace CaseFoldingHash with ASCIICaseInsensitiveHash"
134         https://bugs.webkit.org/show_bug.cgi?id=153639
135         http://trac.webkit.org/changeset/195911
136
137 2016-01-30  Darin Adler  <darin@apple.com>
138
139         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
140         https://bugs.webkit.org/show_bug.cgi?id=153639
141
142         Reviewed by Filip Pizlo.
143
144         * Scripts/do-webcore-rename: Use script to do this rename.
145
146 2016-01-30  Ryosuke Niwa  <rniwa@webkit.org>
147
148         TouchList should be retargeted
149         https://bugs.webkit.org/show_bug.cgi?id=149592
150
151         Reviewed by Antti Koivisto.
152
153         Added touchDownAtPoint and liftUpAtPoint to UIScriptController so that we can test touch events with
154         multiple touch targets on iOS. fast/shadow-dom/touch-event-ios.html uses this new testing feature.
155
156         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
157         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
158         (WTR::UIScriptController::touchDownAtPoint): Added.
159         (WTR::UIScriptController::liftUpAtPoint): Added.
160         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
161         * WebKitTestRunner/ios/HIDEventGenerator.h:
162         * WebKitTestRunner/ios/HIDEventGenerator.mm:
163         (-[HIDEventGenerator touchDown:touchCount:completionBlock:]): Added. Sends touch down and waits.
164         (-[HIDEventGenerator liftUp:touchCount:completionBlock:]): Ditto for lift up.
165         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
166         (WTR::UIScriptController::touchDownAtPoint): Added.
167         (WTR::UIScriptController::liftUpAtPoint): Added.
168
169 2016-01-30  Yusuke Suzuki  <utatane.tea@gmail.com>
170
171         Enable SamplingProfiler on POSIX environment
172         https://bugs.webkit.org/show_bug.cgi?id=153584
173
174         Reviewed by Michael Saboff.
175
176         * Scripts/run-jsc-stress-tests:
177
178 2016-01-29  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
179
180         update-webkit-dependency fails to fetch updates through firewall on Windows
181         https://bugs.webkit.org/show_bug.cgi?id=153619
182
183         Reviewed by Myles C. Maxfield.
184
185         On Windows, when a firewall is present we need to read proxy settings
186         from environment variables.
187
188         This patch relies on the following environment variables being set:
189         HTTP_PROXY
190         HTTPS_PROXY
191
192         * Scripts/update-webkit-dependency:
193
194 2016-01-28  Dan Bernstein  <mitz@apple.com>
195
196         [Cocoa] Use the non-Development variants of XPC services for development
197         https://bugs.webkit.org/show_bug.cgi?id=152545
198
199         Reviewed by Darin Adler.
200
201         * Scripts/webkitdirs.pm:
202         (setUpGuardMallocIfNeeded): Ensure that libgmalloc is loaded into XPC services as well.
203
204         * Scripts/webkitpy/port/driver.py:
205         (Driver._setup_environ_for_driver): Ensure that the DYLD_LIBRARY_PATH and ASAN_OPTIONS are
206           set in the XPC services as well.
207
208         * Scripts/webkitpy/port/ios.py:
209         (IOSSimulatorPort.setup_environ_for_server): Ensure that malloc stack logging for leaks and
210           Guard Malloc are enabled in XPC services as well.
211
212         * Scripts/webkitpy/port/mac.py:
213         (MacPort.setup_environ_for_server): Ditto.
214
215 2016-01-28  Csaba Osztrogonác  <ossy@webkit.org>
216
217         Unreviewed buildfix after r195743.
218
219         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
220         (WTR::AccessibilityUIElement::isPressActionSupported):
221
222 2016-01-12  Jer Noble  <jer.noble@apple.com>
223
224         Custom protocol loading through AVFoundation does not support byte-range requests.
225         https://bugs.webkit.org/show_bug.cgi?id=152919
226         <rdar://problem/23664657>
227
228         Reviewed by Alex Christensen.
229
230         Add tests for new ParsedContntRange class.
231
232         * TestWebKitAPI/PlatformWin.cmake:
233         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
234         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
235         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
236         * TestWebKitAPI/Tests/WebCore/ParsedContentRange.cpp: Added.
237         (TestWebKitAPI::TEST):
238
239 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
240
241         Use isAnyWindows() instead of isCygwin() || isWindows() in Perl scripts.
242         https://bugs.webkit.org/show_bug.cgi?id=153594
243
244         Reviewed by Alex Christensen.
245
246         * Scripts/webkitdirs.pm:
247         (determineNumberOfCPUs):
248         (jscPath):
249         (checkFrameworks):
250         (setupCygwinEnv):
251         (wrapperPrefixIfNeeded):
252         (cmakeGeneratedBuildfile):
253         (generateBuildSystemFromCMakeProject):
254         * Scripts/webkitperl/features.pm:
255         (libraryContainsSymbol):
256
257 2016-01-28  Chris Dumez  <cdumez@apple.com>
258
259         Unreviewed, rolling out r195742.
260
261         Broke EWS
262
263         Reverted changeset:
264
265         "[webkitdirs] Clarify logic behind is{PortName} functions."
266         https://bugs.webkit.org/show_bug.cgi?id=153554
267         http://trac.webkit.org/changeset/195742
268
269 2016-01-28  Darin Adler  <darin@apple.com>
270
271         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
272         https://bugs.webkit.org/show_bug.cgi?id=153411
273
274         Reviewed by Ryosuke Niwa.
275
276         * Scripts/do-webcore-rename: Removed rename of equalIgnoringCase since we
277         have removed the function instead.
278
279         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
280         (TestWebKitAPI::TEST): Updated test since nullptr is now ambiguous since we
281         added overloads for const char*.
282
283         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
284         (WTR::AccessibilityUIElement::isPressActionSupported): Use equalLettersIgnoringASCIICase.
285         (WTR::AccessibilityUIElement::hasPopup): Ditto.
286         * WebKitTestRunner/cocoa/CrashReporterInfo.mm:
287         (WTR::testPathFromURL): Ditto.
288
289 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
290
291         [webkitdirs] Clarify logic behind is{PortName} functions.
292         https://bugs.webkit.org/show_bug.cgi?id=153554
293
294         Reviewed by Darin Adler.
295
296         * Scripts/webkitdirs.pm:
297         (determinePortName): Added new function which decides which port are
298         we building based on command line switches and platform defaults.
299         (portName): Added getter for determined $portName.
300         (isEfl): Modified to use portName().
301         (isGtk): Ditto.
302         (isWinCairo): Ditto.
303         (isAppleMacWebKit): Ditto.
304         (isAppleWinWebKit): Ditto.
305         (isIOSWebKit): Ditto.
306         (cmakeBasedPortName): Code replaced with portName() call.
307         (determineIsEfl): Deleted.
308         (determineIsGtk): Deleted.
309         (determineIsWinCairo): Deleted.
310
311 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
312
313         [webkitdirs] Don't pass cmakeBasedPortName around.
314         https://bugs.webkit.org/show_bug.cgi?id=153589
315
316         Reviewed by Darin Adler.
317
318         It should be local function of webkitdirs.pm instead.
319
320         * Scripts/build-jsc: Don't pass cmakeBasedPortName to
321         buildCMakeProjectOrExit().
322         * Scripts/build-webkit: Don't pass cmakeBasedPortName to
323         buildCMakeProjectOrExit() and generateBuildSystemFromCMakeProject().
324         * Scripts/run-efl-tests: Don't pass cmakeBasedPortName to
325         generateBuildSystemFromCMakeProject().
326         * Scripts/webkitdirs.pm: Don't export cmakeBasedPortName.
327         (generateBuildSystemFromCMakeProject): Removed $port argument as we
328         can get it from cmakeBasedPortName().
329         (buildCMakeProjectOrExit): Ditto.
330
331 2016-01-28  Gwang Yoon Hwang  <yoon@igalia.com>
332
333         [GStreamer] Clean up includes and headers related with GStreamerGL
334         https://bugs.webkit.org/show_bug.cgi?id=153590
335
336         Reviewed by Philippe Normand.
337
338         * Scripts/webkitpy/style/checker.py: Skips
339         include_order check for MediaPlayerPrivateGStreamerBase.cpp
340         Removes VideoSinkGStreamer1.cpp which doesn't exist anymore.
341
342 2016-01-27  Krzysztof Czech  <k.czech@samsung.com>
343
344         [EFL] Remove unused accessibility related code
345         https://bugs.webkit.org/show_bug.cgi?id=153543
346
347         Reviewed by Darin Adler.
348
349         Removed reference to EAIL library.
350         It not going to be support anymore. There have been changes in
351         EFL/Elementary in terms of the accessibility and we should
352         follow those.
353
354         * efl/jhbuild-optional.modules:
355
356 2016-01-27  Daniel Bates  <dabates@apple.com>
357
358         Remove WebKitSystemInterface for iOS SDK < 9
359         https://bugs.webkit.org/show_bug.cgi?id=153570
360
361         Reviewed by Andy Estes.
362
363         * Scripts/copy-webkitlibraries-to-product-directory:
364
365 2016-01-27  Jason Marcell  <jmarcell@apple.com>
366
367         Fix bugs caused by incorrect usage of "branch" vs. "branchName".
368         https://bugs.webkit.org/show_bug.cgi?id=153330
369
370         Reviewed by Daniel Bates.
371
372         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
373         "branchName" implies that the variable or property in question is simply a string. We fixed some
374         inconsistencies regarding this issue in 152982 but further bugs and inconsistencies were recently
375         spotted in BuildbotQueueView.js.
376
377         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
378         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branchName to branch in method signature.
379         Changed branchName to branch.name in call to commitsOnBranch.
380         (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Change branch.name to branch in call to
381         _popoverLinesForCommitRange.
382         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Changed context.branchName to context.branch.name.
383         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Changed branch.name to branch.
384         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests to verify
385         fix.
386
387 2016-01-27  Ryosuke Niwa  <rniwa@webkit.org>
388
389         Add API to access closed shadowRoot in InjectedBundle
390         https://bugs.webkit.org/show_bug.cgi?id=153533
391
392         Reviewed by Antti Koivisto.
393
394         Added WebKit2 API test for WKBundleScriptWorldMakeAllShadowRootsOpen.
395
396         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
397         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp: Added.
398         (TestWebKitAPI::runJavaScriptAlert):
399         (TestWebKitAPI::TEST):
400         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakrAllShadowRootOpen_Bundle.cpp: Added.
401         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::InjectedBundleMakrAllShadowRootOpenTest):
402         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::initialize):
403
404 2016-01-27  Jason Marcell  <jmarcell@apple.com>
405
406         Refactor logic for parsing Trac revisions into its own function and add logic for parsing git hashes.
407         https://bugs.webkit.org/show_bug.cgi?id=153332
408
409         Reviewed by Alexey Proskuryakov.
410
411         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
412         (Trac.prototype._xmlTimelineURL): Uses new function.
413         (Trac.prototype._parseRevisionFromURL): Added. Pulled out logic for parsing revisions from a URL. Also added
414         logic for parsing git hashes.
415         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests for
416         Trac._parseRevisionFromURL.
417
418 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
419
420         Remove Mavericks from the flakiness dashboard
421         https://bugs.webkit.org/show_bug.cgi?id=153521
422
423         Reviewed by Dan Bernstein.
424
425         * TestResultServer/static-dashboards/builders.jsonp:
426         * TestResultServer/static-dashboards/flakiness_dashboard.js:
427
428 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
429
430         Remove ENABLE_CURRENTSRC
431         https://bugs.webkit.org/show_bug.cgi?id=153545
432
433         Reviewed by Simon Fraser.
434
435         * Scripts/webkitperl/FeatureList.pm:
436
437 2016-01-26  Jason Marcell  <jmarcell@apple.com>
438
439         Sort incoming commits via date instead of revision number.
440         https://bugs.webkit.org/show_bug.cgi?id=153467
441
442         Reviewed by Alexey Proskuryakov.
443
444         Future Trac instances may use Git or other revision control systems where we cannnot rely on the revision number
445         for sorting revisions. Instead we use the commit date to sort revisions chronologically.
446
447         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
448         (Trac.prototype._loaded): Sort via date instead of revision number.
449         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
450         (MockTrac): Fix up the mock data to look more like real-world data.
451         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml: Added.
452         Fake RSS feed that adds three more commits.
453         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests to test
454         Trac._loaded().
455
456 2016-01-26  I-Ting Liu  <iting_liu@apple.com>
457
458         Add a test for WebKit::stringMatchesWildcardString.
459         https://bugs.webkit.org/show_bug.cgi?id=153090
460
461         Reviewed by Darin Adler.
462
463         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
464         Add the file to the project.
465
466         * TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm: Added.
467         (TestWebKitAPI::TEST):
468         Test that a string matches another string that may contain wildcard characters.
469
470 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
471
472         [webkitdirs] Removed check for bison, gperf, and flex.
473         https://bugs.webkit.org/show_bug.cgi?id=153496
474
475         Reviewed by Alex Christensen.
476
477         This prerequisites are checked in WebKitCommon.cmake and don't
478         have to be in $PATH.
479
480         * Scripts/webkitdirs.pm:
481         (checkRequiredSystemConfig):
482
483 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
484
485         [webkitdirs] isCMakeBuild should be true by default
486         https://bugs.webkit.org/show_bug.cgi?id=153497
487
488         Reviewed by Michael Catanzaro.
489
490         * Scripts/webkitdirs.pm:
491         (isCMakeBuild):
492
493 2016-01-26  Daniel Bates  <dabates@apple.com>
494
495         Add WebKitSystemInterface for iOS 9.2
496         https://bugs.webkit.org/show_bug.cgi?id=153355
497
498         Rubber-stamped by David Kilzer.
499
500         * Scripts/copy-webkitlibraries-to-product-directory:
501
502 2016-01-26  Daniel Bates  <dabates@apple.com>
503
504         WebKitTestRunner: Credential cache is not cleared between tests
505         https://bugs.webkit.org/show_bug.cgi?id=153407
506         <rdar://problem/24280834>
507
508         Reviewed by Alexey Proskuryakov.
509
510         * WebKitTestRunner/TestController.cpp:
511         (WTR::TestController::resetStateToConsistentValues): Call WKContextClearCachedCredentials()
512         to clear cached credentials.
513
514 2016-01-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
515
516         kill-old-processes: allow to specify on the environment of the bot a list of process that should be killed.
517         https://bugs.webkit.org/show_bug.cgi?id=153483
518
519         Reviewed by Csaba Osztrogonác.
520
521         * BuildSlaveSupport/kill-old-processes:
522         (main): Allow to specify extra tasks to kill via the environment variable WEBKITBOT_TASKSTOKILL
523
524 2016-01-25  Simon Fraser  <simon.fraser@apple.com>
525
526         Give the layout test results file a <title> showing the date and time the tests were run
527         https://bugs.webkit.org/show_bug.cgi?id=153187
528
529         Reviewed by Darin Adler.
530         
531         Include a 'date' property in the JSON with the date and time the tests completed.
532
533         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
534         (summarize_results):
535
536 2016-01-25  Commit Queue  <commit-queue@webkit.org>
537
538         Unreviewed, rolling out r195543.
539         https://bugs.webkit.org/show_bug.cgi?id=153451
540
541         regressed performance of test bots by ~6% (Requested by dydz
542         on #webkit).
543
544         Reverted changeset:
545
546         "WebKitTestRunner: Credential cache is not cleared between
547         tests"
548         https://bugs.webkit.org/show_bug.cgi?id=153407
549         http://trac.webkit.org/changeset/195543
550
551 2016-01-25  Aakash Jain  <aakash_jain@apple.com>
552
553         Failing to upload to flakiness dashboard should not be a hard error
554         https://bugs.webkit.org/show_bug.cgi?id=153444
555         <rdar://problem/22146294>
556
557         Reviewed by Alexey Proskuryakov.
558
559         * Scripts/webkitpy/layout_tests/controllers/manager.py:
560         (Manager._upload_json_files): If JSON file is not generated, do not try to upload it.
561
562 2016-01-25  Daniel Bates  <dabates@apple.com>
563
564         WebKitTestRunner: Credential cache is not cleared between tests
565         https://bugs.webkit.org/show_bug.cgi?id=153407
566         <rdar://problem/24280834>
567
568         Reviewed by Brady Eidson.
569
570         * WebKitTestRunner/TestController.cpp:
571         (WTR::TestController::resetStateToConsistentValues): Reset testing network session
572         to clear cached credentials.
573
574 2016-01-24  Dan Bernstein  <mitz@apple.com>
575
576         Added project.xcworkspace and xcuserdata to this project’s svn:ignore.
577
578         * LayoutTestRelay/LayoutTestRelay.xcodeproj: Added property svn:ignore.
579
580 2016-01-22  Enrica Casucci  <enrica@apple.com>
581
582         Unreviewed build fix after http://trac.webkit.org/changeset/195474.
583
584         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
585         (WTR::TestController::platformCreateWebView):
586
587 2016-01-22  Tim Horton  <timothy_horton@apple.com>
588
589         Add a test for iOS arrow-key repeat
590         https://bugs.webkit.org/show_bug.cgi?id=152857
591         <rdar://problem/24017380>
592
593         Reviewed by Darin Adler.
594
595         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
596         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
597         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
598         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
599         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
600         * WebKitTestRunner/ios/HIDEventGenerator.h:
601         * WebKitTestRunner/ios/HIDEventGenerator.mm:
602         (-[HIDEventGenerator keyPress:completionBlock:]):
603         (-[HIDEventGenerator keyDown:completionBlock:]):
604         (-[HIDEventGenerator keyUp:completionBlock:]):
605         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
606         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
607         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
608         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
609         Make it possible to independently send keyUp/keyDown, instead of just paired.
610
611 2016-01-22  Tim Horton  <timothy_horton@apple.com>
612
613         Reproducible "Unhanded web process message 'WebUserContentController:AddUserScripts'" and friends
614         https://bugs.webkit.org/show_bug.cgi?id=153193
615         <rdar://problem/24222034>
616
617         Reviewed by Darin Adler.
618
619         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
620         (webViewForScriptMessageHandlerMultipleHandlerRemovalTest):
621         (TEST):
622         Add a test that exhibits the problems we're fixing here.
623         Before, it would both log and assert in debug, and crash in release.
624         Now it runs happily to completion.
625
626 2016-01-22  Enrica Casucci  <enrica@apple.com>
627
628         Add support for testing data detection.
629         https://bugs.webkit.org/show_bug.cgi?id=153360
630
631         Reviewed by Tim Horton.
632
633         Adding a new testing option (useDataDetection) to turn on
634         data detection when running the a test.
635
636         * WebKitTestRunner/TestController.cpp:
637         (WTR::updateTestOptionsFromTestHeader):
638         * WebKitTestRunner/TestOptions.h:
639         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
640         (WTR::TestController::platformCreateWebView):
641
642 2016-01-21  Simon Fraser  <simon.fraser@apple.com>
643
644         Fix the lldb WebCoreLayoutUnitProvider to not dynamically look up the LayoutUnit denominator
645         https://bugs.webkit.org/show_bug.cgi?id=153334
646
647         Reviewed by Zalan Bujtas.
648         
649         Evaluating expressions in the LayoutUnit summary provider seems to cause
650         re-entrancy problems in lldb python bindings, so just hardcode the LayoutUnit
651         denominator to 64.
652
653         * lldb/lldb_webkit.py:
654         (WebCoreLayoutUnitProvider.to_string):
655
656 2016-01-21  Filip Pizlo  <fpizlo@apple.com>
657
658         display-profiler-output should be able to display code blocks sorted by machine counts
659         https://bugs.webkit.org/show_bug.cgi?id=153298
660
661         Reviewed by Oliver Hunt.
662
663         * Scripts/display-profiler-output:
664
665 2016-01-21  Julien Isorce  <j.isorce@samsung.com>
666
667         Ensure to use compatible liborc version with wanted gstreamer version
668         https://bugs.webkit.org/show_bug.cgi?id=153276
669
670         For example gst-plugins-base-1.4.4 fails to build with liborc-0.4.24.
671         The user may have a very recent liborc installed on his system.
672
673         Reviewed by Philippe Normand.
674
675         * efl/jhbuild.modules: add liborc-0.4.17 and make it a gst dependency.
676         * gtk/jhbuild.modules: add liborc-0.4.17 and make it a gst depencendy.
677
678 2016-01-21  Nan Wang  <n_wang@apple.com>
679
680         AX: [IOS] Implement next/previous text marker functions using TextIterator
681         https://bugs.webkit.org/show_bug.cgi?id=153292
682         <rdar://problem/24268243>
683
684         Reviewed by Chris Fleizach.
685
686         Made text marker tests available on iOS.
687
688         * DumpRenderTree/AccessibilityTextMarker.h:
689         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
690         * DumpRenderTree/ios/AccessibilityTextMarkerIOS.mm: Added.
691         (AccessibilityTextMarker::AccessibilityTextMarker):
692         (AccessibilityTextMarker::~AccessibilityTextMarker):
693         (AccessibilityTextMarker::isEqual):
694         (AccessibilityTextMarker::platformTextMarker):
695         (AccessibilityTextMarkerRange::AccessibilityTextMarkerRange):
696         (AccessibilityTextMarkerRange::~AccessibilityTextMarkerRange):
697         (AccessibilityTextMarkerRange::isEqual):
698         (AccessibilityTextMarkerRange::platformTextMarkerRange):
699         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
700         (AccessibilityUIElement::pathDescription):
701         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
702         (AccessibilityUIElement::textMarkerRangeForElement):
703         (AccessibilityUIElement::selectedTextMarkerRange):
704         (AccessibilityUIElement::resetSelectedTextMarkerRange):
705         (AccessibilityUIElement::textMarkerRangeLength):
706         (AccessibilityUIElement::textMarkerRangeForMarkers):
707         (AccessibilityUIElement::startTextMarkerForTextMarkerRange):
708         (AccessibilityUIElement::endTextMarkerForTextMarkerRange):
709         (AccessibilityUIElement::accessibilityElementForTextMarker):
710         (AccessibilityUIElement::endTextMarkerForBounds):
711         (AccessibilityUIElement::startTextMarkerForBounds):
712         (AccessibilityUIElement::textMarkerForPoint):
713         (AccessibilityUIElement::previousTextMarker):
714         (AccessibilityUIElement::nextTextMarker):
715         (AccessibilityUIElement::stringForTextMarkerRange):
716         (AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
717         (AccessibilityUIElement::indexForTextMarker):
718         (AccessibilityUIElement::isTextMarkerValid):
719         (AccessibilityUIElement::textMarkerForIndex):
720         (AccessibilityUIElement::startTextMarker):
721         (AccessibilityUIElement::endTextMarker):
722         (AccessibilityUIElement::setSelectedVisibleTextRange):
723         (AccessibilityUIElement::getLinkedUIElements):
724         * DumpRenderTree/mac/AccessibilityTextMarkerMac.mm:
725         (AccessibilityTextMarkerRange::platformTextMarkerRange):
726         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
727         (AccessibilityUIElement::removeSelection):
728         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
729         (AccessibilityUIElement::setSelectedVisibleTextRange):
730         (AccessibilityUIElement::supportedActions):
731         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
732         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
733         (WTR::AccessibilityUIElement::textMarkerRangeLength):
734         (WTR::AccessibilityUIElement::previousTextMarker):
735         (WTR::AccessibilityUIElement::nextTextMarker):
736         (WTR::AccessibilityUIElement::stringForTextMarkerRange):
737         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
738         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
739         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
740         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
741         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
742         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
743
744 2016-01-20  Filip Pizlo  <fpizlo@apple.com>
745
746         Unreviewed, revert accidental unreviewed commit.
747
748         * Scripts/display-profiler-output:
749
750 2016-01-20  Jason Marcell  <jmarcell@apple.com>
751
752         Refactor compareIterations to remove duplicate code.
753         https://bugs.webkit.org/show_bug.cgi?id=152913
754
755         Reviewed by Daniel Bates.
756
757         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
758         (BuildbotQueue.prototype.compareIterations): Refactored to remove duplicate code.
759         (BuildbotQueue.prototype.sortIterations): Add binding to call to compareIterations.
760         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests in order to ensure
761         the same behavior before and after refactor.
762
763 2016-01-20  Dana Burkart  <dburkart@apple.com>
764
765         Botwatcher's dashboard should show an 'X' when the build is broken
766         https://bugs.webkit.org/show_bug.cgi?id=152507
767
768         Reviewed by David Kilzer.
769
770         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:
771         (BuildbotStaticAnalyzerQueueView.prototype.appendStaticAnalyzerQueueStatus):
772         (BuildbotStaticAnalyzerQueueView.prototype.update):
773
774 2016-01-19  Jason Marcell  <jmarcell@apple.com>
775
776         Remove assertion from revisionContentForIteration that is causing errors on the dashboard.
777         https://bugs.webkit.org/show_bug.cgi?id=153262
778
779         Reviewed by Alexey Proskuryakov.
780
781         Occasionaly some buildbot iterations will not have their "got_revisions" property populated. In
782         such cases this revisionContentForIteration method does not have any content to return, thus the
783         assertion fails.
784
785         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
786         (BuildbotQueueView.prototype.revisionContentForIteration): Removed assertion that was causing errors.
787
788 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
789
790         [GTK] Runtime critical warnings when loading a URL after a session restore
791         https://bugs.webkit.org/show_bug.cgi?id=153233
792
793         Reviewed by Michael Catanzaro.
794
795         Add new test case.
796
797         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
798         (viewLoadChanged):
799         (testWebKitWebViewNavigationAfterSessionRestore):
800         (beforeAll):
801
802 2016-01-19  Michael Catanzaro  <mcatanzaro@igalia.com>
803
804         [GTK] Remove jhbuild-optional.modules
805         https://bugs.webkit.org/show_bug.cgi?id=152964
806
807         Reviewed by Alex Christensen.
808
809         * gtk/jhbuild-optional.modules: Removed.
810         * gtk/jhbuild.modules:
811
812 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
813
814         [GTK] Add support to load/save session in MiniBrowser
815         https://bugs.webkit.org/show_bug.cgi?id=153201
816
817         Reviewed by Michael Catanzaro.
818
819         It makes it easier to test the new WebView session API.
820
821         * MiniBrowser/gtk/BrowserWindow.c:
822         (browserWindowFinalize): Free the session file path.
823         (browserWindowSaveSession): Save the current WebView session if
824         there's a session file path.
825         (browserWindowDeleteEvent): Call browserWindowSaveSession().
826         (browser_window_load_session): Try to load the session from the
827         given file path, otherwise fall back to homepage and keep the
828         session file to save the session on window close.
829         * MiniBrowser/gtk/BrowserWindow.h:
830         * MiniBrowser/gtk/main.c:
831         (createBrowserWindow): Pass the given session file path when
832         shouldLoadSession is TRUE.
833         (main): Only allow to restore/save session when MiniBrowser is
834         launched without URL arguments.
835
836 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
837
838         Unreviewed. Fix GTK+ test /webkit2/WebKitWebView/geolocation-permission-requests after r195075.
839
840         Geolocation is no longer allowed for unique origins after r195075.
841
842         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
843         (testWebViewGeolocationPermissionRequests):
844
845 2016-01-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
846
847         [GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute '_pa_module_index' when the build is not ready.
848         https://bugs.webkit.org/show_bug.cgi?id=153216
849
850         Reviewed by Michael Catanzaro.
851
852         * Scripts/webkitpy/port/pulseaudio_sanitizer.py:
853         (PulseAudioSanitizer.__init__): initialize _pa_module_index in the constructor.
854
855 2016-01-18  Nan Wang  <n_wang@apple.com>
856
857         AX: [Mac] Implement next/previous text marker functions using TextIterator
858         https://bugs.webkit.org/show_bug.cgi?id=152728
859
860         Reviewed by Chris Fleizach.
861
862         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
863         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
864
865 2016-01-18  Csaba Osztrogonác  <ossy@webkit.org>
866
867         [cmake] Add testair to the build system
868         https://bugs.webkit.org/show_bug.cgi?id=153126
869
870         Reviewed by Michael Catanzaro.
871
872         * Scripts/build-jsc:
873
874 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
875
876         Remove TextRun::allowsRoundingHacks()
877         https://bugs.webkit.org/show_bug.cgi?id=153185
878
879         Reviewed by Simon Fraser.
880
881         * DumpRenderTree/mac/DumpRenderTree.mm:
882         (resetWebViewToConsistentStateBeforeTesting): Deleted.
883
884 2016-01-15  Konstantin Tokarev  <annulen@yandex.ru>
885
886         [webkitdirs] Avoid list form of open because it broke WinCairo
887         https://bugs.webkit.org/show_bug.cgi?id=153106
888
889         Reviewed by Alex Christensen.
890
891         * Scripts/webkitdirs.pm:
892         (determineArchitecture):
893
894 2016-01-15  Simon Fraser  <simon.fraser@apple.com>
895
896         Add kdebug_trace signposts for a few WebCore operations
897         https://bugs.webkit.org/show_bug.cgi?id=153136
898         rdar://problem/24208487
899
900         Reviewed by Sam Weinig.
901         
902         Plist used by kdebug_trace() viewing tools.
903
904         * Tracing/SystemTracePoints.plist: Added.
905
906 2016-01-14  Konstantin Tokarev  <annulen@yandex.ru>
907
908         [webkitdirs] Replaced grep invocation with perl code
909         https://bugs.webkit.org/show_bug.cgi?id=153106
910
911         Reviewed by Alex Christensen.
912
913         * Scripts/webkitdirs.pm:
914         (determineArchitecture):
915
916 2016-01-14  Brian Burg  <bburg@apple.com>
917
918         prepare-changelog does not read paths containing spaces properly
919         https://bugs.webkit.org/show_bug.cgi?id=137982
920
921         Reviewed by Joseph Pecoraro.
922
923         Escape whitespace in filenames before passing the file path to other functions.
924
925         * Scripts/prepare-ChangeLog:
926         (generateFunctionLists): Use the more explicit 3-argument form of 'open'.
927
928 2016-01-14  Jason Marcell  <jmarcell@apple.com>
929
930         Standardize the usage of "branch" vs. "branchName".
931         https://bugs.webkit.org/show_bug.cgi?id=152982
932
933         Reviewed by Daniel Bates.
934
935         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
936         "branchName" implies that the variable or property in question is simply a string.
937
938         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
939         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branch to branchName.
940         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Change branch to branch.name.
941         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Change branch to branchName.
942         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
943         (Trac.prototype.commitsOnBranch): Change branch to branchName.
944         (Trac.prototype._convertCommitInfoElementToObject): Ditto.
945         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
946         (MockTrac): Ditto.
947
948 2016-01-14  Jason Marcell  <jmarcell@apple.com>
949
950         Add a unit test to test BuildbotQueueView._appendPendingRevisionCount.
951         https://bugs.webkit.org/show_bug.cgi?id=152910
952
953         Reviewed by Daniel Bates.
954
955         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js: Added.
956         (MockBuildbotQueue): Added. Mock BuildbotQueue object that doesn't need to talk to an actual Buildbot server.
957         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js: Added.
958         (MockBuildbotQueueView): Added. Mock BuildbotQueueView object that returns a pre-specified _latestProductiveIteration without
959         the need to talk to a real Buildbot server.
960         (MockBuildbotQueueView.prototype._latestProductiveIteration): Added. Returns a pre-specified _latestProductiveIteration
961         without the need to talk to a real Buildbot server.
962         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js: Added.
963         (MockTrac): Added. Mock Trac constructor that has pre-populated "recordedCommits" and does not need to talk to a real Trac
964         server.
965         (MockTrac.prototype.get oldestRecordedRevisionNumber): Added. Returns a pre-specified revision.
966         (MockTrac.prototype.get latestRecordedRevisionNumber): Ditto.
967         (MockTrac.prototype.loadMoreHistoricalData): Added. Overrides the real loadMoreHistoricalData so that we don't waste time
968         trying to talk to Trac.
969         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html: Added. Web page container for
970         QUnit unit tests.
971         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added. QUnit unit tests.
972
973 2016-01-14  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
974
975         [CMake][GTK] CMake Error: Could not create named generator Eclipse CDT4 - Ninja
976         https://bugs.webkit.org/show_bug.cgi?id=132599
977
978         Reviewed by Michael Catanzaro.
979
980         Check if cmake Ninja generators are installed.
981
982         * Scripts/webkitdirs.pm:
983         (canUseNinjaGenerator):
984         (canUseEclipseNinjaGenerator):
985         (generateBuildSystemFromCMakeProject):
986         (canUseEclipse): Deleted.
987
988 2016-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
989
990         [Cocoa] Testing with font family name "System Font" is unused
991         https://bugs.webkit.org/show_bug.cgi?id=153073
992         <rdar://problem/24091683>
993
994         Reviewed by Brent Fulgham.
995
996         * DumpRenderTree/mac/DumpRenderTree.mm:
997         (allowedFontFamilySet): Deleted.
998         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
999         (WTR::allowedFontFamilySet): Deleted.
1000         * WebKitTestRunner/mac/TestControllerMac.mm:
1001         (WTR::allowedFontFamilySet): Deleted.
1002
1003 2016-01-13  Daniel Bates  <dabates@apple.com>
1004
1005         [XSS Auditor] Add test when XSS payload is in the path portion of the URL
1006         https://bugs.webkit.org/show_bug.cgi?id=152871
1007
1008         Reviewed by Brent Fulgham.
1009
1010         Merged from Blink (patch by Tom Sepez <tsepez@chromium.org>):
1011         <https://src.chromium.org/viewvc/blink?revision=164746&view=revision>
1012
1013         * Scripts/webkitpy/layout_tests/servers/lighttpd.conf:
1014
1015 2016-01-08  Andy Estes  <aestes@apple.com>
1016
1017         [Content Filtering] Lazily load platform frameworks
1018         https://bugs.webkit.org/show_bug.cgi?id=152881
1019         rdar://problem/23270886
1020
1021         Reviewed by Brady Eidson.
1022
1023         Added an API test that verifies that the Parental Controls and Network Extension frameworks are loaded at the
1024         expected times. The test verifies that they are not loaded after creating a WKWebView, loading an HTML string,
1025         loading NSData, loading a file, or loading from a custom protocol. It verifies that Network Extension on Mac/iOS
1026         and Parental Controls on iOS are loaded after an HTTP request. It finally verifies that Parental Controls on Mac
1027         is loaded after an HTTPS request.
1028
1029         To accomplish this, TestProtocol was generalized to allow tests to specify the scheme they wish to use.
1030         Other tests that used TestProtocol were updated to account for this change. TestProtocol was removed from
1031         WebKit2.PreventImageLoadWithAutoResizingTest, which didn't actually need to use it. ContentFiltering tests were
1032         also re-enabled on iOS after mistakenly being disabled by r188892.
1033
1034         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1035         * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm:
1036         (TestWebKitAPI::TEST):
1037         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.h: Added.
1038         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.html: Added.
1039         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:
1040         (TEST):
1041         (downloadTest):
1042         (-[LazilyLoadPlatformFrameworksController init]):
1043         (-[LazilyLoadPlatformFrameworksController webView]):
1044         (-[LazilyLoadPlatformFrameworksController expectParentalControlsLoaded:networkExtensionLoaded:]):
1045         (-[LazilyLoadPlatformFrameworksController webView:didFinishNavigation:]):
1046         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm:
1047         (-[ContentFilteringPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1048         (-[ContentFilteringPlugIn observeValueForKeyPath:ofObject:change:context:]):
1049         (-[ContentFilteringPlugIn checkIfPlatformFrameworksAreLoaded:]):
1050         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
1051         (TestWebKitAPI::TEST):
1052         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
1053         (TestWebKitAPI::TEST): Deleted.
1054         * TestWebKitAPI/cocoa/TestProtocol.h:
1055         * TestWebKitAPI/cocoa/TestProtocol.mm:
1056         (+[TestProtocol registerWithScheme:]):
1057         (+[TestProtocol unregister]):
1058
1059 2016-01-12  Dewei Zhu  <dewei_zhu@apple.com>
1060
1061         Fix the Sunpider converage in slow device.
1062         https://bugs.webkit.org/show_bug.cgi?id=152938
1063         <rdar://problem/22511411>
1064
1065         Reviewed by Ryosuke Niwa.
1066
1067         Updated the patch for RunBenchmark to resume sunspider coverage by removing unused subresources in sub-tests.
1068
1069         * Scripts/webkitpy/benchmark_runner/data/patches/SunSpider.patch:
1070
1071 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1072
1073         Add a build flag for custom element
1074         https://bugs.webkit.org/show_bug.cgi?id=153005
1075
1076         Reviewed by Alex Christensen.
1077
1078         Added --custom-elements option to enable custom elements support.
1079
1080         * Scripts/webkitperl/FeatureList.pm:
1081
1082 2016-01-12  Benjamin Poulain  <bpoulain@apple.com>
1083
1084         [JSC] Add a help message when run-jsc-stress-tests fails
1085         https://bugs.webkit.org/show_bug.cgi?id=153014
1086
1087         Reviewed by Csaba Osztrogonác.
1088
1089         * Scripts/run-jsc-stress-tests:
1090
1091 2016-01-11  Saam barati  <sbarati@apple.com>
1092
1093         run-jsc-stress-tests should try to figure out a JSC path
1094         https://bugs.webkit.org/show_bug.cgi?id=152971
1095
1096         Reviewed by Yusuke Suzuki.
1097
1098         This patch now allows run-jsc-stress-tests to be run
1099         without a "--jsc <jsc-path>" argument. It tries
1100         to take its best guess at a <jsc-path> automagically.
1101         
1102         This makes it much easier to just run run-jsc-stress-tests
1103         with a directory or a yaml file as an argument.
1104         You now just do this:
1105         `run-jsc-stress-tests <path-to-yaml>`
1106         or
1107         `run-jsc-stress-tests <path-to-directory-of-js-files>`
1108         
1109         I wrote this patch because I'd often find myself hacking the 
1110         run-javascriptcore-tests file just to run a particular subset of tests.
1111         Because I always forget the arguments to run-jsc-stress-tests (which means
1112         I always forgot to provide a --jsc argument), I always found it easier to 
1113         just hack on that file instead of calling run-jsc-stress-tests directly.
1114         No longer is this true!
1115
1116         * Scripts/run-jsc-stress-tests:
1117
1118 2016-01-09  Andy Estes  <aestes@apple.com>
1119
1120         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
1121         https://bugs.webkit.org/show_bug.cgi?id=152950
1122         rdar://problem/24066652
1123
1124         Reviewed by Tim Horton.
1125
1126         Added an API test.
1127
1128         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1129         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
1130         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
1131         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
1132         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
1133         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
1134         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
1135         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
1136         (TEST):
1137
1138 2016-01-11  Commit Queue  <commit-queue@webkit.org>
1139
1140         Unreviewed, rolling out r194866.
1141         https://bugs.webkit.org/show_bug.cgi?id=152986
1142
1143         This change broke the mac build (Requested by ryanhaddad on
1144         #webkit).
1145
1146         Reverted changeset:
1147
1148         "[Cocoa] Add SPI to opt out a URL scheme from the memory
1149         cache"
1150         https://bugs.webkit.org/show_bug.cgi?id=152950
1151         http://trac.webkit.org/changeset/194866
1152
1153 2016-01-11  Andy Estes  <aestes@apple.com>
1154
1155         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
1156         https://bugs.webkit.org/show_bug.cgi?id=152950
1157         rdar://problem/24066652
1158
1159         Reviewed by Tim Horton.
1160
1161         Added an API test.
1162
1163         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1164         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
1165         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
1166         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
1167         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
1168         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
1169         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
1170         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
1171         (TEST):
1172
1173 2016-01-11  Konstantin Tokarev  <annulen@yandex.ru>
1174
1175         [webkitdirs] Use CMake to determine architecture on isCMakeBuild()
1176         https://bugs.webkit.org/show_bug.cgi?id=152959
1177
1178         Reviewed by Brent Fulgham.
1179
1180         * Scripts/webkitdirs.pm:
1181         (determineArchitecture):
1182
1183 2016-01-11  Michael Catanzaro  <mcatanzaro@igalia.com>
1184
1185         [GTK] W3C CSS2.1 anonymous table tests are failing
1186         https://bugs.webkit.org/show_bug.cgi?id=152455
1187
1188         Reviewed by Mario Sanchez Prada.
1189
1190         Add shared-mime-info to the jhbuild environment, since it affects the results of layout
1191         tests. Add upstream patches to fix detection of XHTML files.
1192
1193         * gtk/jhbuild.modules:
1194         * gtk/patches/shared-mime-info-xht-glob.patch: Added.
1195         * gtk/patches/shared-mime-info-xhtml-magic.patch: Added.
1196
1197 2016-01-10  Saam barati  <sbarati@apple.com>
1198
1199         Implement a sampling profiler
1200         https://bugs.webkit.org/show_bug.cgi?id=151713
1201
1202         Reviewed by Filip Pizlo.
1203
1204         * Scripts/run-jsc-stress-tests:
1205
1206 2016-01-10  Konstantin Tokarev  <annulen@yandex.ru>
1207
1208         [webkitdirs] Try arch and uname commands on non-windows OS
1209         https://bugs.webkit.org/show_bug.cgi?id=152958
1210
1211         Reviewed by Michael Catanzaro.
1212
1213         Right now, determineArchitecture()  uses `arch` and `uname -m`
1214         commands to determine architecture in case of condition (isGtk() ||
1215         isAppleMacWebKit() || isEfl()) is true. This should be !anyWindows()
1216         instead, because this code is applicable to any non-windows OS WebKit
1217         supports (even Haiku which once was supported is moderately
1218         POSIX-compliant and has uname command).
1219
1220         * Scripts/webkitdirs.pm:
1221         (determineArchitecture):
1222
1223 2016-01-08  Aakash Jain  <aakash_jain@apple.com>
1224
1225         run-webkit-tests mis-counts totals when there are other crashes
1226         https://bugs.webkit.org/show_bug.cgi?id=152894
1227         <rdar://problem/24098697>
1228
1229         Reviewed by Alexey Proskuryakov.
1230
1231         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
1232         (TestRunResults.add): Do not update result counters for other crashes.
1233
1234 2016-01-08  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1235
1236         webkit-patch build-and-test should have an option to iterate over new tests
1237         https://bugs.webkit.org/show_bug.cgi?id=143093
1238
1239         Reviewed by Michael Catanzaro.
1240
1241         This patch introduces the --iterate-on-new-tests option to webkit-patch build-and-test.
1242         It allows running run-webkit-tests on modified or new paths in LayoutTests.
1243         Computation of new or modified tests is done by LayoutTestFinder.find_touched_tests
1244         It implements the translation of -expected.* paths to their related tests.
1245         It also implements the removal of skipped tests.
1246
1247         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py:
1248         (LayoutTestFinder.find_touched_tests):
1249         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py: Added.
1250         (MockPort):
1251         (MockPort.__init__):
1252         (MockPort.tests):
1253         (LayoutTestFinderTests):
1254         (LayoutTestFinderTests.touched_files):
1255         (LayoutTestFinderTests.test_touched_test):
1256         (LayoutTestFinderTests.test_expected_touched_test):
1257         (LayoutTestFinderTests.test_platform_expected_touched_test):
1258         (LayoutTestFinderTests.test_platform_duplicate_touched_test):
1259         (LayoutTestFinderTests.test_touched_but_skipped_test):
1260         * Scripts/webkitpy/port/base.py:
1261         (Port.potential_test_names_from_expected_file):
1262         * Scripts/webkitpy/tool/commands/download_unittest.py:
1263         (DownloadCommandsTest._default_options):
1264         * Scripts/webkitpy/tool/steps/options.py:
1265         (Options):
1266         * Scripts/webkitpy/tool/steps/runtests.py:
1267         (RunTests.options):
1268         (RunTests.run):
1269         (RunTests):
1270         (RunTests._new_or_modified_tests):
1271         (RunTests._run_webkit_tests):
1272         * Scripts/webkitpy/tool/steps/runtests_unittest.py:
1273         (RunTestsTest.test_webkit_run_unit_tests):
1274         * Scripts/webkitpy/tool/steps/steps_unittest.py:
1275         (StepsTest._step_options):
1276
1277 2016-01-07  Joseph Pecoraro  <pecoraro@apple.com>
1278
1279         prepare-ChangeLog should include radar number
1280         https://bugs.webkit.org/show_bug.cgi?id=152839
1281         <rdar://problem/24093563>
1282
1283         Reviewed by Daniel Bates.
1284
1285         When running `prepare-ChangeLog -b ###`, check for a bugzilla comment that
1286         starts with a "<rdar://problem/####>" URL. If found, include that radar URL
1287         in the ChangeLog description after the bug URL.
1288
1289         * Scripts/prepare-ChangeLog:
1290         (main): Update signatures.
1291         (fetchBugXMLData): XML Data is now used for multiple reasons. Extract this to just get the data.
1292         (fetchBugDescriptionFromBugXMLData): Search data for <short_desc>.
1293         (fetchRadarURLFromBugXMLData): Search comment text for radar URL.
1294         (generateNewChangeLogs): Include radar URL if we found one.
1295
1296         * Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl: Added.
1297         Tests for the radar URL extraction.
1298
1299 2016-01-07  Alexey Proskuryakov  <ap@apple.com>
1300
1301         testRunner.runUIScript crashes while running multiple tests in a row that invokes the same UIScript
1302         https://bugs.webkit.org/show_bug.cgi?id=152390
1303         <rdar://problem/23948321>
1304
1305         Reviewed by Simon Fraser.
1306
1307         Fix two use-after-frees.
1308
1309         1. WKPageCallAfterNextPresentationUpdate's callback has a pointer to TestInvocation,
1310         but we may have already progressed to another test by the time the callback fires,
1311         having destroyed the TestInvocation.
1312         2. UIScriptController is a RefCounted object, but it has a raw pointer to
1313         UIScriptContext which has the same lifetime as a TestInvocation.
1314         As a result, completion blocks of UIScriptController actions would use a destroyed
1315         TestInvocation.
1316
1317         * WebKitTestRunner/TestInvocation.cpp:
1318         (WTR::TestInvocation::~TestInvocation):
1319         (WTR::TestInvocation::url):
1320         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1321         (WTR::TestInvocation::runUISideScriptAfterUpdateCallback):
1322         (WTR::TestInvocation::runUISideScript):
1323         * WebKitTestRunner/TestInvocation.h:
1324         * WebKitTestRunner/UIScriptContext/UIScriptContext.cpp:
1325         (UIScriptContext::UIScriptContext):
1326         (UIScriptContext::~UIScriptContext):
1327         (UIScriptContext::runUIScript):
1328         * WebKitTestRunner/UIScriptContext/UIScriptContext.h:
1329         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1330         (WTR::UIScriptController::UIScriptController):
1331         (WTR::UIScriptController::contextDestroyed):
1332         (WTR::UIScriptController::makeWindowObject):
1333         (WTR::UIScriptController::setWillBeginZoomingCallback):
1334         (WTR::UIScriptController::willBeginZoomingCallback):
1335         (WTR::UIScriptController::setDidEndZoomingCallback):
1336         (WTR::UIScriptController::didEndZoomingCallback):
1337         (WTR::UIScriptController::setDidEndScrollingCallback):
1338         (WTR::UIScriptController::didEndScrollingCallback):
1339         (WTR::UIScriptController::setDidShowKeyboardCallback):
1340         (WTR::UIScriptController::didShowKeyboardCallback):
1341         (WTR::UIScriptController::setDidHideKeyboardCallback):
1342         (WTR::UIScriptController::didHideKeyboardCallback):
1343         (WTR::UIScriptController::uiScriptComplete):
1344         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1345         (WTR::UIScriptController::create):
1346         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1347         (WTR::UIScriptController::doAsyncTask):
1348         (WTR::UIScriptController::zoomToScale):
1349         (WTR::UIScriptController::singleTapAtPoint):
1350         (WTR::UIScriptController::doubleTapAtPoint):
1351         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
1352         (WTR::UIScriptController::contentVisibleRect):
1353         (WTR::UIScriptController::platformSetWillBeginZoomingCallback):
1354         (WTR::UIScriptController::platformSetDidEndZoomingCallback):
1355         (WTR::UIScriptController::platformSetDidShowKeyboardCallback):
1356         (WTR::UIScriptController::platformSetDidHideKeyboardCallback):
1357         (WTR::UIScriptController::platformSetDidEndScrollingCallback):
1358         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1359         (WTR::UIScriptController::doAsyncTask):
1360
1361 2016-01-07  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1362
1363         [buildbot] clean-build script should remove untracked files and revert local changes too
1364         https://bugs.webkit.org/show_bug.cgi?id=142400
1365
1366         Reviewed by Ryosuke Niwa.
1367
1368         This patch cleans the WebKit folder by reverting tracked files changes and deleting SCM untracked files, including SCM ignored files.
1369         A helper routine SCM.discard_untracked_files is added for that purpose.
1370
1371         * BuildSlaveSupport/clean-build:
1372         (main): Making call to Scripts/clean-webkit
1373         * Scripts/clean-webkit: Added.
1374         (main): Revert changes and delete untracked files.
1375         * Scripts/webkitpy/common/checkout/scm/scm.py:
1376         (SCM.discard_untracked_files): Helper function to discard untracked files or folders found by SCM.
1377         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1378         (SCMTest._shared_test_discard_untracked_files):
1379         (test_discard_untracked_files): Tests that untracked file and untracked folder get discarded correctly.
1380
1381 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1382
1383         Add a setting and preferences to enable display-list drawing. Does nothing yet.
1384         https://bugs.webkit.org/show_bug.cgi?id=152807
1385
1386         Reviewed by Zalan Bujtas.
1387         
1388         Add an item to the Settings menu to toggle display-list drawing.
1389
1390         * MiniBrowser/mac/SettingsController.h:
1391         * MiniBrowser/mac/SettingsController.m:
1392         (-[SettingsController _populateMenu]):
1393         (-[SettingsController validateMenuItem:]):
1394         (-[SettingsController toggleDisplayListDrawingEnabled:]):
1395         (-[SettingsController displayListDrawingEnabled]):
1396         * MiniBrowser/mac/WK2BrowserWindowController.m:
1397         (-[WK2BrowserWindowController didChangeSettings]):
1398
1399 2016-01-06  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1400
1401         Python SCM should be able to retrieve untracked files - Add GIT support
1402         https://bugs.webkit.org/show_bug.cgi?id=143135
1403
1404         Reviewed by Michael Catanzaro.
1405
1406         * Scripts/webkitpy/common/checkout/scm/git.py:
1407         (Git.untracked_files): Adding support for git.
1408         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1409         (GitTest.setUp):
1410         (GitTest.test_untracked_files): Adding test.
1411
1412 2016-01-05  Mark Lam  <mark.lam@apple.com>
1413
1414         Rename badly named JSC_timeout env var to JSCTEST_timeout.
1415         https://bugs.webkit.org/show_bug.cgi?id=152748
1416
1417         Reviewed by Geoffrey Garen.
1418
1419         Now that we validate JSC options, the badly named JSC_timeout env var causes the
1420         bots to have a bad time.
1421
1422         * Scripts/run-javascriptcore-tests:
1423         * Scripts/run-jsc-stress-tests:
1424
1425 2016-01-04  Carlos Garcia Campos  <cgarcia@igalia.com>
1426
1427         [GTK] Allow to save and restore session
1428         https://bugs.webkit.org/show_bug.cgi?id=115600
1429
1430         Reviewed by Michael Catanzaro.
1431
1432         Add test case to check the new session API.
1433
1434         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
1435         (testWebKitWebViewSessionState):
1436         (testWebKitWebViewSessionStateWithFormData):
1437         (beforeAll):
1438
1439 2016-01-04  Csaba Osztrogonác  <ossy@webkit.org>
1440
1441         [EFL] Bump EFL version to 1.16.1
1442         https://bugs.webkit.org/show_bug.cgi?id=152688
1443
1444         Reviewed by Gyuyoung Kim.
1445
1446         * efl/jhbuild.modules:
1447
1448 2016-01-04  Aakash Jain  <aakash_jain@apple.com>
1449
1450         error running layout tests on iOS simulator on latest build
1451         https://bugs.webkit.org/show_bug.cgi?id=152719
1452         <rdar://problem/24009549>
1453
1454         Reviewed by Alexey Proskuryakov.
1455
1456         * Scripts/webkitpy/xcode/simulator.py:
1457         (Simulator.wait_until_device_is_booted): Ensure that simulator device is in booted state
1458           before running simctl spawn command.
1459
1460 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
1461
1462         Unreviewed, move Frédéric Wang to committers list
1463
1464         He seems to be on the contributors list by accident. He has been landing his own commits for
1465         about two years now.
1466
1467         * Scripts/webkitpy/common/config/contributors.json:
1468
1469 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
1470
1471         Unreviewed, move Sebastian Dröge to committers list harder
1472
1473         He accidentally added himself to the reviewers list because the file is confusing. Then I
1474         accidentially moved him to the contributors list because the file is confusing, even though
1475         I knew the contributors list existed in this file and was attempting to add him to the
1476         committers list. Really move him to the committers list now.
1477
1478         * Scripts/webkitpy/common/config/contributors.json:
1479
1480 2016-01-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1481
1482         Python SCM should be able to retrieve untracked files - Add SVN support
1483         https://bugs.webkit.org/show_bug.cgi?id=152546
1484
1485         Reviewed by Michael Catanzaro.
1486
1487         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1488         (test_untracked_files): Activating test for SVN.
1489         * Scripts/webkitpy/common/checkout/scm/svn.py:
1490         (SVN.untracked_files): Implementing untracked files retrieval for SVN.
1491
1492 2015-12-31  Andy Estes  <aestes@apple.com>
1493
1494         Replace WTF::move with WTFMove
1495         https://bugs.webkit.org/show_bug.cgi?id=152601
1496
1497         Reviewed by Brady Eidson.
1498
1499         * DumpRenderTree/TestRunner.h:
1500         (TestRunner::setAllowedHosts):
1501         * DumpRenderTree/win/DRTDataObject.cpp:
1502         (DRTDataObject::SetData):
1503         * TestWebKitAPI/Tests/WTF/Deque.cpp:
1504         (TestWebKitAPI::TEST):
1505         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
1506         (TestWebKitAPI::TEST):
1507         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
1508         (TestWebKitAPI::TEST):
1509         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
1510         (TestWebKitAPI::TEST):
1511         * TestWebKitAPI/Tests/WTF/Ref.cpp:
1512         (TestWebKitAPI::passWithRef):
1513         (TestWebKitAPI::TEST):
1514         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
1515         (TestWebKitAPI::TEST):
1516         * TestWebKitAPI/Tests/WTF/Vector.cpp:
1517         (TestWebKitAPI::TEST):
1518         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
1519         (TestWebKitAPI::TEST):
1520         * TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm:
1521         (TestWebKitAPI::TEST):
1522         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
1523         (TestWebKitAPI::createTestValue):
1524         (TestWebKitAPI::TEST):
1525         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
1526         (TestWebKitAPI::InMemoryCompiledContentExtension::createFromFilter):
1527         (TestWebKitAPI::InMemoryCompiledContentExtension::create):
1528         (TestWebKitAPI::InMemoryCompiledContentExtension::InMemoryCompiledContentExtension):
1529         (TestWebKitAPI::createNFAs):
1530         (TestWebKitAPI::TEST_F):
1531         * TestWebKitAPI/Tests/WebCore/DFACombiner.cpp:
1532         (TestWebKitAPI::combine):
1533         * TestWebKitAPI/Tests/WebCore/DFAHelpers.h:
1534         (TestWebKitAPI::createNFAs):
1535         * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm:
1536         (TEST):
1537         * TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.cpp:
1538         (WebProcessTest::add):
1539
1540 2016-01-01  Michael Catanzaro  <mcatanzaro@igalia.com>
1541
1542         [SOUP] REGRESSION(r192761): Broke resource URIs for applications that use g_resource_load in a web extension
1543         https://bugs.webkit.org/show_bug.cgi?id=152634
1544
1545         Reviewed by Carlos Garcia Campos.
1546
1547         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
1548         (testLoadFromGResource): Added test.
1549         (beforeAll):
1550         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
1551         (registerGResource): Added.
1552         (webkit_web_extension_initialize_with_user_data): Load the test gresource.
1553         * TestWebKitAPI/Tests/WebKit2Gtk/resources/boring.html: Added.
1554         * TestWebKitAPI/Tests/WebKit2Gtk/resources/webkit2gtk-tests.gresource.xml: Add an HTML file.
1555
1556 2015-12-31  David Kilzer  <ddkilzer@apple.com>
1557
1558         REGRESSION (r194470): Fix warnings uncovered by migrating to WTF_MOVE
1559         <https://bugs.webkit.org/show_bug.cgi?id=152601>
1560
1561         Ignore unknown pragmas on older clangs.  Fixes the following
1562         build failure:
1563
1564             Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp:184:34: error: unknown warning group '-Wself-move', ignored [-Werror,-Wunknown-pragmas]
1565             #pragma clang diagnostic ignored "-Wself-move"
1566                                              ^
1567             1 error generated.
1568
1569         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
1570         (TestWebKitAPI::TEST):
1571         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
1572         (TestWebKitAPI::TEST):
1573
1574 2015-12-31  Andy Estes  <aestes@apple.com>
1575
1576         Update the style checker to advise using WTFMove() instead of WTF::move()
1577         https://bugs.webkit.org/show_bug.cgi?id=152601
1578
1579         Reviewed by Daniel Bates.
1580
1581         * Scripts/webkitpy/style/checkers/cpp.py:
1582         (check_wtf_move):
1583         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
1584         (WebKitStyleTest.test_wtf_move):
1585
1586 2015-12-31  Andy Estes  <aestes@apple.com>
1587
1588         Fix warnings uncovered by migrating to WTF_MOVE
1589         https://bugs.webkit.org/show_bug.cgi?id=152601
1590
1591         Reviewed by Daniel Bates.
1592
1593         Ignored -Wself-move warnings in these two API tests. It's useful to test that these classes properly handle
1594         self-move, even if doing so would trigger a warning.
1595
1596         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
1597         (TestWebKitAPI::TEST):
1598         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
1599         (TestWebKitAPI::TEST):
1600
1601 2015-12-31  Martin Robinson  <mrobinson@igalia.com>
1602
1603         [GTK] The install-dependencies script has a syntax error
1604         https://bugs.webkit.org/show_bug.cgi?id=152613
1605
1606         Reviewed by Michael Catanzaro.
1607
1608         * gtk/install-dependencies: Add the missing 'then.'
1609
1610 2015-12-30  Philippe Normand  <pnormand@igalia.com>
1611
1612         [Mac][GTK] Jhbuild support for OSX
1613         https://bugs.webkit.org/show_bug.cgi?id=150799
1614
1615         Reviewed by Michael Catanzaro.
1616
1617         * gtk/install-dependencies: Install dependencies on OSX with Homebrew.
1618         * gtk/jhbuild.modules: Moved platform-specific build settings in condition tags.
1619         * gtk/patches/foxbntconfig-fix-osx-cache.diff: Added.
1620         * gtk/jhbuildrc: GTK+ makeargs clean-up, the 3.0.12 hack is no longer needed.
1621
1622 2015-12-28  Michael Catanzaro  <mcatanzaro@igalia.com>
1623
1624         Unreviewed, move Sebastian Dröge to committers list
1625
1626         He accidentally added himself to the reviewers list because the file is confusing.
1627
1628         * Scripts/webkitpy/common/config/contributors.json:
1629
1630 2015-12-24  Simon Fraser  <simon.fraser@apple.com>
1631
1632         Remove the unused #define _USE_MATH_DEFINES
1633         https://bugs.webkit.org/show_bug.cgi?id=152034
1634
1635         Reviewed by Tim Horton.
1636         
1637         Update this test to use piDouble from MathExtras.h, and
1638         std::numeric_limits<>.
1639
1640         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
1641
1642 2015-12-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1643
1644         Python SCM should be able to retrieve untracked files - Generic changes
1645         https://bugs.webkit.org/show_bug.cgi?id=152536
1646
1647         Reviewed by Brent Fulgham.
1648
1649         This patch introduces SCM.untracked_files to retrieve a list of untracked files.
1650         No support is yet added to GIT and SVN specific implementations.
1651
1652         * Scripts/webkitpy/common/checkout/scm/scm.py:
1653         (SCM.untracked_files):
1654         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1655         (SCMTest._shared_test_untracked_files):
1656
1657 2015-12-23  Dewei Zhu  <dewei_zhu@apple.com>
1658
1659         SVN checkout used by RunBenchmark should be non-interactive
1660         https://bugs.webkit.org/show_bug.cgi?id=152542
1661
1662         Reviewed by Ryosuke Niwa.
1663
1664         RunBenchmark should not require user interaction while running.
1665
1666         * Scripts/webkitpy/benchmark_runner/benchmark_builder.py:
1667         (BenchmarkBuilder._checkout_with_subversion):
1668
1669 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
1670
1671         Web Inspector: add support for running protocol-test.js tests on Windows
1672         https://bugs.webkit.org/show_bug.cgi?id=148037
1673         <rdar://problem/22292237>
1674
1675         Reviewed by Simon Fraser.
1676
1677         * DumpRenderTree/win/TestRunnerWin.cpp:
1678         (TestRunner::inspectorTestStubURL): Provide implementation.
1679
1680 2015-12-23  Eric Carlson  <eric.carlson@apple.com>
1681
1682         [MediaStream] MediaDeviceInfo.label must be empty in some situations
1683         https://bugs.webkit.org/show_bug.cgi?id=152000
1684
1685         Reviewed by Brent Fulgham.
1686
1687         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1688         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1689         (WTR::InjectedBundle::setUserMediaPermission):
1690         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): New.
1691         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1692
1693         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1694         (WTR::TestRunner::setUserMediaPermissionForOrigin): New.
1695         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1696
1697         * WebKitTestRunner/TestController.cpp:
1698         (WTR::TestController::setUserMediaPermissionForOrigin):
1699         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Add NULL check.
1700         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Don't add 
1701           persistent permission for origin, that can be done from script now.
1702         * WebKitTestRunner/TestController.h:
1703
1704         * WebKitTestRunner/TestInvocation.cpp:
1705         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Add support for
1706           SetUserMediaPermissionForOrigin.
1707
1708 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
1709
1710         [Win] Unreviewed build fix: Recognize Windows 10 variants.
1711
1712         * Scripts/webkitpy/common/system/platforminfo.py:
1713         (PlatformInfo._determine_win_version):
1714
1715 2015-12-23  Chris Aljoudi <chris@chrismatic.io> and Alex Christensen <achristensen@webkit.org>
1716
1717         Content blockers should be able to promote http to https
1718         https://bugs.webkit.org/show_bug.cgi?id=148966
1719
1720         Reviewed by Benjamin Poulain.
1721
1722         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
1723         (WebCore::ContentExtensions::operator<<):
1724         (TestWebKitAPI::TEST_F):
1725
1726 2015-12-22  Hunseop Jeong  <hs85.jeong@samsung.com>
1727
1728         [EFL] MiniBrowser should be able to choose the offline-web-application-cache option
1729         https://bugs.webkit.org/show_bug.cgi?id=152516
1730
1731         Reviewed by Gyuyoung Kim.
1732
1733         * MiniBrowser/efl/main.c:
1734
1735 2015-12-22  Brent Fulgham  <bfulgham@apple.com>
1736
1737         Unreviewed: Add John Wilander as a contributor.
1738
1739         * Scripts/webkitpy/common/config/contributors.json:
1740
1741 2015-12-22  Chris Fleizach  <cfleizach@apple.com>
1742
1743         [WK2] Looping in testcase: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
1744         https://bugs.webkit.org/show_bug.cgi?id=152482
1745
1746         Reviewed by Brent Fulgham.
1747
1748         vertical/horizontalScrollbar returns an accessibility element. That element can also be queried
1749         for the same property. On WK2, the element returned will not be valid, but is still present and
1750         that can lead to looping.
1751
1752         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
1753         (AccessibilityUIElement::horizontalScrollbar):
1754         (AccessibilityUIElement::verticalScrollbar):
1755         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
1756         (WTR::AccessibilityUIElement::horizontalScrollbar):
1757         (WTR::AccessibilityUIElement::verticalScrollbar):
1758
1759 2015-12-22  Xabier Rodriguez Calvar  <calvaris@igalia.com>
1760
1761         Unreviewed.
1762
1763         * Scripts/webkitpy/common/config/contributors.json: Marking myself as reviewer.
1764
1765 2015-12-21  Hunseop Jeong  <hs85.jeong@samsung.com>
1766
1767         [EFL] test_ewk2_context failed after r192808
1768         https://bugs.webkit.org/show_bug.cgi?id=151846
1769
1770         Reviewed by Gyuyoung Kim.
1771
1772         Used the added ewk_context_web_process_count_limit_set api
1773         instead of the deprecated ewk_context_process_model_set.
1774
1775         * MiniBrowser/efl/main.c:
1776         (elm_main):
1777
1778 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
1779
1780         Unreviewed, move myself to reviewer list.
1781
1782         * Scripts/webkitpy/common/config/contributors.json:
1783
1784 2015-12-21  Aakash Jain  <aakash_jain@apple.com>
1785
1786         Unreviewed, add myself to the committers list.
1787
1788         * Scripts/webkitpy/common/config/contributors.json:
1789
1790 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
1791
1792         [GTK] jquery.min.js violates DFSG
1793         https://bugs.webkit.org/show_bug.cgi?id=152428
1794
1795         Reviewed by Joseph Pecoraro.
1796
1797         Stop distributing Source/WebInspectorUI/Tools. It is not needed in tarballs. This brings us
1798         into compliance with DFSG by removing a bundled, minified copy of jQuery from our tarball.
1799
1800         * gtk/manifest.txt.in:
1801
1802 2015-12-19  Dan Bernstein  <mitz@apple.com>
1803
1804         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
1805         https://bugs.webkit.org/show_bug.cgi?id=152462
1806
1807         Reviewed by Alexey Proskuryakov.
1808
1809         - Removed definitions of MACOSX_DEPLOYMENT_TARGET and WEBKIT_SYSTEM_INTERFACE_LIBRARY for
1810           OS X 10.9:
1811
1812         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1813         * LayoutTestRelay/Configurations/DebugRelease.xcconfig:
1814         * MiniBrowser/Configurations/DebugRelease.xcconfig:
1815         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
1816         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1817
1818         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
1819           never getting compiled:
1820
1821         * DumpRenderTree/mac/TextInputController.m:
1822         * MiniBrowser/mac/BrowserWindowController.m:
1823         * TestWebKitAPI/Tests/mac/AttributedString.mm:
1824         * WebKitTestRunner/mac/EventSenderProxy.mm:
1825
1826 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
1827
1828         Unreviewed, add WebKitGTK+ Bugzilla email to committers list
1829
1830         This is to make it easy to CC it on Bugzilla.
1831
1832         * Scripts/webkitpy/common/config/contributors.json:
1833
1834 2015-12-18  Aakash Jain  <aakash_jain@apple.com>
1835
1836         Pasteboard get messed up after running kill-old-processes
1837         https://bugs.webkit.org/show_bug.cgi?id=152426
1838
1839         Reviewed by Alexey Proskuryakov.
1840
1841         * BuildSlaveSupport/kill-old-processes:
1842         (main): Do not kill pasteboard anymore.
1843
1844 2015-12-17  Aakash Jain  <aakash_jain@apple.com>
1845
1846         run-webkit-tests shouldn't start multiple iOS simulators while only running one test
1847         https://bugs.webkit.org/show_bug.cgi?id=152157
1848         <rdar://problem/23851817>
1849
1850         Reviewed by Alexey Proskuryakov.
1851
1852         * Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py:
1853         (LayoutTestRunner.get_worker_count): Calculate required number of workers.
1854         * Scripts/webkitpy/layout_tests/controllers/manager.py:
1855         (Manager._get_test_inputs): Common method to calculate test_inputs.
1856         (Manager._update_worker_count): Calculate and update required number of workers.
1857
1858 2015-12-16  Aakash Jain  <aakash_jain@apple.com>
1859
1860         run-webkit-tests fails to delete Simulator device during cleanup
1861         https://bugs.webkit.org/show_bug.cgi?id=152363
1862
1863         Reviewed by Alexey Proskuryakov.
1864
1865         * Scripts/webkitpy/xcode/simulator.py:
1866         (Simulator.delete_device): Ensure that device is Shutdown before deleting it.
1867
1868 2015-12-16  Tim Horton  <timothy_horton@apple.com>
1869
1870         [mac-wk2] fast/events force click tests crashing
1871         https://bugs.webkit.org/show_bug.cgi?id=152339
1872
1873         Reviewed by Beth Dakin.
1874
1875         * WebKitTestRunner/mac/EventSenderProxy.mm:
1876         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]):
1877         Set the NSEvent's _type member in addition to overriding -type,
1878         because there are assertions in touch event handling code that depend on it.
1879
1880 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1881
1882         Enforce temporarily bots to sync WebKit and WPT testharness.js
1883         https://bugs.webkit.org/show_bug.cgi?id=152334
1884
1885         Reviewed by Darin Adler.
1886
1887         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
1888         (WebPlatformTestServer._copy_webkit_test_files): Temporarily overwrite wpt testharness.js with WebKit testharness.js.
1889
1890 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1891
1892         [Fetch API] Add fetch API compile time flag
1893         https://bugs.webkit.org/show_bug.cgi?id=152254
1894
1895         Reviewed by Darin Adler.
1896
1897         * Scripts/webkitperl/FeatureList.pm:
1898
1899 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
1900
1901         Unreviewed.
1902
1903         Added files that have impact in building Streams API to the watchlist.
1904
1905         * Scripts/webkitpy/common/config/watchlist:
1906
1907 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
1908
1909         Unreviewed.
1910
1911         Added imported tests to Streams API watchlist.
1912
1913         * Scripts/webkitpy/common/config/watchlist:
1914
1915 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1916
1917         Remove default copy of wpt testharness.js when launching wpt server
1918         https://bugs.webkit.org/show_bug.cgi?id=152298
1919
1920         Reviewed by Darin Adler.
1921
1922         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
1923         (WebPlatformTestServer._copy_webkit_test_files): Deleted default copy of WebKit testharness.js to WPT.
1924
1925 2015-12-15  David Kilzer  <ddkilzer@apple.com>
1926
1927         REGRESSION (r192375): DumpRenderTree.app exits immediately with no error
1928         <http://webkit.org/b/152314>
1929
1930         Reviewed by Daniel Bates.
1931
1932         The change to DumpRenderTreeMain.mm in r192375 caused the iOS
1933         code path to exit immediately when calling main().
1934         Unfortunately, DumpRenderTreeMain.mm was used for both
1935         DumpRenderTree command-line binary and DumpRenderTree.app, which
1936         meant that the app would exit immediately with no error code
1937         when run!
1938
1939         The workaround is to introduce a separate source file called
1940         DumpRenderTreeAppMain.mm, similar to what WebKitTestRunner
1941         already does.
1942
1943         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add
1944         DumpRenderTreeAppMain.mm to the project.  Make it the only
1945         compiled source for the DumpRenderTree.app target.
1946         * DumpRenderTree/ios/DumpRenderTreeAppMain.mm: Copied from Tools/DumpRenderTree/mac/DumpRenderTreeMain.mm.
1947         (main): Call DumpRenderTreeMain() on iOS.  Assert on OS X in
1948         case someone tries mistakenly to use the app.
1949         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig:
1950         Link to JavaScriptCore.framework on iOS for the assert.
1951         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig:
1952         Link to JavaScriptCore.framework on OS X for the assert.  Remove
1953         unneeded EXCLUDED_SOURCE_FILE_NAMES setting.
1954         * DumpRenderTree/mac/DumpRenderTreeMain.mm:
1955         (main): Add assert for iOS so that a crash occurs if someone
1956         tries to run the wrong command.
1957
1958 2015-12-14  Tim Horton  <timothy_horton@apple.com>
1959
1960         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
1961         https://bugs.webkit.org/show_bug.cgi?id=152266
1962         <rdar://problem/22092676>
1963
1964         Reviewed by Simon Fraser.
1965
1966         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1967         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm: Added.
1968         Add a test that crashed before this change, and doesn't crash after.
1969
1970 2015-12-14  Chris Fleizach  <cfleizach@apple.com>
1971
1972         AX: iOS: Text field variations do not have the correct traits
1973         https://bugs.webkit.org/show_bug.cgi?id=152237
1974
1975         Reviewed by Mario Sanchez Prada.
1976
1977         Add iOS calls for determing if an object is a search field or a text area.
1978
1979         * DumpRenderTree/AccessibilityUIElement.cpp:
1980         (getIsSearchFieldCallback):
1981         (getIsTextAreaCallback):
1982         (stringForSelectionCallback):
1983         (AccessibilityUIElement::getJSClass):
1984         * DumpRenderTree/AccessibilityUIElement.h:
1985         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
1986         (AccessibilityUIElement::identifier):
1987         (AccessibilityUIElement::isTextArea):
1988         (AccessibilityUIElement::isSearchField):
1989         (AccessibilityUIElement::traits):
1990         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
1991         (WTR::AccessibilityUIElement::scrollPageRight):
1992         (WTR::AccessibilityUIElement::hasContainedByFieldsetTrait):
1993         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
1994         (WTR::AccessibilityUIElement::isSearchField):
1995         (WTR::AccessibilityUIElement::isTextArea):
1996         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
1997         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
1998         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1999         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
2000         (WTR::AccessibilityUIElement::isTextArea):
2001         (WTR::AccessibilityUIElement::isSearchField):
2002         (WTR::AccessibilityUIElement::rowCount):
2003
2004 2015-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2005
2006         [GTK] [JHBuild] package libtool-bin is now required on Debian systems.
2007         https://bugs.webkit.org/show_bug.cgi?id=152252
2008
2009         Reviewed by Sergio Villar Senin.
2010
2011         * gtk/install-dependencies: Add libtool-bin to the list of packages required
2012         for building the JHBuild on Debian systems.
2013
2014 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2015
2016         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
2017         https://bugs.webkit.org/show_bug.cgi?id=152156
2018
2019         Reviewed by Dan Bernstein.
2020
2021         Our frameworks should appropriately prefix all ObjC classes,
2022         not just external symbols.
2023
2024         * Scripts/check-for-inappropriate-objc-class-names:
2025         Remove the -g switch to check all ObjC class names.
2026
2027 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
2028
2029         [MediaStream] Expose media capture devices persistent permissions to WebCore
2030         https://bugs.webkit.org/show_bug.cgi?id=152087
2031
2032         Add support for the new user media permission checker page UI client method.
2033
2034         Reviewed by Chris Dumez.
2035
2036         * WebKitTestRunner/TestController.cpp:
2037         (WTR::decidePolicyForUserMediaPermissionRequest):
2038         (WTR::checkUserMediaPermissionForOrigin):
2039         (WTR::TestController::createOtherPage): Add checkUserMediaPermissionForOrigin.
2040         (WTR::TestController::createWebViewWithOptions): Ditto.
2041         (WTR::TestController::resetStateToConsistentValues): Clear m_userMediaOriginPermissions.
2042         (WTR::originUserVisibleName): New, create a string for the origin.
2043         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Set the WKUserMediaPermissionCheckRef
2044           according to the state of the origin permission map.
2045         (WTR::TestController::handleUserMediaPermissionRequest): Remember both the origin and the
2046           request so we can update the origin permission map in decidePolicyForUserMediaPermissionRequestIfPossible.
2047         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Update the
2048           origin permission map.
2049         * WebKitTestRunner/TestController.h:
2050
2051 2015-12-10  Alex Christensen  <achristensen@webkit.org>
2052
2053         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
2054         https://bugs.webkit.org/show_bug.cgi?id=152022
2055         rdar://problem/23763584
2056
2057         Reviewed by Darin Adler.
2058
2059         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2060         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2061         (WTR::InjectedBundlePage::willSendRequestForFrame):
2062         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2063         (WTR::TestRunner::setWillSendRequestReturnsNull):
2064         (WTR::TestRunner::willSendRequestReturnsNullOnRedirect):
2065         (WTR::TestRunner::setWillSendRequestReturnsNullOnRedirect):
2066         (WTR::TestRunner::setWillSendRequestAddsHTTPBody):
2067         (WTR::TestRunner::willSendRequestHTTPBody):
2068         Added setWillSendRequestAddsHTTPBody that uses new SPI for testing.
2069
2070 2015-12-10  Aakash Jain  <aakash_jain@apple.com>
2071
2072         Remove additional simulator checks before running layout-tests
2073         https://bugs.webkit.org/show_bug.cgi?id=152146
2074
2075         Reviewed by Darin Adler.
2076
2077         * Scripts/webkitpy/port/ios.py:
2078         (IOSSimulatorPort.check_sys_deps): Removed additional simulators verifications.
2079         * Scripts/webkitpy/xcode/simulator.py:
2080         (Simulator._boot_and_shutdown_simulator_device): Deleted.
2081         (Simulator.check_simulator_device_and_erase_if_needed): Deleted.
2082
2083 2015-12-09  Aakash Jain  <aakash_jain@apple.com>
2084
2085         Run atleast one simulator even if max process limit is low
2086         https://bugs.webkit.org/show_bug.cgi?id=152081
2087         <rdar://problem/23819694>
2088
2089         Reviewed by Alexey Proskuryakov.
2090
2091 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
2092
2093         [GTK] Crash in WebProcess when loading large content with custom URI schemes
2094         https://bugs.webkit.org/show_bug.cgi?id=144262
2095
2096         Reviewed by Carlos Garcia Campos.
2097
2098         Added new unit test to check the additional scenarios we now
2099         handle for custom URI schemes.
2100
2101         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2102         (generateHTMLContent): New helper function to generate big enough content.
2103         (testWebContextURIScheme): New unit test.
2104
2105 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
2106
2107         [EFL] Fix unhandled web process message when launching MiniBrowser
2108         https://bugs.webkit.org/show_bug.cgi?id=152048
2109
2110         Reviewed by Gyuyoung Kim.
2111
2112         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewUserViewportToContents.cpp:
2113         (TestWebKitAPI::TEST):
2114
2115 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
2116
2117         [GTK] Add API to handle beforeunload events
2118         https://bugs.webkit.org/show_bug.cgi?id=139090
2119
2120         Reviewed by Gustavo Noronha Silva.
2121
2122         * MiniBrowser/gtk/BrowserWindow.c:
2123         (browserWindowConstructed):
2124         (browserWindowDeleteEvent):
2125         (browser_window_class_init):
2126         Handle delete-event to prevent the window from being closed when
2127         the page has beforeunload handlers. Use
2128         webkit_web_view_try_close() when the window is requested to be
2129         closed.
2130         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
2131         (testWebViewJavaScriptDialogs):
2132         Add a test case for the WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
2133         script dialog type.
2134
2135 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
2136
2137         Refactored initialization code in LoadTrackingTest.
2138
2139         Rubber-stamped by Carlos Garcia Campos.
2140
2141         Small refactoring to make sure that the state of a LoadTrackingTest
2142         gets properly reset before loading new web content.
2143
2144         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.h:
2145         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
2146         (LoadTrackingTest::reset): New, refactored code from *load*() and go*()
2147         functions and reset the remaining local variables.
2148         (LoadTrackingTest::loadURI): Call reset();
2149         (LoadTrackingTest::loadHtml): Ditto.
2150         (LoadTrackingTest::loadPlainText): Ditto.
2151         (LoadTrackingTest::loadBytes): Ditto.
2152         (LoadTrackingTest::loadRequest): Ditto.
2153         (LoadTrackingTest::reload): Ditto.
2154         (LoadTrackingTest::goBack): Ditto.
2155         (LoadTrackingTest::goForward): Ditto.
2156
2157 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2158
2159         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
2160         https://bugs.webkit.org/show_bug.cgi?id=151942
2161
2162         Reviewed by Darin Adler.
2163
2164         * MiniBrowser/efl/main.c:
2165         (window_create): Enable offline web application cache feature on MiniBrowser.
2166         (elm_main):
2167
2168 2015-12-08  Aakash Jain  <aakash_jain@apple.com>
2169
2170         https://bugs.webkit.org/show_bug.cgi?id=151243
2171         <rdar://problem/22955197>
2172
2173         Reviewed by Alexey Proskuryakov.
2174
2175         * LayoutTestRelay/LayoutTestRelay/main.m:
2176         (getTestingSimDevice): Use separate testing device for each worker.
2177         * Scripts/webkitpy/layout_tests/controllers/manager.py:
2178         (Manager.run): Perform cleanup even if setup fails.
2179         * Scripts/webkitpy/port/ios.py:
2180         (IOSSimulatorPort.default_child_processes): Calculate number of simulators to use.
2181         (IOSSimulatorPort.child_processes): Gets the number of simulators from options variable.
2182         (IOSSimulatorPort.setup_test_run): Handle mulitple simulators.
2183         (IOSSimulatorPort._quit_ios_simulator): Same
2184         (IOSSimulatorPort.clean_up_test_run): Same
2185         (IOSSimulatorPort.check_sys_deps): Same
2186         (IOSSimulatorPort.testing_device): Same
2187         (IOSSimulatorPort.reset_preferences): Same
2188         (IOSSimulatorPort.get_simulator_path): Return simulator path.
2189         (IOSSimulatorPort._createSimulatorApp): Create the copy of simulator app.
2190         * Scripts/webkitpy/xcode/simulator.py:
2191         (Device.delete): Delete the simulator device.
2192         (Simulator.delete_device): Same
2193         (Simulator.wait_until_device_is_booted): Wait for device booting.
2194
2195 2015-12-08  Ryuan Choi  <ryuan.choi@navercorp.com>
2196
2197         [EFL] Add API to provide preferences before creating ewk_view
2198         https://bugs.webkit.org/show_bug.cgi?id=151587
2199
2200         Reviewed by Gyuyoung Kim.
2201
2202         * MiniBrowser/efl/main.c:
2203         (on_key_down):
2204         (quit):
2205         (window_create):
2206         Moved settings related code to configuration() not to update settings
2207         whenever ewk_view is created.
2208         (configuration):
2209         (elm_main):
2210
2211 2015-12-08  Carlos Garcia Campos  <cgarcia@igalia.com>
2212
2213         Unreviewed. Fix GTK+ API tests after r193639.
2214
2215         The new jhbuild version needs some more variables ot be present in
2216         the builtin dict, even if they are set to None.
2217
2218         * jhbuild/jhbuildutils.py:
2219         (enter_jhbuild_environment_if_available):
2220
2221 2015-12-07  Gustavo Noronha Silva  <gns@gnome.org>
2222
2223         [GTK] Notify WebCore when notification is clicked
2224         https://bugs.webkit.org/show_bug.cgi?id=151951
2225
2226         Reviewed by Carlos Garcia Campos.
2227
2228         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2229         (testWebViewNotification): test the new API.
2230
2231 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
2232
2233         'jhbuild build' should fail immediately when building any module fails
2234         https://bugs.webkit.org/show_bug.cgi?id=145697
2235
2236         Reviewed by Carlos Garcia Campos.
2237
2238         * efl/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
2239         * gtk/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
2240         Everything is placed under lib instead of lib64 now.
2241         * jhbuild/jhbuild-wrapper: Update jhbuild to the latest upstream commit, and pass
2242         --exit-on-error when running 'jhbuild build'.
2243         * jhbuild/jhbuildrc_common.py:
2244         (init): Don't override PKG_CONFIG_PATH, CMAKE_PREFIX_PATH, or CMAKE_LIBRARY_PATH. Modern
2245         jhbuild should be able to handle these for us without breaking things....
2246
2247 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2248
2249         Add support to import w3c tests from a repository with a different root that the main repo dir
2250         https://bugs.webkit.org/show_bug.cgi?id=151751
2251
2252         Reviewed by Ryosuke Niwa and Youenn Fablet.
2253
2254         We should be able to import tests from repositories that are not pure test repositories and where tests are kept
2255         in a different directory than the repository root.
2256
2257         This patch introduces a new parameter tests_directory that we will use as root directory to search for
2258         tests. All paths will be flattened when copying tests to have a less complicated directory structure. This
2259         requires having the copy_path lists including tuples of origin and destination directories.
2260
2261         * Scripts/webkitpy/w3c/test_downloader.py:
2262         (TestDownloader._add_test_suite_paths): Adds the paths as a tuple of origin and destination directory.
2263         (TestDownloader.copy_tests): Uses the origin and destination tuple for the paths to copy when copying files.
2264         * Scripts/webkitpy/w3c/test_importer_unittest.py:
2265         (TestImporterTest.test_tests_directory): Test.
2266
2267 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2268
2269         Mock TestRepositories in W3C importer tests
2270         https://bugs.webkit.org/show_bug.cgi?id=151938
2271
2272         Reviewed by Youenn Fablet.
2273
2274         The test importer tests should use a fake repository instead of using the real one. The reason why this happened
2275         is because the test repository method reading the file was using the filesystem directly instead of taking the
2276         host one. This patch changes that.
2277
2278         * Scripts/webkitpy/w3c/test_downloader.py:
2279         (TestDownloader.load_test_repositories): Take a filesystem and use it. If we get no filesystem, we use the
2280         default one.
2281         (TestDownloader.__init__): When loading the repositories, pass the host filesystem.
2282         * Scripts/webkitpy/w3c/test_importer_unittest.py:
2283         (TestImporterTest.test_harnesslinks_conversion):
2284         (TestImporterTest.test_submodules_generation): Use a fake test repository file.
2285
2286 2015-12-07  David Kilzer  <ddkilzer@apple.com>
2287
2288         TestNetscapePlugIn: Address review comment on 193607
2289         <http://webkit.org/b/151881>
2290
2291         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
2292         (testSetStatus): Initializing std::unique_ptr<char[]> with
2293         nullptr is redundant.
2294
2295 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2296
2297         [GTK] Add webkit_uri_request_get_http_method
2298         https://bugs.webkit.org/show_bug.cgi?id=151601
2299
2300         Reviewed by Martin Robinson.
2301
2302         Add test case to check HTTP method of WebKitURIRequest.
2303
2304         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2305         (testURIRequestHTTPMethod):
2306         (serverCallback):
2307         (beforeAll):
2308         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2309         (sendRequestCallback):
2310
2311 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2312
2313         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
2314         https://bugs.webkit.org/show_bug.cgi?id=79918
2315
2316         Reviewed by Gustavo Noronha Silva.
2317
2318         Add unit tests to check the different console messages.
2319
2320         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
2321         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp: Added.
2322         (ConsoleMessageTest::ConsoleMessage::operator==):
2323         (ConsoleMessageTest::consoleMessageReceivedCallback):
2324         (ConsoleMessageTest::ConsoleMessageTest):
2325         (ConsoleMessageTest::~ConsoleMessageTest):
2326         (ConsoleMessageTest::waitUntilConsoleMessageReceived):
2327         (testWebKitConsoleMessageConsoleAPI):
2328         (testWebKitConsoleMessageJavaScriptException):
2329         (testWebKitConsoleMessageNetworkError):
2330         (testWebKitConsoleMessageSecurityError):
2331         (beforeAll):
2332         (afterAll):
2333         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2334         (consoleMessageSentCallback):
2335         (pageCreatedCallback):
2336
2337 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
2338
2339         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
2340         https://bugs.webkit.org/show_bug.cgi?id=151934
2341
2342         Reviewed by Csaba Osztrogonác.
2343
2344         * MiniBrowser/efl/main.c:
2345         (on_window_deletion): Revert the changes of r192767.
2346
2347 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
2348
2349         [GTK] update-webkitgtk-libs cannot build mesa
2350         https://bugs.webkit.org/show_bug.cgi?id=151535
2351
2352         Reviewed by Martin Robinson.
2353
2354         Upgrade to newer mesa in order to build successfully against LLVM 3.7. Add missing
2355         dependency of mesa on LLVM, to ensure LLVM is built first. Build LLVM unconditionally, even
2356         on architectures where FTL is not supported, to ensure mesa is always buildable, since LLVM
2357         does not have a stable API and we cannot expect mesa to be buildable unless we control the
2358         LLVM version. Build mesa with --disable-egl since --enable-egl conflicts with
2359         --enable-xlib-glx. This fixes update-webkitgtk-libs on distros with LLVM 3.7.
2360
2361         * gtk/jhbuild.modules:
2362
2363 2015-12-07  Philippe Normand  <pnormand@igalia.com>
2364
2365         [GTK][Mac] libWebExtensionTest link error
2366         https://bugs.webkit.org/show_bug.cgi?id=150802
2367
2368         Reviewed by Carlos Garcia Campos.
2369
2370         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt: add dependencies to the webextension library.
2371
2372 2015-12-06  David Kilzer  <ddkilzer@apple.com>
2373
2374         TestNetscapePlugIn: Fix leaks found by static analyzer
2375         <http://webkit.org/b/151881>
2376
2377         Reviewed by Darin Adler.
2378
2379         Fixes the following leaks found by the static analyzer:
2380             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'path'
2381                     return false;
2382                            ^~~~~
2383             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'target'
2384                     return false;
2385                            ^~~~~
2386             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'url'
2387                     return false;
2388                            ^~~~~
2389
2390         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
2391         (toCString): Switch to returning std::unique_ptr<char[]>.  Add
2392         early return if allocation fails.
2393         (testPostURLFile): Switch to using std::unique_ptr<char[]>.
2394         Make sure to call fclose() on filehandle, even for an early
2395         return.
2396         (testSetStatus): Switch to using std::unique_ptr<char[]>.
2397
2398 2015-12-05  David Kilzer  <ddkilzer@apple.com>
2399
2400         prepare-ChangeLog: Fix some warning messages when using svn
2401         <http://webkit.org/b/151914>
2402
2403         Reviewed by Daniel Bates.
2404
2405         * Scripts/prepare-ChangeLog:
2406         (generateFunctionLists): Simplify logic so that we never call
2407         normalizePath() with an undefined value.
2408         (attributeCommand): Quote $subPath for the shell so that we
2409         don't try to run "svn propget" on invalid paths.
2410
2411 2015-12-04  David Kilzer  <ddkilzer@apple.com>
2412
2413         TestNetscapePlugIn: Fix remaining static analyzer warnings
2414         <http://webkit.org/b/151888>
2415
2416         Reviewed by Alexey Proskuryakov.
2417
2418         Fixes the following static analyzer warnings:
2419             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:101:9: warning: Called function pointer is null (null dereference)
2420                     CRASH();
2421                     ^~~~~~~
2422             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:46:5: note: expanded from macro 'CRASH'
2423                 ((void(*)())0)(); /* More reliable, but doesn't say BBADBEEF */ \
2424                 ^~~~~~~~~~~~~~~~
2425             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:375:12: warning: Access to field 'pluginTest' results in a dereference of a null pointer (loaded from variable 'obj')
2426                 return obj->pluginTest->NPP_SetWindow(window);
2427                        ^~~~~~~~~~~~~~~
2428             2 warnings generated.
2429
2430         * DumpRenderTree/TestNetscapePlugIn/main.cpp:
2431         (CRASH): Use __builtin_trap() for gcc/clang.
2432         (NPP_SetWindow): Add early return if obj is nullptr.
2433
2434 2015-12-03  Carlos Garcia Campos  <cgarcia@igalia.com>
2435
2436         [GTK] Test /webkit2/WebKitWebResource/get-data is flaky
2437         https://bugs.webkit.org/show_bug.cgi?id=151797
2438
2439         Reviewed by Martin Robinson.
2440
2441         Since we switched to use the network process to run the unit tests
2442         the test /webkit2/WebKitWebResource/get-data sometimes fails and
2443         sometimes passes. We are now also getting the notification for the
2444         css image. Since we wait for 3 resources, sometimes the css image
2445         is loaded before and then checkResourceData is called for it, but
2446         not handled. When the css image is the last one loaded the test
2447         passes. So, we just need to wait for the 4 resources.
2448
2449         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
2450         (testWebResourceGetData):
2451
2452 2015-12-03  David Kilzer  <ddkilzer@apple.com>
2453
2454         DumpRenderTree: Use-after-free in createBitmapContext() in PixelDumpSupportMac.mm
2455         <http://webkit.org/b/151845>
2456
2457         Reviewed by Simon Fraser.
2458
2459         Fixes the following static analyzer warning:
2460             DumpRenderTree/mac/PixelDumpSupportMac.mm:67:9: warning: Use of memory after it is freed
2461                     WTFLogAlways("DumpRenderTree: CGBitmapContextCreate(%p, %llu, %llu, 8, %llu, %p, 0x%x) failed\n", buffer, pixelsHigh, pixelsWide, rowBytes, colorSpace.get(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
2462                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2463
2464         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
2465         (createBitmapContext): Free 'buffer' after using it in logging
2466         to fix the use-after-free.  Assign a value of nullptr to buffer
2467         so we don't return with it set to a freed address.
2468
2469 2015-12-03  Jer Noble  <jer.noble@apple.com>
2470
2471         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
2472         https://bugs.webkit.org/show_bug.cgi?id=151830
2473
2474         Reviewed by Anders Carlsson.
2475
2476         Set invisibleAutoplayNotPermitted to NO by default both in WKTR and DRT.
2477
2478         * DumpRenderTree/mac/DumpRenderTree.mm:
2479         (resetWebPreferencesToConsistentValues):
2480         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2481         (WTR::initializeWebViewConfiguration):
2482
2483 2015-12-03  Anders Carlsson  <andersca@apple.com>
2484
2485         Remove Objective-C GC support
2486         https://bugs.webkit.org/show_bug.cgi?id=151819
2487         rdar://problem/23746991
2488
2489         Reviewed by Dan Bernstein.
2490
2491         * asan/asan.xcconfig:
2492
2493 2015-12-02  Yusuke Suzuki  <utatane.tea@gmail.com>
2494
2495         Allow nil for unspecified benchmark pathes
2496         https://bugs.webkit.org/show_bug.cgi?id=151784
2497
2498         Reviewed by Filip Pizlo.
2499
2500         `Pathname.new(nil)` will raise an error.
2501         Only generate Pathname if the benchmark path is specified.
2502
2503         * Scripts/run-jsc-benchmarks:
2504
2505 2015-12-02  Brent Fulgham  <bfulgham@apple.com>
2506
2507         [Win] Run non-http tests without Cygwin
2508         https://bugs.webkit.org/show_bug.cgi?id=151721
2509
2510         Reviewed by Andy Estes.
2511
2512         Support native 32-bit and 64-bit Python (and Perl) builds
2513         for running tests:
2514
2515         1. Use "startswith('win')", rather than "== 'win32'" to support
2516         various Windows build types.
2517         2. Supply full path for some native Windows utilities, since the
2518         path environment does not always have the specified, and they are
2519         guaranteed to exist in those specific locations.
2520         3. Make sure native Windows Python test runs pass proper environment
2521         variables to run programs.
2522         4. Append 'exe' suffix when running Windows executables.
2523         5. Use the _winreg Python module on Windows, since the Cygwin 'regtool'
2524         command doesn't exist.
2525         
2526         * Scripts/update-webkit: Use Perl $^X command to refer to the path of
2527         the current Perl executable, rather than requiring a new path search.
2528         * Scripts/webkitpy/common/find_files_unittest.py:
2529         (TestWinNormalize.test_win): Use startswith('win').
2530         * Scripts/webkitpy/common/prettypatch_unittest.py:
2531         (test_pretty_diff_encodings): Ditto.
2532         * Scripts/webkitpy/common/system/executive.py:
2533         (Executive._should_close_fds): Ditto.
2534         (Executive.shell_command_for_script): Use startswith('win').
2535         (Executive.kill_process): Use full path to killall executable.
2536         (Executive.check_running_pid): Use startswith('win').
2537         (Executive.running_pids): Ditto.
2538         (Executive.kill_all): Ditto. Also use path to 'killall' executable when
2539         running under native Windows Python.
2540         (Executive._child_process_encoding): Use startswith('win').
2541         (Executive._should_encode_child_process_arguments): Ditto.
2542         (Executive.popen): Recognize proper script engine on Windows, since it
2543         does not support the shebang syntax.
2544         (Executive.run_in_parallel): Use startswith('win').
2545         * Scripts/webkitpy/common/system/executive_unittest.py:
2546         (never_ending_command): Ditto.
2547         (ExecutiveTest.test_run_command_with_unicode): Ditto.
2548         (ExecutiveTest.serial_test_kill_process): Ditto.
2549         (ExecutiveTest.serial_test_kill_all): Ditto.
2550         (ExecutiveTest.serial_test_check_running_pid): Ditto.
2551         (ExecutiveTest.serial_test_run_in_parallel): Ditto.
2552         (main): Ditto.
2553         * Scripts/webkitpy/common/system/file_lock.py:
2554         (FileLock._create_lock): Ditto.
2555         (FileLock._remove_lock): Ditto.
2556         * Scripts/webkitpy/common/system/filesystem_unittest.py:
2557         (RealFileSystemTest.test_chdir): Ditto.
2558         (RealFileSystemTest.test_chdir__notexists): Ditto.
2559         (RealFileSystemTest.test_maybe_make_directory__failure): Ditto.
2560         * Scripts/webkitpy/common/system/path_unittest.py:
2561         (AbspathTest.test_abspath_to_uri_win): Ditto.
2562         * Scripts/webkitpy/common/system/platforminfo.py:
2563         (PlatformInfo._determine_os_name): Ditto.
2564         * Scripts/webkitpy/common/system/user.py: Ditto.
2565         * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
2566         (ManagerTest.integration_test_needs_servers): Ditto.
2567         * Scripts/webkitpy/layout_tests/servers/apache_http_server.py:
2568         (LayoutTestApacheHttpd.__init__): Handle upper and lower-case
2569         driver letters.
2570         (LayoutTestApacheHttpd._get_apache_config_file_path): Ditto.
2571         * Scripts/webkitpy/layout_tests/servers/apache_http_server_unittest.py:
2572         (TestLayoutTestApacheHttpd.test_start_cmd): Ditto.
2573         * Scripts/webkitpy/layout_tests/servers/http_server_base.py:
2574         (HttpServerBase._check_that_all_ports_are_available): Ditto.
2575         * Scripts/webkitpy/layout_tests/servers/http_server_unittest.py:
2576         (TestHttpServer.test_start_cmd): Ditto.
2577         * Scripts/webkitpy/port/base.py:
2578         (Port.to.setup_environ_for_server): Include 'COMSPEC', 'SYSTEMDRIVE',
2579         and 'SYSTEMROOT' in environment passed to test runners.
2580         (Port._apache_config_file_name_for_platform): Use startswith('win').
2581         (Port._build_path): Ditto.
2582         (Port._path_to_driver): Include 'exe' suffix when running under native
2583         Windows.
2584         * Scripts/webkitpy/port/driver.py:
2585         (Driver._setup_environ_for_driver): Explicitly make some environment
2586         variables strings.
2587         * Scripts/webkitpy/port/server_process.py:
2588         (ServerProcess.__init__): Use startswith('win').
2589         * Scripts/webkitpy/port/win.py:
2590         (WinPort): Use the win32 registry utilities on Windows, and appropriate
2591         registry key formats.
2592         (WinPort._ntsd_location): Revise tool search paths for Windows 10.
2593         (WinPort.read_registry_value): Revise to use _winreg library on Windows,
2594         and regtool on Cygwin.
2595         (WinPort.write_registry_value): Ditto.
2596         (WinPort.setup_crash_log_saving): Ditto.
2597         (WinPort.restore_crash_log_saving): Ditto.
2598         (WinPort.prevent_error_dialogs): Ditto.
2599         (WinPort.allow_error_dialogs): Ditto.
2600         (WinPort.find_system_pid): Revise to use Windows management
2601         infrastructure on native Windows, continue using 'ps' on Cygwin.
2602         (WinPort.read_registry_string): Deleted.
2603         (WinPort.write_registry_string): Deleted.
2604         * Scripts/webkitpy/test/main.py:
2605         (main): Use startswith('win').
2606         (Tester._parse_args): Ditto.
2607
2608 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2609
2610         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2611         https://bugs.webkit.org/show_bug.cgi?id=150792
2612
2613         Reviewed by Saam Barati.
2614
2615         * Scripts/webkitperl/FeatureList.pm:
2616
2617 2015-12-01  Commit Queue  <commit-queue@webkit.org>
2618
2619         Unreviewed, rolling out r192914.
2620         https://bugs.webkit.org/show_bug.cgi?id=151734
2621
2622         JSC tests for this change are failing on 32 and 64-bit bots
2623         (Requested by ryanhaddad on #webkit).
2624
2625         Reverted changeset:
2626
2627         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
2628         enable this feature"
2629         https://bugs.webkit.org/show_bug.cgi?id=150792
2630         http://trac.webkit.org/changeset/192914
2631
2632 2015-12-01  David Kilzer  <ddkilzer@apple.com>
2633
2634         EventSenderProxy::swipeGestureWithWheelAndMomentumPhases() leaks an EventSenderSyntheticEvent
2635         <http://webkit.org/b/151726>
2636
2637         Reviewed by Simon Fraser.
2638
2639         * WebKitTestRunner/mac/EventSenderProxy.mm:
2640         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
2641         Deploy RetainPtr<EventSenderSyntheticEvent> to fix leak.
2642
2643 2015-12-01  Myles C. Maxfield  <mmaxfield@apple.com>
2644
2645         Give String and AtomicString an existingHash() function
2646         https://bugs.webkit.org/show_bug.cgi?id=151717
2647
2648         Reviewed by Andreas Kling.
2649
2650         * TestWebKitAPI/Tests/WTF/AtomicString.cpp:
2651         (TestWebKitAPI::TEST):
2652         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2653         (TestWebKitAPI::TEST):
2654
2655 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2656
2657         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2658         https://bugs.webkit.org/show_bug.cgi?id=150792
2659
2660         Reviewed by Saam Barati.
2661
2662         * Scripts/webkitperl/FeatureList.pm:
2663
2664 2015-12-01  Sam Weinig  <sam@webkit.org>
2665
2666         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
2667         <rdar://problem/23320863>
2668         https://bugs.webkit.org/show_bug.cgi?id=151708
2669
2670         Reviewed by Anders Carlsson.
2671
2672         * WebKitTestRunner/TestController.cpp:
2673         (WTR::TestController::createOtherPage):
2674         (WTR::TestController::createWebViewWithOptions):
2675         Update for new WKPageUIClient.
2676
2677 2015-12-01  Anders Carlsson  <andersca@apple.com>
2678
2679         Remove WebKit2.framework
2680         https://bugs.webkit.org/show_bug.cgi?id=151715
2681
2682         Reviewed by Dan Bernstein.
2683
2684         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp:
2685         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp:
2686         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm:
2687         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
2688         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
2689         * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm:
2690         * TestWebKitAPI/mac/TestBrowsingContextLoadDelegate.h:
2691
2692 2015-12-01  Joseph Pecoraro  <pecoraro@apple.com>
2693
2694         Unreviewed common typo fix "occurance" => "occurrence".
2695
2696         * Scripts/webkitpy/tool/commands/queries.py:
2697         (FindFlakyTests._print_statistics):
2698
2699 2015-11-30  Alex Christensen  <achristensen@webkit.org>
2700
2701         Make ProcessModel always MultipleSecondaryProcesses
2702         https://bugs.webkit.org/show_bug.cgi?id=151662
2703
2704         Reviewed by Antti Koivisto.
2705
2706         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
2707         (TestWebKitAPI::TEST):
2708         * WebKitTestRunner/TestController.cpp:
2709         (WTR::TestController::generatePageConfiguration):
2710
2711 2015-11-30  Alex Christensen  <achristensen@webkit.org>
2712
2713         Make usesNetworkProcess always true
2714         https://bugs.webkit.org/show_bug.cgi?id=151580
2715
2716         Reviewed by Darin Adler.
2717
2718         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
2719         (TestWebKitAPI::TEST):
2720         * TestWebKitAPI/Tests/WebKit2/mac/GetPIDAfterAbortedProcessLaunch.cpp:
2721         (TestWebKitAPI::TEST):
2722         * WebKitTestRunner/TestController.cpp:
2723         (WTR::TestController::generatePageConfiguration):
2724
2725 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2726
2727         Unreviewed. Skip GTK+ test /webkit2/WebKitWebView/editable/editable in Debug.
2728
2729         Add a way to skip unit tests only for Debug or Release builds and
2730         skipt the test /webkit2/WebKitWebView/editable/editable only for Debug.
2731
2732         * Scripts/run-gtk-tests:
2733         (SkippedTest):
2734         (SkippedTest.__init__):
2735         (SkippedTest.__str__):
2736         (SkippedTest.skip_entire_suite):
2737         (SkippedTest.skip_for_build_type):
2738         (TestRunner):
2739         (TestRunner.__init__):
2740
2741 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2742
2743         Unreviewed. Fix a crash in GTK+ test /webkit2/WebKitWebView/custom-charset.
2744
2745         It's an assert hit because we are reloading a view loaded with
2746         HTML data which is not supported. Use loadURI instead.
2747
2748         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2749         (testWebViewCustomCharset):
2750
2751 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2752
2753         [GLIB] Remove GMainLoopSource and GThreadSafeMainLoopSource
2754         https://bugs.webkit.org/show_bug.cgi?id=151633
2755
2756         Reviewed by Csaba Osztrogonác.
2757
2758         * TestWebKitAPI/PlatformGTK.cmake:
2759         * TestWebKitAPI/Tests/WTF/glib/GMainLoopSource.cpp: Removed.
2760
2761 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2762
2763         [GTK] Remove the remaining uses of GMainLoopSource
2764         https://bugs.webkit.org/show_bug.cgi?id=151632
2765
2766         Reviewed by Žan Doberšek.
2767
2768         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
2769         (testWebViewSyncRequestOnMaxConns):
2770         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
2771         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2772         (WTR::TestRunner::TestRunner):
2773         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2774         * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:
2775         (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer):
2776         (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded):
2777         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
2778         (WTR::timeoutSource):
2779         (WTR::TestController::notifyDone):
2780         (WTR::TestController::platformRunUntil):
2781
2782 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
2783
2784         [cmake] Add testb3 to the build system
2785         https://bugs.webkit.org/show_bug.cgi?id=151619
2786
2787         Reviewed by Gyuyoung Kim.
2788
2789         * Scripts/build-jsc:
2790
2791 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
2792
2793         [jhbuild] Fix pixman build with clang
2794         https://bugs.webkit.org/show_bug.cgi?id=151441
2795
2796         Reviewed by Carlos Garcia Campos.
2797
2798         * efl/jhbuild.modules:
2799         * gtk/jhbuild.modules:
2800
2801 2015-11-26  David Kilzer  <ddkilzer@apple.com>
2802
2803         Extract prependToEnvironmentVariableList
2804         <http://webkit.org/b/151536>
2805
2806         Reviewed by Daniel Bates.
2807
2808         Tests: webkitdirs_unittest/appendToEnvironmentVariableList.pl
2809                webkitdirs_unittest/prependToEnvironmentVariableList.pl
2810
2811         * Scripts/webkitdirs.pm: Export appendToEnvironmentVariableList
2812         and prependToEnvironmentVariableList.
2813         (appendToEnvironmentVariableList): Simplify variable name.
2814         Switch to use $Config{path_sep}.
2815         (prependToEnvironmentVariableList): Add new method.
2816         (setupMacWebKitEnvironment): Switch to use
2817         prependToEnvironmentVariableList().
2818         (setupIOSWebKitEnvironment): Ditto.
2819
2820         * Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl: Added.
2821         * Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl: Added.
2822
2823 2015-11-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2824
2825         REGRESSION(r192053): MiniBrowser doesn't exit when clicking on the close-window button
2826         https://bugs.webkit.org/show_bug.cgi?id=151567
2827
2828         Reviewed by Darin Adler.
2829
2830         * MiniBrowser/efl/main.c: Call window_close() instead of ewk_view_try_close().
2831         (on_window_deletion):
2832
2833 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2834
2835         [GTK] Use the network process unconditionally
2836         https://bugs.webkit.org/show_bug.cgi?id=151541
2837
2838         Reviewed by Alex Christensen.
2839
2840         Fix TestInspectorServer test. Do not assume we already have the
2841         title we want when the page has been loaded, since the title is
2842         changed afterwards. So, check if the title has already been set,
2843         and if not wait for it.
2844
2845         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp:
2846         (openRemoteDebuggingSession):
2847
2848 2015-11-23  Alex Christensen  <achristensen@webkit.org>
2849
2850         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
2851         https://bugs.webkit.org/show_bug.cgi?id=151532
2852
2853         Reviewed by Benjamin Poulain.
2854
2855         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
2856         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::eventsChanged):
2857         (TestWebKitAPI::TEST):
2858         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::eventsChanged):
2859         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::GeolocationTransitionToHighAccuracyStateTracker): Deleted.
2860         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::GeolocationTransitionToLowAccuracyStateTracker): Deleted.
2861         Properly load about:blank in all WebViews to clean up.  Without this change, we had a 
2862         Geolocation provider stopping after its state tracker was destroyed with its stack frame,
2863         so it was calling a function on a test object that had gone out of scope.
2864         Also, call WKContextSetUsesNetworkProcess(context, true) to show what crash this fixed,
2865         but that will become the default soon and that call will be removed.
2866
2867 2015-11-22  David Kilzer  <ddkilzer@apple.com>
2868
2869         run-webkit-tests: http server for imported W3C tests doesn't work with --layout-tests-directory switch
2870         <http://webkit.org/b/151542>
2871
2872         Reviewed by Daniel Bates.
2873
2874         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2875         (base_url): Use the Port object (already passed in) to give us
2876         the path to the LayoutTests directory, which already checks for a
2877         --layout-tests-directory command-line switch.
2878         (WebPlatformTestServer.__init__): Remove layout_test_results_dir
2879         argument since we can get this from the Port object already
2880         passed in via Port.results_directory().  Also switch to use
2881         Port.layout_tests_dir() to get the LayoutTests directory.
2882
2883         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server_unittest.py:
2884         (TestWebPlatformTestServer.test_custom_layout_tests_directory):
2885         Add test case for custom LayoutTests directory.
2886         (TestWebPlatformTestServer.test_previously_spawned_instance):
2887         Update Port object to set mock results directory as if it was
2888         set on the command-line.  Remove unneeded argument from
2889         WebPlatformTestServer constructor.
2890         (TestWebPlatformTestServer.test_corrupted_subserver_files): Ditto.
2891
2892         * Scripts/webkitpy/port/base.py:
2893         (Port.to.start_web_platform_test_server): Remove unneeded
2894         argument from WebPlatformTestServer constuctor.
2895
2896 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2897
2898         [GTK] Some unit tests fail when using the network process
2899         https://bugs.webkit.org/show_bug.cgi?id=151490
2900
2901         Reviewed by Martin Robinson.
2902
2903         Run the soup server in a separate thread in TestResources test to
2904         avoid deadlocks.
2905
2906         This fixes /webkit2/WebKitWebView/sync-request-on-max-conns and
2907         /webkit2/WebKitWebResource/get-data when using the network process.
2908
2909         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
2910         (beforeAll): Create the WebKitTestServer with ServerRunInThread flag.
2911         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp:
2912         (WebKitTestServer::WebKitTestServer): When ServerRunInThread is
2913         present, create a WorkQueue to run the server.
2914         (WebKitTestServer::run): Run the server in the work queue if it
2915         has been created.
2916         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.h: Convert server
2917         type into server options as flags.
2918
2919 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2920
2921         [GTK] ImageDiff should normalize the diff image
2922         https://bugs.webkit.org/show_bug.cgi?id=151261
2923
2924         Reviewed by Sergio Villar Senin.
2925
2926         * ImageDiff/gtk/ImageDiff.cpp:
2927         (readPixbufFromStdin): Fix memory leak.
2928         (differenceImageFromDifferenceBuffer): Normalize diff buffer.
2929         (calculateDifference): Pass max distance to differenceImageFromDifferenceBuffer.
2930
2931 == Rolled over to ChangeLog-2015-11-21 ==