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