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