Fix webkitpy tests after r190922.
[WebKit-https.git] / Tools / ChangeLog
1 2015-10-12  Alexey Proskuryakov  <ap@apple.com>
2
3         Fix webkitpy tests after r190922.
4
5         * Scripts/webkitpy/common/config/ews.json:
6         * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
7         * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
8
9 2015-10-12  Alexey Proskuryakov  <ap@apple.com>
10
11         Add a Mac debug EWS queue
12         https://bugs.webkit.org/show_bug.cgi?id=150069
13
14         Reviewed by Geoffrey Garen.
15
16         * QueueStatusServer/config/queues.py:
17         * Scripts/webkitpy/common/config/ews.json:
18         * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
19         (AbstractEarlyWarningSystem):
20         (AbstractEarlyWarningSystem.archive_last_test_results):
21         (AbstractEarlyWarningSystem.build_style):
22         (AbstractEarlyWarningSystem.refetch_patch):
23         (AbstractEarlyWarningSystem.load_ews_classes):
24
25 2015-10-12  Mario Sanchez Prada  <mario@endlessm.com>
26
27         [GTK] Update jhbuild's version of harfbuzz
28         https://bugs.webkit.org/show_bug.cgi?id=149749
29
30         Reviewed by Martin Robinson.
31
32         Update harfbuzz to 0.9.35, following the lead of Debian Stable.
33
34         * gtk/jhbuild.modules: Updated details for harfbuzz.
35
36 2015-10-12  Mario Sanchez Prada  <mario@endlessm.com>
37
38         [GTK] Media tests crashing with gst-plugins-bad 1.4.4 and cpp 5.2
39         https://bugs.webkit.org/show_bug.cgi?id=150026
40
41         Reviewed by Philippe Normand.
42
43         Backport upstream patch from gst-plugins-bad so that the right version
44         of FAAD2 can be found with newer versions of cpp, so that gst-plugins-bad
45         gets compiled properly, avoiding crashes on runtime while running tests.
46
47         * gtk/patches/gst-plugins-bad-fix-faad2-version-check.patch: Added.
48         * gtk/jhbuild.modules: Referenced the newly added patch for gst-plugins-bad.
49
50 2015-10-11  Myles C. Maxfield  <mmaxfield@apple.com>
51
52         Test font-variant-* and font-feature-settings with mocked preinstalled fonts
53         https://bugs.webkit.org/show_bug.cgi?id=149777
54
55         Reviewed by Simon Fraser.
56
57         Include FontWithFeatures in DumpRenderTree and WebKitTestRunner. Add it
58         to the list of tests to preinstall at startup time.
59
60         Also, update the generation of the 'name' table in the FontWithFeatures font.
61
62         * DumpRenderTree/mac/DumpRenderTree.mm:
63         (allowedFontFamilySet):
64         (activateTestingFonts):
65         (activateFontsIOS):
66         * FontWithFeatures/FontWithFeatures/FontCreator.cpp:
67         (Generator::generate):
68         (Generator::appendCFFTable):
69         (Generator::appendNameSubtable):
70         (Generator::appendNAMETable):
71         * FontWithFeatures/FontWithFeatures/main.cpp:
72         (main):
73         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
74         (WTR::allowedFontFamilySet):
75         (WTR::activateFonts):
76         * WebKitTestRunner/mac/TestControllerMac.mm:
77         (WTR::allowedFontFamilySet):
78
79 2015-10-11  Jinyoung Hur  <hur.ims@navercorp.com>
80
81         Unreviewed. Add Jinyoung Hur as a committer. 
82
83         * Scripts/webkitpy/common/config/contributors.json:
84
85 2015-10-10  Dan Bernstein  <mitz@apple.com>
86
87         [iOS] Remove unnecessary iOS version checks
88         https://bugs.webkit.org/show_bug.cgi?id=150002
89
90         Reviewed by Alexey Proskuryakov.
91
92         * WebKitTestRunner/ios/HIDEventGenerator.mm:
93         (-[HIDEventGenerator _createIOHIDEventType:]):
94         (-[HIDEventGenerator _sendHIDEvent:]):
95         (-[HIDEventGenerator _sendMarkerHIDEventWithCompletionBlock:]):
96         * WebKitTestRunner/ios/UIKitSPI.h:
97
98 2015-10-09  Myles C. Maxfield  <mmaxfield@apple.com>
99
100         Unreviewed, rolling out r190689
101         https://bugs.webkit.org/show_bug.cgi?id=149992
102
103         Fixed in other repository.
104
105         Reverted changesets:
106
107         "Unreviewed, rolling out r190572, r190593, r190594, and r190639."
108         https://bugs.webkit.org/show_bug.cgi?id=149897
109
110 2015-10-09  Brian Burg  <bburg@apple.com>
111
112         Teach webkitperl how to figure out IOS versions from the SDK
113         https://bugs.webkit.org/show_bug.cgi?id=149963
114
115         Reviewed by Daniel Bates.
116
117         It should be easier to check the major and minor version of IOS SDKs.
118
119         * Scripts/copy-webkitlibraries-to-product-directory: use iosVersion().
120         * Scripts/webkitdirs.pm:
121         (splitVersionString): Added.
122         (determineOSXVersion): Use splitVersionString.
123         (determineIOSVersion): Added. Look at the SDK version and make a tuple.
124         (iosVersion): Added.
125
126 2015-10-09  Simon Fraser  <simon.fraser@apple.com>
127
128         [iOS WK2] Fix some leaks in TestRunnerWKWebView and UIScriptContext
129         https://bugs.webkit.org/show_bug.cgi?id=149960
130
131         Reviewed by Tim Horton.
132         
133         Use adoptWK(), and null out some members (file is not using ARC).
134
135         * WebKitTestRunner/UIScriptContext/UIScriptContext.cpp:
136         (UIScriptContext::uiScriptComplete):
137         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
138         (-[TestRunnerWKWebView dealloc]):
139
140 2015-10-09  Csaba Osztrogonác  <ossy@webkit.org>
141
142         Remove ENABLE_SUID_SANDBOX_LINUX cruft
143         https://bugs.webkit.org/show_bug.cgi?id=149954
144
145         Reviewed by Darin Adler.
146
147         * Scripts/webkitperl/FeatureList.pm:
148
149 2015-10-09  Daniel Bates  <dabates@apple.com>
150
151         Make iOS builders generate debug information in a separate dSYM file
152         https://bugs.webkit.org/show_bug.cgi?id=149696
153
154         Reviewed by Darin Adler.
155
156         Similar to the Mac builders, the iOS builders should write debug information
157         into a separate dSYM file instead of including such information in the binary
158         itself (default Xcode behavior)
159
160         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
161         (CompileWebKit.start):
162
163 2015-10-09  Csaba Osztrogonác  <ossy@webkit.org>
164
165         Fix webkitpy tests after r190779
166         https://bugs.webkit.org/show_bug.cgi?id=149949
167
168         Reviewed by Ryosuke Niwa.
169
170         * Scripts/webkitpy/benchmark_runner/benchmark_results.py:
171         (BenchmarkResults.format):
172         (BenchmarkResults._format_values):
173
174 2015-10-08  Dewei Zhu  <dewei_zhu@apple.com>
175
176         Extend run-benchmark script to support human-readable results conversion.
177         https://bugs.webkit.org/show_bug.cgi?id=149944
178
179         Reviewed by Ryosuke Niwa.
180
181         Add '--read-results-json' and '--no-adjust-unit' options.
182         '--read-results-json' option converts result file to human readable format.
183         '--no-adjust-unit' option skips scientific notation convertion.
184         '--platform' defaults to 'osx' and '--browser' defaults to 'safari'.
185
186         * Scripts/webkitpy/benchmark_runner/benchmark_results.py:
187         (BenchmarkResults.format):
188         (BenchmarkResults._format_tests):
189         (BenchmarkResults._format_values):
190         * Scripts/webkitpy/benchmark_runner/benchmark_runner.py:
191         (BenchmarkRunner.__init__):
192         (BenchmarkRunner._run_benchmark):
193         (BenchmarkRunner._dump):
194         (BenchmarkRunner.show_results):
195         (BenchmarkRunner._show_results): Deleted.
196         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
197         (parse_args):
198         (start):
199
200 2015-10-08  Daniel Bates  <dabates@apple.com>
201
202         Add iOS 9 device builder to WebKit Bot Watcher's Dashboard
203         https://bugs.webkit.org/show_bug.cgi?id=149945
204
205         Reviewed by Dan Bernstein.
206
207         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9.png: Added.
208         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9@2x.png: Added.
209         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
210         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
211         (WebKitBuildbot):
212         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
213         (table.queue-grid tr.platform.ios-9 img.logo):
214
215 2015-10-08  Daniel Bates  <dabates@apple.com>
216
217         Teach build-webkit to install LLVM binaries for iOS when building for device with the public iOS SDK
218         https://bugs.webkit.org/show_bug.cgi?id=149943
219
220         Reviewed by Dan Bernstein.
221
222         Following the addition of the LLVM binaries for iOS in changeset r190759 (bug #149913) we should
223         teach build-webkit to install them when building for iOS device using the public iOS SDK. 
224
225         * Scripts/build-webkit:
226
227 2015-10-08  Daniel Bates  <dabates@apple.com>
228
229         Add LLVM binaries for iOS 9 device
230         https://bugs.webkit.org/show_bug.cgi?id=149913
231
232         Reviewed by Filip Pizlo.
233
234         Implement support for building LLVM for ARM64-based iOS devices.
235
236         * Scripts/build-jsc: Enable the FTL when building for Mac or iOS device.
237         * Scripts/copy-webkitlibraries-to-product-directory: Move logic to clean
238         an existing build earlier in the file such that remove previously built
239         libraries before building/copying new ones (if applicable).
240         (fileContains): Moved function outside of if-block.
241         (isContentOfFileEqualToString): Renamed; formerly named fileContentsEquals().
242         (buildLLVM): Added. Extracted machinery to build LLVM into this function and
243         added logic to build LLVM for ARM64-based iOS devices.
244         (symlinkLLVMLibrariesIfNeeded): Added. Extracted machinery to symlink the built
245         LLVM into the WebKitBuild directory.
246
247 2015-10-08  Alexey Proskuryakov  <ap@apple.com>
248
249         Crash-only queues on bot watcher's dashboard should not have non-crashing tests in popovers
250         https://bugs.webkit.org/show_bug.cgi?id=149848
251
252         Reviewed by Darin Adler.
253
254         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js:
255
256 2015-10-07  Brent Fulgham  <bfulgham@apple.com>
257
258         [Win] Support 64-bit Build and Testing
259         https://bugs.webkit.org/show_bug.cgi?id=149904
260
261         Reviewed by Daniel Bates.
262
263         Extend our existing scripts to support 64-bit build and test operations on
264         Windows.
265
266         * Scripts/build-dumprendertree: We don't need to build DRT on its own;
267         Windows always builds the whole stack.
268         * Scripts/webkit-build-directory: Add an option to return the location of
269         the executable files produced by a specific configuration. This change is
270         actually useful for Gtk and EFL, too.
271         * Scripts/webkitdirs.pm:
272         (executableProductDir): Added. This function appends the proper binary
273         path to the productDir. This is useful for Windows, Gtk, and EFL ports.
274         (jscProductDir): Use the new 'executableProductDir' method.
275         (setPathForRunningWebKitApp): Ditto.
276         (runSafari): Ditto.
277         (runMiniBrowser): Ditto.
278         * Scripts/webkitpy/port/factory.py:
279         (configuration_options): Add a 64-bit option, used on Windows to specify
280         which binary target should be used for testing.
281         * Scripts/webkitpy/port/win.py:
282         (WinPort._port_flag_for_scripts): Added. Supply the 64-bit flag to child
283         processes when needed.
284         (WinPort._build_path): Add the correct binary target path to _build_path.
285         (WinPort._ntsd_location): Check 32-bit paths when running 32-bit tests,
286         64-bit paths for 64-bit tests.
287         (WinPort.setup_crash_log_saving): Remove '-e %ld' argument, since the
288         NTSD debugger does not understand this argument.
289
290 2015-10-07  Myles C. Maxfield  <mmaxfield@apple.com>
291
292         Test font-variant-* and font-feature-settings with TrueType fonts
293         https://bugs.webkit.org/show_bug.cgi?id=149776
294
295         Reviewed by Simon Fraser.
296
297         This test extends our existing FontWithFeatures project to be able to generate a
298         TrueType font. This font is conceptually similar as the existing OpenType font,
299         except the feature -> character mapping is different.
300
301         The font itself only supports the following characters:
302         ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
303         However, the shape of these letters are either an X or a check mark.
304         The letter "A" always is a check mark.
305         The letter "B" always is an X.
306         Each font feature has an letter associated with it. When the font feature is enabled,
307         that letter is shown as a check mark. For example, when
308         "kLowerCaseType / kLowerCaseSmallCapsSelector" is enabled, "S" is shown as a check
309         mark.
310
311         Here are the mappings of font features to letters:
312         kLigaturesType / kCommonLigaturesOnSelector: C
313         kLigaturesType / kContextualLigaturesOnSelector: D
314         kLigaturesType / kRareLigaturesOnSelector: G
315         kLigaturesType / kHistoricalLigaturesOnSelector: I
316         kContextualAlternatesType / kContextualAlternatesOnSelector: L
317         kVerticalPositionType / kInferiorsSelector: O
318         kVerticalPositionType / kSuperiorsSelector: P
319         kLowerCaseType / kLowerCaseSmallCapsSelector: S
320         kUpperCaseType / kUpperCaseSmallCapsSelector: V
321         kLowerCaseType / kLowerCasePetiteCapsSelector: T
322         kUpperCaseType / kUpperCasePetiteCapsSelector: W
323         kLetterCaseType / 14: Y
324         kStyleOptionsType / kTitlingCapsSelector: a
325         kNumberCaseType / kUpperCaseNumbersSelector: c
326         kNumberCaseType / kLowerCaseNumbersSelector: d
327         kNumberSpacingType / kProportionalNumbersSelector: f
328         kNumberSpacingType / kMonospacedNumbersSelector: g
329         kFractionsType / kDiagonalFractionsSelector: i
330         kFractionsType / kVerticalFractionsSelector: j
331         kVerticalPositionType / kOrdinalsSelector: Q
332         kTypographicExtrasType / kSlashedZeroOnSelector: k
333         kLigaturesType / kHistoricalLigaturesOnSelector: K
334         kCharacterShapeType / kJIS1978CharactersSelector: m
335         kCharacterShapeType / kJIS1983CharactersSelector: n
336         kCharacterShapeType / kJIS1990CharactersSelector: o
337         kCharacterShapeType / kJIS2004CharactersSelector: p
338         kCharacterShapeType / kSimplifiedCharactersSelector: q
339         kCharacterShapeType / kTraditionalCharactersSelector: r
340         kTextSpacingType / kMonospacedTextSelector: t
341         kTextSpacingType / kProportionalTextSelector: u
342         kRubyKanaType / kRubyKanaOnSelector: v
343
344         * FontWithFeatures/FontWithFeatures.xcodeproj/project.pbxproj:
345         * FontWithFeatures/FontWithFeatures/FontCreator.cpp:
346         (CFFBuilder::moveTo):
347         (CFFBuilder::lineTo):
348         (GLYFBuilder::GLYFBuilder):
349         (GLYFBuilder::takeResult):
350         (GLYFBuilder::moveTo):
351         (GLYFBuilder::lineTo):
352         (GLYFBuilder::closePath):
353         (GLYFBuilder::writePoint):
354         (GLYFBuilder::append16):
355         (generateBoxCharString):
356         (generateCheckCharString):
357         (generateXCharString):
358         (itemForGlyph):
359         (Generator::generate):
360         (Generator::insertSelector):
361         (Generator::insertFeature):
362         (Generator::generateFeatureDescription):
363         (Generator::appendCFFTable):
364         (Generator::appendGLYFTable):
365         (Generator::appendLOCATable):
366         (Generator::appendFEATTable):
367         (Generator::appendMetamorphosisChain):
368         (Generator::appendMORXTable):
369         (Generator::appendHEADTable):
370         (Generator::appendHMTXTable):
371         (Generator::appendNameSubtable):
372         (Generator::append2ByteASCIIString):
373         (Generator::appendNAMETable):
374         (generateFont):
375         (CFFBuilder::curveToCubic): Deleted.
376         (charStringForGlyph): Deleted.
377         * FontWithFeatures/FontWithFeatures/FontCreator.h:
378         * FontWithFeatures/FontWithFeatures/main.cpp:
379         (constructFontWithTrueTypeFeature):
380         (constructFontWithOpenTypeFeature):
381         (drawText):
382         (main):
383         (drawTextWithFeature): Deleted.
384
385 2015-10-07  Commit Queue  <commit-queue@webkit.org>
386
387         Unreviewed, rolling out r190572, r190593, r190594, and
388         r190639.
389         https://bugs.webkit.org/show_bug.cgi?id=149897
390
391         Breaks Mavericks build (Requested by litherum on #webkit).
392
393         Reverted changesets:
394
395         "Allow WKRetainPtrs to be used as keys in hashing data
396         structures"
397         https://bugs.webkit.org/show_bug.cgi?id=149762
398         http://trac.webkit.org/changeset/190572
399
400         "REGRESSION(189668?): http/tests/notifications/events.html
401         flakily asserts or times out"
402         https://bugs.webkit.org/show_bug.cgi?id=149218
403         http://trac.webkit.org/changeset/190593
404
405         "Prospective Mavericks build fix."
406         http://trac.webkit.org/changeset/190594
407
408         "Post-review cleanup after r190572."
409         http://trac.webkit.org/changeset/190639
410
411 2015-10-06  Michael Catanzaro  <mcatanzaro@igalia.com>
412
413         [GTK] Add autocleanups
414         https://bugs.webkit.org/show_bug.cgi?id=149588
415
416         Reviewed by Darin Adler.
417
418         * TestWebKitAPI/Tests/WebKit2Gtk/AutocleanupsTest.cpp: Added.
419         (AutocleanupsTest::create):
420         (AutocleanupsTest::testWebProcessAutocleanups):
421         (registerTests):
422         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
423         * TestWebKitAPI/Tests/WebKit2Gtk/TestAutocleanups.cpp: Added.
424         (testUIProcessAutocleanups):
425         (testWebProcessAutocleanups):
426         (beforeAll):
427         (afterAll):
428
429 2015-10-06  Brian Burg  <bburg@apple.com>
430
431         Unreviewed, try to fix the iOS 8 build after r190368.
432
433         On older versions, IOHIDEventCreateForceEvent is not available.
434
435         * WebKitTestRunner/ios/HIDEventGenerator.mm:
436         (-[HIDEventGenerator _createIOHIDEventType:]): Add another guard for force events.
437
438 2015-10-06  Keith Miller  <keith_miller@apple.com>
439
440         Add gmalloc option to run-javascriptcore-tests.
441         https://bugs.webkit.org/show_bug.cgi?id=149858
442
443         Reviewed by Geoffrey Garen.
444
445         run-javascriptcore-tests takes a new option --gmalloc with an optional string argument, the path to the gmalloc dylib.
446         If no argument is provided then /usr/lib/libgmalloc.dylib is used by default.
447
448         * Scripts/run-javascriptcore-tests:
449
450 2015-10-06  Myles C. Maxfield  <mmaxfield@apple.com>
451
452         Post-review cleanup after r190572.
453
454         Unreviewed.
455
456         * TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp:
457
458 2015-10-06  Brent Fulgham  <bfulgham@apple.com>
459
460         [Win] Unreviewed build correction.
461
462         * TestWebKitAPI/PlatformWin.cmake: We don't need to link to all of these libraries. Most
463         are soft-linked at runtime.
464
465 2015-10-06  Keith Miller  <keith_miller@apple.com>
466
467         Fix run-javascriptcore-tests/run-jsc-stress-tests to work with rootless, add a --quick option and deprecate the Mozilla driver.
468         https://bugs.webkit.org/show_bug.cgi?id=149815
469
470         Reviewed by Filip Pizlo.
471
472         Rootless has an issue where it will strip any environment variables that start with DYLD starting a perl/ruby/python script.
473         Now, run-jsc-stress-tests takes an new argument, --env-vars, that will set the specified environment variables before
474         running tests. Additionally, I added a quick option that only runs default and the NoCJITValidate versions of each test.
475         Finally, I removed the calls to the mozilla jsDriver.pl since the run-jsc-stress-tests runner runs the same test suite
476         so should just use one test runner.
477
478         * Scripts/run-javascriptcore-tests:
479         (runJSCStressTests):
480         (runMozillaTests): Deleted.
481         (defaultJsDriverArgsForMozillaTests): Deleted.
482         * Scripts/run-jsc-stress-tests:
483
484 2015-10-06  Mark Salisbury  <mark.salisbury@hp.com>
485
486         [GTK] Make update-webkitgtk-libs work behind firewall
487
488         update-webkitgtk-libs can work behind a firewall with changes to
489         a few packages.  Where outbound git and active FTP connections
490         fail, using http protocol succeeds.  Most packages are
491         already accessed using http.
492
493         https://bugs.webkit.org/show_bug.cgi?id=148941
494
495         Reviewed by Martin Robinson.
496
497         Tools
498         * gtk/jhbuild.modules:
499             Replace git URLs with http.  Remove no longer used ftp repositories.
500             Update argument for libxml2's autogen.sh script (--without-python
501             is ignored; --with-python=no is correct).
502         * jhbuild/jhbuild-wrapper:
503             Instead of connecting to git://git.gnome.org/jhbuild, connect to
504             http://git.gnome.org/browse/jhbuild.
505
506 2015-10-06  Daniel Bates  <dbates@webkit.org>
507
508         Enable XSLT when building WebKit for iOS using the public iOS SDK
509         https://bugs.webkit.org/show_bug.cgi?id=149827
510
511         Reviewed by Alexey Proskuryakov.
512
513         Teach script configure-xcode-for-ios-development to copy the OS X XSLT headers to the iPhoneOS
514         and iPhoneSimulator SDKs so as to support building WebKit for iOS with XSLT. A person must
515         run this script before building WebKit for iOS or the build will fail because one or more XSLT
516         headers cannot be found.
517
518         * Scripts/configure-xcode-for-ios-development:
519         (copyMissingXSLTHeadersToSDKIfNeeded): Added.
520
521 2015-10-05  Myles C. Maxfield  <mmaxfield@apple.com>
522
523         REGRESSION(189668?): http/tests/notifications/events.html flakily asserts or times out
524         https://bugs.webkit.org/show_bug.cgi?id=149218
525
526         Reviewed by Alexey Proskuryakov.
527
528         Because of r189668, WebKitTestRunner now tears down and recreates its WKNotificationManagerRef
529         when the TestOptions change. Previously, WebNotificationProvider only could handle a single
530         WKNotificationManagerRef. Because the ower of the WKNotificationManagerRef is reference counted,
531         and AppKit internally retains some objects which end up retaining the WKNotificationManagerRef,
532         the old WKNotificationManager may not be destroyed before the new one is created. Therefore,
533         WebNotificationProvider must be updated to appropriately handle multiple
534         WKNotificationManagerRefs in flight at the same time.
535
536         * WebKitTestRunner/WebNotificationProvider.cpp:
537         (WTR::WebNotificationProvider::~WebNotificationProvider):
538         (WTR::WebNotificationProvider::showWebNotification):
539         (WTR::WebNotificationProvider::closeWebNotification):
540         (WTR::WebNotificationProvider::addNotificationManager):
541         (WTR::WebNotificationProvider::removeNotificationManager):
542         (WTR::WebNotificationProvider::simulateWebNotificationClick):
543         (WTR::WebNotificationProvider::reset):
544         * WebKitTestRunner/WebNotificationProvider.h:
545
546 2015-10-05  Daniel Bates  <dabates@apple.com>
547
548         Disable Bitcode when building for iOS device
549         https://bugs.webkit.org/show_bug.cgi?id=149818
550
551         Reviewed by Alexey Proskuryakov.
552
553         Xcode 7 generates bitcode for iOS device apps by default. Do not generate bitcode
554         when building for iOS device.
555
556         * Scripts/webkitdirs.pm:
557         (XcodeOptions):
558
559 2015-10-05  Daniel Bates  <dabates@apple.com>
560
561         [iOS] Make it possible to build WebKit using iphoneos SDK without a developer certificate installed
562         https://bugs.webkit.org/show_bug.cgi?id=140828
563         <rdar://problem/19520599>
564
565         Reviewed by Alexey Proskuryakov.
566
567         Support building WebKit for iOS device without an iOS Developer certificate installed. Otherwise,
568         we will pass CODE_SIGN_IDENTITY="iPhone Developer: " to Xcode to find a iOS Developer certificate
569         to use. To use a specific installed iOS Developer certificate, explicitly pass CODE_SIGN_IDENTITY
570         to build-webkit.
571
572         * Scripts/webkitdirs.pm:
573         (XcodeOptions): Cleaned up code. When building for iOS device, pass to Xcode CODE_SIGN_IDENTITY="iPhone Developer: "
574         to code sign using the installed iOS development certificate (if it exists - we assume there is only one such certificate).
575         Otherwise, pass CODE_SIGN_IDENTITY="" and CODE_SIGNING_REQUIRED=NO to Xcode to disable code signing.
576         (hasIOSDevelopmentCertificate): Added.
577
578 2015-10-05  Daniel Bates  <dabates@apple.com>
579
580         DumpRenderTree built with public iOS SDK crashes under -[WebPreferences(WebPrivate) _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]
581         https://bugs.webkit.org/show_bug.cgi?id=149766
582
583         Reviewed by Alexey Proskuryakov.
584
585         Create network storage testing session on iOS.
586
587         Currently we do not create a network storage testing session on iOS. A network storage testing session always
588         has an associated cookie store. When WebKit is built without USE(CFNETWORK), NetworkStorageSession::defaultStorageSession().cookieStorage()
589         returns nullptr because the caller is expected to interact with NSHTTPCookieStorage instead of querying
590         NetworkStorageSession for the cookie store. When WebKit is built with USE(CFNETWORK) accessing
591         NetworkStorageSession::defaultStorageSession().cookieStorage() returns a valid cookie store (creating one if
592         it does not exist). Instead we should make use of NetworkStorageSession::switchToNewTestingSession() to
593         create a network storage testing session when building DumpRenderTree for iOS so as to ensure a consistent
594         testing environment regardless of whether we built with USE(CFNETWORK). This will also make the behavior of
595         DumpRenderTree on iOS more consistent with the behavior of DumpRenderTree on Mac.
596
597         As a side effect of this change DumpRenderTree no longer crashes in -[WebPreferences(WebPrivate) _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]
598         when WebKit is built without USE(CFNETWORK) because NetworkStorageSession::defaultStorageSession().cookieStorage()
599         returns a non-null pointer to a cookie store.
600
601         * DumpRenderTree/mac/DumpRenderTree.mm:
602         (prepareConsistentTestingEnvironment):
603
604 2015-10-05  Simon Fraser  <simon.fraser@apple.com>
605
606         Fix the iOS 8 build again, where -[UIApplication _enqueueHIDEvent:] is not
607         available.
608
609         * WebKitTestRunner/ios/HIDEventGenerator.mm:
610         (-[HIDEventGenerator _sendMarkerHIDEventWithCompletionBlock:]):
611
612 2015-10-05  Myles C. Maxfield  <mmaxfield@apple.com>
613
614         Allow WKRetainPtrs to be used as keys in hashing data structures
615         https://bugs.webkit.org/show_bug.cgi?id=149762
616
617         Reviewed by Anders Carlsson.
618
619         * TestWebKitAPI/PlatformGTK.cmake:
620         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
621         * TestWebKitAPI/Tests/WebKit2/WKRetainPtr.cpp: Added.
622         (TestWebKitAPI::TEST):
623
624 2015-10-05  Simon Fraser  <simon.fraser@apple.com>
625
626         Fix the iOS 8 build, where -[UIApplication _enqueueHIDEvent:] is not
627         available, and tidy up the #ifdefs in the UIKitSPI header.
628
629         * WebKitTestRunner/ios/HIDEventGenerator.mm:
630         (-[HIDEventGenerator _sendHIDEvent:]):
631         * WebKitTestRunner/ios/UIKitSPI.h:
632
633 2015-10-04  Zan Dobersek  <zdobersek@igalia.com>
634
635         [GTK] Remove duplicate entries in WebKitTestRunner_SOURCES
636         https://bugs.webkit.org/show_bug.cgi?id=149792
637
638         Reviewed by Martin Robinson.
639
640         * WebKitTestRunner/PlatformGTK.cmake: Don't list build targets
641         for WebKitTestRunner multiple times.
642
643 2015-10-04  Daniel Bates  <dabates@apple.com>
644
645         Fix the Apple Internal iOS build after <http://trac.webkit.org/changeset/190515>
646         (https://bugs.webkit.org/show_bug.cgi?id=149753)
647
648         For now, support calling build-layouttestrelay without --ios-simulator so long
649         as we are building on a Mac.
650
651         * Scripts/build-layouttestrelay:
652
653 2015-10-04  Alexey Proskuryakov  <ap@apple.com>
654
655         Support Trac 1.0.x XML timeline link format
656         https://bugs.webkit.org/show_bug.cgi?id=149786
657
658         Reviewed by Lucas Forschler.
659
660         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
661         (Trac.prototype._convertCommitInfoElementToObject):
662
663 2015-10-04  Alexey Proskuryakov  <ap@apple.com>
664
665         Fix some errors on bot watcher's dashboard
666         https://bugs.webkit.org/show_bug.cgi?id=149789
667
668         Reviewed by Lucas Forschler.
669
670         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js:
671         (BuildbotTesterQueueView.prototype.appendBuilderQueueStatus): We may not get to layout
672         tests step, in which case layoutTestResults.tooManyFailures would raise an exception.
673
674 2015-10-04  Alexey Proskuryakov  <ap@apple.com>
675
676         Bot watcher's dashboard builders should turn yellow when svn fails
677         https://bugs.webkit.org/show_bug.cgi?id=149791
678
679         Reviewed by Lucas Forschler.
680
681         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotBuilderQueueView.js:
682         (BuildbotBuilderQueueView.prototype.appendBuilderQueueStatus):
683         (BuildbotBuilderQueueView.prototype.update):
684
685 2015-10-02  Daniel Bates  <dabates@apple.com>
686
687         Add iOS 9 Simulator builders and testers to WebKit Bot Watcher's Dashboard
688         https://bugs.webkit.org/show_bug.cgi?id=149769
689
690         Reviewed by Alexey Proskuryakov.
691
692         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9Simulator.png: Added.
693         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/IOS9Simulator@2x.png: Added.
694         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:
695         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/WebKitBuildbot.js:
696         (WebKitBuildbot):
697         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
698         (table.queue-grid tr.platform.ios-simulator-9 img.logo):
699
700 2015-10-02  Ryosuke Niwa  <rniwa@webkit.org>
701
702         REGRESSION(r190370): Speedometer spits out an extra console message
703         https://bugs.webkit.org/show_bug.cgi?id=149720
704
705         Unreviewed. Temporarily ignore the console error message.
706
707         * Scripts/webkitpy/performance_tests/perftest.py:
708         (PerfTest._filter_output):
709
710 2015-10-02  Brent Fulgham  <bfulgham@apple.com>
711
712         Provide "--no-ninja" option to avoid using Ninja
713         https://bugs.webkit.org/show_bug.cgi?id=149757
714
715         Reviewed by Alex Christensen.
716
717         Add a new command line argument understood by webkitdirs.pm so
718         that we can conditionally avoid using Ninja. This is an
719         'opt-out' argument, so no existing Ninja users should be affected.
720         
721         * Scripts/webkitdirs.pm:
722         (canUseNinja): Check for option and block ninja if present.
723
724 2015-10-02  Aakash Jain  <aakash_jain@apple.com>
725
726         Flakiness dashboard should support OS X El Capitan
727         https://bugs.webkit.org/show_bug.cgi?id=149648
728
729         Reviewed by Alexey Proskuryakov.
730
731         * TestResultServer/static-dashboards/flakiness_dashboard.js: Fix the broken dashboard for ElCapitan.
732
733 2015-10-02  Daniel Bates  <dabates@apple.com>
734
735         Fix run-webkit-tests --ios-simulator after <http://trac.webkit.org/changeset/190515>
736         (https://bugs.webkit.org/show_bug.cgi?id=149753)
737
738         For now, pass --ios-simulator.
739
740         * Scripts/webkitpy/port/ios.py:
741         (IOSSimulatorPort._build_relay):
742
743 2015-10-02  Simon Fraser  <simon.fraser@apple.com>
744
745         Remove a "nullable" that breaks the iOS 8 build.
746
747         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
748         (-[TestRunnerWKWebView scrollViewWillBeginZooming:withView:]):
749
750 2015-10-02  Daniel Bates  <dabates@apple.com>
751
752         LayoutTestRelay is not built and archived when building for iOS Simulator
753         https://bugs.webkit.org/show_bug.cgi?id=149753
754
755         Reviewed by Alexey Proskuryakov and Andy Estes.
756
757         Towards running layout tests on the iOS Simulator test bots, we need to teach scripts build-webkit
758         and built-product-archive to build the Mac tool LayoutTestRelay and include this tool in the built
759         product archive when building for iOS Simulator, respectively.
760
761         * BuildSlaveSupport/built-product-archive:
762         (main): Pass the full platform name (options.platform) to archiveBuiltProduct() so that it can
763         differentiate between iOS device and iOS Simulator platforms.
764         (webkitBuildDirectoryForConfigurationAndPlatform): Extracted logic to run the script webkit-build-directory
765         from determineWebKitBuildDirectories() into this function so that it can be used by both
766         determineWebKitBuildDirectories() and archiveBuiltProduct().
767         (determineWebKitBuildDirectories): Moved logic to execute the script webkit-build-directory from here to
768         webkitBuildDirectoryForConfigurationAndPlatform().
769         (createZip): Added parameter embedParentDirectoryNameOnDarwin (defaults to False) to specify whether
770         we should call ditto(1) with --keepParent to embed the parent directory name in the zip archive. This
771         argument is only applicable when building on Darwin. We only pass embedParentDirectoryNameOnDarwin=True
772         when making an archive for a Mac or iOS device build. For iOS Simulator builds we archive two directories
773         and we do not want to keep the parent directory because it is a placeholder directory used as a workaround
774         for the limitation that ditto(1) can only accept a single directory to archive on its command line.
775         (archiveBuiltProduct): Modified to take the full platform name as an argument. Added logic for iOS.
776         For iOS device builds we use the same logic as for a Mac build and archive the configuration-specific
777         build directory. For iOS Simulator builds we archive the configuration-specific iOS build directory,
778         LayoutTestRelay and LayoutTestRelay.dSYM (if it exists) from the configuration-specific Mac build.
779         * Scripts/build-layouttestrelay:
780             - Remove unnecessary include of Perl module POSIX.
781             - Only build LayoutTestRelay when building for iOS Simulator (i.e. --ios-simulator is passed).
782         * Scripts/build-webkit:
783             - Invoke script build-layouttestrelay when building for iOS Simulator.
784
785 2015-10-02  Brent Fulgham  <bfulgham@apple.com>
786
787         [Win] Unreviewed test fix.
788
789         You cannot run 'run-webkit-tests' from the command line because it does not know
790         to append the binary subdirectory (bin32/bin64). We don't see this on our builders
791         because they explicitly set use the 'root' argument to provide the full path to
792         the test binaries.
793
794         * Scripts/webkitpy/port/win.py:
795         (WinPort._build_path): Added.
796
797 2015-10-02  Alex Christensen  <achristensen@webkit.org>
798
799         Reloading without content blockers doesn't apply to resource loads after the main frame finishes
800         https://bugs.webkit.org/show_bug.cgi?id=149430
801         rdar://problem/22742222
802
803         Reviewed by Geoffrey Garen.
804
805         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
806         (WTR::TestController::cocoaResetStateToConsistentValues):
807         * WebKitTestRunner/mac/TestControllerMac.mm:
808         (WTR::TestController::platformConfigureViewForTest):
809         Test what happens when you disable content blockers from the SPI.
810
811 2015-10-01  Brent Fulgham  <bfulgham@apple.com>
812
813         [Win] Unreviewed build fix for run-api-tests
814
815         * Scripts/run-api-tests:
816         (testToolPaths): Windows run needs to specify the binary path.
817
818 2015-10-01  Daniel Bates  <dabates@apple.com>
819
820         Another attempt to fix the Windows builders after <https://trac.webkit.org/changeset/190387>
821         (https://bugs.webkit.org/show_bug.cgi?id=149695)
822
823         Following r190424 we can now rely on webkit-build-directory to return the path to
824         the correct configuration-specific build directory on Windows.
825
826         * BuildSlaveSupport/built-product-archive:
827         (archiveBuiltProduct):
828
829 2015-10-01  Brent Fulgham  <bfulgham@apple.com>
830
831         [Win] Unreviewed build fix.
832
833         * Scripts/webkitdirs.pm:
834         (setupAppleWinEnv): Use 64-bit build tools if available
835
836 2015-10-01  Brent Fulgham  <bfulgham@apple.com>
837
838         [Win] Fix TestWebKitAPI build under CMake.
839
840         Reviewed by Alex Christensen.
841
842         * TestWebKitAPI/PlatformWin.cmake: Add missing link command
843         for Psapi.lib.
844
845 2015-10-01  Brent Fulgham  <bfulgham@apple.com>
846
847         [Win] Fix behavior of webkit-build-directory script
848         https://bugs.webkit.org/show_bug.cgi?id=149718
849
850         Reviewed by Alex Christensen.
851
852         * Scripts/webkitdirs.pm:
853         (determineConfigurationProductDir): Do not include the binary
854         sub-directory in the configuration product directory output.
855         (jscProductDir): Append correct binary path for Windows build.
856         (setPathForRunningWebKitApp): Include properly binary subdirectories.
857         (runSafari): Update for revised productDir behavior.
858         (runMiniBrowser): Ditto.
859
860 2015-10-01  Alexey Proskuryakov  <ap@apple.com>
861
862         Stop building LayoutTestRelay for now. It's a Mac project, but build-webkit tries to
863         use iOS SDK, like with all the others.
864
865         * Scripts/build-webkit:
866
867 2015-10-01  Daniel Bates  <dabates@apple.com>
868
869         Attempt to fix the iOS 9 Simulator testers
870
871         Add dependency DumpRenderTree.app to target All of project DumpRenderTree so that we
872         build DumpRenderTree.app, if applicable. Also, teach build-webkit to build project
873         LayoutTestRelay when building for iOS Simulator.
874
875         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
876         * Scripts/build-webkit:
877
878 2015-10-01  Carlos Garcia Campos  <cgarcia@igalia.com>
879
880         [GTK] Websites with invalid auth header keep loading forever
881         https://bugs.webkit.org/show_bug.cgi?id=149710
882
883         Reviewed by Martin Robinson.
884
885         Add test case to check that we can authenticate sites with an
886         empty realm.
887
888         * TestWebKitAPI/Tests/WebKit2Gtk/TestAuthentication.cpp:
889         (testWebViewAuthenticationEmptyRealm):
890         (serverCallback):
891         (beforeAll):
892
893 2015-10-01  Alexey Proskuryakov  <ap@apple.com>
894
895         [Mac] Make run-api-tests work with System Integrity Protection
896         https://bugs.webkit.org/show_bug.cgi?id=149711
897         rdar://problem/22928202
898
899         Reviewed by Dan Bernstein.
900
901         * Scripts/run-api-tests:
902         (runTest):
903         (archCommandLineArgumentsForRestrictedEnvironmentVariables):
904
905 2015-10-01  Daniel Bates  <dabates@apple.com>
906
907         Attempt to fix the Windows build after <https://trac.webkit.org/changeset/190387>
908         (https://bugs.webkit.org/show_bug.cgi?id=149695)
909
910         For some reason built-product-archive hardcodes the assumption that we build for 32-bit Windows.
911         For now, use the path to the top-level WebKit build directory instead of using the configuration-
912         specific build directory.
913
914         * BuildSlaveSupport/built-product-archive:
915         (archiveBuiltProduct):
916
917 2015-10-01  Csaba Osztrogonác  <ossy@webkit.org>
918
919         [EFL] Fix the openwebrtc and gst-plugins-openwebrtc build with clang
920         https://bugs.webkit.org/show_bug.cgi?id=145837
921
922         Reviewed by Philippe Normand.
923
924         * efl/jhbuild.modules:
925         * efl/patches/openwebrtc-clang-warning-fix.patch: Added.
926         * efl/patches/openwebrtc-gst-plugins-clang-warning-fix.patch: Added.
927
928 2015-10-01  Wenson Hsieh  <wenson_hsieh@apple.com>
929
930         Unreviewed. Fix the iOS build after r190407.
931
932         * WebKitTestRunner/ios/IOKitSPI.h:
933
934 2015-10-01  Wenson Hsieh  <wenson_hsieh@apple.com>
935
936         Implement keyboard event sending for iOS in WebKitTestRunner
937         https://bugs.webkit.org/show_bug.cgi?id=149676
938
939         Reviewed by Simon Fraser.
940
941         Adds support for generating and sending key events in WebKitTestRunner. This is accomplished in a similar
942         way as touch events, using IOHIDEvent machinery. Also adds callbacks to the UIScriptController JS API that
943         allows us to run code when the keyboard is shown or hidden.
944
945         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl: Adds the typeCharacter JS interface.
946         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
947         (WTR::UIScriptController::setDidShowKeyboardCallback):
948         (WTR::UIScriptController::didShowKeyboardCallback):
949         (WTR::UIScriptController::setDidHideKeyboardCallback):
950         (WTR::UIScriptController::didHideKeyboardCallback):
951         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
952         (WTR::UIScriptController::platformSetDidShowKeyboardCallback):
953         (WTR::UIScriptController::platformSetDidHideKeyboardCallback):
954         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
955         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h:
956         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
957         (-[TestRunnerWKWebView initWithFrame:configuration:]): Registers the TestRunnerWKWebView to listen to
958                 the notifications that the keyboard has been raised or lowered.
959         (-[TestRunnerWKWebView _keyboardDidShow:]):
960         (-[TestRunnerWKWebView _keyboardDidHide:]):
961         * WebKitTestRunner/ios/HIDEventGenerator.h:
962         * WebKitTestRunner/ios/HIDEventGenerator.m:
963         (-[HIDEventGenerator _sendIOHIDKeyboardEvent:usage:isKeyDown:]): Helper to send a HID keyboard event.
964         (shouldWrapWithShiftKeyEventForCharacter): Helper used to generate key events.
965         (hidUsageCodeForCharacter): Ditto.
966         (-[HIDEventGenerator keyDown:completionBlock:]): Synthesizes and sends HIDKeyboardEvents, triggering
967                 a keyDown event in WebKit.
968         * WebKitTestRunner/ios/IOKitSPI.h:
969         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
970
971 2015-10-01  Carlos Garcia Campos  <cgarcia@igalia.com>
972
973         Unreviewed, rolling out r190399.
974
975         Tests are still failing even after r190362
976
977         Reverted changeset:
978
979         "Unreviewed. Unskip GTK+ user media unit tests after r190362."
980         http://trac.webkit.org/changeset/190399
981
982 2015-10-01  Csaba Osztrogonác  <ossy@webkit.org>
983
984         [jhbuild] switch to new upstream usrsctp library
985         https://bugs.webkit.org/show_bug.cgi?id=149494
986
987         Reviewed by Philippe Normand.
988
989         * efl/jhbuild.modules:
990         * gtk/jhbuild.modules:
991
992 2015-10-01  Carlos Garcia Campos  <cgarcia@igalia.com>
993
994         Unreviewed. Unskip GTK+ user media unit tests after r190362.
995
996         They should pass now.
997
998         * Scripts/run-gtk-tests:
999         (TestRunner):
1000
1001 2015-09-30  Daniel Bates  <dabates@apple.com>
1002
1003         Another attempt to fix the build after <https://trac.webkit.org/changeset/190387>
1004         (https://bugs.webkit.org/show_bug.cgi?id=149695)
1005
1006         * BuildSlaveSupport/built-product-archive:
1007         (determineWebKitBuildDirectories): Substitute _configurationBuildDirectory for _buildDirectory.
1008         (extractBuiltProduct): Substitute _topLevelBuildDirectory for _buildDirectory.
1009
1010 2015-09-30  Daniel Bates  <dabates@apple.com>
1011
1012         Attempt to fix the build after <https://trac.webkit.org/changeset/190387>
1013         (https://bugs.webkit.org/show_bug.cgi?id=149695)
1014
1015         Actually, we need to pass --configuration to script webkit-build-directory to have
1016         it return the path to the configuration-specific build directory.
1017
1018         * BuildSlaveSupport/built-product-archive:
1019         (determineWebKitBuildDirectories):
1020
1021 2015-09-30  Daniel Bates  <dabates@apple.com>
1022
1023         built-product-archive archives incorrect build directory for iOS port
1024         https://bugs.webkit.org/show_bug.cgi?id=149695
1025
1026         Reviewed by Darin Adler.
1027
1028         Fixes an issue where the script built-product-archive archives a non-existent
1029         build directory for the iOS port. Without loss of generality, the script assumes
1030         the path to the Release configuration build for iOS is in directory WebKitBuild/Release.
1031         But the built products for this configuration are in directory WebKitBuild/Release-iphonesimulator.
1032
1033         Currently the script built-product-archive calls `webkit-build-directory --top-level ...`
1034         to determine the top-level build directory and computes the configuration-specific
1035         build directory to be the concatenation of the the top-level build directory and
1036         the configuration (e.g. Release). This is incorrect. Instead we should call
1037         webkit-build-directory omitting the flag --top-level to compute the path to the
1038         configuration-specific build directory.
1039
1040         * BuildSlaveSupport/built-product-archive: Fix up the style such that we use single quoted literals.
1041         (main): Renamed global variable _buildDirectory to _topLevelBuildDirectory to better describe
1042         its purpose and added global variable _configurationBuildDirectory to store the path
1043         to the configuration-specific build directory. Ensure that we have a non-empty string
1044         for both the top-level and configuration-specific build directories.
1045         (determineWebKitBuildDirectories): Formerly named determineWebKitBuildDirectory.
1046         Compute the configuration-specific build directory and store it in the global variable
1047         _configurationBuildDirectory.
1048         (archiveBuiltProduct): Modified to use _configurationBuildDirectory.
1049         (extractBuiltProduct): Modified to use _configurationBuildDirectory and _topLevelBuildDirectory
1050         as needed.
1051         (determineWebKitBuildDirectory): Deleted.
1052
1053 2015-09-30  Hunseop Jeong  <hs85.jeong@samsung.com>
1054
1055         [EFL] css3/device-adapt/* tests failed after r190335.
1056         https://bugs.webkit.org/show_bug.cgi?id=149655
1057
1058         Reviewed by Simon Fraser.
1059
1060         device-adapt/* tests need the fixedLayout option but useFixedLayout option is
1061         overwritten by updatePlatformSpecificViewOptionsForTest after r190335.
1062
1063         * WebKitTestRunner/efl/TestControllerEfl.cpp:
1064         (WTR::shouldUseFixedLayout):
1065
1066 2015-09-30  Dewei Zhu  <dewei_zhu@apple.com>
1067
1068         Extend JetStream timeout for slow devices.
1069
1070         Reviewed by Chris Dumez.
1071
1072         Extend JetStream timeout to 20 minutes.
1073
1074         * Scripts/webkitpy/benchmark_runner/data/plans/jetstream.plan:
1075
1076 2015-09-30  Daniel Bates  <dabates@apple.com>
1077
1078         Rename iOS builders/testers to include version
1079         https://bugs.webkit.org/show_bug.cgi?id=149685
1080
1081         Reviewed by Simon Fraser.
1082
1083         Substitute "Apple iOS 9" for "Apple iOS" in the names of iOS builders/testers so as
1084         make it clear to a reader the version of iOS these builders/testers are using.
1085
1086         * BuildSlaveSupport/build.webkit.org-config/config.json:
1087         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
1088
1089 2015-09-30  Daniel Bates  <dabates@apple.com>
1090
1091         Add iOS criterion for triggering a build
1092         https://bugs.webkit.org/show_bug.cgi?id=149679
1093
1094         Rubber-stamped by Alexey Proskuryakov.
1095
1096         First pass at defining criterion for triggering an iOS build.
1097
1098         * BuildSlaveSupport/build.webkit.org-config/wkbuild.py:
1099         (_should_file_trigger_build):
1100         * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py:
1101         (ShouldBuildTest):
1102         (ShouldBuildTest.test_should_build):
1103
1104 2015-09-29  Simon Fraser  <simon.fraser@apple.com>
1105
1106         [iOS] Allow tests to generate user gestures for UI testing
1107         https://bugs.webkit.org/show_bug.cgi?id=149653
1108
1109         Reviewed by Tim Horton.
1110
1111         Expose functionality in UIScriptController to allow for testing single- and double-tap,
1112         and to listen for completion of scrolling and zooming in the WKWebView.
1113         
1114         Tap generation is done using synthetic IOHIDEvents, via a new HIDEventGenerator class
1115         which hides the complexity of creating these events. Event dispatch is asynchronous.
1116         We detect when the last event has been handled by dispatching a vendor-specific event,
1117         which is detected via -_handleHIDEvent: in our UIApplication subclass.
1118         
1119         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: Link with IOKit.
1120         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl: Two new properties
1121         for 'will begin zooming' and 'did end zooming' callbacks, and functions to dispatch
1122         single and double taps.
1123         * WebKitTestRunner/UIScriptContext/UIScriptContext.cpp:
1124         (UIScriptContext::registerCallback): Used to store the callbacks for zooming.
1125         Unlike the "task" callbacks, these are persistent, but we store them in the same hash map.
1126         (UIScriptContext::unregisterCallback):
1127         (UIScriptContext::callbackWithID):
1128         (UIScriptContext::fireCallback):
1129         * WebKitTestRunner/UIScriptContext/UIScriptContext.h:
1130         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1131         (WTR::UIScriptController::setWillBeginZoomingCallback): Cross-platform code.
1132         (WTR::UIScriptController::willBeginZoomingCallback): Ditto.
1133         (WTR::UIScriptController::setDidEndZoomingCallback):
1134         (WTR::UIScriptController::didEndZoomingCallback):
1135         (WTR::UIScriptController::singleTapAtPoint): Non-iOS stub.
1136         (WTR::UIScriptController::doubleTapAtPoint): Ditto.
1137         (WTR::UIScriptController::platformSetWillBeginZoomingCallback):
1138         (WTR::UIScriptController::platformSetDidEndZoomingCallback):
1139         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1140         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
1141         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h: Properties for the zooming callbacks.
1142         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
1143         (-[TestRunnerWKWebView zoomToScale:animated:completionHandler:]): Dispatch the zooming callback.
1144         (-[TestRunnerWKWebView scrollViewWillBeginZooming:withView:]): Ditto.
1145         (-[TestRunnerWKWebView scrollViewDidEndZooming:withView:atScale:]): Ditto.
1146         (-[TestRunnerWKWebView onDidEndZooming:]): Deleted.
1147         * WebKitTestRunner/ios/HIDEventGenerator.h: Copied from Tools/WebKitTestRunner/cocoa/TestRunnerWKWebView.h.
1148         * WebKitTestRunner/ios/HIDEventGenerator.m: Added.
1149         (simpleDragCurve):
1150         (calculateNextLocation):
1151         (delayBetweenMove):
1152         (+[HIDEventGenerator sharedHIDEventGenerator]):
1153         (+[HIDEventGenerator nextEventCallbackID]):
1154         (-[HIDEventGenerator init]):
1155         (-[HIDEventGenerator _createIOHIDEventType:]):
1156         (-[HIDEventGenerator _sendHIDEvent:]):
1157         (-[HIDEventGenerator _sendMarkerHIDEventWithCompletionBlock:]):
1158         (-[HIDEventGenerator _updateTouchPoints:count:]):
1159         (-[HIDEventGenerator touchDownAtPoints:touchCount:]):
1160         (-[HIDEventGenerator touchDown:touchCount:]):
1161         (-[HIDEventGenerator touchDown:]):
1162         (-[HIDEventGenerator liftUpAtPoints:touchCount:]):
1163         (-[HIDEventGenerator liftUp:touchCount:]):
1164         (-[HIDEventGenerator liftUp:]):
1165         (-[HIDEventGenerator moveToPoints:touchCount:duration:]):
1166         (-[HIDEventGenerator sendTaps:location:withNumberOfTouches:completionBlock:]):
1167         (-[HIDEventGenerator tap:completionBlock:]):
1168         (-[HIDEventGenerator doubleTap:completionBlock:]):
1169         (-[HIDEventGenerator twoFingerTap:completionBlock:]):
1170         (-[HIDEventGenerator dragWithStartPoint:endPoint:duration:completionBlock:]):
1171         (-[HIDEventGenerator pinchCloseWithStartPoint:endPoint:duration:completionBlock:]):
1172         (-[HIDEventGenerator pinchOpenWithStartPoint:endPoint:duration:completionBlock:]):
1173         (-[HIDEventGenerator markerEventReceived:]):
1174         * WebKitTestRunner/ios/IOKitSPI.h: Added.
1175         * WebKitTestRunner/ios/UIKitSPI.h: Copied from Tools/WebKitTestRunner/cocoa/TestRunnerWKWebView.h.
1176         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1177         (WTR::globalToContentCoordinates):
1178         (WTR::UIScriptController::singleTapAtPoint):
1179         (WTR::UIScriptController::doubleTapAtPoint):
1180         (WTR::UIScriptController::platformSetWillBeginZoomingCallback):
1181         (WTR::UIScriptController::platformSetDidEndZoomingCallback):
1182         * WebKitTestRunner/ios/mainIOS.mm:
1183         (-[WebKitTestRunnerApp _handleHIDEvent:]):
1184
1185 2015-09-30  Dana Burkart  <dburkart@apple.com>
1186
1187         git-add-reviewer should trim trailing spaces/newlines
1188         https://bugs.webkit.org/show_bug.cgi?id=149513
1189
1190         Reviewed by Darin Adler.
1191
1192         * Scripts/git-add-reviewer:
1193         (nonInteractive):
1194
1195 2015-09-30  Eric Carlson  <eric.carlson@apple.com>
1196
1197         REGRESSION(r190262): User media unit test failures after r190262
1198         https://bugs.webkit.org/show_bug.cgi?id=149580
1199
1200         Reviewed by Darin Adler.
1201
1202         * WebKitTestRunner/TestController.cpp:
1203         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Fix parameter
1204           order to WKUserMediaPermissionRequestAllow.
1205
1206 2015-09-30  Daniel Bates  <dabates@apple.com>
1207
1208         Add iOS builders and testers
1209         https://bugs.webkit.org/show_bug.cgi?id=149549
1210
1211         Reviewed by Alexey Proskuryakov.
1212
1213         Adds definitions for 64-bit iOS Simulator release builders and testers and a iOS device
1214         builder that builds universal release binaries for armv7, armv7s and arm64 architectures.
1215
1216         * BuildSlaveSupport/build.webkit.org-config/config.json: Add definitions for builders and testers.
1217         * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: Update unit tests.
1218
1219 2015-09-30  Timothy Hatcher  <timothy@apple.com>
1220
1221         Give WebKitLauncher the get-task-allow entitlement to allow it to work on El Capitan
1222         https://bugs.webkit.org/show_bug.cgi?id=149674
1223
1224         Reviewed by Lucas Forschler.
1225
1226         * WebKitLauncher/WebKitLauncher.entitlements: Added.
1227         * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
1228
1229 2015-09-30  Jason Marcell  <jmarcell@apple.com>
1230
1231         BuildbotQueueView.prototype._appendPendingRevisionCount should skip repositories that don't
1232         have an associated trac instance.
1233         https://bugs.webkit.org/show_bug.cgi?id=149673
1234
1235         Reviewed by Alexey Proskuryakov.
1236
1237         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1238         (BuildbotQueueView.prototype._appendPendingRevisionCount): Skip repositories that don't
1239         have an associated trac instance.
1240
1241 2015-09-30  Daniel Bates  <dabates@apple.com>
1242
1243         Prioritize testing latest build request on iOS test bots
1244         https://bugs.webkit.org/show_bug.cgi?id=149669
1245
1246         Reviewed by Darin Adler.
1247
1248         We should prioritize testing of the latest build request on the iOS test bots
1249         as we do for Mac and Windows test bots.
1250
1251         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1252         (loadBuilderConfig):
1253
1254 2015-09-30  Daniel Bates  <dabates@apple.com>
1255
1256         Add buildbot category for iOS builders and testers
1257         https://bugs.webkit.org/show_bug.cgi?id=149667
1258
1259         Reviewed by Darin Adler.
1260
1261         Group iOS builders and testers under category iOS and add dashboard and console hyperlinks
1262         for iOS to the build.webkit.org home page.
1263
1264         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1265         (loadBuilderConfig):
1266         * BuildSlaveSupport/build.webkit.org-config/templates/root.html:
1267
1268 2015-09-30  Daniel Bates  <dabates@apple.com>
1269
1270         Actually fix the Mac builders build after <http://trac.webkit.org/changeset/190219>
1271         (https://bugs.webkit.org/show_bug.cgi?id=149539)
1272
1273         I inadvertently didn't remove the ONLY_ACTIVE_ARCH=NO flag when building on a Mac
1274         in <http://trac.webkit.org/changeset/190351>.
1275
1276         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1277         (CompileWebKit.start):
1278
1279 2015-09-30  Daniel Bates  <dabates@apple.com>
1280
1281         Attempt to fix the Mac builders build after <http://trac.webkit.org/changeset/190219>
1282         (https://bugs.webkit.org/show_bug.cgi?id=149539)
1283
1284         {32, 64}-bit Mac builders should not try to build project {Plugin.64, Plugin.32},
1285         respectively; only pass ONLY_ACTIVE_ARCH=NO when building for iOS.
1286
1287         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1288         (CompileWebKit.start):
1289
1290 2015-09-30  Lucas Forschler  <lforschler@apple.com>
1291
1292         bot210 was configured for a queue instead of bot126.
1293         
1294         Unreviewed config.json fix.
1295         
1296         * BuildSlaveSupport/build.webkit.org-config/config.json:
1297
1298 2015-09-30  Lucas Forschler  <lforschler@apple.com>
1299
1300         Bring El Capitan buildbot infrastructure online.
1301         https://bugs.webkit.org/show_bug.cgi?id=149605
1302         
1303         Reviewed by Darin Adler.
1304
1305         * BuildSlaveSupport/build.webkit.org-config/config.json:
1306
1307 2015-09-30  Tomas Popela  <tpopela@redhat.com>
1308
1309         [GTK] Deprecation warnings in DOMNodeTest
1310         https://bugs.webkit.org/show_bug.cgi?id=149663
1311
1312         After the webkit_dom_document_get_elements_by_tag_name deprecation we
1313         need to update the tests to use webkit_dom_document_query_selector_all
1314         to avoid compilation warnings.
1315
1316         Also add a new test for webkit_dom_document_get_elements_by_tag_name_as_html_collection
1317         (the suggested replacement for the deprecated function).
1318
1319         Reviewed by Carlos Garcia Campos.
1320
1321         * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeTest.cpp:
1322         (WebKitDOMNodeTest::testTagNamesNodeList):
1323         (WebKitDOMNodeTest::testTagNamesHTMLCollection):
1324         (registerTests):
1325         (WebKitDOMNodeTest::testTagNames): Deleted.
1326         * TestWebKitAPI/Tests/WebKit2Gtk/TestDOMNode.cpp:
1327         (prepareDOMForTagNamesTests):
1328         (testWebKitDOMNodeTagNamesNodeList):
1329         (testWebKitDOMNodeTagNamesHTMLCollection):
1330         (beforeAll):
1331         (testWebKitDOMNodeTagNames): Deleted.
1332
1333 2015-09-29  Simon Fraser  <simon.fraser@apple.com>
1334
1335         WebKitTestRunner fails to apply "useFlexibleViewport" when it's specified in a file comment
1336         https://bugs.webkit.org/show_bug.cgi?id=149650
1337
1338         Reviewed by Tim Horton.
1339         
1340         TestInvocation::invoke() consulted shouldMakeViewportFlexible(), but that only
1341         looks at the file path, and not the custom options that come from file comments.
1342         
1343         Fix by computing TestOptions before making the TestInvocation, and setting them
1344         as const TestInvocation data. This meant changing various call sites to take
1345         the std::string pathOrURL, rather than the TestInvocation itself.
1346         
1347         Also initialize TestInvocation with a WKURLRef, rather than a std::string.
1348
1349         * WebKitTestRunner/CMakeLists.txt:
1350         * WebKitTestRunner/TestController.cpp:
1351         (WTR::TestController::ensureViewSupportsOptionsForTest):
1352         (WTR::testPath):
1353         (WTR::createTestURL):
1354         (WTR::updateTestOptionsFromTestHeader):
1355         (WTR::TestController::testOptionsForTest):
1356         (WTR::TestController::updateWebViewSizeForTest):
1357         (WTR::TestController::updateWindowScaleForTest):
1358         (WTR::TestController::runTest):
1359         * WebKitTestRunner/TestController.h:
1360         * WebKitTestRunner/TestInvocation.cpp:
1361         (WTR::TestInvocation::TestInvocation):
1362         (WTR::TestInvocation::invoke):
1363         (WTR::createWKURL): Deleted.
1364         (WTR::TestInvocation::shouldMakeViewportFlexible): Deleted.
1365         (WTR::TestInvocation::shouldUseFixedLayout): Deleted.
1366         * WebKitTestRunner/TestInvocation.h:
1367         (WTR::TestInvocation::options):
1368         * WebKitTestRunner/TestOptions.cpp: Copied from Tools/WebKitTestRunner/TestOptions.h.
1369         (WTR::pathContains):
1370         (WTR::shouldMakeViewportFlexible):
1371         (WTR::shouldUseFixedLayout):
1372         (WTR::isSVGTestPath):
1373         (WTR::isHiDPITestPath):
1374         (WTR::TestOptions::TestOptions):
1375         * WebKitTestRunner/TestOptions.h:
1376         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
1377         * WebKitTestRunner/efl/TestControllerEfl.cpp:
1378         (WTR::pathContains):
1379         (WTR::shouldUseFixedLayout):
1380         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
1381         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
1382         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
1383         * WebKitTestRunner/ios/TestControllerIOS.mm:
1384         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
1385         * WebKitTestRunner/mac/TestControllerMac.mm:
1386         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
1387
1388 2015-09-29  Aakash Jain  <aakash_jain@apple.com>
1389
1390         Flakiness dashboard should support OS X El Capitan
1391         https://bugs.webkit.org/show_bug.cgi?id=149648
1392
1393         Reviewed by Alexey Proskuryakov.
1394
1395         * QueueStatusServer/app.yaml: We do not need to maintain SVN revision here because of 
1396         difference between new appscale and old Google App Engine implementation.
1397         * TestResultServer/app.yaml: Same.
1398         * TestResultServer/static-dashboards/builders.jsonp: Added OSX El Capitan support.
1399
1400 2015-09-29  Daniel Bates  <dabates@apple.com>
1401
1402         configure-xcode-for-ios-development does not work with Xcode 7
1403         https://bugs.webkit.org/show_bug.cgi?id=149640
1404
1405         Reviewed by Alexey Proskuryakov.
1406
1407         When Xcode 7 is installed, running configure-xcode-for-ios-development dies with an error
1408         because it cannot find the Xcode specification files for iOS simulator and device. These
1409         files have moved to a new location in Xcode 7 distribution. Moreover we must add the
1410         relevant definitions to the Xcode 7 specification files directly as opposed to creating
1411         new specification files with the added definitions (as we did in older versions of Xcode)
1412         in order for Xcode 7 to honor these definitions.
1413
1414         * Scripts/configure-xcode-for-ios-development: Sorted forward declarations.
1415         (updateXcodeSpecificationFilesForSDKIfNeeded): Added.
1416         (updateXcode7SpecificationFile): Added.
1417         (createLegacyXcodeSpecificationFilesForSDKIfNeeded): Formerly named createXcodeSpecificationFilesForSDKIfNeeded.
1418         (writeXcodeSpecification): Moved congratulations line to caller so as to write out the
1419         appropriate success message.
1420         (mergeXcodeSpecificationWithSpecificationAndId): Formerly named createXcodeSpecificationFromSpecificationAndId.
1421         (createXcodeSpecificationFilesForSDKIfNeeded): Deleted.
1422         (createXcodeSpecificationFromSpecificationAndId): Deleted.
1423
1424 2015-09-29  Brent Fulgham  <bfulgham@apple.com>
1425
1426         [Win] Allow 'prepare-ChangeLog' to be used without Cygwin
1427         https://bugs.webkit.org/show_bug.cgi?id=149639
1428
1429         Reviewed by Alex Christensen.
1430
1431         * Scripts/VCSUtils.pm:
1432         (exitStatus): Use 'isWindows()' method.
1433         (isSVNVersion16OrNewer): 'eval' is not needed here, and just causes
1434         an error. This method could probably just go away.
1435         (normalizePath): Leave Windows (or Unix) paths as platform paths, rather than
1436         always changing to Unix style. 
1437         (unixPath): Added. Needed so Windows can always show a Unix path in the
1438         ChangeLog file.
1439         (changeLogName): Work around the fact that 'getpwuid' is not available on
1440         a pure Windows build of Perl.
1441         * Scripts/prepare-ChangeLog:
1442         (generateFunctionLists): Normalize path received from 'svn' in case it's a Unix
1443         path on Windows.
1444         (svnUpdateCommand): Added helper function. Needed because Windows Perl does not
1445         support using arrays for 'open' arguments.
1446         (resolveChangeLogsPath): Ditto.
1447         (resolveConflictedChangeLogs): Use new helper functions.
1448         (generateNewChangeLogs): Force Windows to use Unix paths in ChangeLog output.
1449         (diffCommand): Use double-quotes for paths, since Windows doesn't understand single
1450         quotes. Unix systems are happy either way.
1451         (statusCommand): Ditto.
1452         * Scripts/webkitdirs.pm:
1453         (launcherName): Drive-by fix. WinLauncher was renamed to MiniBrowser some time ago.
1454
1455 2015-09-29  Brent Fulgham  <bfulgham@apple.com>
1456
1457         [Win] Unreviewed 64-bit build fix after switch to CMake.
1458
1459         * Scripts/webkitdirs.pm:
1460         (determineIsWin64FromArchitecture): Added.
1461
1462 2015-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
1463
1464         printing does not use minimum page zoom factor
1465         https://bugs.webkit.org/show_bug.cgi?id=108507
1466
1467         Reviewed by Darin Adler.
1468
1469         WebKitTestRunner always takes the snapshots from the UI process
1470         (expect for IOS), so in the case of printing, the layout in the
1471         web view is not the expected one. When printing, we need to take
1472         the snapshot in the web process and ensure it's rendered with a
1473         PrintContext.
1474
1475         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1476         (WTR::InjectedBundlePage::dump): When dumping pixels, pass
1477         kWKSnapshotOptionsPrinting option to
1478         WKBundlePageCreateSnapshotWithOptions() when printing.
1479
1480 2015-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1481
1482         [WTR] Pixel tests generate the snapshots twice in Web and UI processes
1483         https://bugs.webkit.org/show_bug.cgi?id=149595
1484
1485         Reviewed by Tim Horton.
1486
1487         All ports except IOS implement
1488         PlatformWebView::windowSnapshotImage() to generate the snapshot
1489         for the pixel tests in the UI process. But we are still generating
1490         a snapshot for pixel tests in the Web process too, that is passed
1491         to the UI process but ignored.
1492         Whether a pixel result is needed or not, is only known by the web
1493         process depending on whether the test called dumpAsText with
1494         dumpPixels == true or not. Since the pixels are now dump in the UI
1495         process, we need to pass that information to the UI process when
1496         the test is done. For that we set a PixelResultIsPending bool
1497         parameter to the Done message, and we only add the PixelResult
1498         when UI process doesn't need to generate the pixels dump.
1499
1500         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1501         (WTR::InjectedBundle::didReceiveMessageToPage): Set
1502         m_pixelResultIsPending to false on reset.
1503         (WTR::InjectedBundle::done): Add PixelResultIsPending parameter to the
1504         Done message, and set the PixelResult if m_pixelResultIsPending is false.
1505         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
1506         (WTR::InjectedBundle::setPixelResult): Set m_pixelResultIsPending to false.
1507         (WTR::InjectedBundle::setNeedsPixelResult): Set m_pixelResultIsPending.
1508         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1509         (WTR::InjectedBundlePage::dump): Only create a snapshot for IOS
1510         port.
1511         * WebKitTestRunner/TestInvocation.cpp:
1512         (WTR::TestInvocation::dumpResults): Use either the pixel result
1513         from the web process or generate a pixel result from the web view
1514         if need it.
1515         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1516         * WebKitTestRunner/TestInvocation.h: Add SnapshotResultType enum
1517         parameter to dumpPixelsAndCompareWithExpected, since the snapshot
1518         is created by the caller now, but the CG implementation needs to
1519         know if it's a Web or UI process snapshot.
1520         * WebKitTestRunner/cairo/TestInvocationCairo.cpp:
1521         (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): Create a
1522         cairo surface for the given image.
1523         * WebKitTestRunner/cg/TestInvocationCG.cpp:
1524         (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): Create a
1525         CGContext for the given image.
1526
1527 2015-09-28  Dean Johnson  <dean_johnson@apple.com>
1528
1529         Fix JS errors on dashboard metrics page
1530         https://bugs.webkit.org/show_bug.cgi?id=149608
1531
1532         Reviewed by Alexey Proskuryakov.
1533
1534         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Updated to use Settings.
1535         (initPlatformsByFamily): 
1536         (updateHiddenPlatforms):
1537         (parsePlatformFamily): Deleted.
1538         (updateToggleButtons): Deleted.
1539         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js:
1540         (updateHiddenPlatforms): Added to remove errors.
1541         (initPlatformsByFamily): Added to remove errors.
1542         (unhiddenQueues): Updated to use Settings.
1543         (documentReady): Added logic to add toggle buttons to the settings menu.
1544         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
1545         (Settings.prototype.parsePlatformFamily): Moved duplicate logic from Main.js and
1546         MetricsMain.js to Settings.
1547         (Settings.prototype.updateToggleButtons): Moved duplicate logic from Main.js and
1548         MetricsMain.js to Settings.
1549         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/QueueView.js:
1550         (QueueView.prototype._updateHiddenState): Updated to use Settings.
1551
1552 2015-09-28  Aakash Jain  <aakash_jain@apple.com>
1553
1554         Appscale query fails because of missing index
1555         https://bugs.webkit.org/show_bug.cgi?id=149609
1556
1557         Reviewed by Darin Adler.
1558
1559         * QueueStatusServer/index.yaml: Added the required index.
1560
1561 2015-09-28  Brent Fulgham  <bfulgham@apple.com>
1562
1563         [Win] Fix the 64-bit build after switch to cmake.
1564
1565         Reviewed by Alex Christensen.
1566
1567         * Scripts/webkitdirs.pm:
1568         (generateBuildSystemFromCMakeProject): Use correct arguments for cmake to
1569         run a 64-bit build.
1570
1571 2015-09-28  Brent Fulgham  <bfulgham@apple.com>
1572
1573         [Win] Allow Windows to run test-webkitpy without Cygwin
1574         https://bugs.webkit.org/show_bug.cgi?id=149602
1575
1576         Reviewed by Alex Christensen.
1577
1578         These changes mostly shift from hard-coded paths using UNIX-style
1579         separators to Python's "os.path.join" syntax that uses the correct
1580         path separator for each platform.
1581         
1582         * Scripts/webkitpy/common/system/path.py:
1583         (cygpath): Don't pass paths through Cygpath on native Windows.
1584         * Scripts/webkitpy/port/win.py:
1585         (WinPort._path_to_apache): Use os.path.join.
1586         (WinPort._ntsd_location): Support 64-bit environment (ProgramW6432 doesn't exist
1587         in 64-bit environments).
1588         * Scripts/webkitpy/style/checker.py: Use os.path.join.
1589         * Scripts/webkitpy/style/checker_unittest.py:
1590         (GlobalVariablesTest.test_path_rules_specifier.assertNoCheck): Use os.path.join.
1591         (GlobalVariablesTest.test_path_rules_specifier): Ditto.
1592         (GlobalVariablesTest): Ditto.
1593         (GlobalVariablesTest.test_max_reports_per_category): Ditto.
1594         (CheckerDispatcherSkipTest.test_should_skip_with_warning): Ditto.
1595         (CheckerDispatcherDispatchTest.test_js_paths): Ditto.
1596         (CheckerDispatcherDispatchTest.test_json_paths): Ditto.
1597         (CheckerDispatcherDispatchTest.test_python_paths): Ditto.
1598         (CheckerDispatcherDispatchTest.test_text_paths): Ditto.
1599         (CheckerDispatcherDispatchTest.test_xml_paths): Ditto.
1600         (StyleProcessor_CodeCoverageTest._create_carriage_checker_class): Ditto.
1601         (StyleProcessor_CodeCoverageTest): Ditto.
1602         (StyleProcessor_CodeCoverageTest.test_should_process__skip_without_warning): Ditto.
1603         (StyleProcessor_CodeCoverageTest.test_should_process__skip_with_warning): Ditto.
1604         (StyleProcessor_CodeCoverageTest.test_should_process__true_result): Ditto.
1605         * Scripts/webkitpy/w3c/test_parser_unittest.py: Uses os.path.join rather than
1606         manual string concatenation of paths.
1607
1608 2015-09-28  Csaba Osztrogonác  <ossy@webkit.org>
1609
1610         Add bugzilla addresses of committers to contributors.json
1611         https://bugs.webkit.org/show_bug.cgi?id=149520
1612
1613         Reviewed by Darin Adler.
1614
1615         * Scripts/webkitpy/common/config/contributors.json:
1616
1617 2015-09-28  Csaba Osztrogonác  <ossy@webkit.org>
1618
1619         validate-committer-lists -b shouldn't need edituser privileges
1620         https://bugs.webkit.org/show_bug.cgi?id=149519
1621
1622         Reviewed by Darin Adler.
1623
1624         * Scripts/validate-committer-lists:
1625         (CommitterListBugzillaChecker._has_invalid_bugzilla_email):
1626         * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
1627         (BugzillaQueries.is_invalid_bugzilla_email):
1628         (BugzillaQueries): Deleted.
1629         (BugzillaQueries.fetch_logins_matching_substring): Deleted.
1630
1631 2015-09-26  Carlos Garcia Campos  <cgarcia@igalia.com>
1632
1633         Unreviewed. Gardening: skip media stream tests failing after r190262.
1634
1635         * Scripts/run-gtk-tests:
1636         (TestRunner):
1637
1638 2015-09-25  Alexey Proskuryakov  <ap@apple.com>
1639
1640         [Mac] USE_INTERNAL_SDK is used undefined in tools projects
1641         https://bugs.webkit.org/show_bug.cgi?id=149571
1642
1643         Reviewed by Dan Bernstein.
1644
1645         Use the same pattern as in Source directory configurations (so, also get rid of AspenFamily.xcconfig). 
1646
1647         * DumpRenderTree/mac/Configurations/Base.xcconfig:
1648         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1649         * LayoutTestRelay/Configurations/Base.xcconfig:
1650         * MiniBrowser/Configurations/Base.xcconfig:
1651         * MiniBrowser/Configurations/DebugRelease.xcconfig:
1652         * TestWebKitAPI/Configurations/Base.xcconfig:
1653         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
1654         * WebEditingTester/Configurations/Base.xcconfig:
1655         * WebEditingTester/Configurations/DebugRelease.xcconfig:
1656         * WebKitTestRunner/Configurations/Base.xcconfig:
1657         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
1658         * WebKitTestRunner/iOS.xcconfig: Removed.
1659
1660 2015-09-25  Eric Carlson  <eric.carlson@apple.com>
1661
1662         Clean up user media request internal API
1663         https://bugs.webkit.org/show_bug.cgi?id=149527
1664
1665         Reviewed by Tim Horton.
1666
1667         * TestWebKitAPI/Tests/WebKit2/UserMedia.cpp:
1668         (TestWebKitAPI::decidePolicyForUserMediaPermissionRequestCallBack): Update for API changes.
1669
1670         * WebKitTestRunner/TestController.cpp:
1671         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Ditto.
1672
1673 2015-09-25  Simon Fraser  <simon.fraser@apple.com>
1674
1675         [iOS WK2] Add viewport tests and fix runUIScript() timing issues
1676         https://bugs.webkit.org/show_bug.cgi?id=149577
1677
1678         Reviewed by Tim Horton.
1679         
1680         When calling testRunner.runUIScript() from a page load event, the script could run
1681         in the UI process before the current remote layer tree transaction had been handled
1682         there. This meant that runUIScript() could query state which was about to change.
1683         
1684         Fix by delaying the execution of the UI script until a layer tree transaction has
1685         been handled by the UI process, leveraging the existing DrawingAreaProxy::dispatchAfterEnsuringDrawing().
1686
1687         * WebKitTestRunner/TestInvocation.cpp:
1688         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1689         (WTR::TestInvocation::runUISideScriptAfterUpdateCallback):
1690         * WebKitTestRunner/TestInvocation.h:
1691
1692 2015-09-25  Alexey Proskuryakov  <ap@apple.com>
1693
1694         [Mac] Media tests start to time out after a few days of bot uptime
1695         https://bugs.webkit.org/show_bug.cgi?id=149468
1696
1697         Reviewed by Darin Adler.
1698
1699         Delete cache directory in addition to the temporary one. Don't delete /private/tmp/MediaCache,
1700         as it's not longer used by tests. Set TMPDIR and DIRHELPER_USER_DIR_SUFFIX to make
1701         all temporary and cache files go to a custom location.
1702
1703         * Scripts/webkitpy/port/base.py:
1704         * Scripts/webkitpy/port/driver.py:
1705         * Scripts/webkitpy/port/mac.py:
1706         * Scripts/webkitpy/port/win.py:
1707         (WinPort._driver_tempdir_for_environment): Deleted unused function.
1708
1709 2015-09-25  Dan Bernstein  <mitz@apple.com>
1710
1711         Removed MiniBrowser.entitlements.
1712
1713         Rubber-stamped by Anders Carlsson.
1714
1715         The entitlements weren’t used anyway.
1716
1717         * MiniBrowser/MiniBrowser.entitlements: Removed.
1718         * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
1719
1720 2015-09-24  Daniel Bates  <dabates@apple.com>
1721
1722         Add WebKitSystemInterface for iOS 9.0
1723         https://bugs.webkit.org/show_bug.cgi?id=149550
1724
1725         Rubber-stamped by Alexey Proskuryakov.
1726
1727         * Scripts/copy-webkitlibraries-to-product-directory:
1728
1729 2015-09-24  Daniel Bates  <dabates@apple.com>
1730
1731         Support building for arbitrary architectures
1732         https://bugs.webkit.org/show_bug.cgi?id=149539
1733
1734         Reviewed by Alexey Proskuryakov.
1735
1736         Teach buildbot to pass the architectures associated with the builder to build-webkit
1737         when building on OS X and iOS. As a side effect of this change we now support building
1738         universal binaries when multiples architectures are specified.
1739
1740         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1741         (CompileWebKit.start):
1742
1743 2015-09-24  Daniel Bates  <dabates@apple.com>
1744
1745         Fix the build after <http://trac.webkit.org/changeset/190212>
1746         (http://trac.webkit.org/changeset/190212)
1747
1748         I inadvertently did not remove the fullPlatform argument from one of the callers of archiveBuiltProduct().
1749
1750         * BuildSlaveSupport/built-product-archive:
1751         (main):
1752
1753 2015-09-24  Daniel Bates  <dabates@apple.com>
1754
1755         Support running unit tests on iOS Simulator test bot
1756         https://bugs.webkit.org/show_bug.cgi?id=149536
1757
1758         Reviewed by Alexey Proskuryakov.
1759
1760         Implements support for running unit tests on a iOS test bot. At the time of writing,
1761         the script run-api-tests supports running unit tests on Mac, Windows and iOS Simulator.
1762
1763         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1764         (RunUnitTests.start): Append appropriate command line flag when invoking script run-api-tests.
1765         (TestFactory.__init__): Add step RunUnitTests when the test bot is for the iOS Simulator platform.
1766
1767 2015-09-24  Daniel Bates  <dabates@apple.com>
1768
1769         Add support infrastructure for OpenSource iOS builders and testers
1770         https://bugs.webkit.org/show_bug.cgi?id=149534
1771
1772         Reviewed by Darin Adler.
1773
1774         Towards setting up OpenSource iOS build bots, teach buildbot and its support
1775         scripts about iOS.
1776
1777         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
1778         (appendCustomBuildFlags): Require the caller to pass parameter fullPlatform and append
1779         --ios-simulator or --device for a builder/tester whose full platform name begins with
1780         "ios-simulator" or "ios", respectively.
1781         (RunJavaScriptCoreTests.start): Pass the full platform name to appendCustomBuildFlags().
1782         * BuildSlaveSupport/built-product-archive:
1783         (main): Pass the full platform name to determineWebKitBuildDirectory().
1784         (determineWebKitBuildDirectory): Call script webkit-build-directory with the appropriate
1785         command line flag when building for iOS.
1786         (archiveBuiltProduct): Use the same logic for iOS as we do for Mac. Also, remove unused
1787         parameter fullPlatform. This parameter was originally added in r125066 to support the
1788         Chromium Android port, which has since been removed from the OpenSource WebKit Project.
1789         (extractBuiltProduct): Use the same logic for iOS as we do for Mac.
1790         * BuildSlaveSupport/clean-build:
1791         (main): Call script webkit-build-directory with the appropriate command line flag when
1792         building for iOS.
1793         * BuildSlaveSupport/delete-stale-build-files:
1794         (main): Use the same logic for iOS as we do for Mac.
1795         (webkitBuildDirectory): Call script webkit-build-directory with the appropriate command line
1796         flag when building for iOS.
1797         * BuildSlaveSupport/test-result-archive:
1798         (archiveTestResults): Use the same logic for iOS as we do for Mac.
1799
1800 2015-09-24  Daniel Bates  <dabates@apple.com>
1801
1802         Remove Chromium-specific changes to script built-product-archive
1803         https://bugs.webkit.org/show_bug.cgi?id=149530
1804
1805         Rubber-stamped by Csaba Osztrogonác.
1806
1807         Reverts changes made in r113074 and r113067 to support Chromium testers. The
1808         Chromium code has long since been removed from the OpenSource WebKit Project.
1809
1810         * BuildSlaveSupport/built-product-archive:
1811         (createZipManually):
1812         (createZip):
1813         (archiveBuiltProduct):
1814
1815 2015-09-24  Dan Bernstein  <mitz@apple.com>
1816
1817         Build fix.
1818
1819         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig:
1820
1821 2015-09-24  Mark Lam  <mark.lam@apple.com>
1822
1823         Unreviewed. Make Lucas Forschler a WebKit reviewer.
1824
1825         * Scripts/webkitpy/common/config/contributors.json:
1826
1827 2015-09-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1828
1829         Unreviewed. Fix GObject DOM API breaks after r190120.
1830
1831         Bring back code removed in r169931 to handle documentation of
1832         deleted classes.
1833
1834         * gtk/webkitdom.py:
1835         (WebKitDOMDocGenerator):
1836         (WebKitDOMDocGenerator.write_deleted_classes):
1837         (WebKitDOMDocGenerator.generate):
1838         (write_deleted_classes):
1839         (WebKitDOMDocGeneratorSections._deleted_class):
1840         (WebKitDOMDocGeneratorSections._deleted_class.in):
1841         (WebKitDOMDocGeneratorSections.write_deleted_classes):
1842         (WebKitDOMDocGeneratorSections.write_deleted_classes.with):
1843
1844 2015-09-23  Myles C. Maxfield  <mmaxfield@apple.com>
1845
1846         [Cocoa] [Font Features] Implement font-variant-*
1847         https://bugs.webkit.org/show_bug.cgi?id=148413
1848
1849         Reviewed by Darin Adler.
1850
1851         Update test font to use "lnum" feature.
1852
1853         * FontWithFeatures/FontWithFeatures/FontCreator.cpp:
1854         (Generator::appendGSUBTable):
1855
1856 2015-09-22  Andy Estes  <aestes@apple.com>
1857
1858         ContentFiltering.AllowDownloadAfterAddData is very flaky
1859         https://bugs.webkit.org/show_bug.cgi?id=148885
1860         <rdar://problem/22729563>
1861
1862         Reviewed by Alexey Proskuryakov.
1863
1864         The AllowDownload* tests were relying on -_downloadDidStart: being called before -webView:didFinishNavigation:,
1865         but there is no guarantee of this. For tests that should allow a download, spin the runloop until
1866         -_downloadDidStart: is called. The test will now timeout on failure, but will no longer produce false failures.
1867
1868         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:
1869         (downloadTest):
1870
1871 2015-09-22  Alexey Proskuryakov  <ap@apple.com>
1872
1873         Mavericks: Media tests start to time out after a few days of bot uptime
1874         https://bugs.webkit.org/show_bug.cgi?id=149468
1875
1876         Reviewed by Chris Dumez.
1877
1878         * Scripts/webkitpy/port/base.py:
1879         * Scripts/webkitpy/port/driver.py:
1880         * Scripts/webkitpy/port/mac.py:
1881
1882 2015-09-22  Nan Wang  <n_wang@apple.com>
1883
1884         Unreviewed, add myself to the committers list.
1885
1886         * Scripts/webkitpy/common/config/contributors.json:
1887
1888 2015-09-21  Simon Fraser  <simon.fraser@apple.com>
1889
1890         Remove 'nullable' to fix older iOS builds.
1891
1892         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
1893         (-[TestRunnerWKWebView scrollViewDidEndZooming:withView:atScale:]):
1894
1895 2015-09-21  Brent Fulgham  <bfulgham@apple.com>
1896
1897         [Win] Show tiled drawing debug overlay on Windows
1898         https://bugs.webkit.org/show_bug.cgi?id=149426
1899
1900         Reviewed by Dean Jackson.
1901
1902         * MiniBrowser/MiniBrowser.vcxproj/MiniBrowserLib.rc: Add new menu option.
1903         * MiniBrowser/MiniBrowser.vcxproj/MiniBrowserLibResource.h: Ditto.
1904         * MiniBrowser/win/Common.cpp:
1905         (::ToggleMenuItem): Recognize new menu item and toggle the 'showTiledScrollingIndicator'
1906         flag if needed.
1907         * MiniBrowser/win/MiniBrowser.h: Update to use new IWebPreferencesPrivate3 class.
1908
1909 2015-09-21  Brent Fulgham  <bfulgham@apple.com>
1910
1911         [Win] Use command-line argument to launch in regular or High DPI mode.
1912         https://bugs.webkit.org/show_bug.cgi?id=149417
1913
1914         Reviewed by Dean Jackson.
1915
1916         * MiniBrowser/win/Common.cpp:
1917         (parseCommandLine): Ignore the '--highDPI' argument. It's used at the
1918         very start of execution, before the MiniBrowser.dll is loaded.
1919         * win/DLLLauncher/DLLLauncherMain.cpp:
1920         (shouldUseHighDPI): Check for '--highDPI', and use this mode if
1921         present. On WinCairo, always use High DPI.
1922
1923 2015-09-21  Ryosuke Niwa  <rniwa@webkit.org>
1924
1925         32-bit Mac build fix attempt after r190065.
1926
1927         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:
1928
1929 2015-09-21  Alexey Proskuryakov  <ap@apple.com>
1930
1931         [OS X] Update for Xcode 7.0 on Yosemite
1932         https://bugs.webkit.org/show_bug.cgi?id=149389
1933
1934         Reviewed by Dan Bernstein.
1935
1936         * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.h:
1937         * WebKitTestRunner/mac/WebKitTestRunnerDraggingInfo.h:
1938         Removed unneeded declarations - conforming to a protocol is sufficient.
1939
1940         * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
1941         * WebKitTestRunner/mac/WebKitTestRunnerDraggingInfo.mm:
1942         Changed the definitions to be compiled whenever the SDK requires it (so we will have
1943         dead code compiled in when building for 10.10 with 10.11 SDK, somewhat unfortunately).
1944
1945 2015-09-21  Simon Fraser  <simon.fraser@apple.com>
1946
1947         Add the ability for tests to run script in the UI process in WebKitTestRunner
1948         https://bugs.webkit.org/show_bug.cgi?id=149356
1949
1950         Reviewed by Tim Horton.
1951
1952         This change adds testRunner.runUIScript(script, callback), which allows a test
1953         to execute script in a JSContext which runs in the UI process. That context
1954         has bindings exposed through the UIScriptController interface; currently one test
1955         function, and some iOS-specific functions are included. UIScriptController can be
1956         async with a callback, and runUIScript() itself is asynchronous. When the UI 
1957         script is complete, it calls uiController.uiScriptComplete(result), where 'result'
1958         is a string passed back to the web process, and given to the runUIScript()
1959         callback function.
1960         
1961         Thanks to Gyuyoung Kim for help with the Gtk/Efl build.
1962
1963         * WebKitTestRunner/DerivedSources.make: Build UIScriptController.idl.
1964         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Add runUIScript().
1965         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1966         (WTR::InjectedBundle::didReceiveMessageToPage): When the UI-side script is
1967         complete, call back into TestRunner.
1968         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1969         (WTR::nextUIScriptCallbackID):
1970         (WTR::TestRunner::runUIScript): Post a message to the injected bundle to run the UI script.
1971         (WTR::TestRunner::runUIScriptCallback): When the UI script is done, execute its callback function.
1972         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1973         * WebKitTestRunner/PlatformWebView.h:
1974         * WebKitTestRunner/TestController.cpp:
1975         (WTR::updateTestOptionsFromTestHeader):
1976         (WTR::TestController::testOptionsForTest): Support "useFlexibleViewport" as a test argument.
1977         (WTR::shouldUseFixedLayout): Deleted. Moved to a TestInvocation function.
1978         * WebKitTestRunner/TestInvocation.cpp:
1979         (WTR::TestInvocation::shouldUseFixedLayout):
1980         (WTR::TestInvocation::shouldUseThreadedScrolling):
1981         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1982         (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
1983         (WTR::TestInvocation::runUISideScript): Run the UI-side script!
1984         (WTR::TestInvocation::uiScriptDidComplete): Send a message back to the injected bundle.
1985         * WebKitTestRunner/TestInvocation.h:
1986         * WebKitTestRunner/TestOptions.h:
1987         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
1988         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1989         * WebKitTestRunner/cocoa/TestRunnerWKWebView.h: Copied from Tools/WebKitTestRunner/TestOptions.h.
1990         * WebKitTestRunner/cocoa/TestRunnerWKWebView.mm: Added.
1991         (-[TestRunnerWKWebView dragImage:at:offset:event:pasteboard:source:slideBack:]):
1992         (-[TestRunnerWKWebView zoomToScale:animated:completionHandler:]):
1993         (-[TestRunnerWKWebView scrollViewDidEndZooming:withView:atScale:]):
1994         (-[TestRunnerWKWebView onDidEndZooming:]): Allow a test to hook into the end of zooming.
1995         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
1996         (WTR::PlatformWebView::PlatformWebView): Make a TestRunnerWKWebView on iOS.
1997         * WebKitTestRunner/ios/UIScriptControllerIOS.mm: Added.
1998         (WTR::UIScriptController::doAsyncTask):
1999         (WTR::UIScriptController::zoomToScale):
2000         (WTR::UIScriptController::zoomScale):
2001         (WTR::UIScriptController::minimumZoomScale):
2002         (WTR::UIScriptController::maximumZoomScale):
2003         (WTR::UIScriptController::contentVisibleRect):
2004         * WebKitTestRunner/mac/EventSenderProxy.mm:
2005         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2006         (-[TestRunnerWKWebView dragImage:at:offset:event:pasteboard:source:slideBack:]): Deleted.
2007         * WebKitTestRunner/mac/TestControllerMac.mm:
2008         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
2009         (WTR::shouldUseThreadedScrolling): Deleted. Moved to TestInvocation.
2010         * WebKitTestRunner/mac/WebKitTestRunnerDraggingInfo.h:
2011         * WebKitTestRunner/uiscriptcontext/UIScriptContext.cpp: Added. Owns the JS context in the UI process.
2012         (UIScriptContext::UIScriptContext):
2013         (UIScriptContext::~UIScriptContext):
2014         (UIScriptContext::runUIScript): Entrypoint to running the UI script. If the script didn't do anything
2015         asynchronous, call the callback.
2016         (UIScriptContext::nextTaskCallbackID):
2017         (UIScriptContext::prepareForAsyncTask): Do setup for one async task (i.e. a UIScriptController function
2018         that has a callback). Has to store the callbackID of the script, so code called from the completion
2019         callback knows which UI script invoked it.
2020         (UIScriptContext::asyncTaskComplete): Called when one task is finished.
2021         (UIScriptContext::uiScriptComplete):
2022         (UIScriptContext::objectFromRect): Make a JS object from a rect.
2023         * WebKitTestRunner/uiscriptcontext/UIScriptContext.h: Copied from Tools/WebKitTestRunner/TestOptions.h.
2024         (WTR::UIScriptContext::hasOutstandingAsyncTasks):
2025         * WebKitTestRunner/uiscriptcontext/UIScriptController.cpp: Copied from Tools/WebKitTestRunner/TestOptions.h.
2026         (WTR::UIScriptController::UIScriptController):
2027         (WTR::UIScriptController::makeWindowObject):
2028         (WTR::UIScriptController::wrapperClass):
2029         (WTR::UIScriptController::doAsyncTask):
2030         (WTR::UIScriptController::zoomToScale):
2031         (WTR::UIScriptController::zoomScale):
2032         (WTR::UIScriptController::minimumZoomScale):
2033         (WTR::UIScriptController::maximumZoomScale):
2034         (WTR::UIScriptController::contentVisibleRect):
2035         (WTR::UIScriptController::uiScriptComplete):
2036         * WebKitTestRunner/uiscriptcontext/UIScriptController.h: Copied from Tools/WebKitTestRunner/TestOptions.h.
2037         (WTR::UIScriptController::create):
2038         * WebKitTestRunner/uiscriptcontext/bindings/UIScriptController.idl: Copied from Tools/WebKitTestRunner/TestOptions.h.
2039
2040 2015-09-21  Tim Horton  <timothy_horton@apple.com>
2041
2042         Turn on threaded scrolling by default in the tests
2043         https://bugs.webkit.org/show_bug.cgi?id=149377
2044
2045         Reviewed by Simon Fraser.
2046
2047         * WebKitTestRunner/mac/TestControllerMac.mm:
2048         (WTR::TestController::updatePlatformSpecificTestOptionsForTest):
2049         (WTR::shouldUseThreadedScrolling): Deleted.
2050         Turn on threaded scrolling by default.
2051
2052 2015-09-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2053
2054         [GTK] run-gtk-tests doesn't provide feedback about crashing google tests
2055         https://bugs.webkit.org/show_bug.cgi?id=149252
2056
2057         Reviewed by Darin Adler.
2058
2059         In case of glib tests the test runner notifies about tests
2060         crashing, but for google tests we don't get any feedback, which
2061         means that in case of a test crashing we get a list of **PASS**
2062         messages and at the summary we are notified that the test suite
2063         has failed, but it's impossible to know which test cases have failed.
2064
2065         * Scripts/run-gtk-tests:
2066         (TestRunner._run_google_test): Add a **CRASH** message if test
2067         case crashed.
2068
2069 2015-09-20  Alexey Proskuryakov  <ap@apple.com>
2070
2071         WebKitTestRunner can leak user content script results between tests
2072         https://bugs.webkit.org/show_bug.cgi?id=149391
2073
2074         Reviewed by Sam Weinig.
2075
2076         Move WKBundlePageRemoveAllUserContent call so that it's executed before loading
2077         about:blank, and thus about:blank doesn't have unintended side effects.
2078
2079         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2080         (WTR::InjectedBundle::beginTesting):
2081         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2082         (WTR::InjectedBundlePage::resetAfterTest):
2083
2084 2015-09-20  Alexey Proskuryakov  <ap@apple.com>
2085
2086         [Mac, iOS] AccessibilityController doesn't uninstall global notification handler
2087         https://bugs.webkit.org/show_bug.cgi?id=149384
2088
2089         Reviewed by Chris Fleizach.
2090
2091         * DumpRenderTree/ios/AccessibilityControllerIOS.mm:
2092         (AccessibilityController::addNotificationListener): Fixed a leak, and cleaned up the code.
2093         (AccessibilityController::platformResetToConsistentState): Actually remove the handler,
2094         regardless of whether someone else holds a reference (we also call -stopListening in
2095         -dealloc).
2096
2097         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
2098         (AccessibilityController::platformResetToConsistentState):
2099         (AccessibilityController::addNotificationListener):
2100         Ditto.
2101
2102 2015-09-20  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2103
2104         Remove XHR_TIMEOUT compilation guard
2105         https://bugs.webkit.org/show_bug.cgi?id=149260
2106
2107         Reviewed by Benjamin Poulain.
2108
2109         * Scripts/webkitperl/FeatureList.pm:
2110
2111 2015-09-19  Dan Bernstein  <mitz@apple.com>
2112
2113         Attempted build fix.
2114
2115         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig:
2116
2117 2015-09-18  Commit Queue  <commit-queue@webkit.org>
2118
2119         Unreviewed, rolling out r189908.
2120         https://bugs.webkit.org/show_bug.cgi?id=149368
2121
2122         Broke run-webkit-tests --pixel (Requested by ap on #webkit).
2123
2124         Reverted changeset:
2125
2126         "printing does not use minimum page zoom factor"
2127         https://bugs.webkit.org/show_bug.cgi?id=108507
2128         http://trac.webkit.org/changeset/189908
2129
2130 2015-09-18  Andy Estes  <aestes@apple.com>
2131
2132         [iOS] did{Start,Finish}LoadForQuickLookDocumentInMainFrame is never called on WKNavigationDelegate
2133         https://bugs.webkit.org/show_bug.cgi?id=149360
2134
2135         Reviewed by Tim Horton.
2136
2137         Added an API test.
2138
2139         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2140         * TestWebKitAPI/Tests/WebKit2Cocoa/QuickLook.mm: Added.
2141         (-[QuickLookNavigationDelegate _webView:didStartLoadForQuickLookDocumentInMainFrameWithFileName:uti:]):
2142         (-[QuickLookNavigationDelegate _webView:didFinishLoadForQuickLookDocumentInMainFrame:]):
2143         (-[QuickLookNavigationDelegate webView:didFinishNavigation:]):
2144         (TEST):
2145         * TestWebKitAPI/ios/pages.pages: Added.
2146
2147 2015-09-18  Nan Wang  <n_wang@apple.com>
2148
2149         AX: Implement ARIA 1.1 @aria-current on iOS
2150         https://bugs.webkit.org/show_bug.cgi?id=149297
2151
2152         Reviewed by Chris Fleizach.
2153
2154         Added support to test aria-current on iOS.
2155
2156         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2157         (AccessibilityUIElement::stringAttributeValue):
2158         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
2159         (WTR::AccessibilityUIElement::stringAttributeValue):
2160
2161 2015-09-18  Alexey Proskuryakov  <ap@apple.com>
2162
2163         iOS WebKitTestRunner frequently crashes in WKContextGetIconDatabase
2164         https://bugs.webkit.org/show_bug.cgi?id=149352
2165
2166         Reviewed by Simon Fraser.
2167
2168         * WebKitTestRunner/TestController.cpp: (WTR::TestController::~TestController):
2169         m_context can be null. This may indicate a bug in webkitpy too, but
2170         WebKitTestRunner should handle this situation nicely, there is nothing intrinsically
2171         wrong with opening and immediately closing it.
2172
2173 2015-09-18  Daniel Bates  <dabates@apple.com>
2174
2175         isGitSVNDirectory() returns true when Git is not installed
2176         https://bugs.webkit.org/show_bug.cgi?id=149351
2177
2178         Reviewed by Alexey Proskuryakov.
2179
2180         Fixes an issue where VCSUtils::isGitSVNDirectory() returns true for any arbitrary directory if
2181         Git is not installed on the machine.
2182
2183         * Scripts/VCSUtils.pm:
2184         (isGitSVNDirectory): Ensure that `git config --get svn-remote.svn.fetch 2>& 1` exits with
2185         status code 0 (success).
2186
2187 2015-09-18  Alex Christensen  <achristensen@webkit.org>
2188
2189         Prevent build-webkit from building four times on Windows 
2190         https://bugs.webkit.org/show_bug.cgi?id=149336
2191
2192         Reviewed by Brent Fulgham.
2193
2194         * Scripts/build-webkit:
2195         Move the Windows code out of the for loop iterating over each subdirectory to be build.
2196         They're built all at once.
2197         * Scripts/webkitdirs.pm:
2198         (buildVisualStudioProject):
2199         (cmakeGeneratedBuildfile):
2200         Don't generate the Visual Studio solution if it already exists.
2201         It will run CMake again if necessary.
2202
2203 2015-09-17  Simon Fraser  <simon.fraser@apple.com>
2204
2205         [iOS WK2] WTR fails to set the key window in the UIKit sense
2206         https://bugs.webkit.org/show_bug.cgi?id=149325
2207
2208         Reviewed by Tim Horton.
2209
2210         -[WebKitTestRunnerWindow isKeyWindow] just returned _platformWebView->windowIsKey().
2211         This causes UIKit to bypass code that actually sets the key window, resulting in
2212         [UIAppliation sharedApplication].keyWindow always being nil.
2213
2214         Fix by PlatformWebView::setWindowIsKey() actually call -makeKeyWindow, and having
2215         -[WebKitTestRunnerWindow isKeyWindow] call super.
2216
2217         * WebKitTestRunner/PlatformWebView.h:
2218         (WTR::PlatformWebView::setWindowIsKey): Deleted.
2219         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
2220         (WTR::PlatformWebView::setWindowIsKey):
2221         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
2222         (WTR::PlatformWebView::setWindowIsKey):
2223         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2224         (-[WebKitTestRunnerWindow isKeyWindow]):
2225         (WTR::PlatformWebView::PlatformWebView):
2226         (WTR::PlatformWebView::~PlatformWebView):
2227         (WTR::PlatformWebView::setWindowIsKey):
2228         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2229         (WTR::PlatformWebView::setWindowIsKey):
2230
2231 2015-09-17  Simon Fraser  <simon.fraser@apple.com>
2232
2233         [iOS WK2] When loading viewport tests, use the normal web page viewport configuration
2234         https://bugs.webkit.org/show_bug.cgi?id=149321
2235
2236         Reviewed by Tim Horton.
2237         
2238         InjectedBundlePage::platformDidStartProvisionalLoadForFrame() unconditionally 
2239         enabled the "testing" viewport configuration, which disables page scaling.
2240         
2241         If we're running viewport tests, we want the normal web page configuration.
2242         Do that by passing a flag in the dictionary sent to InjectedBundle::beginTesting(),
2243         based on whether the test is in a "viewport" directory.
2244
2245         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2246         (WTR::InjectedBundle::beginTesting):
2247         * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm:
2248         (WTR::InjectedBundlePage::platformDidStartProvisionalLoadForFrame): Deleted.
2249         * WebKitTestRunner/TestInvocation.cpp:
2250         (WTR::TestInvocation::shouldLogFrameLoadDelegates):
2251         (WTR::TestInvocation::shouldLogHistoryClientCallbacks):
2252         (WTR::TestInvocation::shouldMakeViewportFlexible):
2253         (WTR::TestInvocation::invoke):
2254         * WebKitTestRunner/TestInvocation.h:
2255         * WebKitTestRunner/ios/TestControllerIOS.mm:
2256         (WTR::TestController::platformConfigureViewForTest):
2257         (WTR::shouldMakeViewportFlexible): Deleted.
2258
2259 2015-09-17  Simon Fraser  <simon.fraser@apple.com>
2260
2261         Give iOS WebKitTestRunner a launch storyboard
2262         https://bugs.webkit.org/show_bug.cgi?id=149314
2263
2264         Reviewed by Dan Bates.
2265         
2266         Add a launch storyboard to iOS WebKitTestRunner so that Springboard recognizes
2267         that it's been built for specific device configurations, and puts the window
2268         at the top of the screen. This simplifies coordinate conversions in a future patch.
2269
2270         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
2271         * WebKitTestRunner/WebKitTestRunnerApp/WebKitTestRunnerApp-Info.plist:
2272         * WebKitTestRunner/ios/Launch.storyboard: Added.
2273
2274 2015-09-17  Myles C. Maxfield  <mmaxfield@apple.com>
2275
2276         Update licence in r189890
2277         https://bugs.webkit.org/show_bug.cgi?id=149306
2278
2279         Reviewed by Dean Jackson.
2280
2281         * FontWithFeatures/FontWithFeatures/FontCreator.cpp:
2282         * FontWithFeatures/FontWithFeatures/FontCreator.h:
2283         * FontWithFeatures/FontWithFeatures/main.cpp:
2284
2285 2015-09-17  Mark Lam  <mark.lam@apple.com>
2286
2287         Add the ability to skip JIT stress tests in run-javascriptcore-tests.
2288         https://bugs.webkit.org/show_bug.cgi?id=149285
2289
2290         Reviewed by Saam Barati.
2291
2292         Just need to add an option to pass --no-jit to run-jsc-stress-test.
2293
2294         * Scripts/run-javascriptcore-tests:
2295         (runJSCStressTests):
2296
2297 2015-09-17  Alex Christensen  <achristensen@webkit.org>
2298
2299         Switch AppleWin build to use CMake
2300         https://bugs.webkit.org/show_bug.cgi?id=149163
2301
2302         Reviewed by Brent Fulgham.
2303
2304         * Scripts/build-webkit:
2305         * Scripts/run-api-tests:
2306         (runTest):
2307         (listAllTests):
2308         (prepareEnvironmentForRunningTestTool):
2309         (testToolPaths):
2310         (testToolPath): Deleted.
2311         Run the API tests as separate executables on Windows.
2312         It used to be TestWebKitAPI.exe, and it is now TestWTF.exe, TestWebCore.exe, and TestWebKit.exe.
2313         * Scripts/webkitdirs.pm:
2314         (checkRequiredSystemConfig):
2315         (jhbuildWrapperPrefixIfNeeded):
2316         (generateBuildSystemFromCMakeProject):
2317         Fix configuration quirks.
2318
2319 2015-09-17  Dean Johnson  <dean_johnson@apple.com>
2320
2321         Added toggle options for hiding and showing certain platform families on the dashboard.
2322         https://bugs.webkit.org/show_bug.cgi?id=148403
2323
2324         Reviewed by David Kilzer.
2325
2326         This patch removes "hiddenPlatforms" from use in the code and local storage. We also removed
2327         individual hide/show buttons for platforms because we've added toggle options to hide/show entire
2328         families. Examples of these are "mac", "ios", and "linux". "Show All Platforms" was also removed
2329         in lieu of an "all" button in the toggle menu.
2330
2331         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:
2332         (parsePlatformFamily): Helper function to parse out a platform family.
2333         (initPlatformsByFamily): Initializes platformsByFamily, which organizes platforms on the
2334         page by platformsByFamily[<family>] = <list of platforms belonging to that family>.
2335         (updateToggleButtons): Updates the status of the toggle buttons.
2336         (updateHiddenPlatforms): Changed to work with the new implementation of hiding/showing platforms.
2337         (documentReady): Added creation of toggle buttons.
2338         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js:
2339         (unhiddenQueues): Updated to search by platform family instead of the individual platform name.
2340         (documentReady): Changed hiddenPlatforms => hiddenPlatformFamilies.
2341         (updateHiddenPlatforms): Deleted. After removing the individual hide button code, 
2342         this did the exact same thing as the updateHiddenPlatforms in Scripts/Main.js so it was removed.
2343         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/QueueView.js:
2344         (QueueView): Updated to use hiddenPlatformFamilies.
2345         (QueueView.prototype._updateHiddenState): Updated to use hiddenPlatformFamilies.
2346         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
2347         (Settings.prototype.toggleHiddenPlatformFamily): Renamed function and some variables.
2348         (Settings.prototype.clearHiddenPlatformFamilies): Now uses hiddenPlatformFamilies for events.
2349         (Settings.prototype.toggleHiddenPlatform): Deleted.
2350         (Settings.prototype.clearHiddenPlatforms): Deleted.
2351         (Settings.prototype.toggleShowPlatformFamily): Deleted.
2352         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
2353         (div.cellButton, div.accessibilityButton, div.platformFamilyToggleButton):
2354         (div.cellButton.unhide, div.accessibilityButton.unhide, div.platformFamilyToggleButton.unhide):
2355         (.settings-visible div.settingsWrapper.hide, .settings-visible div.settingsWrapper):
2356         (table.queue-grid tr.headers th):
2357         (div.settingsWrapper.hide):
2358         (div.settingsWrapper):
2359         (div.familyToggleWrapper):
2360         (div.platformFamilyToggleButton):
2361         (div.platformFamilyShowToggleButton:not(:last-child)):
2362         (div.familyShown):
2363         (div.accessibilityButton):
2364         (div.cellButton, div.accessibilityButton): Added platformFamilyToggleButton class.
2365         (div.cellButton.unhide, div.accessibilityButton.unhide): Added platformFamilyToggleButton class.
2366         (.settings-visible div.accessibilityButton.hide, .settings-visible div.accessibilityButton.unhide): Added
2367         platformFamilyToggleButton and settingsWrapper class.
2368         (.accessibilityButton): Deleted.
2369
2370 2015-09-17  Tim Horton  <timothy_horton@apple.com>
2371
2372         Add a test ensuring that scrolling in the middle of a page can't start a swipe gesture
2373         https://bugs.webkit.org/show_bug.cgi?id=148904
2374
2375         Reviewed by Myles Maxfield.
2376
2377         * WebKitTestRunner/TestController.cpp:
2378         (WTR::parseBooleanTestHeaderValue):
2379         (WTR::updateViewOptionsFromTestHeader):
2380         Check for the key "useThreadedScrolling".
2381         Add some code to check for "true" and "false" for boolean options.
2382
2383         (WTR::TestController::viewOptionsForTest):
2384         Apply the test's overrides last, even after the platform's.
2385
2386 2015-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2387
2388         printing does not use minimum page zoom factor
2389         https://bugs.webkit.org/show_bug.cgi?id=108507
2390
2391         Reviewed by Darin Adler.
2392
2393         WebKitTestRunner always takes the snapshots from the UI process
2394         (expect for IOS), so in the case of printing, the layout in the
2395         web view is not the expected one. When printing, we need to take
2396         the snapshot in the web process and ensure it's rendered with a
2397         PrintContext.
2398
2399         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2400         (WTR::InjectedBundlePage::dump): When dumping pixels, pass
2401         kWKSnapshotOptionsPrinting option to
2402         WKBundlePageCreateSnapshotWithOptions() when printing. When not
2403         printing, don't even create the snapshot, since it will be ignored
2404         by the UI process that always creates its own from the WebView (expect for IOS platform)
2405         * WebKitTestRunner/TestInvocation.cpp:
2406         (WTR::TestInvocation::dumpResults): Use always the snapshot image
2407         received from the web process if any when comparing pixel
2408         results. Now we only receive a snapshot from the web process in
2409         case of printing, or when platform is IOS. Otherwhise, generate
2410         the snapshot from the WebView as usual.
2411         * WebKitTestRunner/TestInvocation.h: Add SnapshotResultType enum
2412         parameter to dumpPixelsAndCompareWithExpected, since the snapshot
2413         is created by the caller now, but the CG implementation needs to
2414         know if it's a Web or UI process snapshot.
2415         * WebKitTestRunner/cairo/TestInvocationCairo.cpp:
2416         (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): Create a
2417         cairo surface for the given image.
2418         * WebKitTestRunner/cg/TestInvocationCG.cpp:
2419         (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): Create a
2420         CGContext for the given image.
2421
2422 2015-09-16  Myles C. Maxfield  <mmaxfield@apple.com>
2423
2424         Create a font which can be used for testing font features
2425         https://bugs.webkit.org/show_bug.cgi?id=149237
2426
2427         Reviewed by Simon Fraser.
2428
2429         This patch adds a new project in the Tools/ directory which generates a font which can
2430         be used for testing font features. This is a standalone project consisting of two files:
2431         1. A file which actually generates the byte vector representing the font. This file has
2432         a single public function: std::vector<uint8_t> generateFont(). This file is not platform
2433         specific, and only relies on the C++ STL.
2434         2. A file with a main() which calls generateFont() and writes out the font, as well as
2435         uses the font to render some demonstration text into a .png file. This file is platform
2436         specific.
2437
2438         The font itself only supports the following characters:
2439         ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
2440         However, the shape of these letters are either an X or a check mark.
2441
2442         The letter "A" always is a check mark.
2443         The letter "B" always is an X.
2444         Without any font features turned on, the rest of the letters are shown as X.
2445
2446         Each font feature has an letter associated with it. When the font feature is enabled,
2447         that letter is shown as a check mark. For example, when "smcp" is enabled, "J" is shown
2448         as a check mark.
2449
2450         Here are the mappings of font features to letters:
2451         liga: C
2452         clig: D
2453         dlig: E
2454         hlig: F
2455         calt: G
2456         subs: H
2457         sups: I
2458         smcp: J
2459         c2sc: K
2460         pcap: L
2461         c2pc: M
2462         unic: N
2463         titl: O
2464         onum: P
2465         pnum: Q
2466         tnum: R
2467         frac: S
2468         afrc: T
2469         ordn: U
2470         zero: V
2471         hist: W
2472         jp78: X
2473         jp83: Y
2474         jp90: Z
2475         jp04: a
2476         smpl: b
2477         trad: c
2478         fwid: d
2479         pwid: e
2480         ruby: f
2481
2482         * FontWithFeatures/FontWithFeatures.xcodeproj/project.pbxproj: Added.
2483         * FontWithFeatures/FontWithFeatures/FontCreator.cpp: Added.
2484         (integralLog2):
2485         (roundDownToPowerOfTwo):
2486         (isFourByteAligned):
2487         (clampTo):
2488         (append32):
2489         (writeCFFEncodedNumber):
2490         (CFFBuilder::CFFBuilder):
2491         (CFFBuilder::takeResult):
2492         (CFFBuilder::moveTo):
2493         (CFFBuilder::lineTo):
2494         (CFFBuilder::curveToCubic):
2495         (CFFBuilder::closePath):
2496         (CFFBuilder::writePoint):
2497         (generateBoxCharString):
2498         (generateCheckCharString):
2499         (generateXCharString):
2500         (charStringForGlyph):
2501         (Generator::generate):
2502         (Generator::Placeholder::Placeholder):
2503         (Generator::Placeholder::populate):
2504         (Generator::Placeholder::~Placeholder):
2505         (Generator::placeholder):
2506         (Generator::append16):
2507         (Generator::append32):
2508         (Generator::append32BitCode):
2509         (Generator::overwrite16):
2510         (Generator::overwrite32):
2511         (Generator::appendCFFTable):
2512         (Generator::appendSubstitutionSubtable):
2513         (Generator::appendScriptSubtable):
2514         (Generator::appendGSUBTable):
2515         (Generator::appendOS2Table):
2516         (Generator::appendFormat12CMAPTable):
2517         (Generator::appendFormat4CMAPTable):
2518         (Generator::appendCMAPTable):
2519         (Generator::appendHEADTable):
2520         (Generator::appendHHEATable):
2521         (Generator::appendHMTXTable):
2522         (Generator::appendMAXPTable):
2523         (Generator::appendNAMETable):
2524         (Generator::appendPOSTTable):
2525         (Generator::calculateChecksum):
2526         (Generator::appendTable):
2527         (generateFont):
2528         * FontWithFeatures/FontWithFeatures/FontCreator.h: Added.
2529         * FontWithFeatures/FontWithFeatures/main.cpp: Added.
2530         (drawTextWithFeature):
2531         (main):
2532
2533 2015-09-16  Commit Queue  <commit-queue@webkit.org>
2534
2535         Unreviewed, rolling out r189875 and r189878.
2536         https://bugs.webkit.org/show_bug.cgi?id=149235
2537
2538         cygwin cmake build not ready yet (Requested by alexchristensen
2539         on #webkit).
2540
2541         Reverted changesets:
2542
2543         "Switch AppleWin build to use CMake"
2544         https://bugs.webkit.org/show_bug.cgi?id=149163
2545         http://trac.webkit.org/changeset/189875
2546
2547         "Cygwin build fix after r189875"
2548         http://trac.webkit.org/changeset/189878
2549
2550 2015-09-16  Alex Christensen  <achristensen@webkit.org>
2551
2552         Cygwin build fix after r189875
2553
2554         * Scripts/build-webkit:
2555         * Scripts/webkitdirs.pm:
2556         (jhbuildWrapperPrefixIfNeeded):
2557         (generateBuildSystemFromCMakeProject):
2558         Make things work with cygwin and cmake.
2559
2560 2015-09-16  Alex Christensen  <achristensen@webkit.org>
2561
2562         Switch AppleWin build to use CMake
2563         https://bugs.webkit.org/show_bug.cgi?id=149163
2564
2565         Reviewed by Brent Fulgham.
2566
2567         * Scripts/build-webkit:
2568         Build with CMake.
2569         * Scripts/run-api-tests:
2570         (runTest):
2571         (listAllTests):
2572         (prepareEnvironmentForRunningTestTool):
2573         (testToolPaths):
2574         (testToolPath): Deleted.
2575         Run the API tests as separate executables on Windows.
2576         It used to be TestWebKitAPI.exe, and it is now TestWTF.exe, TestWebCore.exe, and TestWebKit.exe.
2577
2578 2015-09-16  Alexey Proskuryakov  <ap@apple.com>
2579
2580         Add newer build.webkit.org pages to robots.txt
2581         https://bugs.webkit.org/show_bug.cgi?id=149219
2582
2583         Reviewed by Darin Adler.
2584
2585         Indexing bot watcher's dashboard can't be good.
2586
2587         * BuildSlaveSupport/build.webkit.org-config/public_html/robots.txt:
2588
2589 2015-09-16  Alex Christensen  <achristensen@webkit.org>
2590
2591         Rollout r189851 and 189853 because they didn’t actually fix the permissions issue
2592
2593         * BuildSlaveSupport/built-product-archive:
2594         (unzipArchive):
2595
2596 2015-09-16  Csaba Osztrogonác  <ossy@webkit.org>
2597
2598         [EFL] Fix the help message of separated web process option of MiniBrowser
2599         https://bugs.webkit.org/show_bug.cgi?id=149212
2600
2601         Reviewed by Gyuyoung Kim.
2602
2603         * MiniBrowser/efl/main.c:
2604
2605 2015-09-16  Alex Christensen  <achristensen@webkit.org>
2606
2607         Fix python syntax after r189851.
2608
2609         * BuildSlaveSupport/built-product-archive:
2610         (unzipArchive):
2611         For loops need a colon.
2612
2613 2015-09-15  Alex Christensen  <achristensen@webkit.org>
2614
2615         Fix Windows test bots after changing to non-cygwin build
2616         https://bugs.webkit.org/show_bug.cgi?id=149196
2617
2618         Reviewed by Daniel Bates.
2619
2620         * BuildSlaveSupport/built-product-archive:
2621         (unzipArchive):
2622         Using different versions of python makes what I think is https://bugs.python.org/issue15795
2623         prevent us from executing files from the archive on the test bots.
2624
2625 2015-09-15  Ryosuke Niwa  <rniwa@webkit.org>
2626
2627         Add ShadowRoot interface and Element.prototype.attachShadow
2628         https://bugs.webkit.org/show_bug.cgi?id=149187
2629
2630         Reviewed by Antti Koivisto.
2631
2632         * Scripts/webkitperl/FeatureList.pm:
2633
2634 2015-09-15  Aakash Jain  <aakash_jain@apple.com>
2635
2636         Appscale queue status json output lacks bots
2637         https://bugs.webkit.org/show_bug.cgi?id=149194
2638         <rdar://problem/22171089>
2639
2640         Reviewed by Alexey Proskuryakov.
2641
2642         * QueueStatusServer/handlers/queuestatusjson.py:
2643         (QueueStatusJSON._bots): Order the results by date so as to get latest events, this was default in AppEngine.
2644         * QueueStatusServer/index.yaml: Index according to appscale requirements.
2645
2646 2015-09-15  Brent Fulgham  <bfulgham@apple.com>
2647
2648         [Win] Provide a means for viewing the layer tree
2649         https://bugs.webkit.org/show_bug.cgi?id=149165
2650
2651         Reviewed by Simon Fraser.
2652
2653         Update MiniBrowser with a new Debug menu option that will
2654         dump the current layer tree to the debug console.
2655         
2656         * MiniBrowser/MiniBrowser.vcxproj/MiniBrowserLib.rc:
2657         * MiniBrowser/MiniBrowser.vcxproj/MiniBrowserLibResource.h:
2658         * MiniBrowser/win/Common.cpp:
2659         (WndProc): Add handler for 'Print Layer Tree' menu option.
2660         * MiniBrowser/win/MiniBrowser.cpp:
2661         (MiniBrowser::printLayerTree): Added Handler.
2662         * MiniBrowser/win/MiniBrowser.h:
2663
2664 2015-09-14  Myles C. Maxfield  <mmaxfield@apple.com>
2665
2666         WebKitTestRunner declarative language setting is broken for iOS
2667         https://bugs.webkit.org/show_bug.cgi?id=149119
2668
2669         Unreviewed.
2670
2671         In all of the patches on webkit.org/b/189669, my patch to get this working on iOS was
2672         lost in the final version which got committed. This simply implements the existing
2673         OS X behavior on iOS.
2674
2675         * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
2676         (WTR::InjectedBundle::platformInitialize):
2677
2678 2015-09-14  Dewei Zhu  <dewei_zhu@apple.com>
2679
2680         Unreviewed, add myself to committers list.
2681
2682         * Scripts/webkitpy/common/config/contributors.json:
2683
2684 2015-09-12  Myles C. Maxfield  <mmaxfield@apple.com>
2685
2686         [Cocoa] Allow testing with the system language
2687         https://bugs.webkit.org/show_bug.cgi?id=148671
2688
2689         Reviewed by Anders Carlsson and Alexey Proskuryakov.
2690
2691         React to tests marked with language=lang1,lang2,etc in their header.
2692         Once this information is parsed, pass it to
2693         WKContextConfigurationSetOverrideLanguages().
2694
2695         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
2696         (WTR::InjectedBundle::platformInitialize): Don't clobber the language
2697         list.
2698         * WebKitTestRunner/TestController.cpp:
2699         (WTR::TestController::createWebViewWithOptions): Call
2700         WKContextConfigurationSetOverrideLanguages().
2701         (WTR::updateTestOptionsFromTestHeader): Inspect the language option.
2702         * WebKitTestRunner/TestOptions.h:
2703         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2704         (WTR::PlatformWebView::viewSupportsOptions): Cause a differing language
2705         option to restart the web process.
2706         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2707         (WTR::PlatformWebView::viewSupportsOptions): Ditto.
2708
2709 2015-09-12  Myles C. Maxfield  <mmaxfield@apple.com>
2710
2711         [WKTR] Allow changing the WKContextConfiguration between successive tests
2712         https://bugs.webkit.org/show_bug.cgi?id=148833
2713
2714         Reviewed by Tim Horton.
2715
2716         Previously, we were creating a single WKContext and it lived for the life of the entire test runner.
2717         However, there are certain tests which require specifying options in this object. This patch makes
2718         our existing code for recreating the test runner web view also recreate the WKContext.
2719
2720         As such, our options to the view are now options to the WKContextConfiguration. This patch renames the
2721         class.
2722
2723         * WebKitTestRunner/ContextConfigurationOptions.h: Renamed from Tools/WebKitTestRunner/ViewOptions.h.
2724         * WebKitTestRunner/PlatformWebView.h:
2725         (WTR::PlatformWebView::options):
2726         * WebKitTestRunner/TestController.cpp:
2727         (WTR::TestController::initialize):
2728         (WTR::TestController::generateContextConfiguration):
2729         (WTR::TestController::generatePageConfiguration):
2730         (WTR::TestController::createWebViewWithOptions):
2731         (WTR::TestController::ensureViewSupportsOptionsForTest):
2732         (WTR::updateContextConfigurationOptionsFromTestHeader):
2733         (WTR::TestController::contextConfigurationOptionsForTest):
2734         (WTR::TestController::platformCreateWebView):
2735         (WTR::TestController::platformCreateOtherPage):
2736         (WTR::updateViewOptionsFromTestHeader): Deleted.
2737         (WTR::TestController::viewOptionsForTest): Deleted.
2738         * WebKitTestRunner/TestController.h:
2739         (WTR::TestController::injectedBundlePath):
2740         (WTR::TestController::testPluginDirectory):
2741         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
2742         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2743         (WTR::TestController::platformCreateWebView):
2744         (WTR::TestController::platformCreateOtherPage):
2745         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
2746         (WTR::PlatformWebView::PlatformWebView):
2747         (WTR::PlatformWebView::viewSupportsOptions):
2748         * WebKitTestRunner/efl/TestControllerEfl.cpp:
2749         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2750         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2751         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
2752         (WTR::PlatformWebView::PlatformWebView):
2753         (WTR::PlatformWebView::viewSupportsOptions):
2754         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
2755         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2756         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2757         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2758         (WTR::PlatformWebView::PlatformWebView):
2759         (WTR::PlatformWebView::viewSupportsOptions):
2760         * WebKitTestRunner/ios/TestControllerIOS.mm:
2761         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2762         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2763         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2764         (WTR::PlatformWebView::PlatformWebView):
2765         (WTR::PlatformWebView::viewSupportsOptions):
2766         * WebKitTestRunner/mac/TestControllerMac.mm:
2767         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2768         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2769
2770 2015-09-11  Michael Saboff  <msaboff@apple.com>
2771
2772         LayoutTestHelper crashes if a color profile isn't set for a 3rd party monitor
2773         https://bugs.webkit.org/show_bug.cgi?id=149083
2774
2775         Reviewed by Alexey Proskuryakov.
2776
2777         Check to make sure that we have a valid factoryProfile CFDictionaryRef before using it.
2778
2779         * DumpRenderTree/mac/LayoutTestHelper.m:
2780         (colorProfileURLForDisplay):
2781
2782 2015-09-11  Saam barati  <sbarati@apple.com>
2783
2784         There should be a defaultSpotCheck-like mode that doesn't run the MaximalFlushInsertionPhase in run-jsc-stress-tests
2785         https://bugs.webkit.org/show_bug.cgi?id=149058
2786
2787         Reviewed by Geoffrey Garen.
2788
2789         * Scripts/run-jsc-stress-tests:
2790
2791 2015-09-10  Commit Queue  <commit-queue@webkit.org>
2792
2793         Unreviewed, rolling out r189595.
2794         https://bugs.webkit.org/show_bug.cgi?id=149052
2795
2796         The tests still fail (Requested by ap on #webkit).
2797
2798         Reverted changeset:
2799
2800         "Spurious output on Windows tests: AQMEIOManager::FindIOUnit:
2801         error -1"
2802         https://bugs.webkit.org/show_bug.cgi?id=142929
2803         http://trac.webkit.org/changeset/189595
2804
2805 2015-09-10  Alexey Proskuryakov  <ap@apple.com>
2806
2807         Spurious output on Windows tests: AQMEIOManager::FindIOUnit: error -1
2808         https://bugs.webkit.org/show_bug.cgi?id=142929
2809
2810         Reviewed by Brent Fulgham.
2811
2812         Silence the logging. We'll track fixing the root cause in Radar.
2813
2814         * Scripts/webkitpy/port/mac.py:
2815         (MacPort.stderr_patterns_to_strip): Added a FIXME.
2816
2817         * Scripts/webkitpy/port/win.py:
2818         (WinPort.logging_patterns_to_strip): Added.
2819
2820 2015-09-09  Andy Estes  <aestes@apple.com>
2821
2822         [iOS] Teach run-webkit-tests how to parse simulator runtimes when version numbers contain a revision
2823         https://bugs.webkit.org/show_bug.cgi?id=149022
2824
2825         Reviewed by Daniel Bates.
2826
2827         Simulator runtime versions can contain a revision number (e.g. 8.4.1), but the regex for matching runtimes
2828         did not account for this.
2829
2830         * Scripts/webkitpy/xcode/simulator.py:
2831         (Simulator): Optionally matched a revision at the end of a runtime version number.
2832         * Scripts/webkitpy/xcode/simulator_unittest.py: Added a test.
2833
2834 2015-09-09  Andy Estes  <aestes@apple.com>
2835
2836         [iOS] Teach run-webkit-tests how to parse `simctl list` when a tvOS SDK is installed
2837         https://bugs.webkit.org/show_bug.cgi?id=149029
2838         <rdar://problem/22432624>
2839
2840         Reviewed by Daniel Bates.
2841
2842         * Scripts/webkitpy/xcode/simulator.py:
2843         (Simulator): Taught to parse tvOS runtimes.
2844         * Scripts/webkitpy/xcode/simulator_unittest.py: Added tests.
2845
2846 2015-09-09  Alexey Proskuryakov  <ap@apple.com>
2847
2848         Fix bit rot on bot watcher's dashboard page
2849         https://bugs.webkit.org/show_bug.cgi?id=149012
2850
2851         Reviewed by Tim Horton.
2852
2853         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
2854         The code path used by the metrics page was trying to add properties to an undefined.
2855
2856         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTestResults.js:
2857         Silence an expection that would occur when the step has no logs. This should never
2858         happen, but it did (perhaps buildbot was misconfigured for a while).
2859
2860 2015-09-09  Alexey Proskuryakov  <ap@apple.com>
2861
2862         Update LayoutTestRelay xcconfig file.
2863
2864         Rubber-stamped by Dan Bernstein.
2865
2866         * LayoutTestRelay/Configurations/DebugRelease.xcconfig:
2867
2868 2015-09-09  Saam barati  <sbarati@apple.com>
2869
2870         DFG should have a debugging option that runs a phase that flushes all locals
2871         https://bugs.webkit.org/show_bug.cgi?id=148916
2872
2873         Reviewed by Filip Pizlo.
2874
2875         * Scripts/run-jsc-stress-tests:
2876
2877 2015-09-09  Commit Queue  <commit-queue@webkit.org>
2878
2879         Unreviewed, rolling out r189530 and r189534.
2880         https://bugs.webkit.org/show_bug.cgi?id=148996
2881
2882         Caused assertion failures on Yosemite (Requested by litherum
2883         on #webkit).
2884
2885         Reverted changesets:
2886
2887         "[WKTR] Allow changing the WKContextConfiguration between
2888         successive tests"
2889         https://bugs.webkit.org/show_bug.cgi?id=148833
2890         http://trac.webkit.org/changeset/189530
2891
2892         "[Cocoa] Fix the tests after r189530"
2893         http://trac.webkit.org/changeset/189534
2894
2895 2015-09-08  Myles C. Maxfield  <mmaxfield@apple.com>
2896
2897         [Cocoa] Fix the tests after r189530
2898
2899         Unreviewed.
2900
2901         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2902         (WTR::initializeWebViewConfiguration):
2903
2904 2015-09-08  Myles C. Maxfield  <mmaxfield@apple.com>
2905
2906         [WKTR] Allow changing the WKContextConfiguration between successive tests
2907         https://bugs.webkit.org/show_bug.cgi?id=148833
2908
2909         Reviewed by Tim Horton.
2910
2911         Previously, we were creating a single WKContext and it lived for the life of the entire test runner.
2912         However, there are certain tests which require specifying options in this object. This patch makes
2913         our existing code for recreating the test runner web view also recreate the WKContext.
2914
2915         As such, our options to the view are now options to the WKContextConfiguration. This patch renames the
2916         class.
2917
2918         * WebKitTestRunner/ContextConfigurationOptions.h: Renamed from Tools/WebKitTestRunner/ViewOptions.h.
2919         * WebKitTestRunner/PlatformWebView.h:
2920         (WTR::PlatformWebView::options):
2921         * WebKitTestRunner/TestController.cpp:
2922         (WTR::TestController::initialize):
2923         (WTR::TestController::generateContextConfiguration):
2924         (WTR::TestController::generatePageConfiguration):
2925         (WTR::TestController::createWebViewWithOptions):
2926         (WTR::TestController::ensureViewSupportsOptionsForTest):
2927         (WTR::updateContextConfigurationOptionsFromTestHeader):
2928         (WTR::TestController::contextConfigurationOptionsForTest):
2929         (WTR::TestController::platformCreateWebView):
2930         (WTR::TestController::platformCreateOtherPage):
2931         (WTR::updateViewOptionsFromTestHeader): Deleted.
2932         (WTR::TestController::viewOptionsForTest): Deleted.
2933         * WebKitTestRunner/TestController.h:
2934         (WTR::TestController::injectedBundlePath):
2935         (WTR::TestController::testPluginDirectory):
2936         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
2937         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
2938         (WTR::TestController::platformCreateWebView):
2939         (WTR::TestController::platformCreateOtherPage):
2940         * WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
2941         (WTR::PlatformWebView::PlatformWebView):
2942         (WTR::PlatformWebView::viewSupportsOptions):
2943         * WebKitTestRunner/efl/TestControllerEfl.cpp:
2944         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2945         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2946         * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
2947         (WTR::PlatformWebView::PlatformWebView):
2948         (WTR::PlatformWebView::viewSupportsOptions):
2949         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
2950         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2951         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2952         * WebKitTestRunner/ios/PlatformWebViewIOS.mm:
2953         (WTR::PlatformWebView::PlatformWebView):
2954         (WTR::PlatformWebView::viewSupportsOptions):
2955         * WebKitTestRunner/ios/TestControllerIOS.mm:
2956         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2957         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2958         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
2959         (WTR::PlatformWebView::PlatformWebView):
2960         (WTR::PlatformWebView::viewSupportsOptions):
2961         * WebKitTestRunner/mac/TestControllerMac.mm:
2962         (WTR::TestController::updatePlatformSpecificContextConfigurationOptionsForTest):
2963         (WTR::TestController::updatePlatformSpecificViewOptionsForTest): Deleted.
2964
2965 2015-09-08  Daniel Bates  <dabates@apple.com>
2966
2967         [Mac] Expose Enable/Disable Accelerated Drawing in MiniBrowser
2968         https://bugs.webkit.org/show_bug.cgi?id=148980
2969
2970         Reviewed by Alexey Proskuryakov.
2971
2972         Add setting to enable/disable accelerated drawing so as to support testing
2973         this feature in MiniBrowser on Mac.
2974
2975         * MiniBrowser/mac/SettingsController.h:
2976         * MiniBrowser/mac/SettingsController.m:
2977         (-[SettingsController _populateMenu]): Add menu item.
2978         (-[SettingsController validateMenuItem:]): Update setting when menu item is toggled.
2979         (-[SettingsController toggleAcceleratedDrawingEnabled:]): Added.
2980         (-[SettingsController acceleratedDrawingEnabled]): Added.
2981         * MiniBrowser/mac/WK1BrowserWindowController.m:
2982         (-[WK1BrowserWindowController didChangeSettings]): Apply setting in WebKit1.
2983         * MiniBrowser/mac/WK2BrowserWindowController.m:
2984         (-[WK2BrowserWindowController didChangeSettings]): Apply setting in WebKit2.
2985
2986 2015-09-08  Jason Marcell  <jmarcell@apple.com>
2987
2988         Unreviewed. Added myself as a commiter in contributors.json.
2989
2990         * Scripts/webkitpy/common/config/contributors.json:
2991
2992 2015-09-08  Keith Miller  <keith_miller@apple.com>
2993
2994         Unreviewed, added myself to the list of contributors.
2995
2996         * Scripts/webkitpy/common/config/contributors.json:
2997
2998 2015-09-08  Daniel Bates  <dabates@apple.com>
2999
3000         Dashboard: Remove use of z-index for ring overlay; use DOM ordering
3001         https://bugs.webkit.org/show_bug.cgi?id=148921
3002
3003         Reviewed by Alexey Proskuryakov.
3004
3005         The ring image is positioned above the platform icon in markup and we specify the CSS
3006         property z-index for the ring image so that it is painted on top of the platform icon
3007         instead of below it (by DOM ordering). Instead we can take advantage of the transparency
3008         of the ring image, switch the order of these DOM elements and remove the use of the CSS
3009         property z-index to achieve a similar effect.
3010
3011         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:
3012         (documentReady): Create the platform icon image element before the ring image such that
3013         the ring image is painted on top of the platform icon.
3014         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
3015         (table.queue-grid td.logo img.ring): Removed property z-index.
3016
3017 2015-09-08  Daniel Bates  <dabates@apple.com>
3018
3019         Dashboard: Remove duplicate gear icon data URLs
3020         https://bugs.webkit.org/show_bug.cgi?id=148920
3021
3022         Reviewed by Alexey Proskuryakov.
3023
3024         Currently we duplicate the SVG data URL for the gear icon up to its fill color in the CSS property
3025         background-image associated with each of the three gear icon states: collapsed (.settings), hover
3026         (.settings:hover), and expanded (.settings-visible .settings). Instead we should use the gear icon
3027         as a mask and make use of the CSS background-color to define the fill color for each of these three
3028         states.
3029
3030         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
3031         (.settings): Use gear icon as mask and define CSS background-color for collapsed state. 
3032         (.settings:hover): Override CSS background-color for hover state.
3033         (.settings-visible .settings): Override CSS background-color for expanded state.
3034
3035 2015-09-07  Andy Estes  <aestes@apple.com>
3036
3037         [Mac] DebugRelease builds should link against libWebKitSystemInterfaceElCapitan.a on 10.11
3038         https://bugs.webkit.org/show_bug.cgi?id=148946
3039         <rdar://problem/22603981>
3040
3041         Reviewed by Dan Bernstein.
3042
3043         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
3044         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
3045
3046 2015-09-07  Hunseop Jeong  <hs85.jeong@samsung.com>
3047
3048         [EFL] Many of the css3/device-adapt/* tests failed after r188548.
3049         https://bugs.webkit.org/show_bug.cgi?id=148927
3050
3051         Reviewed by Csaba Osztrogonác.
3052
3053         device-adapt/* tests need the fixedLayout option but useFixedLayout option is
3054         overwritten by updatePlatformSpecificViewOptionsForTest after r188548.
3055
3056         * WebKitTestRunner/TestController.cpp:
3057         (WTR::shouldUseFixedLayout): Removed the unnecessary indentations.
3058         * WebKitTestRunner/efl/TestControllerEfl.cpp:
3059         (WTR::shouldUseFixedLayout): Return true if the test is related with 'device-adapt'.
3060
3061 2015-09-07  Andy Estes  <aestes@apple.com>
3062
3063         Fix the Production build after r189455.
3064
3065         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Somehow I added the All target using the
3066         In-App Purchase template instead of the Aggregate template. Whoops.
3067
3068 2015-09-06  Andy Estes  <aestes@apple.com>
3069
3070         WebKit.xcworkspace should be be able to build iOS platforms
3071         https://bugs.webkit.org/show_bug.cgi?id=148881
3072
3073         Reviewed by Daniel Bates.
3074
3075         Since we don't want to create platform-specific schemes, all projects in the workspace's schemes need to build
3076         for all supported platforms.
3077
3078         * MiniBrowser/Configurations/Base.xcconfig: Included iphoneos and iphonesimulator in SUPPORTED_PLATFORMS.
3079         * MiniBrowser/Configurations/MiniBrowser.xcconfig: Excluded all source files on iOS, and linked Cocoa and WebKit on Mac.
3080         * MiniBrowser/Configurations/MiniBrowserBundle.xcconfig: Ditto.
3081         * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: Stopped linking frameworks in Link Binaries With Libraries.
3082
3083 2015-09-06  Andy Estes  <aestes@apple.com>
3084
3085         WebKitTestRunner should build for iOS using the default target
3086         https://bugs.webkit.org/show_bug.cgi?id=148918
3087
3088         Reviewed by Daniel Bates.
3089
3090         When WebKitTestRunner was ported to iOS, a separate target (WebKitTestRunnerApp) was created for building the
3091         iOS variant. This is annoying because (1) all tools that invoke xcodebuild need to be taught to build this
3092         non-default target, and (2) a single Xcode scheme cannot be used to build both Mac and iOS variants.
3093
3094         This change adds a new default target (All) and makes it work for both Mac and iOS. Files that were built for
3095         both WebKitTestRunner and WebKitTestRunnerApp are now built in a static library target (WebKitTestRunner (Library)),
3096         and both apps now link this library. Files that are specific to Mac or iOS are excluded on the other platform.
3097         WebKitTestRunnerApp.app (which should be renamed to WebKitTestRunner.app) is skipped when installing on Mac, and
3098         WebKitTestRunner is skipped when installing on iOS.
3099
3100         The target dependency graph now looks like this:
3101
3102             All
3103                 WebKitTestRunnerApp
3104                     WebKitTestRunner (Library)
3105                         WebKitTestRunnerInjectedBundle
3106                             Derived Sources
3107                 WebKitTestRunner
3108                     WebKitTestRunner (Library)
3109                         WebKitTestRunnerInjectedBundle
3110                             Derived Sources
3111
3112         * Scripts/build-webkit: Stopped building the WebKitTestRunnerApp target on iOS.
3113         * Scripts/build-webkittestrunner: Ditto.
3114         * WebKitTestRunner/Configurations/Base.xcconfig: Set SUPPORTED_PLATFORMS to macosx, iphoneos, and iphonesimulator.
3115         * WebKitTestRunner/Configurations/BaseTarget.xcconfig: Set INSTALL_PATH here since it is the same for all targets.
3116         * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Stopped setting INSTALL_PATH.
3117         * WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: Moved frameworks from the build phase to here,
3118         excluded iOS-only files, and skipped installing on iOS.
3119         * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: Moved frameworks from the build phase to here,
3120         excluded Mac-only files, and skipped installing on Mac.
3121         * WebKitTestRunner/Configurations/WebKitTestRunnerLibrary.xcconfig: Skipped installing always.
3122         * WebKitTestRunner/Makefile: Stopped building the WebKitTestRunnerApp target on iOS.
3123         * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Added new targets, removed frameworks from
3124         Link Binary With Libraries builds phases, moved common files to the WebKitTestRunner (Library) target, and added
3125         new configuration files.
3126
3127 2015-09-05  Joseph Pecoraro  <pecoraro@apple.com>
3128
3129         Web Inspector: Improve prepare-ChangeLog for multiple cases
3130         https://bugs.webkit.org/show_bug.cgi?id=148875
3131
3132         Reviewed by Timothy Hatcher.
3133
3134         * Scripts/prepare-ChangeLog:
3135         (get_function_line_ranges_for_javascript):
3136         - We were ignoring everything inside of an anonymous function expression,
3137           such as (function(){ ... }), which made InjectedScriptSource produce nothing.
3138           Better handle this by inserting a few tweaks.
3139         - Allow method syntax outside of classes as long as they are at the global level.
3140         - Avoid treating "get" and "set" as getter/setter functions in bad contexts.
3141
3142         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests-expected.txt:
3143         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests.js:
3144         (Foo.prototype.method1):
3145         (Foo.prototype.method2):
3146         (Foo.prototype.method3.innerFunction):
3147         (Foo.prototype.method3):
3148         (insideGlobalAnonymousFunctionExpression):
3149         (foo.insideGlobalFunctionExpression):
3150         (IssueWithMapGetAndSet.prototype.method1.nestedFunctionInsideMethod1):
3151         (IssueWithMapGetAndSet.prototype.method1):
3152         (IssueWithMapGetAndSet.prototype.method2):
3153         (IssueWithMapGetAndSet.prototype.method3):
3154         (IssueWithMapGetAndSet):
3155
3156 2015-09-05  Yusuke Suzuki  <utatane.tea@gmail.com>
3157
3158         [ES6] Enable ES6 Module in JSC shell by default
3159         https://bugs.webkit.org/show_bug.cgi?id=148689
3160
3161         Reviewed by Geoffrey Garen.
3162
3163         * Scripts/run-javascriptcore-tests:
3164         (runJSCStressTests):
3165         * Scripts/run-jsc-stress-tests:
3166
3167 2015-09-04  Basile Clement  <basile_clement@apple.com>
3168
3169         Unreviewed, change my email address.
3170
3171         * Scripts/webkitpy/common/config/contributors.json:
3172
3173 2015-09-04  Beth Dakin  <bdakin@apple.com>
3174
3175         Should have a test to make sure links don't navigate after a cancelled force 
3176         click
3177         https://bugs.webkit.org/show_bug.cgi?id=148846
3178
3179         Reviewed by Tim Horton.
3180
3181         New EventSender function for a started then cancelled force click.
3182         * WebKitTestRunner/EventSenderProxy.h:
3183         * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
3184         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3185         (WTR::EventSendingController::mouseForceClick):
3186         (WTR::EventSendingController::startAndCancelMouseForceClick):
3187         (WTR::EventSendingController::mouseForceDown):
3188         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
3189         * WebKitTestRunner/TestController.cpp:
3190         (WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
3191         * WebKitTestRunner/mac/EventSenderProxy.mm:
3192         (WTR::EventSenderProxy::mouseForceClick):
3193         (WTR::EventSenderProxy::startAndCancelMouseForceClick):
3194         (WTR::EventSenderProxy::mouseForceDown):
3195         (WTR::EventSenderProxy::mouseMoveTo):
3196
3197 2015-09-04  Tim Horton  <timothy_horton@apple.com>
3198
3199         Add a test for r179736 (programmatic navigation during swipe causing a crash)
3200         https://bugs.webkit.org/show_bug.cgi?id=148830
3201
3202         Reviewed by Beth Dakin.
3203
3204         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3205         (WTR::InjectedBundle::beginTesting):
3206         Make sure that TestRunner callbacks don't leak between tests!
3207
3208 2015-09-04  Anders Carlsson  <andersca@apple.com>
3209
3210         It should be possible to pass relative HTTP test paths to DumpRenderTree
3211         https://bugs.webkit.org/show_bug.cgi?id=148825
3212         <rdar://problem/22583866>
3213
3214         Reviewed by Tim Horton.
3215
3216         Convert the path to an absolute path if needed.
3217
3218         * DumpRenderTree/mac/DumpRenderTree.mm:
3219         (computeTestURL):
3220
3221 2015-09-04  Jason Marcell  <jmarcell@apple.com>
3222
3223         Fix Swift unit tests for prepare-ChangeLog.
3224         https://bugs.webkit.org/show_bug.cgi?id=148817
3225
3226         Reviewed by Alexey Proskuryakov.
3227
3228         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/swift_unittests-expected.txt: Fixed
3229         Swift unit tests for prepare-ChangeLog.
3230
3231 2015-09-04  Lucas Forschler  <lforschler@apple.com>
3232
3233         Modifications to the webkit-nightly logic.
3234         
3235         * WebKitLauncher/WebKitNightlyEnablerSparkle.m:
3236         (updateAlertPanel):
3237         * WebKitLauncher/main.m:
3238         (displayErrorAndQuit):
3239
3240 2015-09-04  Beth Dakin  <bdakin@apple.com>
3241
3242         Speculative build fix.
3243
3244         * WebKitTestRunner/mac/EventSenderProxy.mm:
3245
3246 2015-09-04  Brian Burg  <bburg@apple.com>
3247
3248         Web Inspector: InspectorController should support multiple frontend channels
3249         https://bugs.webkit.org/show_bug.cgi?id=148538
3250
3251         Reviewed by Joseph Pecoraro.
3252
3253         InspectorClients must explicitly disconnect their frontend channel(s) from the
3254         inspected page's InspectorController.
3255
3256         To make this possible, DumpRenderTree should not destroy non-primary views until
3257         it has tried to close any abandoned Web Inspector instances. Performing teardown
3258         in the reverse order prevents disconnection of the frontend channel because that
3259         prematurely destroys the inspector frontend client.
3260
3261         * DumpRenderTree/mac/DumpRenderTree.mm:
3262         (runTest):
3263         * DumpRenderTree/win/DumpRenderTree.cpp:
3264         (runTest):
3265
3266 2015-09-04  Beth Dakin  <bdakin@apple.com>
3267
3268         Need to be able to test default behaviors on force click
3269         https://bugs.webkit.org/show_bug.cgi?id=148758
3270
3271         Reviewed by Tim Horton.
3272
3273         This patch adds a new eventSender method to do a full, completed force click, 
3274         and it re-works all of the existing force methods to dispatch their events in 
3275         such a way that they will trigger the NSImmediateAction gesture recognizer. 
3276         To do this, first we need to send the events to the app rather than straight 
3277         to the view, and also needed to tweak some state and send the events in a 
3278         delayed fashion.
3279
3280         New public function mouseForceClick() and private helper functions to make 
3281         NSEvents.
3282         * WebKitTestRunner/EventSenderProxy.h:
3283
3284         New public function mouseForceClick().
3285         * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
3286         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3287         (WTR::EventSendingController::mouseMoveTo):
3288         (WTR::EventSendingController::mouseForceClick):
3289         (WTR::EventSendingController::mouseForceDown):
3290         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
3291         * WebKitTestRunner/TestController.cpp:
3292         (WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
3293
3294         initPressureEventAtLocation needs to take a stageTransition and a window.
3295         * WebKitTestRunner/mac/EventSenderProxy.mm:
3296         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]):
3297         (-[EventSenderSyntheticEvent stageTransition]):
3298         (-[EventSenderSyntheticEvent timestamp]):
3299         (-[EventSenderSyntheticEvent _cgsEventRecord]):
3300         (-[EventSenderSyntheticEvent window]):
3301
3302         In order to enter the gesture recognizer, we need to start with a mouse down 
3303         that has a NSEventMaskPressure modifier.
3304         (WTR::EventSenderProxy::sendMouseDownToStartPressureEvents):
3305
3306         This ensures that the events queue properly for the force monitor in AppKit.
3307         (WTR::spinRunLoopForForce):
3308
3309          We need to start the pressure change events with a began.
3310         (WTR::EventSenderProxy::beginPressureEvent):
3311
3312         These functions can be used to create the NSEvent for a pressure change every 
3313         time we need one.
3314         (WTR::EventSenderProxy::pressureChangeEvent):
3315
3316         Send the right series of events to emulate a full, completed force click.
3317         (WTR::EventSenderProxy::mouseForceClick):
3318
3319         Use all of the new things for these existing functions.
3320         (WTR::EventSenderProxy::mouseForceDown):
3321         (WTR::EventSenderProxy::mouseForceUp):
3322         (WTR::EventSenderProxy::mouseForceChanged):
3323
3324         Set NSFakeForceTouchDevice to YES.
3325         * WebKitTestRunner/mac/main.mm:
3326         (setDefaultsToConsistentValuesForTesting):
3327
3328 2015-09-04  Jason Marcell  <jmarcell@apple.com>
3329
3330         prepare-ChangeLog needs to know how to parse Swift files.
3331         https://bugs.webkit.org/show_bug.cgi?id=148784
3332         <rdar://problem/22510062>
3333
3334         Reviewed by Darin Adler.
3335
3336         * Scripts/prepare-ChangeLog:
3337         (get_function_line_ranges): Added entry for get_function_line_ranges_for_swift.
3338         (get_function_line_ranges_for_swift): Added function that knows how to parse Swift code.
3339         (parseSwiftFunctionArgs): Added function that knows how to parse Swift function arguments.
3340         * Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl: Added.
3341         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/swift_unittests-expected.txt: Ditto.
3342         * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/swift_unittests.swift: Ditto.
3343         (freeFunction): Ditto.
3344         (MyClass.function): Ditto.
3345         (MyClass.functionWithArgument(_:)): Ditto.
3346         (MyClass.functionWithMoreArguments(_:arg2:)): Ditto.
3347         (MyClass.functionWithNamedFirstArgument(argument:)): Ditto.
3348         (MyClass.functionWithNamedFirstAndSecondArgument(first:second:)): Ditto.
3349         (MyClass.classFunction): Ditto.
3350         (MyClass.readWriteComputedVariable): Ditto.
3351         (MyClass.readOnlyComputedVariable): Ditto.
3352
3353 2015-09-04  Ryosuke Niwa  <rniwa@webkit.org>
3354
3355         Import css/css-color-3
3356         https://bugs.webkit.org/show_bug.cgi?id=148803
3357
3358         Reviewed by Chris Dumez.
3359
3360         Fixed a bug that the imported reference files used the same extention as tests.
3361         This would result in parsing errors if the tests were XML and references were HTML and vice versa.
3362
3363         * Scripts/webkitpy/w3c/test_importer.py:
3364         (TestImporter.find_importable_tests):
3365
3366 2015-09-03  Commit Queue  <commit-queue@webkit.org>
3367
3368         Unreviewed, rolling out r189338.
3369         https://bugs.webkit.org/show_bug.cgi?id=148785
3370
3371         Caused tons of crashes (Requested by cdumez on #webkit).
3372
3373         Reverted changeset:
3374
3375         "Web Inspector: InspectorController should support multiple
3376         frontend channels"
3377         https://bugs.webkit.org/show_bug.cgi?id=148538
3378         http://trac.webkit.org/changeset/189338
3379
3380 2015-09-03  Brian Burg  <bburg@apple.com>
3381
3382         Web Inspector: InspectorController should support multiple frontend channels
3383         https://bugs.webkit.org/show_bug.cgi?id=148538
3384
3385         Reviewed by Joseph Pecoraro.
3386
3387         InspectorClients must explicitly disconnect their frontend channel(s) from the
3388         inspected page's InspectorController.
3389
3390         To make this possible, DumpRenderTree should not destroy non-primary views until
3391         it has tried to close any abandoned Web Inspector instances. Performing teardown
3392         in the reverse order prevents disconnection of the frontend channel because that
3393         prematurely destroys the inspector frontend client.
3394
3395         * DumpRenderTree/mac/DumpRenderTree.mm:
3396         (runTest):
3397         * DumpRenderTree/win/DumpRenderTree.cpp:
3398         (runTest):
3399
3400 2015-09-03  Timothy Hatcher  <timothy@apple.com>
3401
3402         Update WebKit nightly icon to be more like Safari
3403         https://bugs.webkit.org/show_bug.cgi?id=148768
3404
3405         Reviewed by Joseph Pecoraro.
3406
3407         * WebKitLauncher/webkit.icns:
3408
3409 2015-09-03  Geoffrey Garen  <ggaren@apple.com>
3410
3411         JavaScriptCore should have some ES6 conformance tests
3412         https://bugs.webkit.org/show_bug.cgi?id=148771
3413
3414         Reviewed by Chris Dumez.
3415
3416         * Scripts/run-javascriptcore-tests:
3417         (runJSCStressTests): Added es6 as a test suite.
3418
3419         * Scripts/run-jsc-stress-tests: Added es6 as a test suite.
3420
3421         Some of these tests currently fail, so I also added a way to expect
3422         failure for now. We'll migrate failing tests to expected passes as we
3423         fix them.
3424
3425 2015-09-03  Tim Horton  <timothy_horton@apple.com>
3426
3427         Add a test for swipe-start hysteresis
3428         https://bugs.webkit.org/show_bug.cgi?id=148756
3429
3430         Reviewed by Anders Carlsson.
3431
3432         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3433         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3434         (WTR::cacheTestRunnerCallback):
3435         (WTR::TestRunner::clearTestRunnerCallbacks):
3436         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3437         Make sure that we log if a client tries to install a callback twice
3438         (since we use .add, the second call would not work).
3439
3440         Also, add clearTestRunnerCallbacks so tests can swap out installed
3441         callbacks.
3442
3443 2015-09-03  Anders Carlsson  <andersca@apple.com>
3444
3445         DumpRenderTree should automatically compute HTTP URLs for HTTP tests
3446         https://bugs.webkit.org/show_bug.cgi?id=148746
3447         rdar://problem/22568073
3448
3449         Reviewed by Tim Horton.
3450
3451         * DumpRenderTree/mac/DumpRenderTree.mm:
3452         (computeTestURL):
3453         Compute the test URL from the passed in path or URL. Special-case paths that contain /LayoutTests/http/tests. 
3454
3455         (runTest):
3456         Call computeTestURL.
3457
3458         (testPathFromURL):
3459         Get rid of this; computeTestURL does this for us now.
3460
3461         * Scripts/webkitpy/port/driver.py:
3462         (Driver._command_from_driver_input):
3463         Don't convert HTTP test paths to URLS before passing them to DumpRenderTree on Mac. That's handled by DRT itself now.
3464
3465 2015-09-03  Tim Horton  <timothy_horton@apple.com>
3466
3467         Swipe tests fail on Mavericks
3468         https://bugs.webkit.org/show_bug.cgi?id=148752
3469
3470         Reviewed by Beth Dakin.
3471
3472         * WebKitTestRunner/mac/EventSenderProxy.mm:
3473
3474 2015-09-03  Tim Horton  <timothy_horton@apple.com>
3475
3476         Fix the 32-bit build
3477
3478         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
3479         (WTR::PlatformWebView::setNavigationGesturesEnabled):
3480
3481 2015-09-03  Tim Horton  <timothy_horton@apple.com>
3482
3483         Remove some logging that wasn't meant to be in the tree
3484
3485         * WebKitTestRunner/mac/EventSenderProxy.mm:
3486         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
3487
3488 2015-09-03  Tim Horton  <timothy_horton@apple.com>
3489
3490         [Mac] Add support for testing swipes
3491         https://bugs.webkit.org/show_bug.cgi?id=148700
3492
3493         Reviewed by Beth Dakin.
3494
3495         * WebKitTestRunner/EventSenderProxy.h:
3496         * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
3497         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
3498         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
3499         (WTR::cgEventPhaseFromString):
3500         (WTR::cgEventMomentumPhaseFromString):
3501         (WTR::EventSendingController::mouseScrollByWithWheelAndMomentumPhases):
3502         (WTR::EventSendingController::swipeGestureWithWheelAndMomentumPhases):
3503         * WebKitTestRunner/InjectedBundle/EventSendingController.h:
3504         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
3505         (WTR::InjectedBundle::didReceiveMessageToPage):
3506         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3507         (WTR::TestRunner::installDidBeginSwipeCallback):
3508         (WTR::TestRunner::installWillEndSwipeCallback):
3509         (WTR::TestRunner::installDidEndSwipeCallback):
3510         (WTR::TestRunner::installDidRemoveSwipeSnapshotCallback):
3511         (WTR::TestRunner::callDidBeginSwipeCallback):
3512         (WTR::TestRunner::callWillEndSwipeCallback):
3513         (WTR::TestRunner::callDidEndSwipeCallback):
3514         (WTR::TestRunner::callDidRemoveSwipeSnapshotCallback):
3515         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3516         * WebKitTestRunner/TestController.cpp:
3517         (WTR::TestController::createOtherPage):
3518         (WTR::TestController::createWebViewWithOptions):
3519         (WTR::TestController::didReceiveMessageFromInjectedBundle):
3520         (WTR::TestController::didBeginNavigationGesture):
3521         (WTR::TestController::willEndNavigationGesture):
3522         (WTR::TestController::didEndNavigationGesture):
3523         (WTR::TestController::didRemoveNavigationGestureSnapshot):
3524         * WebKitTestRunner/TestController.h:
3525         * WebKitTestRunner/TestInvocation.cpp:
3526         (WTR::TestInvocation::didBeginSwipe):
3527         (WTR::TestInvocation::willEndSwipe):
3528         (WTR::TestInvocation::didEndSwipe):
3529         (WTR::TestInvocation::didRemoveSwipeSnapshot):
3530         * WebKitTestRunner/TestInvocation.h:
3531         Add callbacks when navigation gestures didBegin/willEnd/didEnd, and
3532         when the snapshot is removed.
3533
3534         Add swipeGestureWithWheelAndMomentumPhases, just like the equivalent
3535         mouseScrollBy function.
3536
3537         * WebKitTestRunner/mac/EventSenderProxy.mm:
3538         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:phase:time:eventNumber:]):
3539         (-[EventSenderSyntheticEvent type]):
3540         (-[EventSenderSyntheticEvent subtype]):
3541         (-[EventSenderSyntheticEvent locationInWindow]):
3542         (-[EventSenderSyntheticEvent location]):
3543         (-[EventSenderSyntheticEvent momentumPhase]):
3544         (-[EventSenderSyntheticEvent _isTouchesEnded]):
3545         (-[EventSenderSyntheticEvent _cgsEventRecord]):
3546         Rename EventSenderPressureEvent to EventSenderSyntheticEvent and add some
3547         more adjustable values.
3548
3549         (WTR::EventSenderProxy::mouseForceDown):
3550         (WTR::EventSenderProxy::mouseForceUp):
3551         (WTR::EventSenderProxy::mouseForceChanged):
3552         Adopt EventSenderSyntheticEvent.
3553
3554         (WTR::nsEventPhaseFromCGEventPhase):
3555         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
3556         Make use of EventSenderSyntheticEvent to synthesize swipe gesture events.
3557
3558         * WebKitTestRunner/mac/PlatformWebViewMac.mm:
3559         (WTR::PlatformWebView::PlatformWebView):
3560         Enable swipe.
3561
3562 2015-09-03  Myles C. Maxfield  <mmaxfield@apple.com>
3563
3564         [WK2] Allow tagging tests with metadata which needs to be known at web process creation time
3565         https://bugs.webkit.org/show_bug.cgi?id=148723
3566
3567         Reviewed by Anders Carlsson.
3568
3569         * WebKitTestRunner/TestController.cpp:
3570         (WTR::testPath):
3571         (WTR::updateViewOptionsFromTestHeader):
3572         (WTR::TestController::viewOptionsForTest):
3573
3574 2015-09-03  Lucas Forschler  <lforschler@apple.com>
3575
3576         Test commit.