Add a way to get the UI-side scrolling tree as text via UIScriptController
[WebKit-https.git] / Tools / ChangeLog
1 2016-11-12  Simon Fraser  <simon.fraser@apple.com>
2
3         Add a way to get the UI-side scrolling tree as text via UIScriptController
4         https://bugs.webkit.org/show_bug.cgi?id=164697
5
6         Reviewed by Zalan Bujtas.
7
8         Add UIScriptController::scrollingTreeAsText(), which gets the state of the scrolling
9         tree in the UI process, including the current positions of CALayers. This will be used
10         to test UI-side scrolling and visual viewports.
11
12         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
13         (WTR::UIScriptController::scrollingTreeAsText):
14         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
15         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
16         (WTR::UIScriptController::scrollingTreeAsText):
17         * TestRunnerShared/UIScriptContext/UIScriptController.h:
18         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
19         (WTR::UIScriptController::scrollingTreeAsText):
20
21 2016-11-12  Wenson Hsieh  <wenson_hsieh@apple.com>
22
23         The main content heuristic should be robust when handling large media elements
24         https://bugs.webkit.org/show_bug.cgi?id=164676
25         <rdar://problem/29211503>
26
27         Reviewed by Eric Carlson.
28
29         Added a new test verifying that enormous video elements are handled gracefully when put through the main
30         content heuristic.
31
32         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
33         * TestWebKitAPI/Tests/WebKit2Cocoa/VideoControlsManager.mm:
34         (TestWebKitAPI::TEST):
35         * TestWebKitAPI/Tests/WebKit2Cocoa/enormous-video-with-sound.html: Added.
36
37 2016-11-12  Dan Bernstein  <mitz@apple.com>
38
39         run-safari does not work for open source contributors
40         https://bugs.webkit.org/show_bug.cgi?id=164667
41         <rdar://problem/29229894>
42
43         Reviewed by Joseph Pecoraro.
44
45         * Scripts/run-api-tests:
46         (archCommandLineArgumentsForRestrictedEnvironmentVariables): Moved from here…
47         * Scripts/webkitdirs.pm:
48         (archCommandLineArgumentsForRestrictedEnvironmentVariables): …to here
49         (runMacWebKitApp): Have arch(1) carry the DYLD_* variables we set in our environmet over
50           to the environment of the app being run.
51
52 2016-11-11  Joseph Pecoraro  <pecoraro@apple.com>
53
54         Removed unused INCLUDE_OPTIONS_FOR_DEBUGGING
55         https://bugs.webkit.org/show_bug.cgi?id=164664
56
57         Reviewed by Dan Bernstein.
58
59         * Scripts/debug-minibrowser:
60         * Scripts/debug-safari:
61         * Scripts/debug-test-runner:
62         * Scripts/webkitdirs.pm:
63         (printHelpAndExitForRunAndDebugWebKitAppIfNeeded):
64         There are no debug specific options anymore.
65
66 2016-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
67
68         [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
69         https://bugs.webkit.org/show_bug.cgi?id=164538
70         <rdar://problem/8418711>
71
72         Reviewed by Ryosuke Niwa.
73
74         Adds support for being able to test autocorrect and autocapitalize attributes in contenteditable areas. To do
75         this, we add removeAllDynamicDictionaries to UIScriptController in order to ensure that autocorrect suggestions
76         are reset to their defaults prior to running contenteditable-autocorrect-off.html.
77
78         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
79         (WTR::UIScriptController::removeAllDynamicDictionaries):
80         * Scripts/webkitpy/port/ios.py:
81         (IOSSimulatorPort._createSimulatorApp):
82         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
83         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
84         (WTR::UIScriptController::removeAllDynamicDictionaries):
85         * TestRunnerShared/UIScriptContext/UIScriptController.h:
86         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
87         (-[TestRunnerWKWebView _keyboardDidShow:]):
88         (-[TestRunnerWKWebView _keyboardDidHide:]):
89
90         Work around an issue where consecutive UIKeyboardDidShowNotification would cause keyboard appearance callbacks
91         to be fired multiple times. This was causing a single key press to cause two characters to be typed. While this
92         does not affect the correctness of existing tests, the new autocorrection test requires this workaround.
93
94         * WebKitTestRunner/ios/UIKitSPI.h:
95         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
96         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
97         (WTR::UIScriptController::removeAllDynamicDictionaries):
98
99 2016-11-11  Alex Christensen  <achristensen@webkit.org>
100
101         Build all Mac API tests
102         https://bugs.webkit.org/show_bug.cgi?id=164633
103
104         Reviewed by Gyuyoung Kim.
105
106         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
107         * TestWebKitAPI/Tests/mac/NavigatorLanguage.mm:
108
109 2016-11-11  Alex Christensen  <achristensen@webkit.org>
110
111         Allow mutable lambdas in HashMap::ensure
112         https://bugs.webkit.org/show_bug.cgi?id=164642
113
114         Reviewed by Sam Weinig.
115
116         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
117         (TestWebKitAPI::TEST):
118
119 2016-11-10  Wenson Hsieh  <wenson_hsieh@apple.com>
120
121         Composition state should be cleared when changing focus to a non-editable element
122         https://bugs.webkit.org/show_bug.cgi?id=164595
123         <rdar://problem/26412551>
124
125         Reviewed by Enrica Casucci.
126
127         Adds support for window.textInputController in DumpRenderTree on iOS. So far, only the methods needed for the
128         new layout test (editing/focus-change-with-marked-text.html) are supported. These are insertText, setMarkedText,
129         and markedRange.
130
131         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
132         * DumpRenderTree/TextInputController.h: Renamed from Tools/DumpRenderTree/mac/TextInputController.h.
133
134         Remove the PLATFORM(MAC) guard for defining the TextInputController. Also, move the TextInputController header
135         out of the /mac platform directory.
136
137         * DumpRenderTree/ios/TextInputControllerIOS.m: Added.
138         (+[TextInputController isSelectorExcludedFromWebScript:]):
139         (+[TextInputController webScriptNameForSelector:]):
140         (-[TextInputController initWithWebView:]):
141         (-[TextInputController markedRange]):
142         (-[TextInputController insertText:]):
143         (-[TextInputController setMarkedText:selectedFrom:length:]):
144
145         Introduces TextInputControllerIOS.m, which contains an iOS implementation of TextInputController. Only a subset
146         of the methods available on the Mac version will be available on iOS for now (see above).
147
148         * DumpRenderTree/mac/FrameLoadDelegate.mm:
149
150         Remove the PLATFORM(MAC) guard for initializing the TextInputController and binding it to the window object.
151
152         (-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]):
153         * DumpRenderTree/mac/TextInputControllerMac.m: Renamed from Tools/DumpRenderTree/mac/TextInputController.m.
154         (-[WebHTMLView interpretKeyEvents:]):
155         (-[WebNSRange initWithNSRange:]):
156         (-[WebNSRange location]):
157         (-[WebNSRange length]):
158         (+[WebNSRange isSelectorExcludedFromWebScript:]):
159         (+[NSMutableAttributedString isSelectorExcludedFromWebScript:]):
160         (+[NSMutableAttributedString webScriptNameForSelector:]):
161         (-[NSMutableAttributedString getLength]):
162         (-[NSMutableAttributedString ranges]):
163         (-[NSMutableAttributedString attributeNamesAtIndex:]):
164         (-[NSMutableAttributedString valueOfAttribute:atIndex:]):
165         (-[NSMutableAttributedString addAttribute:value:]):
166         (-[NSMutableAttributedString addAttribute:value:from:length:]):
167         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:]):
168         (-[NSMutableAttributedString addColorAttribute:red:green:blue:alpha:from:length:]):
169         (-[NSMutableAttributedString addFontAttribute:fontName:size:]):
170         (-[NSMutableAttributedString addFontAttribute:fontName:size:from:length:]):
171         (+[TextInputController isSelectorExcludedFromWebScript:]):
172         (+[TextInputController webScriptNameForSelector:]):
173         (-[TextInputController initWithWebView:]):
174         (-[TextInputController dealloc]):
175         (-[TextInputController textInput]):
176         (-[TextInputController insertText:]):
177         (-[TextInputController doCommand:]):
178         (-[TextInputController setMarkedText:selectedFrom:length:]):
179         (-[TextInputController unmarkText]):
180         (-[TextInputController hasMarkedText]):
181         (-[TextInputController conversationIdentifier]):
182         (-[TextInputController substringFrom:length:]):
183         (-[TextInputController attributedSubstringFrom:length:]):
184         (-[TextInputController legacyAttributedString:]):
185         (-[TextInputController markedRange]):
186         (-[TextInputController selectedRange]):
187         (-[TextInputController firstRectForCharactersFrom:length:]):
188         (-[TextInputController characterIndexForPointX:Y:]):
189         (-[TextInputController validAttributesForMarkedText]):
190         (-[TextInputController attributedStringWithString:]):
191         (-[TextInputController stringWithUndoGroupingInsertion:]):
192         (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]):
193         (-[TextInputController setInputMethodHandler:]):
194         (-[TextInputController interpretKeyEvents:withSender:]):
195
196         Fixes miscellaneous style issues.
197
198 2016-11-11  Philippe Normand  <pnormand@igalia.com>
199
200         [GTK][JHbuild] bump libnice version in openwebrtc.modules
201         https://bugs.webkit.org/show_bug.cgi?id=164586
202
203         Reviewed by Michael Catanzaro.
204
205         Update to a recent libnice git snapshot and remove patches already
206         upstream or not applying anymore. The patches not upstream yet
207         will be reported in Phabricator.
208
209         * gtk/openwebrtc.modules:
210         * gtk/patches/libnice-0001-agent-Remove-unnecessary-NULL-check.patch: Removed.
211         * gtk/patches/libnice-0002-Do-not-update-a-remote-candidate-s-type.patch: Removed.
212         * gtk/patches/libnice-0002-TURN-handle-437-Allocation-Mismatch-responses.patch: Removed.
213         * gtk/patches/libnice-0003-Do-not-compare-scope-for-IPv6-address-when-scope-is-.patch: Removed.
214         * gtk/patches/libnice-0004-Removing-no-op-assignment.patch: Removed.
215
216 2016-11-10  Alex Christensen  <achristensen@webkit.org>
217
218         Fix assertion after r208534.
219         https://bugs.webkit.org/show_bug.cgi?id=160497
220
221         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
222         * TestWebKitAPI/Tests/mac/MemoryPressureHandler.mm: Added.
223         (TestWebKitAPI::TEST):
224         Add a regression test.
225
226 2016-11-10  Chris Dumez  <cdumez@apple.com>
227
228         REGRESSION (r208522): LayoutTest fast/loader/reload-zero-byte-plugin.html is a flaky failure
229         https://bugs.webkit.org/show_bug.cgi?id=164570
230
231         Reviewed by Simon Fraser.
232
233         Properly reset TestController::m_shouldDownloadUndisplayableMIMETypes between tests to
234         avoid flakiness.
235
236         * WebKitTestRunner/TestController.cpp:
237         (WTR::TestController::resetStateToConsistentValues):
238
239 2016-11-10  Miguel Gomez  <magomez@igalia.com>
240
241         Unreviewed. Added myself to the list of committers.
242
243         * Scripts/webkitpy/common/config/contributors.json:
244
245 2016-10-27  Sergio Villar Senin  <svillar@igalia.com>
246
247         [GTK] New API to notify about dynamically added forms
248         https://bugs.webkit.org/show_bug.cgi?id=164050
249
250         Reviewed by Carlos Garcia Campos.
251
252         Added a new test case to verify that dinamically added forms correctly trigger the
253         "form-controls-associated" signal from WebPage.
254
255         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp:
256         (didAssociateFormControlsCallback):
257         (testWebExtensionFormControlsAssociated):
258         (beforeAll):
259         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
260         (DelayedSignal::DelayedSignal):
261         (emitFormControlsAssociated):
262         (formControlsAssociatedCallback):
263         (pageCreatedCallback):
264
265 2016-11-09  Ryosuke Niwa  <rniwa@webkit.org>
266
267         WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
268         https://bugs.webkit.org/show_bug.cgi?id=164501
269         <rdar://problem/29152282>
270
271         Reviewed by Sam Weinig.
272
273         * DumpRenderTree/mac/TextInputController.m:
274         (-[TextInputController legacyAttributedString:]):
275
276 2016-11-09  Chris Dumez  <cdumez@apple.com>
277
278         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
279         https://bugs.webkit.org/show_bug.cgi?id=164458
280         <rdar://problem/28905514>
281
282         Reviewed by Darin Adler.
283
284         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
285         tests can request that such resources are downloaded instead of being ignored.
286
287         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
288         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
289         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
290         * WebKitTestRunner/InjectedBundle/TestRunner.h:
291         * WebKitTestRunner/TestController.cpp:
292         (WTR::TestController::decidePolicyForNavigationResponse):
293         * WebKitTestRunner/TestController.h:
294         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
295         * WebKitTestRunner/TestInvocation.cpp:
296         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
297
298 2016-11-09  Carlos Garcia Campos  <cgarcia@igalia.com>
299
300         NetworkSession: Network process crash when converting main resource to download
301         https://bugs.webkit.org/show_bug.cgi?id=164220
302
303         Reviewed by Alex Christensen.
304
305         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
306         converted to a download and another one to test the cancellation as the test was doing before. When doing the
307         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
308         download.
309
310         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
311         (testPolicyResponseDownload):
312         (testPolicyResponseDownloadCancel):
313         (beforeAll):
314
315 2016-11-09  KwangHyuk Kim  <hyuki.kim@samsung.com>
316
317         [EFL] fix error message caused by eina log
318         https://bugs.webkit.org/show_bug.cgi?id=164546
319
320         Reviewed by Gyuyoung Kim.
321
322         Fix error message caused by eina log when MiniBrowser is working with help option.
323
324         * MiniBrowser/efl/main.c:
325         (quit):
326
327 2016-11-09  Brent Fulgham  <bfulgham@apple.com>
328
329         Unreviewed build fix after r208509.
330
331         * DumpRenderTree/win/TestRunnerWin.cpp:
332         (TestRunner::setNeedsStorageAccessFromFileURLsQuirk): Add missing TestRunner implementation."
333
334 2016-11-09  Alex Christensen  <achristensen@webkit.org>
335
336         Unreviewed, rolling out r208438.
337
338         crashes
339
340         Reverted changeset:
341
342         "[WK2][NETWORK_SESSION] Add support for downloading file
343         backed blobs"
344         https://bugs.webkit.org/show_bug.cgi?id=164458
345         http://trac.webkit.org/changeset/208438
346
347 2016-11-04  Brent Fulgham  <bfulgham@apple.com>
348
349         Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
350         https://bugs.webkit.org/show_bug.cgi?id=155185
351         <rdar://problem/11101440>
352
353         Reviewed by Brady Eidson.
354
355         * DumpRenderTree/TestRunner.cpp:
356         (setNeedsLocalStorageQuirkCallback): Added.
357         (TestRunner::staticFunctions):
358         * DumpRenderTree/TestRunner.h:
359         * DumpRenderTree/mac/DumpRenderTree.mm:
360         (resetWebPreferencesToConsistentValues): Update for new quirk setting.
361         * DumpRenderTree/mac/TestRunnerMac.mm:
362         (TestRunner::setNeedsLocalStorageQuirk):
363         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
364         * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp:
365         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:
366         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageNullEntries.mm:
367         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkEnabled.html: Added.
368         * TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageQuirkTest.mm: Added.
369         (-[LocalStorageQuirkMessageHandler userContentController:didReceiveScriptMessage:]):
370         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
371         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
372         (WTR::InjectedBundle::beginTesting): Update for new quirk setting.
373         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
374         (WTR::TestRunner::setNeedsLocalStorageQuirk): Added.
375         * WebKitTestRunner/InjectedBundle/TestRunner.h:
376
377 2016-11-09  Alex Christensen  <achristensen@webkit.org>
378
379         URLParser should not consider path of URLs with no host to start at the first slash after the colon
380         https://bugs.webkit.org/show_bug.cgi?id=164555
381
382         Reviewed by Tim Horton.
383
384         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
385         (TestWebKitAPI::TEST_F):
386
387 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
388
389         test-webkitpy failing test_create_patch_is_full_patch unit test
390         https://bugs.webkit.org/show_bug.cgi?id=164385
391
392         Reviewed by Darin Adler.
393
394         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py: Fixed expected output to match output.
395
396 2016-11-09  Chris Dumez  <cdumez@apple.com>
397
398         [Mac] Stop using deprecated AppKit enumeration values
399         https://bugs.webkit.org/show_bug.cgi?id=164494
400
401         Reviewed by Darin Adler.
402
403         Stop using deprecated AppKit enumeration values.
404
405         * DumpRenderTree/mac/EventSendingController.mm:
406         (eventTypeForMouseButtonAndAction):
407         (modifierFlags):
408         (-[EventSendingController mouseMoveToX:Y:]):
409         (-[EventSendingController contextClick]):
410         (-[EventSendingController keyDown:withModifiers:withLocation:]):
411         * DumpRenderTree/mac/TextInputController.m:
412         (-[TextInputController interpretKeyEvents:withSender:]):
413         * TestWebKitAPI/Tests/WebKit2Cocoa/CommandBackForward.mm:
414         (simulateCommandArrow):
415         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
416         (TestWebKitAPI::TEST):
417         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenLayoutConstraints.mm:
418         (TestWebKitAPI::TEST):
419         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenTopContentInset.mm:
420         (TestWebKitAPI::TEST):
421         * TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm:
422         (TEST):
423         * TestWebKitAPI/Tests/WebKit2Cocoa/UserInitiatedActionInNavigationAction.mm:
424         (UserInitiatedActionTest::SetUp):
425         (UserInitiatedActionTest::click):
426         * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
427         (TestWebKitAPI::AcceptsFirstMouse::runTest):
428         * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm:
429         (TestWebKitAPI::contextMenuCopyLink):
430         (TestWebKitAPI::TEST):
431         * TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm:
432         (TestWebKitAPI::TEST):
433         * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:
434         (TestWebKitAPI::FullscreenZoomInitialFrame::runTest):
435         * TestWebKitAPI/Tests/mac/MenuTypesForMouseEvents.mm:
436         (TestWebKitAPI::TEST):
437         * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
438         (TestWebKitAPI::Util::isKeyDown):
439         * TestWebKitAPI/mac/PlatformWebViewMac.mm:
440         (TestWebKitAPI::PlatformWebView::initialize):
441         (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress):
442         (TestWebKitAPI::PlatformWebView::simulateRightClick):
443         (TestWebKitAPI::PlatformWebView::simulateMouseMove):
444         (TestWebKitAPI::eventTypeForButton):
445         (TestWebKitAPI::modifierFlagsForWKModifiers):
446         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
447         (__simulated_forceClickAssociatedEventsMask):
448         (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:]):
449         (-[TestWKWebView _setUpTestWindow:]):
450         (-[TestWKWebView typeCharacter:]):
451         * WebKitTestRunner/mac/EventSenderProxy.mm:
452         (WTR::eventTypeForMouseButtonAndAction):
453         (WTR::buildModifierFlags):
454         (WTR::EventSenderProxy::sendMouseDownToStartPressureEvents):
455         (WTR::EventSenderProxy::mouseForceClick):
456         (WTR::EventSenderProxy::startAndCancelMouseForceClick):
457         (WTR::EventSenderProxy::mouseMoveTo):
458         (WTR::EventSenderProxy::keyDown):
459         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
460         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
461         (WTR::PlatformWebView::PlatformWebView):
462         * WebKitTestRunner/mac/TestControllerMac.mm:
463         (WTR::TestController::platformResetStateToConsistentValues):
464
465 2016-11-09  Beth Dakin  <bdakin@apple.com>
466
467         Support TouchBar in WebKit
468         https://bugs.webkit.org/show_bug.cgi?id=164437
469         -and corresponding-
470         rdar://problem/28876524
471
472         Reviewed by Darin Adler.
473
474         This makes MiniBrowser support TouchBar customization. 
475
476         * MiniBrowser/mac/AppDelegate.m:
477         (-[BrowserAppDelegate awakeFromNib]):
478
479 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
480
481         [EFL] Use libgcrypt instead of GnuTLS for CryptoDigest
482         https://bugs.webkit.org/show_bug.cgi?id=164461
483
484         Reviewed by Michael Catanzaro.
485
486         As GTK port in r208297, EFL port starts to use libgcrypt instead of GnuTLS as well.
487
488         * efl/install-dependencies: Add libgcript package dependecy.
489
490 2016-11-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
491
492         [EFL] Remove unused function in MiniBrowser
493         https://bugs.webkit.org/show_bug.cgi?id=164398
494
495         Reviewed by Darin Adler.
496
497         * MiniBrowser/efl/main.c:
498         (window_find_with_elm_window): Deleted because it is not used anywhere.
499
500 2016-11-09  Chris Dumez  <cdumez@apple.com>
501
502         [WK2][NETWORK_SESSION] Add support for downloading file backed blobs
503         https://bugs.webkit.org/show_bug.cgi?id=164458
504         <rdar://problem/28905514>
505
506         Reviewed by Darin Adler.
507
508         Add testRunner.setShouldDownloadUndisplayableMIMETypes(bool) API so that layout
509         tests can request that such resources are downloaded instead of being ignored.
510
511         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
512         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
513         (WTR::TestRunner::setShouldDownloadUndisplayableMIMETypes):
514         * WebKitTestRunner/InjectedBundle/TestRunner.h:
515         * WebKitTestRunner/TestController.cpp:
516         (WTR::TestController::decidePolicyForNavigationResponse):
517         * WebKitTestRunner/TestController.h:
518         (WTR::TestController::setShouldDownloadUndisplayableMIMETypes):
519         * WebKitTestRunner/TestInvocation.cpp:
520         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
521
522 2016-11-09  Jonathan Bedard  <jbedard@apple.com>
523
524         Make rpaths more robust for iOS Simulators
525         https://bugs.webkit.org/show_bug.cgi?id=164521
526
527         Reviewed by Simon Fraser.
528
529         * Scripts/webkitpy/port/ios.py:
530         (IOSSimulatorPort._createSimulatorApp): Added more robust path.
531
532 2016-11-09  Csaba Osztrogonác  <ossy@webkit.org>
533
534         Fix Tools build on case sensitive file systems
535         https://bugs.webkit.org/show_bug.cgi?id=164474
536
537         Unreviewed buildfix.
538
539         * DumpRenderTree/CMakeLists.txt:
540         * DumpRenderTree/PlatformMac.cmake:
541         * DumpRenderTree/PlatformWin.cmake:
542         * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
543         * MiniBrowser/mac/CMakeLists.txt:
544
545 2016-11-04  Filip Pizlo  <fpizlo@apple.com>
546
547         WTF::ParkingLot should stop using std::chrono because std::chrono::duration casts are prone to overflows
548         https://bugs.webkit.org/show_bug.cgi?id=152045
549
550         Reviewed by Andy Estes.
551
552         * TestWebKitAPI/CMakeLists.txt:
553         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
554         * TestWebKitAPI/Tests/WTF/Condition.cpp:
555         (TestWebKitAPI::TEST):
556         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp:
557         (TestWebKitAPI::ToUpperConverter::stopProducing):
558         (TestWebKitAPI::ToUpperConverter::stopConsuming):
559         * TestWebKitAPI/Tests/WTF/Time.cpp: Added.
560         (WTF::operator<<):
561         (TestWebKitAPI::TEST):
562
563 2016-11-04  Alex Christensen  <achristensen@webkit.org>
564
565         Unreviewed, rolling out r208293.
566
567         asserts in API tests.
568
569         Reverted changeset:
570
571         "NetworkSession: Network process crash when converting main
572         resource to download"
573         https://bugs.webkit.org/show_bug.cgi?id=164220
574         http://trac.webkit.org/changeset/208293
575
576 2016-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
577
578         Add a setting and preferences to enable/disable async image decoding
579         https://bugs.webkit.org/show_bug.cgi?id=164417
580
581         Reviewed by Simon Fraser.
582
583         Pref and a menu item to toggle asyncImageDecodingEnabled for WebKits 1 and 2.
584
585         * MiniBrowser/mac/SettingsController.h:
586         * MiniBrowser/mac/SettingsController.m:
587         (-[SettingsController _populateMenu]):
588         (-[SettingsController validateMenuItem:]):
589         (-[SettingsController toggleAsyncImageDecodingEnabled:]):
590         (-[SettingsController asyncImageDecodingEnabled]):
591         * MiniBrowser/mac/WK1BrowserWindowController.m:
592         (-[WK1BrowserWindowController didChangeSettings]):
593         * MiniBrowser/mac/WK2BrowserWindowController.m:
594         (-[WK2BrowserWindowController didChangeSettings]):
595
596 2016-11-04  Brady Eidson  <beidson@apple.com>
597
598         REGRESSION (r208349) StringHasher::hashMemory behavior changed, causing API tests to fail
599         https://bugs.webkit.org/show_bug.cgi?id=164390
600
601         Reviewed by Geoffrey Garen.
602
603         Operating under the assumption that the behavior change is okay/desirable, this updates the test.
604
605         * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
606         (TestWebKitAPI::TEST):
607
608 2016-11-04  Joanmarie Diggs  <jdiggs@igalia.com>
609
610         AX: [ATK] Attempting to clear selection on ARIA listboxes results in crash
611         https://bugs.webkit.org/show_bug.cgi?id=164331
612
613         Reviewed by Chris Fleizach.
614
615         Add AccessibilityUIElement::clearSelectedChildren() to DRT and WKTR.
616         Implement it for ATK.
617
618         * DumpRenderTree/AccessibilityUIElement.h:
619         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
620         (AccessibilityUIElement::clearSelectedChildren):
621         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
622         (AccessibilityUIElement::clearSelectedChildren):
623         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
624         (AccessibilityUIElement::clearSelectedChildren):
625         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
626         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
627         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
628         (WTR::AccessibilityUIElement::clearSelectedChildren):
629         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
630         (WTR::AccessibilityUIElement::clearSelectedChildren):
631         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
632         (WTR::AccessibilityUIElement::clearSelectedChildren):
633
634 2016-11-04  Per Arne Vollan  <pvollan@apple.com>
635
636         [Win] Page visibility tests are timing out.
637         https://bugs.webkit.org/show_bug.cgi?id=164363
638
639         Reviewed by Brent Fulgham.
640
641         Implement methods to set page visibility.
642
643         * DumpRenderTree/win/TestRunnerWin.cpp:
644         (TestRunner::resetPageVisibility):
645         (TestRunner::setPageVisibility):
646
647 2016-11-03  Simon Fraser  <simon.fraser@apple.com>
648
649         Give all the geometry classes a single-argument scale() function for consistency
650         https://bugs.webkit.org/show_bug.cgi?id=164400
651
652         Reviewed by Zalan Bujtas.
653         
654         Test single-argument scale().
655
656         * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp:
657         (TestWebKitAPI::TEST):
658
659 2016-11-03  Chris Dumez  <cdumez@apple.com>
660
661         [WK2][Cocoa] Implement user interface for HTML form validation
662         https://bugs.webkit.org/show_bug.cgi?id=164143
663         <rdar://problem/28944652>
664
665         Reviewed by Simon Fraser.
666
667         Add support for UIScriptController::contentsOfUserInterfaceItem("validationBubble")
668         on both Mac and iOS to retrieve the currently displayed validation message.
669
670         * DumpRenderTree/mac/UIScriptControllerMac.mm:
671         (WTR::UIScriptController::contentsOfUserInterfaceItem):
672         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
673         (WTR::UIScriptController::contentsOfUserInterfaceItem):
674         (WTR::UIScriptController::selectFormAccessoryPickerRow):
675         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
676         (WTR::UIScriptController::contentsOfUserInterfaceItem):
677
678 2016-11-03  Konstantin Tokarev  <annulen@yandex.ru>
679
680         Fixes to build JSCOnly on macOS
681         https://bugs.webkit.org/show_bug.cgi?id=164379
682
683         Reviewed by Michael Catanzaro.
684
685         * TestWebKitAPI/PlatformJSCOnly.cmake: Moved BUILDING_JSCONLY__
686         definition to OptionsJSCOnly.cmake
687
688 2016-11-03  Dan Bernstein  <mitz@apple.com>
689
690         WKWebView’s _observedRenderingProgressEvents not restored after web process crash
691         https://bugs.webkit.org/show_bug.cgi?id=164368
692         <rdar://problem/29091954>
693
694         Reviewed by Anders Carlsson.
695
696         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
697         * TestWebKitAPI/Tests/WebKit2Cocoa/ObservedRenderingProgressEventsAfterCrash.mm: Added.
698         (TEST):
699
700 2016-11-03  Alex Christensen  <achristensen@webkit.org>
701
702         Purge PassRefPtr from Tools
703         https://bugs.webkit.org/show_bug.cgi?id=164358
704
705         Reviewed by Michael Catanzaro.
706
707         * ImageDiff/efl/ImageDiff.cpp:
708         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp:
709         * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
710         (WTR::AccessibilityController::create):
711         (WTR::AccessibilityController::rootElement):
712         (WTR::AccessibilityController::focusedElement):
713         (WTR::AccessibilityController::elementAtPoint):
714         (WTR::AccessibilityController::addNotificationListener): Deleted.
715         (WTR::AccessibilityController::removeNotificationListener): Deleted.
716         (WTR::AccessibilityController::accessibleElementById): Deleted.
717         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
718         (WTR::AccessibilityController::resetToConsistentState): Deleted.
719         (WTR::AccessibilityController::platformName): Deleted.
720         * WebKitTestRunner/InjectedBundle/AccessibilityController.h:
721         (WTR::AccessibilityController::logAccessibilityEvents):
722         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.cpp:
723         (WTR::AccessibilityTextMarker::create):
724         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.h:
725         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.cpp:
726         (WTR::AccessibilityTextMarkerRange::create):
727         * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h:
728         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
729         (WTR::AccessibilityUIElement::create):
730         (WTR::AccessibilityUIElement::linkedElement):
731         (WTR::AccessibilityUIElement::headerElementAtIndex):
732         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
733         (WTR::AccessibilityUIElement::characterAtOffset):
734         (WTR::AccessibilityUIElement::wordAtOffset):
735         (WTR::AccessibilityUIElement::lineAtOffset):
736         (WTR::AccessibilityUIElement::sentenceAtOffset):
737         (WTR::AccessibilityUIElement::selectedTextMarkerRange):
738         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
739         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
740         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
741         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
742         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
743         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
744         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
745         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
746         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
747         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
748         (WTR::AccessibilityUIElement::AccessibilityUIElement): Deleted.
749         (WTR::AccessibilityUIElement::~AccessibilityUIElement): Deleted.
750         (WTR::AccessibilityUIElement::isEqual): Deleted.
751         (WTR::AccessibilityUIElement::elementAtPoint): Deleted.
752         (WTR::AccessibilityUIElement::childAtIndex): Deleted.
753         (WTR::AccessibilityUIElement::indexOfChild): Deleted.
754         (WTR::AccessibilityUIElement::childrenCount): Deleted.
755         (WTR::AccessibilityUIElement::titleUIElement): Deleted.
756         (WTR::AccessibilityUIElement::parentElement): Deleted.
757         (WTR::AccessibilityUIElement::takeFocus): Deleted.
758         (WTR::AccessibilityUIElement::takeSelection): Deleted.
759         (WTR::AccessibilityUIElement::addSelection): Deleted.
760         (WTR::AccessibilityUIElement::removeSelection): Deleted.
761         (WTR::AccessibilityUIElement::allAttributes): Deleted.
762         (WTR::AccessibilityUIElement::attributesOfLinkedUIElements): Deleted.
763         (WTR::AccessibilityUIElement::linkedUIElementAtIndex): Deleted.
764         (WTR::AccessibilityUIElement::attributesOfDocumentLinks): Deleted.
765         (WTR::AccessibilityUIElement::attributesOfChildren): Deleted.
766         (WTR::AccessibilityUIElement::parameterizedAttributeNames): Deleted.
767         (WTR::AccessibilityUIElement::increment): Deleted.
768         (WTR::AccessibilityUIElement::decrement): Deleted.
769         (WTR::AccessibilityUIElement::showMenu): Deleted.
770         (WTR::AccessibilityUIElement::press): Deleted.
771         (WTR::AccessibilityUIElement::stringAttributeValue): Deleted.
772         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue): Deleted.
773         (WTR::AccessibilityUIElement::uiElementAttributeValue): Deleted.
774         (WTR::AccessibilityUIElement::numberAttributeValue): Deleted.
775         (WTR::AccessibilityUIElement::boolAttributeValue): Deleted.
776         (WTR::AccessibilityUIElement::isAttributeSupported): Deleted.
777         (WTR::AccessibilityUIElement::isAttributeSettable): Deleted.
778         (WTR::AccessibilityUIElement::isPressActionSupported): Deleted.
779         (WTR::AccessibilityUIElement::isIncrementActionSupported): Deleted.
780         (WTR::AccessibilityUIElement::isDecrementActionSupported): Deleted.
781         (WTR::AccessibilityUIElement::role): Deleted.
782         (WTR::AccessibilityUIElement::subrole): Deleted.
783         (WTR::AccessibilityUIElement::roleDescription): Deleted.
784         (WTR::AccessibilityUIElement::computedRoleString): Deleted.
785         (WTR::AccessibilityUIElement::title): Deleted.
786         (WTR::AccessibilityUIElement::description): Deleted.
787         (WTR::AccessibilityUIElement::language): Deleted.
788         (WTR::AccessibilityUIElement::stringValue): Deleted.
789         (WTR::AccessibilityUIElement::accessibilityValue): Deleted.
790         (WTR::AccessibilityUIElement::helpText): Deleted.
791         (WTR::AccessibilityUIElement::orientation): Deleted.
792         (WTR::AccessibilityUIElement::x): Deleted.
793         (WTR::AccessibilityUIElement::y): Deleted.
794         (WTR::AccessibilityUIElement::width): Deleted.
795         (WTR::AccessibilityUIElement::height): Deleted.
796         (WTR::AccessibilityUIElement::intValue): Deleted.
797         (WTR::AccessibilityUIElement::minValue): Deleted.
798         (WTR::AccessibilityUIElement::maxValue): Deleted.
799         (WTR::AccessibilityUIElement::valueDescription): Deleted.
800         (WTR::AccessibilityUIElement::insertionPointLineNumber): Deleted.
801         (WTR::AccessibilityUIElement::selectedTextRange): Deleted.
802         (WTR::AccessibilityUIElement::isEnabled): Deleted.
803         (WTR::AccessibilityUIElement::isRequired): Deleted.
804         (WTR::AccessibilityUIElement::isFocused): Deleted.
805         (WTR::AccessibilityUIElement::isFocusable): Deleted.
806         (WTR::AccessibilityUIElement::isSelected): Deleted.
807         (WTR::AccessibilityUIElement::isSelectedOptionActive): Deleted.
808         (WTR::AccessibilityUIElement::isSelectable): Deleted.
809         (WTR::AccessibilityUIElement::isMultiSelectable): Deleted.
810         (WTR::AccessibilityUIElement::setSelectedChild): Deleted.
811         (WTR::AccessibilityUIElement::setSelectedChildAtIndex): Deleted.
812         (WTR::AccessibilityUIElement::removeSelectionAtIndex): Deleted.
813         (WTR::AccessibilityUIElement::selectedChildrenCount): Deleted.
814         (WTR::AccessibilityUIElement::selectedChildAtIndex): Deleted.
815         (WTR::AccessibilityUIElement::isExpanded): Deleted.
816         (WTR::AccessibilityUIElement::isChecked): Deleted.
817         (WTR::AccessibilityUIElement::isIndeterminate): Deleted.
818         (WTR::AccessibilityUIElement::isVisible): Deleted.
819         (WTR::AccessibilityUIElement::isOffScreen): Deleted.
820         (WTR::AccessibilityUIElement::isCollapsed): Deleted.
821         (WTR::AccessibilityUIElement::isIgnored): Deleted.
822         (WTR::AccessibilityUIElement::hasPopup): Deleted.
823         (WTR::AccessibilityUIElement::hierarchicalLevel): Deleted.
824         (WTR::AccessibilityUIElement::clickPointX): Deleted.
825         (WTR::AccessibilityUIElement::clickPointY): Deleted.
826         (WTR::AccessibilityUIElement::documentEncoding): Deleted.
827         (WTR::AccessibilityUIElement::documentURI): Deleted.
828         (WTR::AccessibilityUIElement::url): Deleted.
829         (WTR::AccessibilityUIElement::speak): Deleted.
830         (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Deleted.
831         (WTR::AccessibilityUIElement::attributesOfRowHeaders): Deleted.
832         (WTR::AccessibilityUIElement::attributesOfColumns): Deleted.
833         (WTR::AccessibilityUIElement::attributesOfRows): Deleted.
834         (WTR::AccessibilityUIElement::attributesOfVisibleCells): Deleted.
835         (WTR::AccessibilityUIElement::attributesOfHeader): Deleted.
836         (WTR::AccessibilityUIElement::indexInTable): Deleted.
837         (WTR::AccessibilityUIElement::rowIndexRange): Deleted.
838         (WTR::AccessibilityUIElement::columnIndexRange): Deleted.
839         (WTR::AccessibilityUIElement::rowCount): Deleted.
840         (WTR::AccessibilityUIElement::columnCount): Deleted.
841         (WTR::AccessibilityUIElement::rowHeaders): Deleted.
842         (WTR::AccessibilityUIElement::columnHeaders): Deleted.
843         (WTR::AccessibilityUIElement::selectedRowAtIndex): Deleted.
844         (WTR::AccessibilityUIElement::disclosedByRow): Deleted.
845         (WTR::AccessibilityUIElement::disclosedRowAtIndex): Deleted.
846         (WTR::AccessibilityUIElement::rowAtIndex): Deleted.
847         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): Deleted.
848         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex): Deleted.
849         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex): Deleted.
850         (WTR::AccessibilityUIElement::ariaIsGrabbed): Deleted.
851         (WTR::AccessibilityUIElement::ariaDropEffects): Deleted.
852         (WTR::AccessibilityUIElement::classList): Deleted.
853         (WTR::AccessibilityUIElement::lineForIndex): Deleted.
854         (WTR::AccessibilityUIElement::rangeForLine): Deleted.
855         (WTR::AccessibilityUIElement::rangeForPosition): Deleted.
856         (WTR::AccessibilityUIElement::boundsForRange): Deleted.
857         (WTR::AccessibilityUIElement::setSelectedTextRange): Deleted.
858         (WTR::AccessibilityUIElement::setSelectedVisibleTextRange): Deleted.
859         (WTR::AccessibilityUIElement::stringForRange): Deleted.
860         (WTR::AccessibilityUIElement::attributedStringForRange): Deleted.
861         (WTR::AccessibilityUIElement::attributedStringRangeIsMisspelled): Deleted.
862         (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate): Deleted.
863         (WTR::AccessibilityUIElement::uiElementForSearchPredicate): Deleted.
864         (WTR::AccessibilityUIElement::selectTextWithCriteria): Deleted.
865         (WTR::AccessibilityUIElement::cellForColumnAndRow): Deleted.
866         (WTR::AccessibilityUIElement::horizontalScrollbar): Deleted.
867         (WTR::AccessibilityUIElement::verticalScrollbar): Deleted.
868         (WTR::AccessibilityUIElement::addNotificationListener): Deleted.
869         (WTR::AccessibilityUIElement::removeNotificationListener): Deleted.
870         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Deleted.
871         (WTR::AccessibilityUIElement::textMarkerRangeForElement): Deleted.
872         (WTR::AccessibilityUIElement::textMarkerRangeLength): Deleted.
873         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Deleted.
874         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange): Deleted.
875         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange): Deleted.
876         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker): Deleted.
877         (WTR::AccessibilityUIElement::endTextMarkerForBounds): Deleted.
878         (WTR::AccessibilityUIElement::startTextMarkerForBounds): Deleted.
879         (WTR::AccessibilityUIElement::textMarkerForPoint): Deleted.
880         (WTR::AccessibilityUIElement::previousTextMarker): Deleted.
881         (WTR::AccessibilityUIElement::nextTextMarker): Deleted.
882         (WTR::AccessibilityUIElement::startTextMarker): Deleted.
883         (WTR::AccessibilityUIElement::endTextMarker): Deleted.
884         (WTR::AccessibilityUIElement::stringForTextMarkerRange): Deleted.
885         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute): Deleted.
886         (WTR::AccessibilityUIElement::indexForTextMarker): Deleted.
887         (WTR::AccessibilityUIElement::isTextMarkerValid): Deleted.
888         (WTR::AccessibilityUIElement::textMarkerForIndex): Deleted.
889         (WTR::AccessibilityUIElement::scrollToMakeVisible): Deleted.
890         (WTR::AccessibilityUIElement::scrollToGlobalPoint): Deleted.
891         (WTR::AccessibilityUIElement::scrollToMakeVisibleWithSubFocus): Deleted.
892         (WTR::AccessibilityUIElement::supportedActions): Deleted.
893         (WTR::AccessibilityUIElement::mathPostscriptsDescription): Deleted.
894         (WTR::AccessibilityUIElement::mathPrescriptsDescription): Deleted.
895         (WTR::AccessibilityUIElement::pathDescription): Deleted.
896         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
897         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
898         (WTR::EventSendingController::create):
899         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
900         * WebKitTestRunner/InjectedBundle/GCController.cpp:
901         (WTR::GCController::create):
902         * WebKitTestRunner/InjectedBundle/GCController.h:
903         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
904         (WTR::InjectedBundle::beginTesting):
905         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
906         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
907         (WTR::TestRunner::create):
908         * WebKitTestRunner/InjectedBundle/TestRunner.h:
909         * WebKitTestRunner/InjectedBundle/TextInputController.cpp:
910         (WTR::TextInputController::create):
911         * WebKitTestRunner/InjectedBundle/TextInputController.h:
912         * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
913         (WTR::AccessibilityController::accessibleElementById):
914         (WTR::AccessibilityController::rootElement):
915         (WTR::AccessibilityController::focusedElement):
916         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
917         * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.h:
918         (WTR::AccessibilityNotificationHandler::create):
919         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
920         (WTR::AccessibilityUIElement::elementAtPoint):
921         (WTR::AccessibilityUIElement::childAtIndex):
922         (WTR::accessibilityElementAtIndex):
923         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
924         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
925         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
926         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
927         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
928         (WTR::AccessibilityUIElement::rowAtIndex):
929         (WTR::AccessibilityUIElement::selectedChildAtIndex):
930         (WTR::AccessibilityUIElement::selectedRowAtIndex):
931         (WTR::AccessibilityUIElement::titleUIElement):
932         (WTR::AccessibilityUIElement::parentElement):
933         (WTR::AccessibilityUIElement::disclosedByRow):
934         (WTR::AccessibilityUIElement::uiElementAttributeValue):
935         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
936         (WTR::AccessibilityUIElement::cellForColumnAndRow):
937         (WTR::AccessibilityUIElement::horizontalScrollbar):
938         (WTR::AccessibilityUIElement::verticalScrollbar):
939         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
940         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
941         (WTR::AccessibilityUIElement::previousTextMarker):
942         (WTR::AccessibilityUIElement::nextTextMarker):
943         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
944         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
945         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
946         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
947         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
948         (WTR::AccessibilityUIElement::textMarkerForPoint):
949         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
950         (WTR::AccessibilityUIElement::textMarkerForIndex):
951         (WTR::AccessibilityUIElement::startTextMarker):
952         (WTR::AccessibilityUIElement::endTextMarker):
953         * WebKitTestRunner/InjectedBundle/ios/AccessibilityControllerIOS.mm:
954         (WTR::AccessibilityController::accessibleElementById):
955         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
956         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
957         (WTR::AccessibilityUIElement::headerElementAtIndex):
958         (WTR::AccessibilityUIElement::linkedElement):
959         (WTR::AccessibilityUIElement::elementAtPoint):
960         (WTR::AccessibilityUIElement::childAtIndex):
961         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
962         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
963         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
964         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
965         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
966         (WTR::AccessibilityUIElement::rowAtIndex):
967         (WTR::AccessibilityUIElement::selectedChildAtIndex):
968         (WTR::AccessibilityUIElement::selectedRowAtIndex):
969         (WTR::AccessibilityUIElement::titleUIElement):
970         (WTR::AccessibilityUIElement::parentElement):
971         (WTR::AccessibilityUIElement::disclosedByRow):
972         (WTR::AccessibilityUIElement::uiElementArrayAttributeValue):
973         (WTR::AccessibilityUIElement::uiElementAttributeValue):
974         (WTR::AccessibilityUIElement::rangeForLine):
975         (WTR::AccessibilityUIElement::rangeForPosition):
976         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
977         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
978         (WTR::AccessibilityUIElement::cellForColumnAndRow):
979         (WTR::AccessibilityUIElement::horizontalScrollbar):
980         (WTR::AccessibilityUIElement::verticalScrollbar):
981         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
982         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
983         (WTR::AccessibilityUIElement::previousTextMarker):
984         (WTR::AccessibilityUIElement::nextTextMarker):
985         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
986         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
987         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
988         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
989         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
990         (WTR::AccessibilityUIElement::textMarkerForPoint):
991         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
992         (WTR::AccessibilityUIElement::textMarkerForIndex):
993         (WTR::AccessibilityUIElement::startTextMarker):
994         (WTR::AccessibilityUIElement::endTextMarker):
995         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
996         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
997         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
998         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
999         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
1000         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
1001         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
1002         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
1003         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
1004         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
1005         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
1006         (WTR::AccessibilityUIElement::mathPrescriptsDescription):
1007         (WTR::AccessibilityUIElement::supportedActions):
1008         * WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm:
1009         (WTR::AccessibilityController::accessibleElementById):
1010         (WTR::AccessibilityController::logAccessibilityEvents): Deleted.
1011         * WebKitTestRunner/InjectedBundle/mac/AccessibilityNotificationHandler.mm:
1012         (makeValueRefForValue):
1013         (-[AccessibilityNotificationHandler _notificationReceived:]):
1014         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
1015         (WTR::AccessibilityUIElement::elementAtPoint):
1016         (WTR::AccessibilityUIElement::childAtIndex):
1017         (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
1018         (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
1019         (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
1020         (WTR::AccessibilityUIElement::ariaControlsElementAtIndex):
1021         (WTR::AccessibilityUIElement::disclosedRowAtIndex):
1022         (WTR::AccessibilityUIElement::rowAtIndex):
1023         (WTR::AccessibilityUIElement::selectedChildAtIndex):
1024         (WTR::AccessibilityUIElement::selectedRowAtIndex):
1025         (WTR::AccessibilityUIElement::titleUIElement):
1026         (WTR::AccessibilityUIElement::parentElement):
1027         (WTR::AccessibilityUIElement::disclosedByRow):
1028         (WTR::AccessibilityUIElement::uiElementAttributeValue):
1029         (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
1030         (WTR::AccessibilityUIElement::cellForColumnAndRow):
1031         (WTR::AccessibilityUIElement::horizontalScrollbar):
1032         (WTR::AccessibilityUIElement::verticalScrollbar):
1033         (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
1034         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
1035         (WTR::AccessibilityUIElement::previousTextMarker):
1036         (WTR::AccessibilityUIElement::nextTextMarker):
1037         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
1038         (WTR::AccessibilityUIElement::selectedTextMarkerRange):
1039         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
1040         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
1041         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
1042         (WTR::AccessibilityUIElement::startTextMarkerForBounds):
1043         (WTR::AccessibilityUIElement::textMarkerForPoint):
1044         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
1045         (WTR::AccessibilityUIElement::textMarkerForIndex):
1046         (WTR::AccessibilityUIElement::startTextMarker):
1047         (WTR::AccessibilityUIElement::endTextMarker):
1048         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
1049         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
1050         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
1051         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
1052         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
1053         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
1054         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
1055         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
1056         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
1057         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
1058         * WebKitTestRunner/efl/EventSenderProxyEfl.cpp:
1059         (WTR::keyPadName):
1060         (WTR::keyName):
1061
1062 2016-11-02  Alex Christensen  <achristensen@webkit.org>
1063
1064         Remove Battery Status API from the tree
1065         https://bugs.webkit.org/show_bug.cgi?id=164213
1066
1067         Reviewed by Sam Weinig.
1068
1069         * Scripts/webkitperl/FeatureList.pm:
1070         * Scripts/webkitpy/common/config/watchlist:
1071
1072 2016-11-02  Olivier Blin  <olivier.blin@softathome.com>
1073
1074         [GTK] Use libgcrypt instead of GnuTLS for CryptoDigest and SubtleCrypto HMAC implementation
1075         https://bugs.webkit.org/show_bug.cgi?id=163125
1076
1077         Reviewed by Michael Catanzaro.
1078
1079         * gtk/install-dependencies: List libgcrypt for WebKitGTK+ build, and gnutls for jhbuild only.
1080         gnutls is useful for glib-networking in jhbuild.
1081
1082 2016-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1083
1084         NetworkSession: Network process crash when converting main resource to download
1085         https://bugs.webkit.org/show_bug.cgi?id=164220
1086
1087         Reviewed by Alex Christensen.
1088
1089         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
1090         converted to a download and another one to test the cancellation as the test was doing before. When doing the
1091         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
1092         download.
1093
1094         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
1095         (testPolicyResponseDownload):
1096         (testPolicyResponseDownloadCancel):
1097         (beforeAll):
1098
1099 2016-11-01  Alex Christensen  <achristensen@webkit.org>
1100
1101         Remove PassRefPtr from DumpRenderTree
1102         https://bugs.webkit.org/show_bug.cgi?id=164307
1103
1104         Reviewed by Sam Weinig.
1105
1106         * DumpRenderTree/PixelDumpSupport.h:
1107         * DumpRenderTree/TestRunner.cpp:
1108         (TestRunner::create):
1109         * DumpRenderTree/TestRunner.h:
1110         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
1111         (createBitmapContext):
1112         * DumpRenderTree/cg/PixelDumpSupportCG.h:
1113         (BitmapContext::createByAdoptingBitmapAndContext):
1114         * DumpRenderTree/ios/PixelDumpSupportIOS.mm:
1115         (createBitmapContextFromWebView):
1116         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
1117         (createBitmapContextFromWebView):
1118         (createPagedBitmapContext):
1119         * DumpRenderTree/mac/TestRunnerMac.mm:
1120         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
1121         (createBitmapContextFromWebView):
1122         * DumpRenderTree/win/TextInputController.h:
1123
1124 2016-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1125
1126         [GTK] Use GTestDBus instead of dbus-launch in WebKitTestBus.cpp
1127         https://bugs.webkit.org/show_bug.cgi?id=161481
1128
1129         Reviewed by Michael Catanzaro.
1130
1131         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.cpp:
1132         (WebKitTestBus::WebKitTestBus):
1133         (WebKitTestBus::~WebKitTestBus):
1134         (WebKitTestBus::run):
1135         (WebKitTestBus::getOrCreateConnection):
1136         (WebKitTestBus::createProxy):
1137         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.h:
1138
1139 2016-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1140
1141         Unreviewed. Fix /webkit2/WebKitWebContext/get-plugins in the bots after r208273.
1142
1143         The test fails now if WEBKIT_TEST_PLUGIN_DIR contains symlinks, which is the case of the GTK+ bots.
1144
1145         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
1146         (testWebContextGetPlugins): Use realpath with WEBKIT_TEST_PLUGIN_DIR when building the expected plugins path.
1147
1148 2016-11-02  Romain Bellessort  <romain.bellessort@crf.canon.fr>
1149
1150         [Readable Streams API] Enable creation of ReadableByteStreamController
1151         https://bugs.webkit.org/show_bug.cgi?id=164014
1152
1153         Reviewed by Youenn Fablet.
1154
1155         Enable the byte stream part of Readable Streams API by default.
1156
1157         * Scripts/webkitperl/FeatureList.pm:
1158         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1159
1160 2016-11-01  Ryosuke Niwa  <rniwa@webkit.org>
1161
1162         Remove CUSTOM_ELEMENTS build flag
1163         https://bugs.webkit.org/show_bug.cgi?id=164267
1164
1165         Reviewed by Antti Koivisto.
1166
1167         Removed the build flag.
1168
1169         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1170
1171 2016-11-01  Alex Christensen  <achristensen@webkit.org>
1172
1173         Percent-encode non-ASCII code points in hosts of URLs with unrecognized schemes
1174         https://bugs.webkit.org/show_bug.cgi?id=164290
1175
1176         Reviewed by Tim Horton.
1177
1178         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1179         (TestWebKitAPI::checkRelativeURL):
1180         (TestWebKitAPI::checkURLDifferences):
1181         (TestWebKitAPI::checkRelativeURLDifferences):
1182         Move helper functions to the top so I can use them from any tests.
1183         (TestWebKitAPI::shouldFail):
1184         (TestWebKitAPI::checkURL):
1185         (TestWebKitAPI::TEST_F):
1186
1187 2016-11-01  Hyowon Kim  <hw1008.kim@samsung.com>
1188
1189         [GTK] Failed to generate GeoClue2Interface files.
1190         https://bugs.webkit.org/show_bug.cgi?id=164270
1191
1192         Reviewed by Michael Catanzaro.
1193
1194         To generate codes for D-Bus interfaces,
1195         geoclue-2.0 package including D-Bus introspection XML files should be installed.
1196
1197         * gtk/install-dependencies: add geoclue-2.0 package.
1198
1199 2016-11-01  Fujii Hironori  <Hironori.Fujii@sony.com>
1200
1201         [CMake] generate-bindings-all.pl uses USES_TERMINAL which leaves a noisy line in interactive Ninja build
1202         https://bugs.webkit.org/show_bug.cgi?id=163868
1203
1204         Reviewed by Michael Catanzaro.
1205
1206         It takes long time for generate-bindings-all.pl to generate all
1207         bindings.  So, it shows the progress while running and
1208         USES_TERMINAL option of add_custom_target have been used to invoke
1209         the command.  However, USES_TERMINAL leaves a noisy line in
1210         Ninja's neat build log of interactive build.
1211
1212         A new CMake option SHOW_BINDINGS_GENERATION_PROGRESS is added to
1213         stop using USES_TERMINAL only in case of interactive Ninja build.
1214
1215         * Scripts/webkitdirs.pm:
1216         (generateBuildSystemFromCMakeProject): Enable
1217         SHOW_BINDINGS_GENERATION_PROGRESS not in case of interactive
1218         Ninja build.
1219
1220 2016-10-31  Simon Fraser  <simon.fraser@apple.com>
1221
1222         Add basic visual/layout viewport support for fixed position layout
1223         https://bugs.webkit.org/show_bug.cgi?id=164261
1224
1225         Reviewed by Dean Jackson.
1226
1227         Don't give tests in the "visual-viewport" directory a flexible viewport.
1228
1229         * DumpRenderTree/mac/DumpRenderTree.mm:
1230         (shouldMakeViewportFlexible):
1231         * WebKitTestRunner/TestOptions.cpp:
1232         (WTR::shouldMakeViewportFlexible):
1233
1234 2016-10-29  Filip Pizlo  <fpizlo@apple.com>
1235
1236         JSC should support SharedArrayBuffer
1237         https://bugs.webkit.org/show_bug.cgi?id=163986
1238
1239         Reviewed by Keith Miller.
1240         
1241         Use the right kind of typed array API.
1242
1243         * DumpRenderTree/TestRunner.cpp:
1244         (setAudioResultCallback):
1245
1246 2016-10-31  Simon Fraser  <simon.fraser@apple.com>
1247
1248         Make UIScriptController::zoomToScale() work on Mac WK1 and WK2
1249         https://bugs.webkit.org/show_bug.cgi?id=164238
1250
1251         Reviewed by Dean Jackson.
1252
1253         Implement UIScriptController::zoomToScale() for WTR and DRT on Mac.
1254
1255         * DumpRenderTree/mac/UIScriptControllerMac.mm:
1256         (WTR::UIScriptController::zoomToScale):
1257         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1258         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1259         (WTR::UIScriptController::zoomToScale):
1260
1261 2016-10-31  Dewei Zhu  <dewei_zhu@apple.com>
1262
1263         Update twisted version in webkitpy.thirdparty.autoinstalled module.
1264         https://bugs.webkit.org/show_bug.cgi?id=154667
1265
1266         Reviewed by Ryosuke Niwa.
1267
1268         Use twisted_15_5_0 for the twisted module used by run-benchmark because there is a bug in twisted 12.1.0 which sometimes stops the test.
1269         Installing twisted was introduced in https://bugs.webkit.org/show_bug.cgi?id=147082 for run-benchmark script.
1270         Since buildbot relies on twisted 12.1.0 and has not been verified the compatibility on twisted 15.5.0, it would be more secure to use an individual version for run-benchmark script.
1271
1272         * Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:
1273         * Scripts/webkitpy/thirdparty/__init__.py:
1274         (AutoinstallImportHook.find_module):
1275         (AutoinstallImportHook._install_twisted_15_5_0):
1276         (AutoinstallImportHook._install_twisted): Deleted.
1277
1278 2016-10-31  Ryosuke Niwa  <rniwa@webkit.org>
1279
1280         Enable custom elements by default everywhere
1281         https://bugs.webkit.org/show_bug.cgi?id=164242
1282
1283         Reviewed by Antti Koivisto.
1284
1285         Enable custom elements API on every port by default.
1286
1287         * Scripts/webkitperl/FeatureList.pm:
1288
1289 2016-10-31  Nan Wang  <n_wang@apple.com>
1290
1291         AX: aria-sort is not exposed on iOS
1292         https://bugs.webkit.org/show_bug.cgi?id=164245
1293
1294         Reviewed by Chris Fleizach.
1295
1296         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
1297         (AccessibilityUIElement::stringAttributeValue):
1298         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1299         (WTR::AccessibilityUIElement::stringAttributeValue):
1300
1301 2016-10-31  Simon Fraser  <simon.fraser@apple.com>
1302
1303         Implement IntersectionObserver
1304         https://bugs.webkit.org/show_bug.cgi?id=159475
1305
1306         Reviewed by Ryosuke Niwa.
1307         
1308         Add ENABLE_INTERSECTION_OBSERVER, enabled by default.
1309
1310         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1311
1312 2016-10-31  Ryan Haddad  <ryanhaddad@apple.com>
1313
1314         Unreviewed, rolling out r208154.
1315
1316         This change caused an assertion failure during API tests on
1317         macOS.
1318
1319         Reverted changeset:
1320
1321         "NetworkSession: Network process crash when converting main
1322         resource to download"
1323         https://bugs.webkit.org/show_bug.cgi?id=164220
1324         http://trac.webkit.org/changeset/208154
1325
1326 2016-10-31  Said Abou-Hallawa  <sabouhallawa@apple.com>
1327
1328         Unreviewed, change my status to be a WebKit reviewer
1329
1330         * Scripts/webkitpy/common/config/contributors.json:
1331
1332 2016-10-31  Carlos Garcia Campos  <cgarcia@igalia.com>
1333
1334         NetworkSession: Network process crash when converting main resource to download
1335         https://bugs.webkit.org/show_bug.cgi?id=164220
1336
1337         Reviewed by Alex Christensen.
1338
1339         Split /webkit2/Downloads/policy-decision-download in two, one to test the full load when main resource is
1340         converted to a download and another one to test the cancellation as the test was doing before. When doing the
1341         full load, delay a bit the decide destination to ensure the load is aborted before the data task has became a
1342         download.
1343
1344         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
1345         (testPolicyResponseDownload):
1346         (testPolicyResponseDownloadCancel):
1347         (beforeAll):
1348
1349 2016-10-31  Keith Miller  <keith_miller@apple.com>
1350
1351         Unreviewed, fix watchlist regexp for wasm.
1352
1353         * Scripts/webkitpy/common/config/watchlist:
1354
1355 2016-10-31  Keith Miller  <keith_miller@apple.com>
1356
1357         autogenerated files from wasm.json should be in derived sources.
1358         https://bugs.webkit.org/show_bug.cgi?id=164152
1359
1360         Reviewed by Filip Pizlo.
1361
1362         Add message to make sure that people keep the wasm.jsons up to date.
1363
1364         * Scripts/webkitpy/common/config/watchlist:
1365
1366 2016-10-31  Wenson Hsieh  <wenson_hsieh@apple.com>
1367
1368         Holding down a key to choose an accented character should fire "insertReplacementText" input events
1369         https://bugs.webkit.org/show_bug.cgi?id=164209
1370         <rdar://problem/29019305>
1371
1372         Reviewed by Darin Adler.
1373
1374         Adds test support for inserting replacement text on Mac. This is equivalent to holding down a vowel key (e.g.
1375         'a') to bring up the menu containing accented version of the character, then selecting an accented character to
1376         insert in place of the typed character. This is exposed via UIScriptController.insertText, which takes a string
1377         and an insertion range.
1378
1379         * DumpRenderTree/mac/UIScriptControllerMac.mm:
1380         (WTR::UIScriptController::insertText):
1381         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1382
1383         Note that there is no callback argument to insertText, since UIScriptController::insertText is synchronous in
1384         the UI process. The tests end when corresponding input events fired as a result of insertText have been received
1385         in the web process. Please see the new layout tests for more detail.
1386
1387         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1388         (WTR::UIScriptController::insertText):
1389         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1390         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1391         (WTR::nsStringFromJSString):
1392         (WTR::UIScriptController::insertText):
1393
1394 2016-10-30  Sam Weinig  <sam@webkit.org>
1395
1396         [WebIDL] Restructure IDLParser structs to better match modern WebIDL concepts
1397         https://bugs.webkit.org/show_bug.cgi?id=164208
1398
1399         Reviewed by Darin Adler.
1400
1401         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
1402         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
1403         Update for new struct types.
1404
1405 2016-10-29  Darin Adler  <darin@apple.com>
1406
1407         Fix failing ExtendedColor tests.
1408
1409         * TestWebKitAPI/Tests/WebCore/ExtendedColor.cpp:
1410         Changed the tests in two ways: First, use EXPECT_EQ instead of EXPECT_TRUE
1411         for the string equality comparisons. This required including WTFStringUtilities.h.
1412         Second, change expected results to match what the code is currently generating,
1413         so alpha channels are "0.25" rather than "0.25 / 1". I'll let Dean fix both these
1414         tests and the code if these results are incorrect.
1415
1416 2016-10-29  Wenson Hsieh  <wenson_hsieh@apple.com>
1417
1418         UIScriptControllerIOS.mm should not be soft-linking UIKit
1419         https://bugs.webkit.org/show_bug.cgi?id=164171
1420
1421         Reviewed by Darin Adler.
1422
1423         Follow-up to r208090. Instead of soft-linking, we can simply grab UIKeyboardPredictionView by name instead.
1424
1425         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1426         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
1427
1428 2016-10-28  Darin Adler  <darin@apple.com>
1429
1430         Move all classes in the HTML directory from ExceptionCode to Exception
1431         https://bugs.webkit.org/show_bug.cgi?id=163876
1432
1433         Reviewed by Sam Weinig.
1434
1435         * TestWebKitAPI/Tests/WebCore/TimeRanges.cpp:
1436         (TestWebKitAPI::ToString): Updated for changes to the TimeRanges class.
1437         (TestWebKitAPI::TEST): Ditto.
1438
1439 2016-10-28  Devin Rousso  <dcrousso+webkit@gmail.com>
1440
1441         Unreviewed, changed Devin Rousso's email and nick.
1442
1443         * Scripts/webkitpy/common/config/contributors.json:
1444
1445 2016-10-28  Wenson Hsieh  <wenson_hsieh@apple.com>
1446
1447         Unreviewed, fix the iOS build after r208090.
1448
1449         Use soft-linking as needed in UIScriptControllerIOS.mm.
1450
1451         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1452         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
1453
1454 2016-10-28  Wenson Hsieh  <wenson_hsieh@apple.com>
1455
1456         iOS autocorrection does not trigger an input event of inputType "insertReplacementText"
1457         https://bugs.webkit.org/show_bug.cgi?id=164077
1458         <rdar://problem/28987810>
1459
1460         Reviewed by Simon Fraser.
1461
1462         Adds test support for inserting text candidates on iOS in the form of
1463         UIScriptController.selectTextCandidateAtIndex(index, callback), which selects the text candidate at a given
1464         index (this needs to be a value between 0-2 on iOS) and fires the callback when done.
1465
1466         To implement this, we wait for the text prediction view to have predictions (we determine this by polling at a
1467         given interval) and then tap the center of the text prediction view at the given index.
1468
1469         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
1470         (WTR::UIScriptController::selectTextCandidateAtIndex):
1471         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
1472         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
1473         (WTR::UIScriptController::selectTextCandidateAtIndex):
1474         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
1475         * TestRunnerShared/UIScriptContext/UIScriptController.h:
1476         * WebKitTestRunner/ios/UIKitSPI.h:
1477         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1478         (WTR::UIScriptController::selectTextCandidateAtIndex):
1479         (WTR::UIScriptController::waitForTextPredictionsViewAndSelectCandidateAtIndex):
1480
1481 2016-10-28  Commit Queue  <commit-queue@webkit.org>
1482
1483         Unreviewed, rolling out r207700.
1484         https://bugs.webkit.org/show_bug.cgi?id=164168
1485
1486         We are ready after r208086 (Requested by alexchristensen on
1487         #webkit).
1488
1489         Reverted changeset:
1490
1491         "Unreviewed, rolling out r207582."
1492         https://bugs.webkit.org/show_bug.cgi?id=163819
1493         http://trac.webkit.org/changeset/207700
1494
1495 2016-10-28  Alex Christensen  <achristensen@webkit.org>
1496
1497         Partially revert 207805 after resolution in URL spec issue 87
1498         https://bugs.webkit.org/show_bug.cgi?id=164142
1499
1500         Reviewed by Andy Estes.
1501
1502         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1503         (TestWebKitAPI::TEST_F):
1504
1505 2016-10-28  Alex Christensen  <achristensen@webkit.org>
1506
1507         URLParser should not try to interpret host of URLs with unrecognized schemes as IPv4 address
1508         https://bugs.webkit.org/show_bug.cgi?id=164154
1509
1510         Reviewed by Andy Estes.
1511
1512         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1513         (TestWebKitAPI::TEST_F):
1514
1515 2016-10-28  Sam Weinig  <sam@webkit.org>
1516
1517         [WebIDL] Update parser and code generators to only access type information through the type property
1518         https://bugs.webkit.org/show_bug.cgi?id=164141
1519
1520         Reviewed by Anders Carlsson.
1521
1522         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
1523         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
1524         Update to always access type information through type accessors. Remove use of removed
1525         properties.
1526
1527 2016-10-28  Frederic Wang  <fwang@igalia.com>
1528
1529         [GTK] Upgrade HarfBuzz to version 1.3.3
1530         https://bugs.webkit.org/show_bug.cgi?id=162719
1531
1532         Reviewed by Michael Catanzaro.
1533
1534         * gtk/jhbuild.modules:
1535
1536 2016-10-27  Chris Dumez  <cdumez@apple.com>
1537
1538         Regression(r203601): Caused crashes in iBooks
1539         https://bugs.webkit.org/show_bug.cgi?id=164093
1540         <rdar://problem/28745634>
1541
1542         Reviewed by Darin Adler.
1543
1544         Add API test coverage.
1545
1546         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1547         * TestWebKitAPI/Tests/mac/DOMNode.mm: Added.
1548         (-[DOMNodeTest webView:didFinishLoadForFrame:]):
1549         (TestWebKitAPI::TEST):
1550
1551 2016-10-27  Sam Weinig  <sam@webkit.org>
1552
1553         [WebIDL] Move code generators off of domSignature::type and onto domSignature::idlType
1554         https://bugs.webkit.org/show_bug.cgi?id=164089
1555
1556         Reviewed by Alex Christensen.
1557
1558         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
1559         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
1560         Update for the removal of domSignature::type, and new signatures of helper predicates.
1561
1562 2016-10-27  Commit Queue  <commit-queue@webkit.org>
1563
1564         Unreviewed, rolling out r207992.
1565         https://bugs.webkit.org/show_bug.cgi?id=164070
1566
1567         triggered aclocal version conflict (Requested by mcatanzaro on
1568         #webkit).
1569
1570         Reverted changeset:
1571
1572         "[GTK] Bump glib to 2.50.1 (or find alternative solution to
1573         Gtk+ CUPS build issue)"
1574         https://bugs.webkit.org/show_bug.cgi?id=163689
1575         http://trac.webkit.org/changeset/207992
1576
1577 2016-10-27  Joanmarie Diggs  <jdiggs@igalia.com>
1578
1579         [GTK] Bump glib to 2.50.1 (or find alternative solution to Gtk+ CUPS build issue)
1580         https://bugs.webkit.org/show_bug.cgi?id=163689
1581
1582         Reviewed by Michael Catanzaro.
1583
1584         In order to fix bug #163591, we need to apply an upstream patch to GTK+.
1585         But GTK+ won't build with that patch due to the following error:
1586
1587             m4_copy: won't overwrite defined macro: glib_DEFUN
1588
1589         There is an upstream GLib patch which solves that issue. We should apply
1590         that patch as well, until we bump GLib to 2.50.1 or later.
1591
1592         * gtk/jhbuild.modules: Apply upstream GLib patch.
1593         * gtk/patches/glib-deprecate-am-glib-gnu-gettext.patch: Added.
1594
1595 2016-10-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
1596
1597         Unreviewed fix of GTK and EFL test bots.
1598
1599         * Scripts/webkitperl/FeatureList.pm: Deactivated media-source and
1600         legacy-encrypted-media by default for GTK and EFL.
1601
1602 2016-10-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1603
1604         [GTK] JSC test wasm.yaml/wasm/js-api/test_basic_api.js.default-wasm and wasm.yaml/wasm/js-api/test_Module.js.default-wasm fail with Exception: ReferenceError: Can't find variable: WebAssembly
1605         https://bugs.webkit.org/show_bug.cgi?id=163846
1606
1607         Reviewed by Michael Catanzaro.
1608
1609         WebAssembly is now developed for Darwin right now.
1610         Disable WASM tests in the other platforms.
1611
1612         * Scripts/run-jsc-stress-tests:
1613
1614 2016-10-26  Enrique Ocaña González  <eocanha@igalia.com>
1615
1616         [cmake][GStreamer][MSE][EME] Build MSE and EME code after refactoring
1617         https://bugs.webkit.org/show_bug.cgi?id=162928
1618
1619         Reviewed by Xabier Rodriguez-Calvar.
1620
1621         Explicitly enable MSE and EME on WebKitGTK+ buildbots.
1622
1623         This patch is co-authored with Philippe Normand <philn@igalia.com> (EME support).
1624
1625         * Scripts/webkitperl/FeatureList.pm:
1626
1627 2016-10-25  Antoine Quint  <graouts@apple.com>
1628
1629         [Modern Media Controls] Media Controller: skip back support
1630         https://bugs.webkit.org/show_bug.cgi?id=163725
1631         <rdar://problem/27989480>
1632
1633         Reviewed by Dean Jackson.
1634
1635         * Scripts/webkitpy/layout_tests/servers/aliases.json: Adding a new alias such that we may
1636         access the modern-media-controls source files through the web server.
1637
1638 2016-10-19  Jer Noble  <jer.noble@apple.com>
1639
1640         Add WKWebView fullscreen delegate SPI
1641         https://bugs.webkit.org/show_bug.cgi?id=163674
1642
1643         Reviewed by Anders Carlsson.
1644
1645         Add a new API test which verifies that the fullscreen delegate receives notifications.
1646
1647         * TestWebKitAPI/Tests/WebKit2Cocoa/FullscreenDelegate.mm:
1648         (-[FullscreenDelegateMessageHandler userContentController:didReceiveScriptMessage:]):
1649         (-[FullscreenDelegateMessageHandler _webViewWillEnterFullscreen:]):
1650         (-[FullscreenDelegateMessageHandler _webViewDidEnterFullscreen:]):
1651         (-[FullscreenDelegateMessageHandler _webViewWillExitFullscreen:]):
1652         (-[FullscreenDelegateMessageHandler _webViewDidExitFullscreen:]):
1653         (TestWebKitAPI::TEST):
1654
1655 2016-10-24  Alex Christensen  <achristensen@webkit.org>
1656
1657         URLParser should match old URL::parse with %2E in path
1658         https://bugs.webkit.org/show_bug.cgi?id=163929
1659
1660         Reviewed by Alexey Proskuryakov.
1661
1662         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1663         (TestWebKitAPI::TEST_F):
1664
1665 2016-10-24  Ryan Haddad  <ryanhaddad@apple.com>
1666
1667         Unreviewed, rolling out r207795.
1668
1669         Introduced API test failures on iOS and macOS.
1670
1671         Reverted changeset:
1672
1673         "URLParser should match old URL::parse with %2E in path"
1674         https://bugs.webkit.org/show_bug.cgi?id=163929
1675         http://trac.webkit.org/changeset/207795
1676
1677 2016-10-24  Alex Christensen  <achristensen@webkit.org>
1678
1679         URLParser should match old URL::parse with %2E in path
1680         https://bugs.webkit.org/show_bug.cgi?id=163929
1681
1682         Reviewed by Alexey Proskuryakov.
1683
1684         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1685         (TestWebKitAPI::TEST_F):
1686
1687 2016-10-21  Alex Christensen  <achristensen@webkit.org>
1688
1689         URL::port should return Optional<uint16_t>
1690         https://bugs.webkit.org/show_bug.cgi?id=163806
1691
1692         Reviewed by Darin Adler.
1693
1694         * TestWebKitAPI/Tests/WebCore/URL.cpp:
1695         (TestWebKitAPI::TEST_F):
1696         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
1697         (TestWebKitAPI::checkURL):
1698         (TestWebKitAPI::checkRelativeURL):
1699         (TestWebKitAPI::checkURLDifferences):
1700         (TestWebKitAPI::checkRelativeURLDifferences):
1701         (TestWebKitAPI::TEST_F):
1702
1703 2016-10-24  Youenn Fablet  <youenn@apple.com>
1704
1705         Activate WEB_RTC compilation flags for Mac bots
1706         https://bugs.webkit.org/show_bug.cgi?id=163886
1707
1708         Reviewed by Eric Carlson.
1709
1710         * Scripts/webkitperl/FeatureList.pm:
1711         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1712
1713 2016-10-24  Wenson Hsieh  <wenson_hsieh@apple.com>
1714
1715         Unreviewed, add myself as a WebKit reviewer
1716
1717         * Scripts/webkitpy/common/config/contributors.json:
1718
1719 2016-10-22  Dan Bernstein  <mitz@apple.com>
1720
1721         Improve MiniBrowser window titles for URLs without paths and with no title
1722         <https://webkit.org/b/163843>
1723
1724         Reviewed by Darin Adler.
1725
1726         * MiniBrowser/mac/WK1BrowserWindowController.m:
1727         (-[WK1BrowserWindowController fetch:]): While we’re here, deploy
1728           +[NSURL _webkit_URLWithUserTypedString:] here to match the WK2BrowserWindowController
1729           version of this method.
1730         (-[WK1BrowserWindowController updateTitle:]): If the URL doesn’t have a lastPathComponent,
1731           use the entire URL.
1732         (-[WK1BrowserWindowController webView:didCommitLoadForFrame:]): Also while we’re here,
1733           deploy +[NSURL _web_userVisibleString] here to match the WK2BrowserWindowController
1734           behavior.
1735
1736         * MiniBrowser/mac/WK2BrowserWindowController.m:
1737         (-[WK2BrowserWindowController updateTitle:]): If the URL doesn’t have a lastPathComponent,
1738           use the entire URL.
1739
1740 2016-10-21  David Kilzer  <ddkilzer@apple.com>
1741
1742         Bug 163762: IntSize::area() should used checked arithmetic
1743         <https://webkit.org/b/163762>
1744
1745         Reviewed by Darin Adler.
1746
1747         * TestWebKitAPI/Tests/WebCore/IntRect.cpp:
1748         (TestWebKitAPI::TEST): Call unsafeGet().
1749         * TestWebKitAPI/Tests/WebCore/IntSize.cpp:
1750         (TestWebKitAPI::TEST): Ditto.
1751
1752 2016-10-21  James Craig  <jcraig@apple.com>
1753
1754         Unreviewed: Added Aaron Chu <aaron_chu@apple.com> to contributors list.
1755
1756         * Scripts/webkitpy/common/config/contributors.json:
1757
1758 2016-10-21  Commit Queue  <commit-queue@webkit.org>
1759
1760         Unreviewed, rolling out r207582.
1761         https://bugs.webkit.org/show_bug.cgi?id=163819
1762
1763         Not quite ready rdar://problem/28897179 (Requested by
1764         alexchristensen on #webkit).
1765
1766         Reverted changeset:
1767
1768         "Re-enable URLParser for non-Safari Cocoa apps after r207321"
1769         https://bugs.webkit.org/show_bug.cgi?id=163690
1770         http://trac.webkit.org/changeset/207582
1771
1772 2016-10-21  Jonathan Bedard  <jbedard@apple.com>
1773
1774         WebKitTestRunnerApp packages .idl file
1775         https://bugs.webkit.org/show_bug.cgi?id=163788
1776
1777         Reviewed by Darin Adler.
1778
1779         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Removed .idl file from app package, removed bad reference to app icon.
1780
1781 2016-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1782
1783         [EFL] REGRESSION(r207616): Build is broken due to missing libgeoclue-dev package
1784         https://bugs.webkit.org/show_bug.cgi?id=163733
1785
1786         Reviewed by Gyuyoung Kim.
1787
1788         * efl/install-dependencies: Added geoclue-2.0 package.
1789
1790 2016-10-21  Commit Queue  <commit-queue@webkit.org>
1791
1792         Unreviewed, rolling out r207609.
1793         https://bugs.webkit.org/show_bug.cgi?id=163776
1794
1795         As glib bump was rollout, we need to rollout this too
1796         (Requested by rego on #webkit).
1797
1798         Reverted changeset:
1799
1800         "[GTK] Cannot build GTK+ with CUPS 2.* versions"
1801         https://bugs.webkit.org/show_bug.cgi?id=163591
1802         http://trac.webkit.org/changeset/207609
1803
1804 2016-10-20  Chris Dumez  <cdumez@apple.com>
1805
1806         "Download Linked File" context menu action should use 'download' attribute as suggested filename
1807         https://bugs.webkit.org/show_bug.cgi?id=163742
1808         <rdar://problem/28840734>
1809
1810         Reviewed by Darin Adler.
1811
1812         Add API test coverage.
1813
1814         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1815         * TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html: Added.
1816         * TestWebKitAPI/Tests/WebKit2/mac/ContextMenuDownload.mm: Added.
1817         (TestWebKitAPI::didFinishLoadForFrame):
1818         (TestWebKitAPI::getContextMenuFromProposedMenu):
1819         (TestWebKitAPI::decideDestinationWithSuggestedFilename):
1820         (TestWebKitAPI::TEST):
1821
1822 2016-10-20  Commit Queue  <commit-queue@webkit.org>
1823
1824         Unreviewed, rolling out r207589.
1825         https://bugs.webkit.org/show_bug.cgi?id=163765
1826
1827         Introduced 17 new layout test failures (Requested by
1828         mcatanzaro on #webkit).
1829
1830         Reverted changeset:
1831
1832         "[GTK] Bump glib to 2.50.1"
1833         https://bugs.webkit.org/show_bug.cgi?id=163689
1834         http://trac.webkit.org/changeset/207589
1835
1836 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
1837
1838         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
1839         https://bugs.webkit.org/show_bug.cgi?id=163374
1840
1841         Reviewed by Darin Adler.
1842
1843         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1844
1845 2016-10-20  Sam Weinig  <sam@webkit.org>
1846
1847         Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
1848         https://bugs.webkit.org/show_bug.cgi?id=163713
1849
1850         Reviewed by Dan Bernstein.
1851
1852         * TestWebKitAPI/Tests/WTF/Variant.cpp:
1853         Add test for WTF::switchOn()
1854
1855 2016-10-20  Fujii Hironori  <Hironori.Fujii@sony.com>
1856
1857         [CMake] CMake does not support the dep files for implicit dependency
1858         https://bugs.webkit.org/show_bug.cgi?id=161433
1859
1860         Reviewed by Brent Fulgham.
1861
1862         Created a Perl script to generate all IDL bindings for CMake.
1863         This script can regenerate outdated bindings by based on the
1864         supplemental dependency and dep files created by
1865         '--write-dependencies' switch of generate-bindings.pl.
1866
1867         add_custom_target is used to invoke the script instead of
1868         add_custom_command because Ninja deletes all output files before
1869         executing the command in case of add_custom_command.
1870
1871         USES_TERMINAL option of add_custom_target has two effects:
1872         1) Not buffering output of the command
1873         2) Invoking the command in the special Ninja pool which inhibits parallel build
1874         One needs to use CMake 3.2 or later to enable this feature.
1875
1876         * DumpRenderTree/CMakeLists.txt: Specified a target name for
1877         GENERATE_BINDINGS. Added dependency for the target.
1878         * WebKitTestRunner/CMakeLists.txt: Ditto.
1879
1880 2016-10-20  Manuel Rego Casasnovas  <rego@igalia.com>
1881
1882         [GTK] Cannot build GTK+ with CUPS 2.* versions
1883         https://bugs.webkit.org/show_bug.cgi?id=163591
1884
1885         Reviewed by Michael Catanzaro.
1886
1887         GTK+ is wrongly checking about the available CUPS version,
1888         so if you have CUPS 2.* the configure step fails.
1889
1890         This has been already fixed upstream and included in 2.30 series:
1891         https://git.gnome.org/browse/gtk+/commit/?id=631f6b536485829a0bd00532f5826ad302b4951b
1892
1893         Added patch on JHBuild so we can now build GTK+ with CUPS 2.*.
1894
1895         * gtk/jhbuild.modules: Applied patch and avoid using "configure" script directly
1896         as the patch modifies "configure.ac".
1897         * gtk/patches/configure-fix-detecting-CUPS-2.x.patch: Added.
1898
1899 2016-10-20  Manuel Rego Casasnovas  <rego@igalia.com>
1900
1901         [GTK] Bump glib to 2.50.1
1902         https://bugs.webkit.org/show_bug.cgi?id=163689
1903
1904         Reviewed by Michael Catanzaro.
1905
1906         This is need in order to fix GTK+ build with CUPS 2.* (bug #163591).
1907
1908         * gtk/jhbuild.modules: Bump glib version. Pass --disable-libmount to build properly.
1909         Also we don't need the patches anymore.
1910         * gtk/patches/gdate-suppress-string-format-literal-warning.patch: Removed.
1911         * gtk/patches/glib-warning-fix.patch: Removed.
1912
1913 2016-10-19  Alex Christensen  <achristensen@webkit.org>
1914
1915         Re-enable URLParser for non-Safari Cocoa apps after r207321
1916         https://bugs.webkit.org/show_bug.cgi?id=163690
1917
1918         Reviewed by Darin Adler.
1919
1920         * DumpRenderTree/mac/DumpRenderTree.mm:
1921         (DumpRenderTreeMain):
1922         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
1923         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
1924         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
1925         (TestWebKitAPI::TEST):
1926         * WebKitTestRunner/TestController.cpp:
1927         (WTR::TestController::TestController):
1928
1929 2016-10-19  Ryan Haddad  <ryanhaddad@apple.com>
1930
1931         Unreviewed, rolling out r207557.
1932
1933         This change caused animations/font-variations tests to time
1934         out on pre-Sierra Macs.
1935
1936         Reverted changeset:
1937
1938         "[macOS] [iOS] Disable variation fonts on macOS El Capitan and
1939         iOS 9"
1940         https://bugs.webkit.org/show_bug.cgi?id=163374
1941         http://trac.webkit.org/changeset/207557
1942
1943 2016-10-19  Andy Estes  <aestes@apple.com>
1944
1945         Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type
1946         https://bugs.webkit.org/show_bug.cgi?id=163476
1947         <rdar://problem/26941395>
1948
1949         Reviewed by Andreas Kling.
1950
1951         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1952         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Added.
1953         (TEST): Added an API test that passes a nil MIMEType to
1954         -[WKWebView loadData:MIMEType:characterEncodingName:baseURL:].
1955
1956 2016-10-19  Jer Noble  <jer.noble@apple.com>
1957
1958         Modify testrunner to mute audio during tests
1959         https://bugs.webkit.org/show_bug.cgi?id=162582
1960
1961         Reviewed by Alexey Proskuryakov.
1962
1963         * DumpRenderTree/mac/DumpRenderTree.mm:
1964         (createWebViewAndOffscreenWindow):
1965         * WebKitTestRunner/TestController.cpp:
1966         (WTR::TestController::resetStateToConsistentValues):
1967
1968 2016-10-19  Joseph Pecoraro  <pecoraro@apple.com>
1969
1970         check-webkit-style: fix false-positive warnings about using #pragma once header guard
1971         https://bugs.webkit.org/show_bug.cgi?id=163575
1972
1973         Reviewed by Brady Eidson.
1974
1975         There were some false positive warnings about header guards
1976         for ObjC headers that don't need guards. This changes the
1977         style checker to no longer warn if there is no #pragma once.
1978         It only warns if there are #ifndef that should be #pragma once.
1979
1980         * Scripts/webkitpy/style/checkers/cpp.py:
1981         (check_for_header_guard):
1982         Change when we output an error.
1983
1984         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
1985         (CppStyleTest.test_build_header_guard):
1986         Update tests.
1987
1988 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
1989
1990         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
1991         https://bugs.webkit.org/show_bug.cgi?id=163374
1992
1993         Reviewed by Darin Adler.
1994
1995         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
1996
1997 2016-10-18  Philippe Normand  <pnormand@igalia.com>
1998
1999         WebRTC: [GTK] Update jhbuild environment for OpenWebRTC
2000         https://bugs.webkit.org/show_bug.cgi?id=163330
2001
2002         Reviewed by Michael Catanzaro.
2003
2004         Bring back the openwebrtc JHBuild moduleset in the time being. It
2005         should be removed after the bump to GStreamer 1.10 is complete and
2006         the libnice patches have been upstreamed. The GStreamer git
2007         snapshots used in this patch are the ones configured in Ericsson's
2008         GStreamer Cerbero fork.
2009
2010         * gtk/openwebrtc.modules: Added.
2011         * gtk/patches/libnice-0001-TURN-allow-REALM-to-be-empty.patch: Added.
2012         * gtk/patches/libnice-0001-agent-Remove-unnecessary-NULL-check.patch: Added.
2013         * gtk/patches/libnice-0001-nicesrc-spin-the-agent-mainloop-in-a-separate-thread.patch: Added.
2014         * gtk/patches/libnice-0002-Do-not-update-a-remote-candidate-s-type.patch: Added.
2015         * gtk/patches/libnice-0002-TURN-handle-437-Allocation-Mismatch-responses.patch: Added.
2016         * gtk/patches/libnice-0003-Do-not-compare-scope-for-IPv6-address-when-scope-is-.patch: Added.
2017         * gtk/patches/libnice-0004-Removing-no-op-assignment.patch: Added.
2018
2019 2016-10-18  Sam Weinig  <sam@webkit.org>
2020
2021         Replace std::experimental::variant with WTF::Variant (or similar)
2022         https://bugs.webkit.org/show_bug.cgi?id=163626
2023
2024         Reviewed by Chris Dumez.
2025
2026         Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
2027         into the WTF namespace.
2028
2029         * TestWebKitAPI/Tests/WTF/Variant.cpp:
2030         (TestWebKitAPI::TEST):
2031
2032 2016-10-18  Simon Fraser  <simon.fraser@apple.com>
2033
2034         Add a MiniBrowser menu item to apply page scale in WK1 and WK2
2035         https://bugs.webkit.org/show_bug.cgi?id=163627
2036
2037         Reviewed by Dean Jackson.
2038
2039         Rename setScale: to setViewScale: and add setPageScale:, hooking it up for WK1 (via exisiting SPI)
2040         and WK2 (via new SPI).
2041
2042         * MiniBrowser/mac/BrowserWindowController.h:
2043         * MiniBrowser/mac/BrowserWindowController.m:
2044         (-[BrowserWindowController pageScaleForMenuItemTag:]):
2045         (-[BrowserWindowController setPageScale:]):
2046         (-[BrowserWindowController setViewScale:]):
2047         (-[BrowserWindowController setScale:]): Deleted.
2048         * MiniBrowser/mac/MainMenu.xib:
2049         * MiniBrowser/mac/WK1BrowserWindowController.m:
2050         (-[WK1BrowserWindowController setPageScale:]):
2051         (-[WK1BrowserWindowController setViewScale:]):
2052         (areEssentiallyEqual):
2053         (-[WK1BrowserWindowController validateMenuItem:]):
2054         (-[WK1BrowserWindowController setScale:]): Deleted.
2055         * MiniBrowser/mac/WK2BrowserWindowController.m:
2056         (-[WK2BrowserWindowController setPageScale:]):
2057         (-[WK2BrowserWindowController viewScaleForMenuItemTag:]):
2058         (-[WK2BrowserWindowController setViewScale:]):
2059         (areEssentiallyEqual):
2060         (-[WK2BrowserWindowController validateMenuItem:]):
2061         (viewScaleForMenuItemTag): Deleted.
2062         (-[WK2BrowserWindowController setScale:]): Deleted.
2063
2064 2016-10-18  Anders Carlsson  <andersca@apple.com>
2065
2066         Add an beforeunload alert to the WebKitLegacy MiniBrowser
2067         https://bugs.webkit.org/show_bug.cgi?id=163634
2068
2069         Reviewed by Sam Weinig.
2070
2071         * MiniBrowser/mac/WK1BrowserWindowController.m:
2072         (-[WK1BrowserWindowController webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:]):
2073
2074 2016-10-18  Commit Queue  <commit-queue@webkit.org>
2075
2076         Unreviewed, rolling out r207443.
2077         https://bugs.webkit.org/show_bug.cgi?id=163616
2078
2079         "Caused 5% PLT regression" (Requested by krollin on #webkit).
2080
2081         Reverted changeset:
2082
2083         "Crash in ASCIICaseInsensitiveHash::hash() when a response has
2084         a null MIME type"
2085         https://bugs.webkit.org/show_bug.cgi?id=163476
2086         http://trac.webkit.org/changeset/207443
2087
2088 2016-10-18  Eric Carlson  <eric.carlson@apple.com>
2089
2090         [MediaStream] Resolve constraints and enumerate devices in the UI process
2091         https://bugs.webkit.org/show_bug.cgi?id=162147
2092         <rdar://problem/28803569>
2093
2094         Reviewed by Darin Adler.
2095
2096         * WebKitTestRunner/TestController.cpp:
2097         (WTR::TestController::resetPreferencesToConsistentValues): Enable mock capture devices.
2098         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Update for API changes.
2099
2100 2016-10-17  Megan Gardner  <megan_gardner@apple.com>
2101
2102         Add test and infrastructure for link popover
2103         https://bugs.webkit.org/show_bug.cgi?id=163406
2104
2105         Reviewed by Simon Fraser.
2106
2107         Added functionality test for link popovers.
2108         Can query for what URL is loaded, and that the popover has appeared or has
2109         been dismissed.
2110         Added a link popover test.
2111
2112         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
2113         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
2114         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
2115         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
2116         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2117         * TestRunnerShared/UIScriptContext/UIScriptContext.h:
2118         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
2119         (WTR::UIScriptController::setDidShowForcePressPreviewCallback):
2120         (WTR::UIScriptController::didShowForcePressPreviewCallback):
2121         (WTR::UIScriptController::setDidDismissForcePressPreviewCallback):
2122         (WTR::UIScriptController::didDismissForcePressPreviewCallback):
2123         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
2124         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
2125         (WTR::UIScriptController::didEndFormControlInteractionCallback): Deleted.
2126         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
2127         * TestRunnerShared/UIScriptContext/UIScriptController.h:
2128         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
2129         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
2130         (-[TestRunnerWKWebView dealloc]):
2131         (-[TestRunnerWKWebView didShowForcePressPreview]):
2132         (-[TestRunnerWKWebView didDismissForcePressPreview]):
2133         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
2134         (WTR::UIScriptController::platformSetDidShowForcePressPreviewCallback):
2135         (WTR::UIScriptController::platformSetDidDismissForcePressPreviewCallback):
2136         (WTR::UIScriptController::platformSetDidEndFormControlInteractionCallback): Deleted.
2137
2138 2016-10-17  Tim Horton  <timothy_horton@apple.com>
2139
2140         REGRESSION (r169805): WKWebView canGoBack returning YES when nothing is in the back-forward list after restoring session state
2141         https://bugs.webkit.org/show_bug.cgi?id=163573
2142         <rdar://problem/28744549>
2143
2144         Reviewed by Dan Bernstein.
2145
2146         * TestWebKitAPI/Tests/WebKit2/WKBackForwardList.mm:
2147         (TEST):
2148         Add a test ensuring that canGoBack returns NO after restoring session state without navigating.
2149
2150 2016-10-17  Andy Estes  <aestes@apple.com>
2151
2152         Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type
2153         https://bugs.webkit.org/show_bug.cgi?id=163476
2154         <rdar://problem/26941395>
2155
2156         Reviewed by Tim Horton.
2157
2158         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2159         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadDataWithNilMIMEType.mm: Added.
2160         (TEST): Added an API test that passes a nil MIMEType to
2161         -[WKWebView loadData:MIMEType:characterEncodingName:baseURL:].
2162
2163 2016-10-17  Dean Jackson  <dino@apple.com>
2164
2165         Allow creation of ExtendedColors and make Color immutable
2166         https://bugs.webkit.org/show_bug.cgi?id=163557
2167         <rdar://problem/28805360>
2168
2169         Reviewed by Darin Adler and Dave Hyatt.
2170
2171         API tests for ExtendedColor.
2172
2173         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2174         * TestWebKitAPI/Tests/WebCore/ExtendedColor.cpp: Added.
2175         (TestWebKitAPI::TEST):
2176         (TestWebKitAPI::makeColor):
2177
2178 2016-10-17  JF Bastien  <jfbastien@apple.com>
2179
2180         WebAssembly JS API: implement basic stub
2181
2182         Implement the global WebAssembly JavaScript object, and its constructor +
2183         function properties as described in:
2184           https://github.com/WebAssembly/design/blob/master/JS.md
2185
2186         These don't do anything at the moment, the parent bug will take care of adding
2187         more functionality and associated tests.
2188
2189         WebAssembly JS API: implement basic stub
2190         https://bugs.webkit.org/show_bug.cgi?id=163404
2191
2192         Reviewed by Keith Miller.
2193
2194         * Scripts/run-jsc-stress-tests: use the new JSC option which exposes the WebAssembly object.
2195
2196 2016-10-17  Fujii Hironori  <Hironori.Fujii@sony.com>
2197
2198         resolve-ChangeLogs: Specify --no-page to git diff
2199         https://bugs.webkit.org/show_bug.cgi?id=163441
2200
2201         Reviewed by Darin Adler.
2202
2203         resolve-ChangeLogs shows the result after resolving by invoking
2204         'git diff'. It runs a pager for every ChangeLog if it is under
2205         TTY.
2206
2207         * Scripts/resolve-ChangeLogs:
2208         (showStatus): Specify '--no-page' to git diff.
2209
2210 2016-10-17  Michael Catanzaro  <mcatanzaro@igalia.com>
2211
2212         Move user agent quirks to cross-platform location
2213         https://bugs.webkit.org/show_bug.cgi?id=163508
2214
2215         Reviewed by Carlos Garcia Campos.
2216
2217         Move the test to a cross-platform location and improve it to better check the full list of
2218         sites we have defined quirks for.
2219
2220         * TestWebKitAPI/PlatformGTK.cmake:
2221         * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp.
2222         (TestWebKitAPI::assertUserAgentForURLHasChromeBrowserQuirk):
2223         (TestWebKitAPI::assertUserAgentForURLHasMacPlatformQuirk):
2224         (TestWebKitAPI::TEST):
2225
2226 2016-10-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2227
2228         [SOUP] Downloads should always sniff contents
2229         https://bugs.webkit.org/show_bug.cgi?id=163538
2230
2231         Reviewed by Michael Catanzaro.
2232
2233         Add a test case to check that the MIME type is correctly guessed for downloads.
2234
2235         * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
2236         (writeNextChunk):
2237         (serverCallback):
2238         (testDownloadMIMEType):
2239         (beforeAll):
2240         (writeNextChunkIdle): Deleted.
2241
2242 2016-10-16  Daniel Bates  <dabates@apple.com>
2243
2244         Fix Perl warning about masked variable following <http://trac.webkit.org/changeset/207382>
2245         (https://bugs.webkit.org/show_bug.cgi?id=163456)
2246
2247         * Scripts/prepare-ChangeLog:
2248         (actuallyGenerateFunctionLists):
2249
2250 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2251
2252         Unreviewed. Fix GTK+ unit test /webkit2/WebKitWebContext/languages after r206949.
2253
2254         After r206949 navigator.language returns en-US instead of en-us. Language tags in Accept-Language header are
2255         actually case-insensitive, so we should actually do case-insensitive comparisons, but we only have
2256         g_assert_cmpstr for tests.
2257
2258         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2259         (testWebContextLanguages):
2260
2261 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2262
2263         [GTK] WebKitWebPage URI not updated after URI is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame
2264         https://bugs.webkit.org/show_bug.cgi?id=163389
2265
2266         Reviewed by Michael Catanzaro.
2267
2268         Update /webkit2/WebKitWebPage/get-uri test to check that web view and page uri always match even when request is
2269         modified by WebKitWebPage::send-request signal.
2270
2271         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2272         (testWebPageURI):
2273
2274 2016-10-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2275
2276         Document request not updated after willSendRequest is called for a redirect
2277         https://bugs.webkit.org/show_bug.cgi?id=163436
2278
2279         Reviewed by Michael Catanzaro.
2280
2281         Update /webkit2/WebKitWebView/active-uri test to check the active URI also when modified by
2282         WebKitPage::send-request signal in a web extension.
2283
2284         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2285         (testWebViewActiveURI):
2286         (serverCallback):
2287         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2288         (sendRequestCallback):
2289         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
2290         (loadChangedCallback):
2291
2292 2016-10-15  Dan Bernstein  <mitz@apple.com>
2293
2294         REGRESSION (r191699): Contextual menu in Mail compose view doesn’t include any of the standard submenus
2295         https://bugs.webkit.org/show_bug.cgi?id=163492
2296         <rdar://problem/28654799>
2297
2298         Reviewed by Darin Adler.
2299
2300         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2301         * TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm: Added.
2302         (-[ContextMenuDefaultItemsHaveTagsDelegate webView:didFinishLoadForFrame:]):
2303         (TestWebKitAPI::TEST):
2304
2305 2016-10-15  Daniel Bates  <dabates@apple.com>
2306
2307         prepare-ChangeLog erroneously said that a python __init__ method was deleted
2308         https://bugs.webkit.org/show_bug.cgi?id=163456
2309
2310         Reviewed by Simon Fraser.
2311
2312         Fixes an issue where prepare-ChangeLog may list as deleted functions that are
2313         immediately above added code.
2314
2315         Currently prepare-ChangeLog makes use of the same overlap detection algorithm
2316         to compute the list of deleted functions as it does to compute added and modified
2317         functions. We consider a function deleted if its entire function body and signature
2318         are removed. It is sufficient to compare the list of functions before the patch
2319         is applied and the list of functions are the patch is applied to identify
2320         these functions.
2321
2322         * Scripts/prepare-ChangeLog: Fix some style nits, including using Camel Case for
2323         variable names.
2324         (actuallyGenerateFunctionLists): Modified to call computeModifiedFunctions(). Always
2325         compute the list of functions in the file after the patch regardless of whether the
2326         patch only contains deletions. We will compare this list against the list of functions
2327         before the patch was applied to determine the deleted functions.
2328         (computeModifiedFunctions): Renamed; formerly named generateFunctionListsByRanges.
2329         Removed out argument for the seen functions as we no longer make use of when computing
2330         the list of deleted functions.
2331         (diffCommand): Update comment.
2332         (generateFunctionListsByRanges): Deleted.
2333         * Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl: Added more unit tests.
2334
2335 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
2336
2337         REGRESSION (r206973): Running "webkit-patch suggest-reviewers" throws an AttributeError: 'NoneType' object has no attribute 'full_name'
2338         https://bugs.webkit.org/show_bug.cgi?id=163478
2339
2340         Reviewed by Daniel Bates.
2341         
2342         Handle a None other in Contributor.__eq__.
2343
2344         * Scripts/webkitpy/common/config/committers.py:
2345         (Contributor.__eq__):
2346
2347 2016-10-14  JF Bastien  <jfbastien@apple.com>
2348
2349         Basic WebAssembly testing
2350
2351         Create a small DSL in JavaScript which can build WebAssembly binary modules based on the JSON description of the format as described in:
2352         https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
2353
2354         This DSL can then be used to write small text description of valid and invalid WebAssembly binaries, making testing the JSC implementation much easier.
2355
2356         Details and example in README.md.
2357
2358         Basic WebAssembly testing
2359         https://bugs.webkit.org/show_bug.cgi?id=163267
2360
2361         Reviewed by Keith Miller.
2362
2363         * Scripts/run-javascriptcore-tests:
2364         (runJSCStressTests): run wasm.yaml tests
2365         * Scripts/run-jsc-stress-tests: add a WebAssembly-specific runner
2366
2367 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
2368
2369         Annotate bots in contributors.json and don't show them on webkit.org/team
2370         https://bugs.webkit.org/show_bug.cgi?id=163317
2371
2372         Reviewed by Daniel Bates.
2373         
2374         Add "class" : "bot" for non-humans in contributors.json and round-trip it.
2375
2376         * Scripts/webkitpy/common/config/committers.py:
2377         (Contributor.__init__):
2378         (Contributor.as_dict):
2379         (Bot):
2380         (Bot.__init__):
2381         (CommitterList.load_json):
2382         * Scripts/webkitpy/common/config/contributors.json:
2383
2384 2016-10-14  Simon Fraser  <simon.fraser@apple.com>
2385
2386         Fix printing in WK2 MiniBrowser
2387         https://bugs.webkit.org/show_bug.cgi?id=163455
2388
2389         Reviewed by Tim Horton.
2390         
2391         Call the basic -_printOperationWithPrintInfo: which doens't require a frame argument.
2392
2393         * MiniBrowser/mac/WK2BrowserWindowController.m:
2394         (-[WK2BrowserWindowController printWebView:]):
2395
2396 2016-10-14  Commit Queue  <commit-queue@webkit.org>
2397
2398         Unreviewed, rolling out r207335.
2399         https://bugs.webkit.org/show_bug.cgi?id=163445
2400
2401         WebKit2.ProvisionalURLAfterWillSendRequestCallback is timing
2402         out on Mac bots (Requested by youenn on #webkit).
2403
2404         Reverted changeset:
2405
2406         "Add ProvisionalURLAfterWillSendRequestCallback.cpp and
2407         ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp to Mac
2408         builds"
2409         https://bugs.webkit.org/show_bug.cgi?id=163440
2410         http://trac.webkit.org/changeset/207335
2411
2412 2016-10-14  Youenn Fablet  <youenn@apple.com>
2413
2414         Add ProvisionalURLAfterWillSendRequestCallback.cpp and ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp to Mac builds
2415         https://bugs.webkit.org/show_bug.cgi?id=163440
2416
2417         Unreviewed.
2418
2419         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Adding new test files introduced in
2420         https://bugs.webkit.org/show_bug.cgi?id=146306 patch.
2421
2422 2016-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
2423
2424         Unreviewed. Removed myself from BindingsScripts watch list.
2425
2426         * Scripts/webkitpy/common/config/watchlist:
2427
2428 2016-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
2429
2430         WebView and WebPage URLs not updated after URL is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame
2431         https://bugs.webkit.org/show_bug.cgi?id=146306
2432
2433         Reviewed by Darin Adler.
2434
2435         Add unit test to check that the committed URL is updated when changed in willSendRequest callback.
2436
2437         * TestWebKitAPI/CMakeLists.txt:
2438         * TestWebKitAPI/PlatformEfl.cmake:
2439         * TestWebKitAPI/PlatformGTK.cmake:
2440         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback.cpp: Added.
2441         (TestWebKitAPI::didCommitLoadForFrame):
2442         (TestWebKitAPI::TEST):
2443         * TestWebKitAPI/Tests/WebKit2/ProvisionalURLAfterWillSendRequestCallback_Bundle.cpp: Added.
2444         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::ProvisionalURLAfterWillSendRequestCallbackTest):
2445         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::willSendRequestForFrame):
2446         (TestWebKitAPI::ProvisionalURLAfterWillSendRequestCallbackTest::didCommitLoadForFrame):
2447
2448 2016-10-13  Alex Christensen  <achristensen@webkit.org>
2449
2450         Hosts of URLs with non-special schemes should be case-sensitive, and non-ASCII characters in such hosts should be punycode-encoded
2451         https://bugs.webkit.org/show_bug.cgi?id=163413
2452
2453         Reviewed by Tim Horton.
2454
2455         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2456         (TestWebKitAPI::TEST_F):
2457         Update parsing results.  There are now fewer differences between the new URLParser and the old URL::parse.
2458
2459 2016-10-13  Alex Christensen  <achristensen@webkit.org>
2460
2461         Rebase API tests after r207305.
2462
2463         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2464         Actually build Tests/mac/LoadInvalidURLRequest.mm so we are running the WebKit1.LoadInvalidURLRequest API test.
2465         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
2466         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
2467         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
2468         (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
2469         Change results back to what they were before r207162, r207167, and r207184.
2470
2471 2016-10-13  Alex Christensen  <achristensen@webkit.org>
2472
2473         Disable URLParser for non-Safari iOS and Mac apps for now
2474         https://bugs.webkit.org/show_bug.cgi?id=163397
2475
2476         Reviewed by Tim Horton.
2477
2478         * DumpRenderTree/mac/DumpRenderTree.mm:
2479         (DumpRenderTreeMain):
2480         * WebKitTestRunner/TestController.cpp:
2481         Enable the URLParser for testing.
2482         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig:
2483         Link with WebCoreTestSupport so we can find setURLParserEnabled.
2484
2485 2016-10-13  Ryan Haddad  <ryanhaddad@apple.com>
2486
2487         Unreviewed, rolling out r207297.
2488
2489         This change broke the iOS build.
2490
2491         Reverted changeset:
2492
2493         "Disable URLParser for non-Safari iOS and Mac apps for now"
2494         https://bugs.webkit.org/show_bug.cgi?id=163397
2495         http://trac.webkit.org/changeset/207297
2496
2497 2016-10-13  Alex Christensen  <achristensen@webkit.org>
2498
2499         Disable URLParser for non-Safari iOS and Mac apps for now
2500         https://bugs.webkit.org/show_bug.cgi?id=163397
2501
2502         Reviewed by Tim Horton.
2503
2504         * DumpRenderTree/mac/DumpRenderTree.mm:
2505         (DumpRenderTreeMain):
2506         * WebKitTestRunner/ios/mainIOS.mm:
2507         (main):
2508         * WebKitTestRunner/mac/main.mm:
2509         (main):
2510
2511 2016-10-12  Alex Christensen  <achristensen@webkit.org>
2512
2513         Fix out-of-bounds reading in URLParser when parsing improperly percent-encoded values
2514         https://bugs.webkit.org/show_bug.cgi?id=163376
2515
2516         Reviewed by Saam Barati.
2517
2518         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2519         (TestWebKitAPI::TEST_F):
2520
2521 2016-10-11  Dean Jackson  <dino@apple.com>
2522
2523         Add preliminary support for extended colors to WebCore::Color
2524         https://bugs.webkit.org/show_bug.cgi?id=162878
2525         <rdar://problem/28596413>
2526
2527         Reviewed by Darin Adler.
2528
2529         A new API test for Colors.
2530
2531         * TestWebKitAPI/Tests/WebCore/Color.cpp:
2532         (TestWebKitAPI::TEST):
2533
2534 2016-10-12  Ryan Haddad  <ryanhaddad@apple.com>
2535
2536         Unreviewed, rolling out r207225.
2537
2538         This change causes debug tests to exit early with crashes.
2539
2540         Reverted changeset:
2541
2542         "Optional's move-constructor and move-assignment operator
2543         don't disengage the value being moved from"
2544         https://bugs.webkit.org/show_bug.cgi?id=163309
2545         http://trac.webkit.org/changeset/207225
2546
2547 2016-10-12  Alex Christensen  <achristensen@webkit.org>
2548
2549         Fix assertion after switching to URLParser
2550         https://bugs.webkit.org/show_bug.cgi?id=163350
2551         rdar://problem/28739938
2552
2553         Reviewed by Brady Eidson.
2554
2555         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
2556         (TEST):
2557
2558 2016-10-11  Sam Weinig  <sam@webkit.org>
2559
2560         Optional's move-constructor and move-assignment operator don't disengage the value being moved from
2561         https://bugs.webkit.org/show_bug.cgi?id=163309
2562
2563         Reviewed by Anders Carlsson.
2564
2565         * TestWebKitAPI/Tests/WTF/Optional.cpp:
2566         (TestWebKitAPI::TEST):
2567         Add tests for Optional's move-constructor and move-assignment operator.
2568
2569 2016-10-12  Wenson Hsieh  <wenson_hsieh@apple.com>
2570
2571         Now playing media sessions are always cleared for the active foreground tab
2572         https://bugs.webkit.org/show_bug.cgi?id=163310
2573         <rdar://problem/28573301>
2574
2575         Reviewed by Jer Noble.
2576
2577         Tweaks existing unit tests to verify that media session info persists when backgrounding and foregrounding, but
2578         that media session info is correctly cleared out if the media session itself is no longer eligible for Now
2579         Playing (not accounting for foreground/active state). Previously, these tests were verifying that we would
2580         always clear out the information, but this is incorrect, and is the source of the problem.
2581
2582         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
2583         (-[NowPlayingTestWebView waitForNowPlayingInfoToChange]):
2584         (TestWebKitAPI::TEST):
2585
2586 2016-10-12  Per Arne Vollan  <pvollan@apple.com>
2587
2588         [Win] Parallel DRTs are sharing preferences and cache.
2589         https://bugs.webkit.org/show_bug.cgi?id=163013
2590
2591         Reviewed by Brent Fulgham.
2592
2593         Use separate cache and preferences for each DRT instance.
2594
2595         * DumpRenderTree/win/DumpRenderTree.cpp:
2596         (applicationId):
2597         (setApplicationId):
2598         (setCacheFolder):
2599         (setDefaultsToConsistentValuesForTesting):
2600         * Scripts/webkitpy/port/win.py:
2601         (WinPort.setup_test_run):
2602
2603 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2604
2605         Update API test expectation after r207162.
2606        ​https://bugs.webkit.org/show_bug.cgi?id=162660
2607
2608         * TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
2609         (-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
2610         Like r207167 but with a WebKit2 test.
2611         "https://www.example.com<>/" was an invalid URL with the old URL parser, is now valid with URLParser but not with NSURL's parser.
2612
2613 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2614
2615         Update API test expectation after r207162.
2616         https://bugs.webkit.org/show_bug.cgi?id=162660
2617
2618         * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
2619         (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
2620         "https://www.example.com<>/" was an invalid URL with the old URL parser.
2621         It is now a valid URL, but NSURL still considers it invalid.
2622         This will be looked into more with https://bugs.webkit.org/show_bug.cgi?id=163127
2623
2624 2016-10-11  Edward O'Connor  <eoconnor@apple.com>
2625
2626         Update my name in contributors.json
2627         https://bugs.webkit.org/show_bug.cgi?id=163251
2628
2629         Reviewed by Simon Fraser.
2630
2631         * Scripts/webkitpy/common/config/contributors.json:
2632
2633 2016-10-11  Said Abou-Hallawa  <sabouhallawa@apple.com>
2634
2635         Add SynchronizedFixedQueue class
2636         https://bugs.webkit.org/show_bug.cgi?id=162478
2637
2638         Reviewed by Geoffrey Garen.
2639
2640         Add a new test for SynchronizedFixedQueue. The test defines a new class
2641         called ToUpperConverter which converts strings from lower case to upper
2642         case. It creates two threads : (1) produce thread and (2) consume thread.
2643         Here is what each thread does:
2644
2645         1. Main threads: Enqueues lower case strings into m_lowerQueue.
2646         2. Produce thread: Dequeues lower case strings from m_lowerQueue and 
2647            enqueue their upper case strings in the m_upperQueue.
2648         3. Consume thread: Dequeues upper case strings from m_upperQueue.
2649
2650         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2651         * TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp: Added.
2652         (TestWebKitAPI::textItem): A helper function which returns a lower case string given an index.
2653         (TestWebKitAPI::toUpper): A helper function which Returns the upper case of a string.
2654         (TestWebKitAPI::ToUpperConverter::ToUpperConverter):
2655         (TestWebKitAPI::ToUpperConverter::produceQueue): Returns a workQueue for the produce thread.
2656         (TestWebKitAPI::ToUpperConverter::consumeQueue): Returns a workQueue for the consume thread.
2657         (TestWebKitAPI::ToUpperConverter::startProducing): Creates a thread for the producer.
2658         (TestWebKitAPI::ToUpperConverter::startConsuming): Creates a thread for the consumer.
2659         (TestWebKitAPI::ToUpperConverter::start): Starts both the producer and the consumer threads.
2660         (TestWebKitAPI::ToUpperConverter::stopProducing): Terminates the producer thread.
2661         (TestWebKitAPI::ToUpperConverter::stopConsuming): Terminates the consumer thread.
2662         (TestWebKitAPI::ToUpperConverter::stop): Terminates both the producer and the consumer threads.
2663         (TestWebKitAPI::ToUpperConverter::enqueueLower): Adds a lower case string to the m_lowerQueue on the main thread.
2664         (TestWebKitAPI::ToUpperConverter::isProducing): Returns whether the producing thread is active.
2665         (TestWebKitAPI::ToUpperConverter::isConsuming): Returns whether the consuming thread is active.
2666         (TestWebKitAPI::ToUpperConverter::produceCount): Returns the number of produced elements.
2667         (TestWebKitAPI::ToUpperConverter::consumeCount): Returns the number of consumed elements.
2668         (TestWebKitAPI::TEST):
2669
2670 2016-10-11  Megan Gardner  <megan_gardner@apple.com>
2671
2672         Extend event stream to include interpolated events and add a force press test that uses that interpolation
2673         https://bugs.webkit.org/show_bug.cgi?id=163161
2674
2675         Reviewed by Simon Fraser.
2676
2677         Added functionality to the event stream to allow for interpolated events.
2678         Can now do long press, as well as a better way to do drag and other time-based
2679         events that require a large stream of descrete HID events.
2680         Added a basic force touch test to demostrate this interpolation.
2681         Also updated the script to allow for iPhone 7 specific tests, as force touch
2682         needs to be on a device that had force touch.
2683
2684         * Scripts/webkitpy/port/ios.py:
2685         (IOSSimulatorPort):
2686         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
2687         * WebKitTestRunner/ios/HIDEventGenerator.mm:
2688         (linearInterpolation):
2689         (simpleCurveInterpolation):
2690         (calculateNextCurveLocation):
2691         (phaseFromString):
2692         (interpolationFromString):
2693         (-[HIDEventGenerator eventMaskFromEventInfo:]):
2694         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
2695         (-[HIDEventGenerator moveToPoints:touchCount:duration:]):
2696         (-[HIDEventGenerator interpolatedEvents:]):
2697         (-[HIDEventGenerator processEventsArray:withStartTime:]):
2698         (-[HIDEventGenerator eventDispatchThreadEntry:]):
2699         (simpleDragCurve): Deleted.
2700         (calculateNextLocation): Deleted.
2701
2702 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2703
2704         URLParser should percent-encode non-ASCII and non-printable characters in fragment
2705         https://bugs.webkit.org/show_bug.cgi?id=163287
2706
2707         Reviewed by Brady Eidson.
2708
2709         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
2710         (TestWebKitAPI::TEST_F):
2711
2712 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2713
2714         Remove dead networking code
2715         https://bugs.webkit.org/show_bug.cgi?id=163263
2716
2717         Reviewed by Daniel Bates.
2718
2719         * DumpRenderTree/DumpRenderTree.h:
2720         * DumpRenderTree/config.h:
2721         * DumpRenderTree/win/DumpRenderTree.cpp:
2722         (main):
2723
2724 2016-10-11  John Wilander  <wilander@apple.com>
2725
2726         Modify check-webkit-style to prohibit sensitive phrases
2727         https://bugs.webkit.org/show_bug.cgi?id=163048
2728         <rdar://problem/28289755>
2729
2730         Terms considered or found to be too general to flag:
2731         ASSERT_WITH_SECURITY_IMPLICATION, bad cast, bug, bypass, crash,
2732         denial of service, dereference, disclosure, error, exploit,
2733         failure, heap, integer overflow, leak, null dereference,
2734         null pointer dereference, out of bounds, overflow,
2735         race condition, sensitive information, stack, type confusion.
2736
2737         Reviewed by Brent Fulgham.
2738
2739         * Scripts/webkitpy/style/checkers/changelog.py:
2740         (ChangeLogChecker.check_entry):
2741             Now calls ChangeLogChecker.check_for_unwanted_security_terms().
2742         (ChangeLogChecker):
2743         (ChangeLogChecker.check_for_unwanted_security_terms):
2744             New function to check for sensitive terms.
2745         (ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm):
2746         (ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm.__init__):
2747             Convenience class.
2748         * Scripts/webkitpy/style/checkers/changelog_unittest.py:
2749         (ChangeLogCheckerTest.test_unwanted_security_terms):
2750
2751 2016-10-11  Ryan Haddad  <ryanhaddad@apple.com>
2752
2753         Unreviewed, rolling out r207067.
2754
2755         This change caused webkitpy test failures.
2756
2757         Reverted changeset:
2758
2759         "[Win] Parallel DRTs are sharing preferences and cache."
2760         https://bugs.webkit.org/show_bug.cgi?id=163013
2761         http://trac.webkit.org/changeset/207067
2762
2763 2016-10-11  Per Arne Vollan  <pvollan@apple.com>
2764
2765         [Win] Parallel DRTs are sharing preferences and cache.
2766         https://bugs.webkit.org/show_bug.cgi?id=163013
2767
2768         Reviewed by Brent Fulgham.
2769
2770         Use separate cache and preferences for each DRT instance.
2771
2772         * DumpRenderTree/win/DumpRenderTree.cpp:
2773         (applicationId):
2774         (setApplicationId):
2775         (setCacheFolder):
2776         (setDefaultsToConsistentValuesForTesting):
2777         * Scripts/webkitpy/port/win.py:
2778         (WinPort.setup_test_run):
2779
2780 2016-10-10  Zan Dobersek  <zdobersek@igalia.com>
2781
2782         Add ENABLE_ENCRYPTED_MEDIA configuration option
2783         https://bugs.webkit.org/show_bug.cgi?id=163219
2784
2785         Reviewed by Darin Adler.
2786
2787         * Scripts/webkitperl/FeatureList.pm:
2788         Make the ENABLE_ENCRYPTED_MEDIA option overridable via build-webkit.
2789         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2790         Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
2791         to enable or disable the new EME implementation at build-time.
2792
2793 2016-10-10  Commit Queue  <commit-queue@webkit.org>
2794
2795         Unreviewed, rolling out r206972.
2796         https://bugs.webkit.org/show_bug.cgi?id=163227
2797
2798         Making EWS flaky (Requested by bfulgham_ on #webkit).
2799
2800         Reverted changeset:
2801
2802         "[CMake] CMake does not support the dep files for implicit
2803         dependency"
2804         https://bugs.webkit.org/show_bug.cgi?id=161433
2805         http://trac.webkit.org/changeset/206972
2806
2807 2016-10-10  Youenn Fablet  <youenn@apple.com>
2808
2809         W3C test downloader should be able to import specific files/sub-directories in a skipped directory
2810         https://bugs.webkit.org/show_bug.cgi?id=161789
2811
2812         Reviewed by Ryosuke Niwa.
2813
2814         Removed tests_directory option and corresponding test.
2815         This option was allowing to import a sub-directory from a test repository.
2816         We can readd it if necessary.
2817
2818         Adding support for finer-grained import rules.
2819         Previously skipped directories were fully removed.
2820         Now, directories may be skipped but sub directories of them may be imported.
2821         This currently happens in web-platform-tests repo.
2822
2823         * Scripts/webkitpy/w3c/test_downloader.py:
2824         (TestDownloader._add_test_suite_paths): Removing tests_directory option.
2825         (TestDownloader.copy_tests): Refactoring file copy by generating the list of all directories for which direct files should be imported.
2826         (TestDownloader.copy_tests.should_copy_dir):
2827         (TestDownloader.copy_tests.should_copy_file):
2828         * Scripts/webkitpy/w3c/test_importer_unittest.py:
2829         (TestImporterTest.test_tests_directory): Deleted.
2830         (TestImporterTest.test_skip_test_import): Added.
2831
2832 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
2833
2834         Make validate-committer-lists show inactive reviewers
2835         https://bugs.webkit.org/show_bug.cgi?id=163193
2836
2837         Reviewed by Sam Weinig.
2838         
2839         In preparation for updating contributors.json with the WebKit policy of retiring
2840         inactive reviewers, make validate-committer-lists show the list of reviewers who
2841         have not reviewed in the past year.
2842         
2843         This list is computed by grepping the output of 'git log --since=1.year" for
2844         the reviewer line, and looking up reviewers via Contributor.mentioned_in_text(),
2845         which looks for full names, aliases, irc nicks and email addresses.
2846         
2847         Support for aliases is added to Contributor. Aliases are alternates
2848         or misspellings of the reviewer's name. Some common aliases were added to
2849         contributors.json by manual examination of "Reviewed by" lines.
2850
2851         * Scripts/validate-committer-lists:
2852         (CommitterListFromGit.possibly_expired_committers):
2853         (CommitterListFromGit):
2854         (CommitterListFromGit.possibly_inactive_reviewers):
2855         (CommitterListFromGit.print_possibly_expired_committers):
2856         (CommitterListFromGit.print_possibly_inactive_reviewers):
2857         * Scripts/webkitpy/common/config/committers.py:
2858         (Contributor.__init__):
2859         (Contributor.contains_string):
2860         (Contributor.mentioned_in_text):
2861         (Contributor.as_dict):
2862         (Committer.__init__):
2863         (Reviewer.__init__):
2864         (CommitterList.load_json):
2865         * Scripts/webkitpy/common/config/contributors.json:
2866
2867 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
2868
2869         Convert contributors.json to a flat list
2870         https://bugs.webkit.org/show_bug.cgi?id=163183
2871
2872         Reviewed by Darin Adler.
2873         
2874         Make contributors.json easier to maintain by eliminating the big groupings ("Committers", "Reviewers" etc)
2875         and moving that data to a "status" property on each contributor.
2876
2877         * Scripts/webkitpy/common/config/committers.py:
2878         (Contributor.__eq__): Implement this to fix unit tests, now that load_json() is not @memoized.
2879         (Contributor.as_dict): Include status in the dict.
2880         (CommitterList.__init__): Clean up to make the testing code path more explicit.
2881         (CommitterList.load_json):
2882         (CommitterList.load_test_data):
2883         (CommitterList.as_json):
2884         (Contributor.__unicode__): Deleted.
2885         * Scripts/webkitpy/common/config/contributors.json:
2886         * Scripts/webkitpy/tool/bot/irc_command_unittest.py:
2887         (IRCCommandTest.test_whois): The ordering here is now alphabetical.
2888
2889 2016-10-09  Fujii Hironori  <Hironori.Fujii@sony.com>
2890
2891         [CMake] CMake does not support the dep files for implicit dependency
2892         https://bugs.webkit.org/show_bug.cgi?id=161433
2893
2894         Reviewed by Brent Fulgham.
2895
2896         Created a Perl script to generate all IDL bindings for CMake.
2897         This script can regenerate outdated bindings by based on the
2898         supplemental dependency and dep files created by
2899         '--write-dependencies' switch of generate-bindings.pl.
2900
2901         add_custom_target is used to invoke the script instead of
2902         add_custom_command because Ninja deletes all output files before
2903         executing the command in case of add_custom_command.
2904
2905         USES_TERMINAL option of add_custom_target has two effects:
2906         1) Not buffering output of the command
2907         2) Invoking the command in the special Ninja pool which inhibits parallel build
2908         One needs to use CMake 3.2 or later to enable this feature.
2909
2910         * DumpRenderTree/CMakeLists.txt: Specified a target name for
2911         GENERATE_BINDINGS. Added dependency for the target.
2912         * WebKitTestRunner/CMakeLists.txt: Ditto.
2913
2914 2016-10-09  Simon Fraser  <simon.fraser@apple.com>
2915
2916         Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
2917         https://bugs.webkit.org/show_bug.cgi?id=163177
2918
2919         Follow-up fix.
2920         
2921         For unknown reasons, overriding Commiter.__dict__() caused mysterious test failures.
2922         Rename it to as_dict().
2923
2924         * Scripts/webkitpy/common/config/committers.py:
2925         (Contributor.as_dict):
2926         (CommitterList._contributor_list_to_dict):
2927         (Contributor.__dict__): Deleted.
2928
2929 2016-10-08  Simon Fraser  <simon.fraser@apple.com>
2930
2931         Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
2932         https://bugs.webkit.org/show_bug.cgi?id=163177
2933
2934         Reviewed by Ryosuke Niwa.
2935         
2936         Make it possible to round-trip contributors.json through CommitterList, so we can
2937         support writing out contributors.json in canonical format. This requires saving
2938         the case-preserved email and expertise in Contributor. CommitterList also needs
2939         to be able to generate the "exclusive" lists, since it currently uses lists
2940         that are the union of, say, committers and reviewers.
2941         
2942         If contributors.json is malformed (invalid JSON), catch the Exception, report it
2943         and exit rather than allowing the exception to propagate. With an invalid file,
2944         an exception would be thrown before the JSON style checker reached this file, so
2945         the error was not correctly reported.
2946         
2947         Add style/checker/committer.py for checking that committers.json has the canonical format.
2948         
2949         Add support to validate-committer-lists to dump out the canonical json (-d) or update
2950         the file in-place (-c).
2951
2952         * Scripts/validate-committer-lists:
2953         (CommitterListFromGit._print_three_column_row):
2954         (CommitterListFromGit.possibly_expired_committers):
2955         (CommitterListFromGit):
2956         (CommitterListFromGit.print_possibly_expired_committers):
2957         (main):
2958         * Scripts/webkitpy/common/config/committers.py:
2959         (Contributor.__init__):
2960         (Contributor.__dict__):
2961         (Committer.__init__):
2962         (Reviewer.__init__):
2963         (CommitterList.load_json):
2964         (CommitterList):
2965         (CommitterList._contributor_list_to_dict):
2966         (CommitterList.as_json):
2967         (CommitterList.reformat_in_place):
2968         (CommitterList._exclusive_contributors):
2969         (CommitterList._exclusive_committers):
2970         (Contributor.matches_glob): Deleted.
2971         (CommitterList.contributors): Deleted.
2972         * Scripts/webkitpy/common/config/contributors.json:
2973         * Scripts/webkitpy/style/checker.py:
2974         (CheckerDispatcher._create_checker):
2975         * Scripts/webkitpy/style/checkers/contributors.py: Added.
2976         (ContributorsChecker):
2977         (ContributorsChecker.__init__):
2978         (ContributorsChecker.check):
2979         (ContributorsChecker._unidiff_output):
2980
2981 2016-10-06  Darin Adler  <darin@apple.com>
2982
2983         Next step on moving to modern way to return DOM exceptions
2984         https://bugs.webkit.org/show_bug.cgi?id=163016
2985
2986         Reviewed by Ryosuke Niwa.
2987
2988         * Scripts/do-webcore-rename: Add proposed name change of setDOMException
2989         to propagateException, since this function is primarily used to take an
2990         exception already effectively "thrown" by setting an ExceptionCode out
2991         argument and propagate it into the JavaScript engine's exception machinery.
2992
2993 2016-10-07  Alex Christensen  <achristensen@webkit.org>
2994
2995         Non-special URL fragments should percent-encode non-ASCII characters
2996         https://bugs.webkit.org/show_bug.cgi?id=163153
2997
2998         Reviewed by Tim Horton.
2999
3000         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3001         (TestWebKitAPI::TEST_F):
3002
3003 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
3004
3005         Build fix for “Move functionality common to Darwin ports into a base class”
3006         https://bugs.webkit.org/show_bug.cgi?id=160709
3007
3008         Unreviewed build fix.
3009
3010         * Scripts/webkitpy/port/ios.py:
3011         (IOSSimulatorPort._get_crash_log): Added iOS implementation.
3012         * Scripts/webkitpy/port/mac.py:
3013         (MacPort._get_crash_log): Added Mac implementation.
3014
3015 2016-10-07  Chelsea Pugh  <cpugh@apple.com>
3016
3017         Unreviewed. Added myself to the list of committers.
3018
3019         * Scripts/webkitpy/common/config/contributors.json:
3020
3021 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
3022
3023         Move functionality common to Darwin ports into a base class
3024         https://bugs.webkit.org/show_bug.cgi?id=160709
3025
3026         Reviewed by Darin Adler.
3027
3028         * Scripts/webkitpy/port/apple.py:
3029         (ApplePort.determine_full_port_name): Specific iOS port check.
3030         (ApplePort.__init__): Move leak detector to DarwinPort.
3031         (ApplePort._make_leak_detector): Moved to DarwinPort.
3032         (ApplePort.supports_per_test_timeout): Moved to Port.
3033         (ApplePort.check_for_leaks): Moved to DarwinPort.
3034         (ApplePort.print_leaks_summary): Moved to DarwinPort.
3035         (ApplePort._path_to_webcore_library): Moved to DarwinPort.
3036         (ApplePort.show_results_html_file): Moved to DarwinPort.
3037         (ApplePort._merge_crash_logs): Moved to DarwinPort.
3038         (ApplePort._look_for_all_crash_logs_in_log_dir): Moved to DarwinPort.
3039         (ApplePort._get_crash_log): Moved to DarwinPort.
3040         (ApplePort.look_for_new_crash_logs): Moved to DarwinPort.
3041         (ApplePort.sample_process): Moved to DarwinPort.
3042         (ApplePort.sample_file_path): Moved to DarwinPort.
3043         (ApplePort.look_for_new_samples): Moved to DarwinPort.
3044         * Scripts/webkitpy/port/base.py:
3045         (Port.supports_per_test_timeout): Return true for all ports.
3046         * Scripts/webkitpy/port/darwin.py: Added.
3047         (DarwinPort): Shared iOS and Mac functions.
3048         * Scripts/webkitpy/port/darwin_testcase.py: Added.
3049         (DarwinTest): Shared iOS and Mac testing.
3050         * Scripts/webkitpy/port/efl.py:
3051         (EflPort):
3052         (EflPort.supports_per_test_timeout): Moved to Port.
3053         * Scripts/webkitpy/port/gtk.py:
3054         (GtkPort._driver_class):
3055         (GtkPort):
3056         (GtkPort.supports_per_test_timeout): Moved to Port.
3057         * Scripts/webkitpy/port/ios.py:
3058         (IOSPort):
3059         (IOSPort.operating_system):
3060         (IOSSimulatorPort):
3061         (IOSSimulatorPort.__init__): Inherits from DarwinPort.
3062         (IOSSimulatorPort._port_specific_expectations_files): Moved to DarwinPort.
3063         (IOSSimulatorPort._get_crash_log): Deleted.
3064         (IOSSimulatorPort.xcrun_find): Deleted.
3065         * Scripts/webkitpy/port/ios_unittest.py: Added.
3066         (iosTest): Unit tests for the iOS port.
3067         * Scripts/webkitpy/port/mac.py:
3068         (MacPort):
3069         (MacPort.__init__): Inherits from DarwinPort.
3070         (MacPort._port_specific_expectations_files): Moved to DarwinPort.
3071         (MacPort.make_command): Moved to DarwinPort.
3072         (MacPort._get_crash_log): Moved to DarwinPort.
3073         (MacPort.nm_command): Moved to DarwinPort.
3074         * Scripts/webkitpy/port/mac_unittest.py:
3075         (MacTest):
3076         (MacTest.test_sdk_name): Added test.
3077         (MacTest.test_xcrun): Added test.
3078         (MacTest.assert_skipped_file_search_paths): Moved to DarwinTest.
3079         (MacTest.test_default_timeout_ms): Moved to DarwinTest.
3080         (MacTest.assert_name): Moved to DarwinTest.
3081         (MacTest.test_helper_starts): Moved to DarwinTest.
3082         (MacTest.test_helper_fails_to_start): Moved to DarwinTest.
3083         (MacTest.test_helper_fails_to_stop): Moved to DarwinTest.
3084         (MacTest.test_spindump): Moved to DarwinTest.
3085         (MacTest.test_sample_process): Moved to DarwinTest.
3086         (MacTest.test_sample_process_exception): Moved to DarwinTest.
3087         * Scripts/webkitpy/port/port_testcase.py:
3088         (PortTestCase):
3089         (PortTestCase.test_diff_image): Added is_simulator flag.
3090         (PortTestCase.test_diff_image): Skip test if on a simulator.
3091         (PortTestCase.test_diff_image_crashed): Skip test if on a simulator.
3092         * Scripts/webkitpy/port/win.py:
3093         (WinPort):
3094         (WinPort.look_for_new_samples): Used default, ApplePort no longer implements.
3095         (WinPort.sample_process): Ditto.
3096         (WinPort._make_leak_detector): Ditto.
3097         (WinPort.check_for_leaks): Ditto.
3098         (WinPort.print_leaks_summary): Ditto.
3099         (WinPort._path_to_webcore_library): Ditto.
3100
3101 2016-10-07  Anders Carlsson  <andersca@apple.com>
3102
3103         Get rid of WKPageSetSession
3104         https://bugs.webkit.org/show_bug.cgi?id=163129
3105
3106         Reviewed by Tim Horton.
3107
3108         Rewrite this test to use WKPageConfigurationRef and WKWebsiteDataStoreRef.
3109
3110         * TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp:
3111         (TestWebKitAPI::TEST):
3112
3113 2016-10-07  Andreas Kling  <akling@apple.com>
3114
3115         [WK2] didRemoveFrameFromHierarchy callback doesn't fire for subframes when evicting from PageCache.
3116         <https://webkit.org/b/163098>
3117         <rdar://problem/28663488>
3118
3119         Reviewed by Antti Koivisto.
3120
3121         Add an API test that puts a 10-subframe page into the page cache, then loads other pages
3122         until the first page gets kicked out. The test succeeds if we receive didRemoveFrameFromHierarchy
3123         callbacks for all the subframes.
3124
3125         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3126         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache.cpp: Added.
3127         (TestWebKitAPI::didFinishLoadForFrame):
3128         (TestWebKitAPI::setPageLoaderClient):
3129         (TestWebKitAPI::didReceivePageMessageFromInjectedBundle):
3130         (TestWebKitAPI::setInjectedBundleClient):
3131         (TestWebKitAPI::TEST):
3132         * TestWebKitAPI/Tests/WebKit2/DidRemoveFrameFromHiearchyInPageCache_Bundle.cpp: Added.
3133         (TestWebKitAPI::didRemoveFrameFromHierarchyCallback):
3134         (TestWebKitAPI::DidRemoveFrameFromHiearchyInPageCacheTest::DidRemoveFrameFromHiearchyInPageCacheTest):
3135         (TestWebKitAPI::DidRemoveFrameFromHiearchyInPageCacheTest::didCreatePage):
3136         * TestWebKitAPI/Tests/WebKit2/many-iframes.html: Added.
3137
3138 2016-10-07  Emanuele Aina  <emanuele.aina@collabora.com>
3139
3140         Replace bug URL placeholders independently of the short desc one
3141         https://bugs.webkit.org/show_bug.cgi?id=161684
3142
3143         Reviewed by Darin Adler.
3144
3145         Instead of adding the bug URL when replacing the short description
3146         placeholder and then ignoring the bug URL placeholder, use the former
3147         to set the short description and the latter for the bug URL.
3148         This means that developers can fully prepare the changelog with short
3149         and long description before submission leaving the bug placeholder in
3150         place, and the changelog machinery will make sure to replace the
3151         latter with the URL of the newly created bug while submitting.
3152
3153         Note that this also means that the short description placeholder alone
3154         no longer causes the bug URL to be added.
3155
3156         * Scripts/webkitpy/common/checkout/changelog.py:
3157         (ChangeLog.set_short_description_and_bug_url):
3158         * Scripts/webkitpy/common/checkout/changelog_unittest.py:
3159         (test_set_short_description_and_bug_url):
3160
3161 2016-10-07  Jonathan Bedard  <jbedard@apple.com>
3162
3163         Style Checking Error when Objective C Blocks passed as Argument
3164         https://bugs.webkit.org/show_bug.cgi?id=162463
3165
3166         Reviewed by Darin Adler.
3167
3168         * Scripts/webkitpy/style/checkers/cpp.py:
3169         (regex_for_lambdas_and_blocks): Consider case where block is passed as a function argument.
3170         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
3171         (CppStyleTest.test_objective_c_block_as_argument): Test case where block is passed as a function argument. 
3172
3173 2016-10-07  Philippe Normand  <pnormand@igalia.com>
3174
3175         [GTK] Docs build failure
3176         https://bugs.webkit.org/show_bug.cgi?id=163102
3177
3178         Reviewed by Carlos Garcia Campos.
3179
3180         * gtk/jhbuild.modules: Bump to gtk-doc 1.25 to fix build errors on Debian Testing.
3181
3182 2016-10-06  Joseph Pecoraro  <pecoraro@apple.com>
3183
3184         check-webkit-style: Enable the legal/copyright rule for cpp/h files
3185         https://bugs.webkit.org/show_bug.cgi?id=162707
3186
3187         Reviewed by Darin Adler.
3188
3189         * Scripts/webkitpy/style/checker.py:
3190         Enable this rule by default.
3191
3192 2016-10-06  Joseph Pecoraro  <pecoraro@apple.com>
3193
3194         Header guard style should be updated to be "#pragma once"
3195         https://bugs.webkit.org/show_bug.cgi?id=159785
3196
3197         Reviewed by Darin Adler.
3198
3199         * Scripts/webkitpy/style/checkers/cpp.py:
3200         (check_for_header_guard):
3201         (_process_lines):
3202         Simplify header_guard check to warn for a missing #pragma once
3203         in header files. For legacy files that contain an #ifndef only
3204         warn if the #ifndef line itself is changing.
3205
3206         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
3207         (CppStyleTestBase.perform_header_guard_check):
3208         (CppStyleTestBase.assert_header_guard):
3209         Helpers for enabling just this warning.
3210
3211         (CppStyleTest.test_build_header_guard):
3212         Test different header guard cases.
3213
3214         * Scripts/webkitpy/style/error_handlers.py:
3215         (DefaultStyleErrorHandler.should_line_be_checked):
3216         Always allow warnings that output for "line 0" which won't be in
3217         the list of modified lines that are 1-based.
3218
3219 2016-10-06  Commit Queue  <commit-queue@webkit.org>
3220
3221         Unreviewed, rolling out r206713.
3222         https://bugs.webkit.org/show_bug.cgi?id=163097
3223
3224         triggers apparent codegen bug on ARM 32-bit (Requested by smfr
3225         on #webkit).
3226
3227         Reverted changeset:
3228
3229         "Support transitions/animations of background-position with
3230         right/bottom-relative values"
3231         https://bugs.webkit.org/show_bug.cgi?id=162048
3232         http://trac.webkit.org/changeset/206713
3233
3234 2016-10-06  Alex Christensen  <achristensen@webkit.org>
3235
3236         URLParser: Non-ASCII characters in Non-UTF-8 encoded queries of relative URLs with ws, wss, or nonspecial schemes should be UTF-8 encoded
3237         https://bugs.webkit.org/show_bug.cgi?id=163089
3238
3239         Reviewed by Tim Horton.
3240
3241         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3242         (TestWebKitAPI::checkURL):
3243         (TestWebKitAPI::TEST_F):
3244
3245 2016-10-06  Alex Christensen  <achristensen@webkit.org>
3246
3247         Skip tabs and newlines between end of query and beginning of fragment in non-UTF-8-encoded URLs
3248         https://bugs.webkit.org/show_bug.cgi?id=163071
3249
3250         Reviewed by Tim Horton.
3251
3252         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3253         (TestWebKitAPI::TEST_F):
3254
3255 2016-10-06  Alex Christensen  <achristensen@webkit.org>
3256
3257         URLParser should parse file URLs with ports consistently
3258         https://bugs.webkit.org/show_bug.cgi?id=163075
3259
3260         Reviewed by Brady Eidson.
3261
3262         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3263         (TestWebKitAPI::TEST_F):
3264
3265 2016-10-06  John Wilander  <wilander@apple.com>
3266
3267         Update Resource Load Statistics
3268         https://bugs.webkit.org/show_bug.cgi?id=162811
3269
3270         Reviewed by Alex Christensen.
3271
3272         * TestWebKitAPI/Tests/mac/PublicSuffix.mm:
3273             Change from USE(PUBLIC_SUFFIX_LIST) to ENABLE(PUBLIC_SUFFIX_LIST)
3274
3275 2016-10-05  Philippe Normand  <pnormand@igalia.com>
3276
3277         [GStreamer][OWR] GL rendering support
3278         https://bugs.webkit.org/show_bug.cgi?id=162972
3279
3280         Reviewed by Žan Doberšek.
3281
3282         When GStreamer-GL is enabled the GL context needs to be properly passed
3283         to the GStreamer pipeline running within the OpenWebRTC video renderer.
3284         This is now supported using a new OpenWebRTC API that allows the
3285         renderer to request the context from the application using a callback
3286         registered within the renderer.
3287
3288         * gtk/jhbuild.modules: Bump to latest OpenWebRTC for the new
3289         owr_video_renderer_set_request_context_callback API added
3290         recently.
3291
3292 2016-10-05  Youenn Fablet  <youenn@apple.com>
3293
3294         Reuse CodeGenerator::UpdateFile in Tools CodeGenerator
3295         https://bugs.webkit.org/show_bug.cgi?id=162960
3296
3297         Reviewed by Alex Christensen.
3298
3299         * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm:
3300         (WriteData): Using CodeGenerator::UpdateFile to do lazy generated file update when it is made feasible.
3301         * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
3302         (WriteData): Ditto.
3303
3304 2016-10-05  Alex Christensen  <achristensen@webkit.org>
3305
3306         URLParser should parse IPv4 addresses as the last two pieces of an IPv6 address
3307         https://bugs.webkit.org/show_bug.cgi?id=162991
3308
3309         Reviewed by Saam Barati.
3310
3311         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3312         (TestWebKitAPI::TEST_F):
3313
3314 2016-10-05  Tim Horton  <timothy_horton@apple.com>
3315
3316         Avoid automatically re-taking snapshots for back-forward items that were never loaded into the view
3317         https://bugs.webkit.org/show_bug.cgi?id=162955
3318         <rdar://problem/27659173>
3319
3320         Reviewed by Simon Fraser.
3321
3322         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm:
3323         (-[SnapshotTestWKWebView init]):
3324         (forceRepaintCallback):
3325         (-[SnapshotTestWKWebView synchronouslyForceRepaint]):
3326         (-[SnapshotTestWKWebView synchronouslyLoadTestPageAndForceRepaint:]):
3327         (TEST):
3328         (makeRedSquareView):
3329         Add a test that restoring session state into a web view without navigating,
3330         then explicitly snapshotting and navigating away, leaves the original snapshot alone.
3331
3332         Adjust the existing test, as well, to ensure that it will reliably fail
3333         if the feature is broken. Use an explicitly added and removed red square
3334         instead of scrolling, because we can't scroll in the restore-without-navigating case.
3335
3336         Stop trying to override the window scale, because it's not working (we're getting partial snapshots)
3337         and isn't necessary; instead just multiply the expected value by the page scale.
3338
3339         (-[SnapshotTestWKWebView loadPageNamed:]): Deleted.
3340         * TestWebKitAPI/mac/TestWKWebViewMac.h:
3341         * TestWebKitAPI/mac/TestWKWebViewMac.mm:
3342         (-[TestWKWebView synchronouslyLoadTestPageNamed:]):
3343         Reorganize to reduce duplication.
3344
3345 2016-10-05  Tim Horton  <timothy_horton@apple.com>
3346
3347         Make it possible to test ViewSnapshotStore behaviors
3348         https://bugs.webkit.org/show_bug.cgi?id=162983
3349
3350         Reviewed by Simon Fraser.
3351
3352         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3353         * TestWebKitAPI/Tests/WebKit2Cocoa/SnapshotStore.mm: Added.
3354         (-[SnapshotTestWKWebView init]):
3355         (-[SnapshotTestWKWebView loadPageNamed:]):
3356         (imagesAreEqual):
3357         Add tests for existing basic snapshotting behavior:
3358
3359         - a back-forward item shouldn't have a snapshot
3360           until it is navigated away from
3361
3362         - causing a back-forward item to fall out of the
3363           back-forward list should remove the snapshot
3364
3365         - calling the explicit snapshotting SPI, then navigating away from the page,
3366           should result in the snapshot being retaken
3367
3368 2016-10-05  Chris Dumez  <cdumez@apple.com>
3369
3370         KeyboardEvent.getModifierState() should support "CapsLock" modifier
3371         https://bugs.webkit.org/show_bug.cgi?id=162861
3372
3373         Reviewed by Darin Adler.
3374
3375         Add support for 'capsLockKey' modifier for EventSender.keyDown() so
3376         that we can test this new modifier support for layout tests.
3377
3378         * TestWebKitAPI/mac/PlatformWebViewMac.mm:
3379         (TestWebKitAPI::modifierFlagsForWKModifiers):
3380         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3381         (WTR::parseModifier):
3382         * WebKitTestRunner/mac/EventSenderProxy.mm:
3383         (WTR::buildModifierFlags):
3384
3385 2016-10-05  Jeremy Jones  <jeremyj@apple.com>
3386
3387         Add MobileMiniBrowser tests for control center and looping fullscreen.
3388         https://bugs.webkit.org/show_bug.cgi?id=162748
3389
3390         Reviewed by Jer Noble.
3391
3392         Refactor existing MobileMiniBrowserTests and add new tests for 
3393         - fullscreen rotation
3394         - fullscreen looping (failing)
3395         - control center interruption (failing)
3396
3397         * MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj:
3398         * MobileMiniBrowser/MobileMiniBrowserFramework/Resources/looping2s.html: Added.
3399         * MobileMiniBrowser/MobileMiniBrowserFramework/test2s.mp4: Added.
3400         * MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m:
3401         (-[MobileMiniBrowserUITests setUp]):
3402         (-[MobileMiniBrowserUITests waitToTapButtonNamed:forApp:]):
3403         (-[MobileMiniBrowserUITests loadURL:]):
3404         (-[MobileMiniBrowserUITests requireMinFPS:sampleDurationSeconds:message:]):
3405         (-[MobileMiniBrowserUITests ensureFullscreenControls]):
3406         (-[MobileMiniBrowserUITests timeForTimeString:]):
3407         (-[MobileMiniBrowserUITests testBasicVideoPlayback]):
3408         (-[MobileMiniBrowserUITests testBasicVideoFullscreen]):
3409         (-[MobileMiniBrowserUITests testVideoFullscreenAndRotationAnimation]):
3410         (-[MobileMiniBrowserUITests testVideoFullscreenControlCenter]):
3411         (-[MobileMiniBrowserUITests testLoopingFullscreenLockup]):
3412
3413 2016-10-05  Alex Christensen  <achristensen@webkit.org>
3414
3415         URLParser should correctly strip unnecessary 0's in IPv6 addresses
3416         https://bugs.webkit.org/show_bug.cgi?id=162979
3417
3418         Reviewed by Brady Eidson.
3419
3420         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3421         (TestWebKitAPI::TEST_F):
3422
3423 2016-10-05  Alex Christensen  <achristensen@webkit.org>
3424
3425         UTF-8 encode queries of nonspecial and websocket schemes
3426         https://bugs.webkit.org/show_bug.cgi?id=162956
3427
3428         Reviewed by Geoffrey Garen and Brady Eidson.
3429
3430         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3431         (TestWebKitAPI::TEST_F):
3432
3433 2016-10-05  Alex Christensen  <achristensen@webkit.org>
3434
3435         Prepare to enable URLParser
3436         https://bugs.webkit.org/show_bug.cgi?id=162974
3437
3438         Reviewed by Brady Eidson.
3439
3440         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3441         (TestWebKitAPI::TEST_F):
3442         Added some tests that are unrelated to the code change, but these are
3443         reflected in changed LayoutTest results when enabling the URLParser,
3444         and they weren't in the URLParser tests yet.  They should be.
3445
3446 2016-10-05  Zan Dobersek  <zdobersek@igalia.com>
3447
3448         Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
3449         https://bugs.webkit.org/show_bug.cgi?id=162903
3450
3451         Reviewed by Alex Christensen.
3452
3453         Rename build guards for the remaining implementation of the legacy EME API
3454         to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
3455         of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
3456
3457         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Also remove the
3458         ENABLE_IOS_TEXT_AUTOSIZING feature define that was renamed in r206395 and was
3459         throwing up style checker errors.
3460
3461 2016-10-04  Andy Estes  <aestes@apple.com>
3462
3463         [iOS] Crash in WebResourceLoaderQuickLookDelegate when the client cancels the navigation to a QuickLook resource
3464         https://bugs.webkit.org/show_bug.cgi?id=162950
3465         <rdar://problem/23759114>
3466
3467         Reviewed by Brady Eidson.
3468
3469         Added a new API test.
3470
3471         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm: Sorted imports and removed redundant
3472         initialization of static bools.
3473         (runTest): Factored out the common test logic between QuickLook.NavigationDelegate and
3474         QuickLook.CancelNavigationAfterResponse.
3475         (TEST): Added QuickLook.CancelNavigationAfterResponse.
3476         (-[QuickLookDecidePolicyDelegate
3477         webView:decidePolicyForNavigationResponse:decisionHandler:]): Canceled the navigation.
3478         (-[QuickLookDecidePolicyDelegate webView:didFailProvisionalNavigation:withError:]): Set
3479         isDone to true.
3480
3481 2016-10-04  Ryosuke Niwa  <rniwa@webkit.org>
3482
3483         Add the support for running ES6SampleBench to run-benchmark
3484         https://bugs.webkit.org/show_bug.cgi?id=162890
3485
3486         Reviewed by Saam Barati.
3487
3488         Added the support for running ES6SampleBench as "es6bench".
3489         e.g. ./Tools/Scripts/run-benchmark --platform osx --plan es6bench --browser safari
3490
3491         Instead of the default 10 iterations, run the test 4 iterations using 5 instances of browser
3492         for the total of 20 iterations.
3493
3494         * Scripts/webkitpy/benchmark_runner/data/patches/ES6SampleBench.patch: Added.
3495         * Scripts/webkitpy/benchmark_runner/data/plans/es6bench.plan: Added.
3496         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
3497         (start): Fixed the bug that the linter will complain about the presence of "debugOutput" by
3498         removing it if it's present.
3499
3500 2016-10-04  Simon Fraser  <simon.fraser@apple.com>
3501
3502         [iOS WK2] Make it possible for a test to describe a user gesture as a stream of events in JSON format
3503         https://bugs.webkit.org/show_bug.cgi?id=162934
3504
3505         Reviewed by Dean Jackson.
3506
3507         With this change, a test can describe a user gesture in an "event stream", which is
3508         some JSON describing an array of events with their underlying touches. The added
3509         test describes a single tap.
3510         
3511         The implementation fires up an NSThread, and sleeps the thread between events to dispatch
3512         them at close to real time.
3513         
3514         In future, HIDEventGenerator could use this internally for all of the "compound" interactions.
3515
3516         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
3517         (WTR::UIScriptController::sendEventStream):
3518         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
3519         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
3520         (WTR::UIScriptController::sendEventStream):
3521         * TestRunnerShared/UIScriptContext/UIScriptController.h:
3522         * WebKitTestRunner/ios/HIDEventGenerator.h:
3523         * WebKitTestRunner/ios/HIDEventGenerator.mm:
3524         (transducerTypeFromString):
3525         (phaseFromString):
3526         (-[HIDEventGenerator eventMaskFromEventInfo:]):
3527         (-[HIDEventGenerator touchFromEventInfo:]):
3528         (-[HIDEventGenerator _createIOHIDEventWithInfo:]):
3529         (-[HIDEventGenerator dispatchEventWithInfo:]):
3530         (-[HIDEventGenerator eventDispatchThreadEntry:]):
3531         (-[HIDEventGenerator sendEventStream:completionBlock:]):
3532         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
3533         (WTR::UIScriptController::sendEventStream):
3534
3535 2016-10-04  Megan Gardner  <megan_gardner@apple.com>
3536
3537         Add Megan to contributor's list
3538         https://bugs.webkit.org/show_bug.cgi?id=162944
3539
3540         Reviewed by Tim Horton.
3541
3542         Add Megan to the contributor's lists so that her e-mail autocompletes for CC
3543
3544         * Scripts/webkitpy/common/config/contributors.json:
3545
3546 2016-10-04  Alex Christensen  <achristensen@webkit.org>
3547
3548         Add tests verifying non-special URL hosts are parsed according to spec
3549         https://bugs.webkit.org/show_bug.cgi?id=162885
3550
3551         Reviewed by Sam Weinig.
3552
3553         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3554         (TestWebKitAPI::TEST_F):
3555
3556 2016-10-04  Anders Carlsson  <andersca@apple.com>
3557
3558         Properly kill web processes in the launching state
3559         https://bugs.webkit.org/show_bug.cgi?id=162938
3560
3561         Reviewed by Tim Horton.
3562
3563         * TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp:
3564         Enable this test again.
3565
3566 2016-10-04  Alex Christensen  <achristensen@webkit.org>
3567
3568         URLParser: query-only URLs relative to file URLs should just add a query
3569         https://bugs.webkit.org/show_bug.cgi?id=162888
3570
3571         Reviewed by Tim Horton.
3572
3573         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3574         (TestWebKitAPI::TEST_F):
3575
3576 2016-10-04  Alex Christensen  <achristensen@webkit.org>
3577
3578         URLParser should match URL::parse and other browsers when parsing a URL containing only scheme://
3579         https://bugs.webkit.org/show_bug.cgi?id=162909
3580
3581         Reviewed by Tim Horton.
3582
3583         * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
3584         (TestWebKitAPI::TEST_F):
3585
3586 2016-10-04  Yusuke Suzuki  <utatane.tea@gmail.com>
3587
3588         [DOMJIT] Introduce DOMJIT::GetterSetter to tell JIT information
3589         https://bugs.webkit.org/show_bug.cgi?id=162916
3590
3591         Reviewed by Filip Pizlo.
3592
3593         * DumpRenderTree/CMakeLists.txt:
3594
3595 2016-10-04  Wenson Hsieh  <wenson_hsieh@apple.com>
3596
3597         Media controls are displayed in the incorrect state momentarily after switching between tabs playing media
3598         https://bugs.webkit.org/show_bug.cgi?id=162766
3599         <rdar://problem/28533523>
3600
3601         Reviewed by Jer Noble.
3602
3603         Adds new tests and tweaks existing tests to verify last updated Now Playing information.
3604
3605         * TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
3606         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:title:duration:elapsedTime:]):
3607         (TestWebKitAPI::TEST):
3608         (-[NowPlayingTestWebView _handleActiveNowPlayingSessionInfoResponse:]): Deleted.
3609         * TestWebKitAPI/Tests/WebKit2Cocoa/large-video-test-now-playing.html:
3610
3611 2016-10-03  Alex Christensen  <achristensen@webkit.org>
3612
3613         URLParser should ignore tabs at all locations
3614         https://bugs.webkit.org/show_bug.cgi?id=162836
3615
3616         Reviewed by Geoffrey Garen.
3617
3618         * TestWebKitAPI/Tests/WebCore/URLParser.cpp: