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