Use the new webkit_web_view_load_uri to open URIs.
[WebKit-https.git] / WebKitTools / ChangeLog
1 2009-02-28  Christian Dywan  <christian@twotoasts.de>
2
3         Rubber-stamped by Holger Freyther.
4
5         * GtkLauncher/main.c:
6         (activate_uri_entry_cb):
7         (main): Use the new webkit_web_view_load_uri to open URIs.
8
9 2009-02-27  Xan Lopez  <xan@gnome.org>
10
11         Rubber-stamped by Alexey Proskuryakov.
12
13         https://bugs.webkit.org/show_bug.cgi?id=24222
14         [GTK] Remove checks for old glib versions
15
16         libsoup, which is a hard dependency, needs at least glib 2.15.3,
17         so remove all glib checks for versions older than that.
18
19         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
20         (LayoutTestController::setWaitToDump):
21
22 2009-02-25  Simon Fraser  <simon.fraser@apple.com>
23
24         Reviewed by Eric Seidel
25
26         Fix spew about a WebView being deallocated while key value observers are
27         still registered with it by making sure that we always stop observing
28         _isUsingAcceleratedCompositing in -[DumpRenderTreeWindow close].
29         
30         * DumpRenderTree/mac/DumpRenderTree.mm:
31         (dumpRenderTree):
32         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
33         (-[DumpRenderTreeWindow close]):
34
35 2009-02-25  Adam Treat  <adam.treat@torchmobile.com>
36
37         Reviewed by Alexey Proskuryakov.
38
39         Do not queue the calls to 'DumpRenderTree::dump()' as this can result
40         in more than one call as a test that calls 'notifyDone()' can then be
41         subsequently fully loaded and initiate a second dump.  Also make sure
42         to stop any existing page load that is happening before running the next
43         test.  Combined this serves to produce 217 more passing tests for the
44         Qt port or roughly 5% at this point.
45
46         * DumpRenderTree/qt/DumpRenderTree.cpp:
47         (WebCore::DumpRenderTree::DumpRenderTree):
48         (WebCore::DumpRenderTree::open):
49
50 2009-02-25  Simon Fraser  <simon.fraser@apple.com>
51
52         Reviewed by Dan Bernstein
53
54         https://bugs.webkit.org/show_bug.cgi?id=23854
55
56         Have the DumpRenderTreeWindow observe the -_isUsingAcceleratedCompositing
57         property of the WebView, and use that to turn -autodisplay on and off.
58         This is necessary so that accelerated animations start correctly.
59         We can thus remove the -display hack in createBitmapContextFromWebView().
60
61         * DumpRenderTree/mac/DumpRenderTree.mm:
62         (createWebViewAndOffscreenWindow):
63         (dumpRenderTree):
64         * DumpRenderTree/mac/DumpRenderTreeWindow.h:
65         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
66         (-[DumpRenderTreeWindow close]):
67         (-[DumpRenderTreeWindow webView]):
68         (-[DumpRenderTreeWindow startObservingWebView]):
69         (-[DumpRenderTreeWindow stopObservingWebView]):
70         (-[DumpRenderTreeWindow observeValueForKeyPath:ofObject:change:context:]):
71         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
72         (createBitmapContextFromWebView):
73
74 2009-02-25  Adam Treat  <adam.treat@torchmobile.com>
75
76         Reviewed by Zack Rusin.
77
78         https://bugs.webkit.org/show_bug.cgi?id=24158
79         Implement the queue*() methods of the layoutTestController and begin
80         implementing the dump of the back/forward list.  This results in 2% more
81         tests passing as well as 23 currently skipped tests now passing.
82
83         * DumpRenderTree/qt/DumpRenderTree.cpp:
84         (WebCore::DumpRenderTree::dumpBackForwardList):
85         (WebCore::DumpRenderTree::dump):
86         * DumpRenderTree/qt/DumpRenderTree.h:
87         * DumpRenderTree/qt/DumpRenderTree.pro:
88         * DumpRenderTree/qt/jsobjects.cpp:
89         (findFrameNamed):
90         (LoadItem::invoke):
91         (ReloadItem::invoke):
92         (ScriptItem::invoke):
93         (BackForwardItem::invoke):
94         (LayoutTestController::reset):
95         (LayoutTestController::processWork):
96         (LayoutTestController::maybeDump):
97         (LayoutTestController::queueBackNavigation):
98         (LayoutTestController::queueForwardNavigation):
99         (LayoutTestController::queueLoad):
100         (LayoutTestController::queueReload):
101         (LayoutTestController::queueScript):
102         * DumpRenderTree/qt/jsobjects.h:
103         (LayoutTestController::shouldDumpBackForwardList):
104         (LayoutTestController::dumpBackForwardList):
105
106 2009-02-24  Adam Treat  <adam.treat@torchmobile.com>
107
108         Reviewed by Alexey Proskuryakov.
109
110         Don't print out that you are generating new results if you are not in fact
111         generating new results and disable generating new results by default for
112         the all ports other than the canonical Apple Mac port since this can litter
113         the source directory with hundreds of new results since other ports
114         are not as up to date.
115
116         * Scripts/run-webkit-tests:
117
118 2009-02-24  Adam Treat  <adam.treat@torchmobile.com>
119
120         Reviewed by Cameron Zwarich.
121
122         The Qt port does not support these yet nor does the nm check work with
123         QMake based build.
124
125         * Scripts/webkitdirs.pm:
126
127 2009-02-24  Jan Michael Alonzo  <jmalonzo@webkit.org>
128
129         Reviewed by Alexey Proskuryakov.
130
131         [Gtk] add options for 3D transforms and HTML5 channel messaging to the build
132         https://bugs.webkit.org/show_bug.cgi?id=24072
133
134         Allow toggling of 3D transforms and HTML5 channel messaging
135         support for the Autotools (Gtk) build.
136
137         Also add '--gtk' in the build-webkit help doc and fix autotools
138         option for web-workers support.
139
140         * Scripts/build-webkit:
141
142 2009-02-23  Xan Lopez  <xan@gnome.org>
143
144         Reviewed by Alexey Proskuryakov.
145
146         https://bugs.webkit.org/show_bug.cgi?id=22624
147         [SOUP][GTK] Need API to get SoupSession from WebKit.
148
149         Add soup flags now that dependency is explicit.
150
151         * GNUmakefile.am:
152
153 2009-02-22  Mark Rowe  <mrowe@apple.com>
154
155         Reviewed by Oliver Hunt.
156
157         Fix assertion failures in editing/pasteboard/paste-RTFD.html and editing/pasteboard/paste-TIFF.html in 64-bit.
158
159         * DumpRenderTree/mac/DumpRenderTree.mm:
160         (swizzleAllMethods): When adding a new method to a class, use the implementation and type of the new method rather
161         than of an arbitrary existing method on the class.
162
163 2009-02-13  Eric Seidel  <eric@webkit.org>
164
165         Rubber-stamped by Alexey Proskuryakov.
166
167         Add a few ignores to make-js-test-wrappers.
168
169         * Scripts/make-js-test-wrappers:
170
171 2009-02-17  Holger Hans Peter Freyther  <zecke@selfish.org>
172
173         Reviewed by Alexey Proskuryakov.
174
175         Prepend file:// to the test result filename to make
176         GtkLauncher display the result page.
177
178         * Scripts/run-webkit-tests:
179
180 2009-02-16  Gustavo Noronha Silva  <gns@gnome.org>
181
182         Reviewed by Adam Roben
183
184         Actually use the installation prefix defined in WebKitInstallationPrefix,
185         in autotools builds.
186
187         * Scripts/webkitdirs.pm:
188
189 2009-02-12  Simon Fraser  <simon.fraser@apple.com>
190
191         No review.
192
193         Remove debugging code which was committed by mistake.
194
195         * Scripts/run-webkit-tests:
196
197 2009-02-12  Simon Fraser  <simon.fraser@apple.com>
198
199         Reviewed by Adam Roben
200
201         https://bugs.webkit.org/show_bug.cgi?id=23928
202
203         Add detection of accelerated compositing and 3d transforms,
204         and add various directories to $ignoredDirectories when these
205         features are off.
206
207         * Scripts/run-webkit-tests:
208         * Scripts/webkitdirs.pm:
209
210 2009-02-12  Adam Roben  <aroben@apple.com>
211
212         Fix Bug 23922: Warning message from run-webkit-tests when Skipped file
213         contains non-existent tests is confusing and is given for disabled
214         tests
215
216         <https://bugs.webkit.org/show_bug.cgi?id=23922>
217
218         We now no longer warn about disabled tests. The warning now reads:
219
220         Skipped list contained '$item', but no file of that name could be
221         found
222
223         Reviewed by John Sullivan.
224
225         * Scripts/run-webkit-tests:
226         (top level): Pass the list name to processIgnoreTests so it can print
227         out a reasonable warning message.
228         (processIgnoreTests): Take a list name as a second parameter and use
229         it to display a better warning message. Also check for a "-disabled"
230         version of the test before warning about it not existing.
231
232 2009-02-11  Adam Roben  <aroben@apple.com>
233
234         Windows fix for Bug 22239: Implement missing animation & transition
235         APIs on LayoutTestController for non-mac platforms
236
237         <https://bugs.webkit.org/show_bug.cgi?id=22239>
238
239         Reviewed by Simon Fraser.
240
241         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
242         (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
243         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
244         (LayoutTestController::numberOfActiveAnimations):
245         Implemented these by calling through to IWebFramePrivate.
246
247 2009-02-10  Chris Marrin  <cmarrin@apple.com>
248
249         Reviewed by Simon Fraser.
250
251         * Scripts/build-webkit:
252
253         https://bugs.webkit.org/show_bug.cgi?id=23883
254
255         Added support --3d-transforms. Defaults to off
256
257 2009-02-11  Adam Roben  <aroben@apple.com>
258
259         Fix crashes in http/tests/history/redirect-301.pl and friends on
260         Windows
261
262         Reviewed by Alexey Proskuryakov.
263
264         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
265         (LayoutTestController::webHistoryItemCount): Null-check the shared
266         WebHistory instance before dereferencing it.
267
268 2009-02-10  Adam Roben  <aroben@apple.com>
269
270         Fix Bug 23869: Pixel tests can't be run on Windows
271
272         <https://bugs.webkit.org/show_bug.cgi?id=23869>
273
274         This patch gets the pixel tests limping along on Windows again.
275
276         Reviewed by Dan Bernstein.
277
278         * DumpRenderTree/DumpRenderTree.sln: Changed to use the new
279         Debug_Internal configuration of ImageDiff in the Debug_Internal
280         configuration of this solution.
281
282         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
283         (printPNG): Changed to call fwrite in a loop, since this call was
284         failing due to the buffer being too large on Windows.
285         (dumpWebViewAsPixelsAndCompareWithExpected): Removed an unnecessary
286         #if PLATFORM(MAC)/#endif.
287
288         * DumpRenderTree/win/ImageDiff.vcproj: Added a Debug_Internal
289         configuration that matches the Debug configuration but also references
290         debug_internal.vsprops.
291
292         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
293         (createBitmapContextFromWebView): Renamed from
294         getBitmapContextFromWebView to match the name used in the
295         cross-platform code.
296
297 2009-02-10  Adam Roben  <aroben@apple.com>
298
299         Robustify DumpRenderTree/win a little
300
301         DumpRenderTree was previously not holding a ref to the WebViews it
302         created via window.open. It was getting away with this because
303         WebViews get reffed by being preference notification observers and by
304         registering for drag-n-drop messages. Now DRT does hold a ref, in case
305         this situation changes in the future.
306
307         Reviewed by Alexey Proskuryakov.
308
309         * DumpRenderTree/win/DumpRenderTree.cpp:
310         (dumpBackForwardListForAllWindows): Added a .get().
311         (windowToWebViewMap): Changed to use the WindowToWebViewMap typedef.
312         * DumpRenderTree/win/DumpRenderTreeWin.h: Changed the
313         windowToWebViewMap() to hold a ref to the WebViews it contains.
314
315 2009-02-05  Simon Fraser  <simon.fraser@apple.com>
316
317         Fix the #include file order, per review comments.
318
319         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
320
321 2009-02-05  Simon Fraser  <simon.fraser@apple.com>
322
323         Reviewed by Dan Bernstein
324
325         https://bugs.webkit.org/show_bug.cgi?id=23362
326
327         If the WebHTMLView uses accelerated compositing, we need for force
328         the on-screen capture path and also force animations to start with -display
329         since the DRT window has autodisplay disabled.
330
331         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
332         (createBitmapContextFromWebView):
333
334 2009-02-03  miggilin  <mr.diggilin@gmail.com>
335
336         Reviewed by Darin Adler.
337
338         Change the way wxWidgets build gets arguments.
339         Change "checkForArgumentAndRemoveFromARGV" in build-webkit to check if the
340         argument passed matches one in ARGV exactly (allows, ie, --wx-args not to be
341         removed when --wx is checked for).
342
343         https://bugs.webkit.org/show_bug.cgi?id=23701
344
345         * Scripts/build-webkit:
346         * Scripts/webkitdirs.pm:
347
348 2009-01-30  Chris Fleizach  <cfleizach@apple.com>
349
350         Reviewed by Oliver Hunt.
351
352         Catch exceptions thrown by AppKit when accessing an attribute than an element
353         doesn't return.
354
355         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
356         (attributesOfElement):
357
358 2009-01-29  David Kilzer  <ddkilzer@apple.com>
359
360         Remove semi-colons from the end of ObjC method implementations
361
362         Rubber-stamped by Adam Roben.
363
364         $ find WebKitTools -name \*.m -o -name \*.mm -exec perl -e 'undef $/; $s = <>; while ($s =~ m/[\n\r][-+].*;[\s\r\n]+\{/g) { print "$ARGV: $&\n"; }' {} \;
365
366         * DumpRenderTree/mac/FrameLoadDelegate.mm:
367         (-[FrameLoadDelegate webView:didFailLoadWithError:forFrame:]):
368         (-[FrameLoadDelegate webView:windowScriptObjectAvailable:]):
369         (-[FrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
370         (-[FrameLoadDelegate webView:didHandleOnloadEventsForFrame:]):
371         * DumpRenderTree/mac/UIDelegate.mm:
372         (-[UIDelegate webViewFrame:]):
373
374 2009-01-28  Geoffrey Garen  <ggaren@apple.com>
375
376         Build fix for GTK.
377
378         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
379         (LayoutTestController::webHistoryItemCount):
380
381 2009-01-28  Geoffrey Garen  <ggaren@apple.com>
382
383         Reviewed by Sam Weinig.
384
385         Added support for querying how many history items were created during a
386         layout test.
387
388         * DumpRenderTree/LayoutTestController.cpp:
389         (getWebHistoryItemCountCallback):
390         (LayoutTestController::staticValues):
391         * DumpRenderTree/LayoutTestController.h:
392         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
393         (LayoutTestController::webHistoryItemCount):
394         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
395         (LayoutTestController::webHistoryItemCount):
396
397 2009-01-26  Pierre-Olivier Latour  <pol@apple.com>
398
399         Tweaked again earlier fix, this time just to print a warning and not abort if
400         attempting to generate pixel results and Perian is installed.
401
402         https://bugs.webkit.org/show_bug.cgi?id=22615
403
404         * Scripts/run-webkit-tests:
405
406 2009-01-26  Christian Dywan  <christian@twotoasts.de>
407
408         Rubber stamped by Holger Freyther.
409
410         * GtkLauncher/main.c:
411         (main): Initialize threads, which is required for libSoup.
412
413 2009-01-23  David Kilzer  <ddkilzer@apple.com>
414
415         * Scripts/do-webcore-rename: Removed 10 header guard renames that
416         had already been fixed, and updated 4 renames whose original values
417         had changed.
418
419 2009-01-22  Anders Carlsson  <andersca@apple.com>
420
421         Fix Windows build.
422
423         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
424
425 2009-01-22  Anders Carlsson  <andersca@apple.com>
426
427         Reviewed by Sam Weinig.
428
429         Clean up the test plug-in code. We now always use the CG drawing model and the
430         Cocoa event model. It is however possible to revert to the old Carbon event model by
431         specifying forcecarbon=true in the embed/object tag.
432
433         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
434         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
435         (NPP_New):
436         (handleEventCarbon):
437         (handleEventCocoa):
438         (NPP_HandleEvent):
439
440 2009-01-21  Pierre-Olivier Latour  <pol@apple.com>
441
442         Tweaked earlier fix to only print a warning when Perian is installed,
443         and fail completely only if attempting to generate new pixel test results.
444
445         https://bugs.webkit.org/show_bug.cgi?id=23392
446
447         * Scripts/run-webkit-tests:
448
449 2009-01-20  Darin Adler  <darin@apple.com>
450
451         Reviewed by Alexey Proskuryakov.
452
453         Bug 23450: string leaks seen in DumpRenderTree accessibility test code
454         https://bugs.webkit.org/show_bug.cgi?id=23450
455
456         * DumpRenderTree/AccessibilityUIElement.cpp:
457         (isAttributeSettableCallback): Add the missing JSStringRelease call.
458         (attributeValueCallback): Ditto.
459
460 2009-01-20  Pierre-Olivier Latour  <pol@apple.com>
461
462         Reviewed by Darin Adler.
463
464         Print warning regarding display color profile change in run-webkit-tests instead of DRT.
465
466         https://bugs.webkit.org/show_bug.cgi?id=23392
467
468         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
469         (setupMainDisplayColorProfile):
470         * Scripts/run-webkit-tests:
471
472 2009-01-20  Pierre-Olivier Latour  <pol@apple.com>
473
474         Reviewed by Darin Adler.
475
476         Changed run-webkit-tests to abort on the Mac if pixel tests are enabled and Perian is installed,
477         in order to avoid result differences in some media tests.
478
479         https://bugs.webkit.org/show_bug.cgi?id=22615
480
481         * Scripts/run-webkit-tests:
482         * Scripts/webkitdirs.pm:
483
484 2009-01-19  Sam Weinig  <sam@webkit.org>
485
486         * Scripts/do-webcore-rename: Add JSValuePtr and ProtectedJSValuePtr.
487
488 2009-01-16  Gabor Loki  <loki@inf.u-szeged.hu>
489
490         Reviewed by Darin Adler.
491
492         * Scripts/webkitdirs.pm: Added '--makeargs' parameter which can pass additional
493         parameters to make command in QMake projects.
494
495 2009-01-16  Chris Fleizach  <cfleizach@apple.com>
496
497         Reviewed by Beth Dakin.
498
499         Add AX methods to retrieve the parent of an element.
500
501         * DumpRenderTree/AccessibilityUIElement.cpp:
502         (parentElementCallback):
503         (AccessibilityUIElement::getJSClass):
504         * DumpRenderTree/AccessibilityUIElement.h:
505         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
506         (AccessibilityUIElement::parentElement):
507         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
508         (AccessibilityUIElement::parentElement):
509
510 2009-01-16  Anders Carlsson  <andersca@apple.com>
511
512         Reviewed by Adam Roben.
513
514         Set the count to the right number of elements.
515
516         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp:
517         (testEnumerate):
518
519 2009-01-14  David Kilzer  <ddkilzer@apple.com>
520
521         BUILD FIX: Use COM API on Windows in LayoutTestController::setIconDatabaseEnabled()
522
523         Rubber-stamped by Alice Liu.
524
525         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
526         (LayoutTestController::setIconDatabaseEnabled): Use COM API
527         to get the shared WebIconDatabase.
528
529 2009-01-14  Jeremy Moskovich  <jeremy@chromium.org>
530
531         Reviewed by Eric Seidel.
532
533         <https://bugs.webkit.org/show_bug.cgi?id=16829>
534         Implement NPN_SetException()
535
536         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
537         (pluginInvoke):
538         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp:
539         (initializeIdentifiers):
540         (testHasMethod):
541         (testInvoke):
542
543 2009-01-13  Dmitry Titov  <dimich@chromium.org>
544
545         Reviewed by David Kilzer.
546
547         https://bugs.webkit.org/show_bug.cgi?id=23304
548         Fix svn-apply to match svn-unapply to recognize added files in 'git diff' patches.
549
550         * Scripts/svn-apply: Added a check (similar to svn-unapply) to recognize added files.
551
552 2009-01-14  David Kilzer  <ddkilzer@apple.com>
553
554         BUILD FIX: Implement LayoutTestController::setIconDatabaseEnabled(bool) for GTK
555
556         * DumpRenderTree/gtk/DumpRenderTree.cpp:
557         (runTest): Added call to reset the icon database to match Mac
558         and Windows ports.
559         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
560         (LayoutTestController::setIconDatabaseEnabled): Implemented
561         stub method.
562
563 2009-01-14  David Kilzer  <ddkilzer@apple.com>
564
565         Bug 22795: favicons should be saved to webarchives
566
567         <https://bugs.webkit.org/show_bug.cgi?id=22795>
568
569         Reviewed by Darin Adler.
570
571         * DumpRenderTree/LayoutTestController.cpp:
572         (setIconDatabaseEnabledCallback): Added.
573         (setJavaScriptProfilingEnabledCallback): Realphabetized.
574         (LayoutTestController::staticFunctions): Added entry for calling
575         LayoutTestController.setIconDatabaseEnabled(bool) from JavaScript.
576         * DumpRenderTree/LayoutTestController.h:
577         (setIconDatabaseEnabledCallback): Added declaration.
578         (setJavaScriptProfilingEnabledCallback): Realphabetized.
579
580         * DumpRenderTree/mac/DumpRenderTree.mm:
581         (runTest): Disable the icon database before each test.
582         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
583         (LayoutTestController::setIconDatabaseEnabled): Added.
584         (LayoutTestController::setJavaScriptProfilingEnabled): Realphabetized.
585
586         * DumpRenderTree/win/DumpRenderTree.cpp:
587         (runTest): Disable the icon database before each test.
588         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
589         (LayoutTestController::setIconDatabaseEnabled): Added.
590
591 2009-01-14  Steve Falkenburg  <sfalken@apple.com>
592
593         Update copyright year in version resources.
594
595         Reviewed by Adam Roben.
596
597         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.rc:
598
599 2009-01-14  Dan Bernstein  <mitz@apple.com>
600
601         Reviewed by John Sullivan.
602
603         - update copyright
604
605         * DumpRenderTree/TestNetscapePlugIn.subproj/Info.plist:
606         * WebKitLauncher/Info.plist:
607
608 2009-01-13  Anders Carlsson  <andersca@apple.com>
609
610         Reviewed by Sam Weinig.
611
612         Add NPRuntime test.
613
614         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
615         (testNPRuntime):
616         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
617         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
618         (NPP_New):
619         (NPP_GetValue):
620
621 2009-01-12  Mark Rowe  <mrowe@apple.com>
622
623         Use the modern spelling of WebKit.
624
625         * Scripts/find-extra-includes:
626         * Scripts/report-include-statistics:
627         * Scripts/run-webkit-app:
628         * Scripts/svn-unapply:
629         * Scripts/update-webkit:
630
631 2009-01-11  Darin Adler  <darin@apple.com>
632
633         * Scripts/make-js-test-wrappers: Updated so it won't overwrite tests in the svg/dom
634         directory that aren't using standard wrappers.
635
636 2009-01-11  Robert Blaut  <webkit@blaut.biz>
637
638         Reviewed by Eric Seidel.
639
640         <https://bugs.webkit.org/show_bug.cgi?id=23134>
641         Update bisect-builds for Safari 3.2 to prevent crashes
642
643         * Scripts/bisect-builds: Added Safari 3.2 and the corresponding minimal revision, r37348.
644
645 2009-01-08  Adam Treat  <adam.treat@torchmobile.com>
646
647         Reviewed by Simon Hausmann.
648
649         Explicitly set these so that the layout tests do not break.
650
651         * DumpRenderTree/qt/DumpRenderTree.cpp:
652         (WebCore::WebPage::WebPage):
653
654 2009-01-07  Glenn Wilson  <gwilson@chromium.org>
655
656         Reviewed by Eric Seidel.
657
658         Changed DumpRenderTree to re-enable Javascript in web preferences on every test.
659         This fixes the case when a user mistakenly disables Javascript, and all layout tests crash.
660
661         * DumpRenderTree/mac/DumpRenderTree.mm:
662         (testStringByEvaluatingJavaScriptFromString):
663         (setDefaultsToConsistentValuesForTesting):
664
665 2009-01-07  Holger Hans Peter Freyther  <zecke@selfish.org>
666
667         Reviewed by Maciej Stachowiak.
668
669         Implement numberOfActiveAnimations to fix the build
670
671         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
672         (LayoutTestController::numberOfActiveAnimations):
673
674 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
675
676         Reviewed by George Staikos.
677
678         Fix unused variable warnings
679
680         * DumpRenderTree/qt/DumpRenderTree.cpp:
681         (WebCore::WebPage::javaScriptAlert):
682         (WebCore::WebPage::javaScriptConfirm):
683         (WebCore::WebPage::javaScriptPrompt):
684         * DumpRenderTree/qt/jsobjects.cpp:
685         (LayoutTestController::maybeDump):
686         * DumpRenderTree/qt/main.cpp:
687         (get_backtrace):
688         * DumpRenderTree/qt/testplugin.cpp:
689         (TestPlugin::create):
690
691 2009-01-06  Pierre-Olivier Latour  <pol@apple.com>
692
693         Reviewed by Darin Adler.
694
695         Added new JS API numberOfActiveAnimations() that returns the number of active CSS transitions & animations.
696         This effectively exposes the new AnimationController::numberOfActiveAnimations() API from WebCore.
697
698         https://bugs.webkit.org/show_bug.cgi?id=23126
699
700         * DumpRenderTree/LayoutTestController.cpp:
701         (numberOfActiveAnimationsCallback):
702         (LayoutTestController::staticFunctions):
703         * DumpRenderTree/LayoutTestController.h:
704         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
705         (LayoutTestController::numberOfActiveAnimations):
706         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
707         (LayoutTestController::numberOfActiveAnimations):
708
709 2009-01-04  David Kilzer  <ddkilzer@apple.com>
710
711         Don't install internal headers in WebKit framework
712
713         Reviewed by Darin Adler.
714
715         Since WebHTMLRepresentationInternal.h and WebTypesInternal.h are
716         no longer installed in WebKit.framework/PrivateHeaders, use the
717         special relationship of DumpRenderTree within the WebKit source
718         tree to include the internal headers through relative paths.
719         Created the concept of mac/InternalHeaders to hide the ugly
720         paths.
721
722         * DumpRenderTree/mac/Configurations/Base.xcconfig: Added
723         mac/InternalHeaders to HEADER_SEARCH_PATHS.
724         * DumpRenderTree/mac/InternalHeaders/WebKit/WebHTMLRepresentationInternal.h: Added.
725         * DumpRenderTree/mac/InternalHeaders/WebKit/WebTypesInternal.h: Added.
726
727 2009-01-02  Adam Treat  <treat@kde.org>
728
729         Reviewed by George Staikos.
730
731         Add support for fixedLayoutSize to the qt DRT
732
733         * DumpRenderTree/qt/jsobjects.cpp:
734         (LayoutTestController::setFixedLayoutSize):
735         (LayoutTestController::setUseFixedLayout):
736         * DumpRenderTree/qt/jsobjects.h:
737
738 2009-01-03  David D. Kilzer  <ddkilzer@webkit.org>
739
740         Bug 23091: Some webarchive http tests intermittently fail due to Connection/Keep-Alive header differences
741
742         <https://bugs.webkit.org/show_bug.cgi?id=23091>
743
744         Reviewed by Darin Adler.
745
746         * DumpRenderTree/mac/DumpRenderTree.mm:
747         (normalizeHTTPResponseHeaderFields): Remove Keep-Alive and
748         Connection headers from webarchive results.
749
750 2008-12-31  Zan Dobersek  <zandobersek@gmail.com>
751
752         Reviewed by Holger Freyther.
753
754         https://bugs.webkit.org/show_bug.cgi?id=22812
755
756         Prevent TestNetscapePlugin from installing system-wide.
757
758         * GNUmakefile.am:
759
760 2008-12-31  Zan Dobersek  <zandobersek@gmail.com>
761
762         Reviewed by Holger Freyther.
763
764         https://bugs.webkit.org/show_bug.cgi?id=22842
765
766         Move WebKitWebView's size allocation into a proper place.
767
768         * DumpRenderTree/gtk/DumpRenderTree.cpp:
769         (dump):
770         (runTest):
771
772 2008-12-24  Mark Rowe  <mrowe@apple.com>
773
774         Reviewed by Timothy Hatcher.
775
776         Move the guts of determineCurrentSVNRevision to VCSUtils as svnRevisionForDirectory,
777         and make it work for git too.
778
779         * Scripts/VCSUtils.pm:
780         * Scripts/webkitdirs.pm:
781
782 2008-12-22  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
783
784         Reviewed by George Staikos.
785
786         Ignore http/tests/wml, if no WML support is present.
787         Add http/tests/wml to list of HTTP tests, allowed to access local resources.
788
789         * Scripts/run-webkit-tests:
790
791 2008-12-19  David Levin  <levin@chromium.org>
792
793         Reviewed by Mark Rowe.
794
795         https://bugs.webkit.org/show_bug.cgi?id=22930
796
797         Make the git diff command used for preparing the change log avoid using any external diff tools.
798
799         * Scripts/prepare-ChangeLog:
800
801 2008-12-19  Gustavo Noronha Silva  <gns@gnome.org>
802
803         Reviewed by Holger Freyther.
804
805         https://bugs.webkit.org/show_bug.cgi?id=22686
806
807         Added files which were missing from the TestNetscapePlugin
808         directory to the SOURCES variable, so that they will be
809         distributed in a make dist.
810
811         * GNUMakefile.am:
812
813 2008-12-18  Cameron Zwarich  <zwarich@apple.com>
814
815         Reviewed by Geoff Garen.
816
817         Add tests for bug 21855: REGRESSION (r37323): Gmail complains about popup blocking when opening a link
818         <https://bugs.webkit.org/show_bug.cgi?id=21855>
819         <rdar://problem/6278244>
820
821         Add support for scheduling asynchronous clicks to DumpRenderTree, but
822         only on the Mac.
823
824         * DumpRenderTree/mac/EventSendingController.h:
825         * DumpRenderTree/mac/EventSendingController.mm:
826         (+[EventSendingController isSelectorExcludedFromWebScript:]): Expose
827         scheduleAsynchronousClick to JavaScript.
828         (-[EventSendingController scheduleAsynchronousClick]): Add.
829
830 2008-12-15  Darin Adler  <darin@apple.com>
831
832         * Scripts/make-js-test-wrappers: Added another exception to avoid overwriting
833         a custom-written test.
834
835 2008-12-15  Simon Hausmann  <hausmann@webkit.org>
836
837         Reviewed by Holger Freyther.
838
839         Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
840
841         * DumpRenderTree/qt/jsobjects.cpp:
842         (LayoutTestController::setJavaScriptProfilingEnabled):
843         * DumpRenderTree/qt/jsobjects.h:
844
845 2008-12-13  Zan Dobersek  <zandobersek@gmail.com>
846
847         Reviewed by Darin Adler.
848
849         https://bugs.webkit.org/show_bug.cgi?id=22039
850
851         Implement animation and transition pausing.
852
853         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
854         (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
855         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
856
857 2008-12-12  Brent Fulgham  <bfulgham@gmail.com>
858
859         Reviewed by Adam Roben.
860
861         https://bugs.webkit.org/show_bug.cgi?id=22809
862
863         Increase timeout in call to initWithURL so that people actually see
864         new web pages when they type URLs rather than a blank screen.
865
866         * WinLauncher/WinLauncher.cpp:
867         (loadURL):  Increase timeout in initWithURL from 0 to 60 seconds.
868
869 2008-12-12  Darin Adler  <darin@apple.com>
870
871         * Scripts/do-webcore-rename: Add a renaming idea.
872
873 2008-12-12  Holger Hans Peter Freyther  <zecke@selfish.org>
874
875         Reviewed by Simon Hausmann.
876
877         Update the WebKit.qrc and add a script to automatically generate the file.
878
879         With the way rcc and qmake work this can not be done at build time
880         as the WebKit.qrc must sit inside the directory that contains the files
881         and at build time we may not change the content of the source directory.
882
883         * Scripts/generate-qt-inspector-resource: Added.
884
885 2008-12-11  Cameron Zwarich  <zwarich@apple.com>
886
887         Rubber-stamped by Mark Rowe.
888
889         Roll out r39212 due to assertion failures during layout tests, multiple
890         layout test failures, memory leaks, and obvious incorrectness.
891
892         * DumpRenderTree/LayoutTestController.cpp:
893         (LayoutTestController::staticFunctions):
894         * DumpRenderTree/LayoutTestController.h:
895         * DumpRenderTree/mac/DumpRenderTree.mm:
896         (resetWebViewToConsistentStateBeforeTesting):
897         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
898         * DumpRenderTree/win/DumpRenderTree.cpp:
899         (resetWebViewToConsistentStateBeforeTesting):
900         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
901         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
902
903 2008-12-10  Glenn Wilson  <gwilson@google.com>
904
905         Reviewed by Adam Roben.
906
907         Changed LayoutTestController and DumpRenderTree to allow for manual
908         overriding of default preferences at test time.  Also added support for
909         resetting the preferences after each test.
910         https://bugs.webkit.org/show_bug.cgi?id=20534
911
912         * DumpRenderTree/LayoutTestController.cpp: Added callback method for overriding preferences
913         * DumpRenderTree/LayoutTestController.h: Added signature for callback
914         * DumpRenderTree/win/DumpRenderTree.cpp: Added calls to reset preferences after each test if necessary
915         * DumpRenderTree/win/LayoutTestControllerWin.cpp: Added JS override function
916         * DumpRenderTree/mac/DumpRenderTree.mm: Added calls to reset preferences after each test if necessary
917         * DumpRenderTree/mac/LayoutTestControllerMac.mm: Added JS override function
918
919 2008-12-10  Brady Eidson  <beidson@apple.com>
920
921         Reviewed by Darin Adler.
922
923         Implement the new policy delegate (including navigation type and permissive mode) for DRT/win
924
925         * DumpRenderTree/win/DumpRenderTree.cpp:
926         * DumpRenderTree/win/DumpRenderTreeWin.h:
927
928         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
929         (LayoutTestController::setCustomPolicyDelegate):
930
931         * DumpRenderTree/win/PolicyDelegate.cpp:
932         (PolicyDelegate::PolicyDelegate):
933         (PolicyDelegate::decidePolicyForNavigationAction):
934         * DumpRenderTree/win/PolicyDelegate.h:
935         (PolicyDelegate::setPermissive):
936
937 2008-12-10  Brady Eidson  <beidson@apple.com>
938
939         Reviewed by Darin
940
941         Change the custom policy delegate to actually allow navigation for tests that need it.
942         The new behavior is opt-in and doesn't require any changes in old tests.
943
944         * DumpRenderTree/LayoutTestController.cpp:
945         (setCustomPolicyDelegateCallback):  Allow for a second boolean argument to set the permissive flag on the custom
946           policy delegate, which will be false by default to maintain original behavior.
947         * DumpRenderTree/LayoutTestController.h:
948         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
949         (LayoutTestController::setCustomPolicyDelegate):
950
951         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
952         (LayoutTestController::setCustomPolicyDelegate):  Partially stubbed out for now.
953         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
954         (LayoutTestController::setCustomPolicyDelegate):  Still stubbed out, but with new param.
955
956         * DumpRenderTree/mac/PolicyDelegate.h:
957         * DumpRenderTree/mac/PolicyDelegate.mm:
958         (-[PolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):  If the permissive flag
959           is set, allow the navigation.
960         (-[PolicyDelegate setPermissive:]):  Change the behavior between "use" and "ignore" - allowing navigation or not.
961
962 2008-12-09  Mark Rowe  <mrowe@apple.com>
963
964         Rubber-stamped by Ada Chan.
965
966         Fix gdb-safari on Tiger.
967
968         gdb on Tiger does not take the -arch flag, so do not pass it.
969
970         * Scripts/gdb-safari:
971
972 2008-12-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
973
974         Reviewed by Alexey Proskuryakov.
975
976         Ignore WML tests, if no WML support available.
977
978         * Scripts/run-webkit-tests:
979
980 2008-12-08  Geoffrey Garen  <ggaren@apple.com>
981
982         Reviewed by Oliver Hunt.
983
984         Added a shortcut for --jsDriver-args, which I use a lot.
985
986         * Scripts/run-javascriptcore-tests:
987
988 2008-12-08  Stephanie Lewis  <slewis@apple.com>
989
990         Fix Tiger build.
991
992         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
993
994 2008-12-08  Darin Adler  <darin@apple.com>
995
996         Reviewed by John Sullivan.
997
998         - test machinery for https://bugs.webkit.org/show_bug.cgi?id=22409
999           REGRESSION: cmd-shift-left/right don't switch tabs, instead select text
1000
1001         * DumpRenderTree/LayoutTestController.cpp:
1002         (isCommandEnabledCallback): Added.
1003         (LayoutTestController::staticFunctions): Added "isCommandEnabled".
1004         * DumpRenderTree/LayoutTestController.h: Ditto.
1005         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1006         (LayoutTestController::isCommandEnabled): Ditto.
1007         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1008         (-[CommandValidationTarget initWithAction:]): Added. Used to get the
1009         command validation system to tell us if a comment is enabled.
1010         (-[CommandValidationTarget action]): Ditto.
1011         (-[CommandValidationTarget tag]): Ditto.
1012         (LayoutTestController::isCommandEnabled): Ditto.
1013         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1014         (LayoutTestController::isCommandEnabled): Ditto.
1015
1016 2008-12-08  David Kilzer  <ddkilzer@apple.com>
1017
1018         Bug 22555: Sort "children" sections in Xcode project files
1019
1020         <https://bugs.webkit.org/show_bug.cgi?id=22555>
1021
1022         Reviewed by Eric Seidel.
1023
1024         * DrawTest/DrawTest.xcodeproj/project.pbxproj: Sorted.
1025         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Sorted.
1026         * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj: Sorted.
1027
1028 2008-12-08  David Kilzer  <ddkilzer@apple.com>
1029
1030         Bug 22555: Sort "children" sections in Xcode project files
1031
1032         <https://bugs.webkit.org/show_bug.cgi?id=22555>
1033
1034         Reviewed by Timothy Hatcher.
1035
1036         * Scripts/sort-Xcode-project-file: By popular request, don't sort
1037         the mainGroup in the project (the list of items below the top-level
1038         project file).
1039
1040 2008-12-05  David Kilzer  <ddkilzer@apple.com>
1041
1042         Bug 22555: Sort "children" sections in Xcode project files
1043
1044         <https://bugs.webkit.org/show_bug.cgi?id=22555>
1045
1046         Reviewed by Darin Adler.
1047
1048         Sort "children" sections alphabetically, moving groups (folders) to
1049         the top of each of the lists.  Files are assumed to have extensions,
1050         so %isFile is used to override this behavior.
1051
1052         * Scripts/sort-Xcode-project-file:
1053         (sortChildrenByFileName): Added.
1054         (sortFilesByFileName): Renamed from sortByFileName().
1055
1056 2008-12-05  Eric Seidel  <eric@webkit.org>
1057
1058         Reviewed by Geoff Garen.
1059
1060         https://bugs.webkit.org/show_bug.cgi?id=22683
1061         Fix gtk and qt builds which depend on --qt and --gtk being removed from ARGV
1062         Add a new argumentsForConfiguration() function and clean up some old code to use it.
1063         Rename checkArgV to checkForArgumentAndRemoveFromARGV to be more self-documenting.
1064
1065         * Scripts/run-javascriptcore-tests:
1066         * Scripts/run-launcher:
1067         * Scripts/run-webkit-tests:
1068         * Scripts/webkitdirs.pm:
1069
1070 2008-12-03  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1071
1072         Reviewed by Cameron Zwarich.
1073
1074         Further preparations for WML layout tests.
1075         Ignore WMLTestCase.js, that's going to be in trunk soon.
1076
1077         * Scripts/make-js-test-wrappers:
1078
1079 2008-12-03  Eric Seidel  <eric@webkit.org>
1080
1081         Build fix for --gtk and --chromium, no review.
1082
1083         Fix run-javascriptcore-tests to pass --gtk, --qt, --chromium, etc.
1084         through to build-jsc.
1085
1086         * Scripts/build-jsc:
1087         * Scripts/webkitdirs.pm:
1088
1089 2008-12-03  Eric Seidel  <eric@webkit.org>
1090
1091         Build fix only, no review.
1092
1093         Remove support for build-webkit --svg-experimental.
1094         All of the "experimental" svg features have their own toggles anyway.
1095         I broke --svg-experimental in my last commit (which then broke clean builds)
1096         I can't find any use of --svg-experimental in our source tree, so removing it.
1097
1098         * Scripts/build-webkit:
1099
1100 2008-12-02  Eric Seidel  <eric@webkit.org>
1101
1102         Reviewed by David Hyatt (and Mark Rowe).
1103
1104         Move --coverage support from build-webkit to webkitdirs.pm to share it with build-jsc
1105         Move --coverage support out of run-javascriptcore-tests and into build-jsc
1106
1107         Finally add a buildXCodeProject function to webkitdirs.pm and move --clean support
1108         there from build-webkit (to allow future sharing with other build-* scripts)
1109
1110         Change run-javascriptcore-tests to expect a --jsDriver-args= argument instead of
1111         picking through ARGV with a blacklist of what arguments weren't jsDriver args
1112         this makes run-javascriptcore-tests transparently support all arguments which
1113         webkitdirs.pm gives it support for.
1114
1115         Make run-javascriptcore-tests actually print what commands it's running before running them.
1116
1117         Add --help support to build-jsc and run-javascriptcore-tests!
1118
1119         Make code to support --svg-experimental defaults take up half as many lines.
1120
1121         * Scripts/build-jsc:
1122         * Scripts/build-webkit:
1123         * Scripts/run-javascriptcore-tests:
1124         * Scripts/webkitdirs.pm:
1125
1126 2008-12-03  Adam Roben  <aroben@apple.com>
1127
1128         Fix a leak in WinLauncher shutdown
1129
1130         Reviewed by Sam Weinig.
1131
1132         * WinLauncher/WinLauncher.cpp:
1133         (_tWinMain): Replaced a delete with a Release. We can't delete the
1134         WebView properly since we only have a pointer to one of its
1135         interfaces. We also shouldn't be deleting COM objects directly anyway,
1136         for a number of reasons.
1137
1138 2008-12-03  Adam Roben  <aroben@apple.com>
1139
1140         Fix a crash on exit in WinLauncher
1141
1142         Reviewed by Sam Weinig.
1143
1144         * WinLauncher/WinLauncher.cpp:
1145         (_tWinMain): Call shutDownWebKit before exiting.
1146
1147 2008-12-03  Adam Roben  <aroben@apple.com>
1148
1149         Add a Debug_Internal configuration to WinLauncher
1150
1151         This matches our other projects.
1152
1153         Reviewed by Sam Weinig.
1154
1155         * WinLauncher/WinLauncher.vcproj: Added a Debug_Internal
1156         configuration, which is identical to Debug except that it also
1157         references debug_internal.vsprops. Also removed some settings that we
1158         should be picking up from the .vsprops files.
1159
1160 2008-12-02  Eric Seidel  <eric@webkit.org>
1161
1162         Reviewed by David Kilzer.
1163
1164         Hack build-webkit --chromium to use Win32 python instead
1165         of using the default cygwin python.  Scons + CYGWIN tries
1166         to build with GCC by default, we force MSVC in our file
1167         but that just results in errors from Scons.  Until we can fix
1168         this latest round of errors, at least make build-webkit --chromium
1169         actually "work" under CYGWIN instead of forcing users to use
1170         a cmd shell directly.
1171
1172         This is working around a Scons bug:
1173         http://scons.tigris.org/issues/show_bug.cgi?id=2266
1174
1175         * Scripts/webkitdirs.pm:
1176
1177 2008-12-01  David Kilzer  <ddkilzer@apple.com>
1178
1179         Bug 22466: REGRESSION (35867): Many resources missing when saving webarchive of webkit.org
1180
1181         <https://bugs.webkit.org/show_bug.cgi?id=22466>
1182         <rdar://problem/6403593>
1183
1184         Reviewed by Brady Eidson.
1185
1186         * DumpRenderTree/mac/DumpRenderTree.mm:
1187         (normalizeHTTPResponseHeaderFields): Added.  Normalizes Date, Etag,
1188         Keep-Alive, Last-Modified and Server header fields to prevent false
1189         positive test failures.
1190         (convertWebResourceResponseToDictionary): Call
1191         normalizeHTTPResponseHeaderFields() to noramlize HTTP response
1192         header fields.
1193
1194 2008-12-01  David D. Kilzer  <ddkilzer@webkit.org>
1195
1196         Bug 22559: Report builds left to test in bisect-builds (like git-bisect)
1197
1198         <https://bugs.webkit.org/show_bug.cgi?id=22559>
1199
1200         Reviewed by Adam Roben.
1201
1202         * Scripts/bisect-builds: Updated status message to report the
1203         maximum number of builds left to test after the current one.
1204         (max): Added.
1205
1206 2008-11-27  Alp Toker  <alp@nuanti.com>
1207
1208         Build GtkLauncher and minidom with the '-ansi' compiler flag to detect
1209         API header breakage at build time.
1210
1211         * GNUmakefile.am:
1212
1213 2008-11-26  Eric Seidel  <eric@webkit.org>
1214
1215         Reviewed by Nikolas Zimmermann and Mark Rowe.
1216
1217         Add support for build-webkit --chromium
1218         https://bugs.webkit.org/show_bug.cgi?id=22515
1219         More cleanups changing isCygwin calls to isAppleWinWebKit and deploying isAppleWebKit where necessary.
1220
1221         * Scripts/build-dumprendertree:
1222         * Scripts/build-jsc:
1223         * Scripts/build-webkit:
1224         * Scripts/gdb-safari:
1225         * Scripts/run-webkit-tests:
1226         * Scripts/webkitdirs.pm:
1227
1228 2008-11-26  Eric Seidel  <eric@webkit.org>
1229
1230         Reviewed by Nikolas Zimmermann.
1231
1232         Add support for build-webkit --chromium (tested on mac)
1233         https://bugs.webkit.org/show_bug.cgi?id=22515
1234         Also simplified some code using checkArgv
1235
1236         * Scripts/build-webkit:
1237         * Scripts/webkitdirs.pm:
1238
1239 2008-11-26  Eric Seidel  <eric@webkit.org>
1240
1241         Reviewed by Nikolas Zimmermann.
1242
1243         More pre-work for adding a build-webkit --chromium which works on Mac and Windows
1244         https://bugs.webkit.org/show_bug.cgi?id=22515
1245         Change a few calls to isCygwin to isAppleWinWebKit and a few calls to isAppleMacWebKit to isDarwin
1246         in preparation for having a chromium cygwin and chromium mac build
1247
1248         * Scripts/build-webkit:
1249         * Scripts/webkitdirs.pm:
1250
1251 2008-11-26  Eric Seidel  <eric@webkit.org>
1252
1253         Reviewed by Nikolas Zimmermann.
1254
1255         Pre-work for getting build-webkit --chromium to work
1256         https://bugs.webkit.org/show_bug.cgi?id=22515
1257         Rename isOSX to isAppleMacWebKit to match what the code does, and add isChromium()
1258
1259         * Scripts/build-dumprendertree:
1260         * Scripts/build-jsc:
1261         * Scripts/build-webkit:
1262         * Scripts/gdb-safari:
1263         * Scripts/run-javascriptcore-tests:
1264         * Scripts/run-webkit-tests:
1265         * Scripts/webkitdirs.pm:
1266
1267 2008-11-26  David Kilzer  <ddkilzer@apple.com>
1268
1269         Bug 22488: Make DRT smarter about charset encoding when post-processing webarchive content
1270
1271         <https://bugs.webkit.org/show_bug.cgi?id=22488>
1272
1273         Reviewed by Brady Eidson.
1274
1275         * DumpRenderTree/mac/DumpRenderTree.mm:
1276         (convertWebResourceDataToString): If an IANA charset encoding string
1277         is provided, convert it to a CFStringEncoding value and then to an
1278         NSStringEncoding value, else fall back to NSUTF8StringEncoding.  We
1279         also nil-check dataAsString, so the worst-case scenario is that the
1280         data won't be decoded to a string (versus crashing DumpRenderTree).
1281
1282 2008-11-26  Jan Michael Alonzo  <jmalonzo@webkit.org>
1283
1284         Reviewed by Holger Freyther.
1285
1286         [Gtk] add/remove tests from Skipped and fix netscape plugin test
1287         https://bugs.webkit.org/show_bug.cgi?id=22484
1288
1289         Remove print'ing to stderr
1290
1291         * DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:
1292         (NP_Initialize):
1293         (NP_Shutdown):
1294
1295 2008-11-25  Steve Falkenburg  <sfalken@apple.com>
1296
1297         Windows build fix.
1298
1299         * DumpRenderTree/cg/PixelDumpSupportCG.h:
1300
1301 2008-11-25  Steve Falkenburg  <sfalken@apple.com>
1302
1303         Windows build fix.
1304
1305         * DumpRenderTree/cg/ImageDiffCG.cpp:
1306
1307 2008-11-24  Darin Fisher  <darin@chromium.org>
1308
1309         Fix bustage.
1310
1311         https://bugs.webkit.org/show_bug.cgi?id=15643
1312
1313         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1314         (LayoutTestController::setSelectTrailingWhitespaceEnabled):
1315
1316 2008-11-24  Glenn Wilson  <gwilson@chromium.org>
1317
1318         Reviewed by Alexey Proskuryakov.
1319
1320         http://bugs.webkit.org/show_bug.cgi?id=15643
1321
1322         Added support for changing the "trailing whitespace" work-around
1323         in LayoutTestController (so layout tests can verify this functionality)
1324
1325         * DumpRenderTree/LayoutTestController.cpp:
1326         (setSelectTrailingWhitespaceEnabledCallback):
1327         (LayoutTestController::staticFunctions):
1328         * DumpRenderTree/LayoutTestController.h:
1329         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1330         (LayoutTestController::setSelectTrailingWhitespaceEnabled):
1331         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1332         (LayoutTestController::setSelectTrailingWhitespaceEnabled):
1333
1334 2008-11-24  Simon Fraser  <simon.fraser@apple.com>
1335
1336         Reviewed by Darin Adler
1337
1338         https://bugs.webkit.org/show_bug.cgi?id=22433
1339
1340         Add script that attempts to detect virtual methods
1341         whose signatures differ only by constness (which can
1342         indicate a programming error).
1343
1344         * Scripts/detect-mismatched-virtual-const: Added.
1345
1346 2008-11-24  Zan Dobersek  <zandobersek@gmail.com>
1347
1348         Reviewed by Holger Freyther.
1349
1350         https://bugs.webkit.org/show_bug.cgi?id=22039
1351
1352         [Gtk+] Implement TestNetscapePlugin for Gtk+ port and add it to the
1353         build.
1354
1355         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
1356         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp:
1357         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1358         (setDefaultsToConsistentStateValuesForTesting):
1359         * DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h: Added.
1360         * DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h: Added.
1361         * DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h: Added.
1362         * GNUmakefile.am:
1363
1364 2008-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
1365
1366         Reviewed by Mark Rowe.
1367
1368         [Gtk+] Add configure option to enable Web Workers and enable it by default
1369
1370         Add --enable-workers to the buildsystem (used by build-webkit) add
1371         the to be build files to the GNUmakefile.am and change build-webkit
1372         to enable Web Workers by default.
1373
1374         * Scripts/build-webkit:
1375
1376 2008-11-24  Mark Rowe  <mrowe@apple.com>
1377
1378         Reviewed by Alexey Proskuryakov.
1379
1380         Let gdb-safari accept the --debug and --release options once more.
1381
1382         * Scripts/gdb-safari:
1383
1384 2008-11-23  Zan Dobersek  <zandobersek@gmail.com>
1385
1386         Reviewed by Holger Freyther. Landed by Jan Alonzo.
1387
1388         Get SVG tests tested on GTK port.
1389
1390         * Scripts/webkitdirs.pm:
1391
1392 2008-11-19  Greg Bolsinga  <bolsinga@apple.com>
1393
1394         Reviewed by Darin Adler.
1395
1396         https://bugs.webkit.org/show_bug.cgi?id=21810
1397         Remove use of static C++ objects that are destroyed at exit time (destructors)
1398
1399         All static C++ objects that create atexit calls are gone. Update script
1400         to indicate how to fix the problem should a new one appear.
1401
1402         * Scripts/check-for-exit-time-destructors:
1403
1404 2008-11-18  Alexey Proskuryakov  <ap@webkit.org>
1405
1406         Reviewed by Darin Adler.
1407
1408         https://bugs.webkit.org/show_bug.cgi?id=22337
1409         Enable workers by default
1410
1411         * Scripts/build-webkit: Changed the default to enabled.
1412
1413 2008-11-18  Alexey Proskuryakov  <ap@webkit.org>
1414
1415         Rubber-stamped by Darin Adler.
1416
1417         https://bugs.webkit.org/show_bug.cgi?id=22306
1418         Disable channel messaging support
1419
1420         * Scripts/build-webkit: Add an option to enable channel messaging.
1421
1422 2008-11-17  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1423
1424         Reviewed by George Staikos.
1425
1426         Add --(no-)wml build flags.
1427
1428         * Scripts/build-webkit:
1429         * Scripts/run-webkit-tests:
1430         * Scripts/webkitdirs.pm:
1431
1432 2008-11-17  Geoffrey Garen  <ggaren@apple.com>
1433
1434         Not reviewed.
1435
1436         Try to fix gtk build.
1437
1438         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1439         (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
1440         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
1441
1442 2008-11-17  Pierre-Olivier Latour  <pol@apple.com>
1443
1444         Reviewed by Maciej.
1445
1446         Pixel tests should use a default tolerance of 0.1% on Leopard and 1.0%
1447         on Tiger.
1448
1449         https://bugs.webkit.org/show_bug.cgi?id=22271
1450
1451         * Scripts/run-webkit-tests:
1452
1453 2008-11-17  Pierre-Olivier Latour  <pol@apple.com>
1454
1455         Reviewed by Sam Weinig.
1456
1457         Added new JavaScript API on LayoutController to pause a running
1458         CSS transition or animation at a given time.
1459
1460         https://bugs.webkit.org/show_bug.cgi?id=21261
1461
1462         * DumpRenderTree/LayoutTestController.cpp:
1463         (pauseAnimationAtTimeOnElementWithIdCallback):
1464         (pauseTransitionAtTimeOnElementWithIdCallback):
1465         (LayoutTestController::staticFunctions):
1466         * DumpRenderTree/LayoutTestController.h:
1467         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1468         (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
1469         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
1470         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1471         (LayoutTestController::pauseAnimationAtTimeOnElementWithId):
1472         (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
1473
1474 2008-11-17  Gabor Loki  <loki@inf.u-szeged.hu>
1475
1476         Reviewed by Darin Adler.
1477
1478         <https://bugs.webkit.org/show_bug.cgi?id=22309>
1479         Pass the remaining options to build system on Qt-port
1480
1481         * Scripts/build-webkit:
1482         * Scripts/webkitdirs.pm:
1483
1484 2008-11-16  Greg Bolsinga  <bolsinga@apple.com>
1485
1486         Reviewed by Darin Adler.
1487
1488         https://bugs.webkit.org/show_bug.cgi?id=21810
1489         Remove use of static C++ objects that are destroyed at exit time (destructors)
1490
1491         Remove .o files from the exclude list that have had their exit-time destructors removed.
1492         Handle case when there is no current symbol.
1493
1494         * Scripts/check-for-exit-time-destructors:
1495
1496 2008-11-16  Sam Weinig  <sam@webkit.org>
1497
1498         * Scripts/do-webcore-rename: Remove now fixed renames.
1499
1500 2008-11-16  Darin Adler  <darin@apple.com>
1501
1502         * Scripts/do-webcore-rename: Plan some future renames.
1503
1504 2008-11-15  Darin Adler  <darin@apple.com>
1505
1506         Rubber stamped by Geoff Garen.
1507
1508         - do the long-planned StructureID -> Structure rename
1509
1510         * Scripts/check-for-global-initializers: Update name of StructureID.o.
1511         * Scripts/do-webcore-rename: Renaming script that I used.
1512
1513 2008-11-15  Greg Bolsinga  <bolsinga@apple.com>
1514
1515         Reviewed by Darin Adler.
1516
1517         https://bugs.webkit.org/show_bug.cgi?id=21810
1518         Remove use of static C++ objects that are destroyed at exit time (destructors)
1519
1520         Create DEFINE_STATIC_LOCAL macro. Change static local objects to leak to avoid
1521         exit-time destructor. Update code that was changed to fix this issue that ran
1522         into a gcc bug (<rdar://problem/6354696> Codegen issue with C++ static reference
1523         in gcc build 5465). Also typdefs for template types needed to be added in some
1524         cases so the type could make it through the macro successfully.
1525
1526         Basically code of the form:
1527         static T m;
1528         becomes:
1529         DEFINE_STATIC_LOCAL(T, m, ());
1530
1531         Also any code of the form:
1532         static T& m = *new T;
1533         also becomes:
1534         DEFINE_STATIC_LOCAL(T, m, ());
1535
1536         Remove .o files from the exclude list that have had their exit-time destructors removed.
1537
1538         * Scripts/check-for-exit-time-destructors:
1539
1540 2008-11-14  Kevin Ollivier  <kevino@theolliviers.com>
1541
1542         wx mac buildbot fix. Also, make sure we don't keep hitting this problem.
1543
1544         * wx/install-unix-extras:
1545
1546 2008-11-14  Alp Toker  <alp@nuanti.com>
1547
1548         GTK DRT build fix for gcc 4.4 snapshot. Add missing stdio include.
1549
1550         Fixes Debian bug #505723
1551         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505723
1552
1553         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1554
1555 2008-11-14  Krishna <krishnamurty.podipireddy@nokia.com>
1556
1557         Reviewed by Simon Hausmann.
1558
1559         Fix hanging DRT with Qt.
1560
1561         https://bugs.webkit.org/show_bug.cgi?id=22209
1562
1563         * DumpRenderTree/qt/DumpRenderTree.cpp:
1564         (WebCore::DumpRenderTree::dump):
1565         Send empty pixel test data 'block', which is now
1566         expected by run-layout-tests.
1567
1568 2008-11-12  Dmitry Titov  <dimich@chromium.org>
1569
1570         Reviewed by Alexey Proskuryakov.
1571
1572         https://bugs.webkit.org/show_bug.cgi?id=22216
1573
1574         * Scripts/build-webkit:
1575         Addes ENABLE_WORKERS to build-webkit so it's possible to build with workers enabled.
1576
1577 2008-11-06  David Kilzer  <ddkilzer@apple.com>
1578
1579         BUILD FIX: Backed out r38189 (and r38203) for Xcode 3.0.
1580
1581         Apparently older versions of gcc have issues with this patch.
1582         Backing out a second time until the issues are resolved.
1583
1584 2008-11-06  David Kilzer  <ddkilzer@apple.com>
1585
1586         BUILD WAS NOT BROKEN: Rolling r38189 back in.
1587
1588         Please perform a clean build if you see crashes.
1589
1590 2008-11-06  David Kilzer  <ddkilzer@apple.com>
1591
1592         BUILD FIX: Backed out r38189 since it apparently broke the world.
1593
1594 2008-11-06  Chris Fleizach  <cfleizach@apple.com>
1595
1596         Reviewed by Beth Dakin.
1597
1598         Add ability to query an attribute's settable status and the
1599         ability to retrieve a single attribute from an AXObject
1600
1601         * DumpRenderTree/AccessibilityUIElement.cpp:
1602         (isAttributeSettableCallback):
1603         (attributeValueCallback):
1604         (AccessibilityUIElement::getJSClass):
1605         * DumpRenderTree/AccessibilityUIElement.h:
1606         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
1607         (+[NSString stringWithJSStringRef:]):
1608         (AccessibilityUIElement::attributeValue):
1609         (AccessibilityUIElement::isAttributeSettable):
1610         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
1611         (AccessibilityUIElement::attributeValue):
1612         (AccessibilityUIElement::isAttributeSettable):
1613
1614 2008-11-06  Greg Bolsinga  <bolsinga@apple.com>
1615
1616         Reviewed by Darin Adler.
1617
1618         Bug 21810: Remove use of static C++ objects that are destroyed at exit time (destructors)
1619         https://bugs.webkit.org/show_bug.cgi?id=21810
1620
1621         Remove .o files from the exclude list that have had their exit-time destructors removed.
1622
1623         * Scripts/check-for-exit-time-destructors:
1624
1625 2008-11-05  Alp Toker  <alp@nuanti.com>
1626
1627         GTK build script tweak.
1628
1629         Make the path relative since it will appear in all -I compiler flags.
1630         Long argument lists cause bizarre slowdowns in libtool and result
1631         in huge build logs.
1632
1633         * Scripts/webkitdirs.pm:
1634
1635 2008-11-05  Anders Carlsson  <andersca@apple.com>
1636
1637         Fix 64-bit build.
1638
1639         * DumpRenderTree/mac/DumpRenderTree.mm:
1640         (setDefaultsToConsistentValuesForTesting):
1641
1642 2008-11-04  Simon Fraser  <simon.fraser@apple.com>
1643
1644         Add AccessibilityObject.o to the exclude list for the
1645         check for global destructors.
1646
1647         * Scripts/check-for-exit-time-destructors:
1648
1649 2008-11-04  Darin Adler  <darin@apple.com>
1650
1651         * Scripts/check-for-exit-time-destructors: Fix failures seen on the
1652         bot, but for some reason not on my computer.
1653
1654 2008-11-03  Darin Adler  <darin@apple.com>
1655
1656         Reviewed by Tim Hatcher.
1657
1658         - https://bugs.webkit.org/show_bug.cgi?id=22061
1659           create script to check for exit-time destructors
1660
1661         * Scripts/check-for-exit-time-destructors: Added.
1662         Started as a copy of check-for-global-initializers.
1663
1664         * Scripts/check-for-global-initializers: Added code to make
1665         this script rerun any time it's modified, and also to properly
1666         run again after the first time it reports an error.
1667
1668 2008-11-03  Pierre-Olivier Latour  <pol@apple.com>
1669
1670         Reviewed by Dan Bernstein.
1671
1672         Fixed the override of the "AppleScrollBarVariant" system setting to also work with HIToolbox.
1673
1674         https://bugs.webkit.org/show_bug.cgi?id=22054
1675
1676         * DumpRenderTree/mac/DumpRenderTree.mm:
1677         (setDefaultsToConsistentValuesForTesting):
1678
1679 2008-10-31  Cameron Zwarich  <zwarich@apple.com>
1680
1681         Not reviewed.
1682
1683         * Scripts/do-webcore-rename:
1684
1685         Add some renames to contemplate for the future.
1686
1687 2008-10-31  Darin Adler  <darin@apple.com>
1688
1689         Requested by Mark Rowe.
1690
1691         * Scripts/check-for-global-initializers: s/Web Kit/WebKit/.
1692
1693 2008-10-31  David Kilzer  <ddkilzer@apple.com>
1694
1695         Bug 21997: prepare-ChangeLog should filter out ChangeLog files
1696
1697         <https://bugs.webkit.org/show_bug.cgi?id=21997>
1698
1699         Reviewed by Darin Adler.
1700
1701         * Scripts/prepare-ChangeLog:
1702         (generateFileList): Don't add ChangeLog files to %{$functionLists}.
1703         This prevents them from showing up in the new ChangeLog entry.  They
1704         were already excluded from @{$changedFiles}.
1705
1706 2008-10-30  Mark Rowe  <mrowe@apple.com>
1707
1708         Reviewed by Jon Homeycutt.
1709
1710         Explicitly default to building for only the native architecture in debug and release builds.
1711
1712         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
1713
1714 2008-10-30  Pierre-Olivier Latour  <pol@apple.com>
1715
1716         Reviewed by Dan Bernstein.
1717
1718         Fixed 64 bit build failure.
1719
1720         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
1721         (setupMainDisplayColorProfile):
1722         (createBitmapContextFromWebView):
1723
1724 2008-10-28  Alp Toker  <alp@nuanti.com>
1725
1726         Fix GTK DRT following build breakage in r37928.
1727
1728         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1729         (dump):
1730         (runTest):
1731         (main):
1732
1733 2008-10-28  Alp Toker  <alp@nuanti.com>
1734
1735         Reviewed by Mark Rowe.
1736
1737         Fix recently introduced double-free crashes in GTK DRT.
1738
1739         LayoutTestController was made ref-counted in r36606 and Mac/Win DRT
1740         were updated to call ->deref() but GTK DRT was still deleting
1741         gLayoutTestController manually. This patch updates GTK to match the
1742         other ports and resolves the memory allocation issues.
1743
1744         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1745         (runTest):
1746
1747 2008-10-28  Alp Toker  <alp@nuanti.com>
1748
1749         Reviewed by Mark Rowe.
1750
1751         Fix GTK DRT hang when running the tests.
1752
1753         Update output from the DRT tool to print an additional '#EOF' to match
1754         breaking changes that were made in r37434.
1755
1756         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1757         (dump):
1758
1759 2008-10-28  Adele Peterson  <adele@apple.com>
1760
1761         Reviewed by Sam Weinig.
1762
1763         Specify which Localizable.strings to update since we don't always want to update the file in the same
1764         directory where we're searching for the strings to localize.
1765
1766         * Scripts/extract-localizable-strings:
1767         * Scripts/update-webkit-localizable-strings:
1768
1769 2008-10-28  Timothy Hatcher  <timothy@apple.com>
1770
1771         Add support for enabling the profiler, so the profiling tests can continue
1772         work now that the profiler is not always enabled.
1773
1774         https://bugs.webkit.org/show_bug.cgi?id=21927
1775
1776         <rdar://problem/6211578> Make the JavaScript profiler opt-in, so it does
1777         not slow down JavaScript all the time
1778
1779         Reviewed by Darin Adler and Kevin McCullough.
1780
1781         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Make the editor use spaces.
1782         * DumpRenderTree/LayoutTestController.cpp:
1783         (setJavaScriptProfilingEnabledCallback): Added. Calls LayoutTestController::setJavaScriptProfilingEnabled.
1784         (LayoutTestController::staticFunctions): Added setJavaScriptProfilingEnabled to the script class.
1785         * DumpRenderTree/LayoutTestController.h:
1786         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1787         (LayoutTestController::setJavaScriptProfilingEnabled): Stubbed out with a FIXME.
1788         * DumpRenderTree/mac/DumpRenderTree.mm:
1789         (resetWebViewToConsistentStateBeforeTesting): Disables the developer extras and disables the profiler.
1790         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1791         (LayoutTestController::setJavaScriptProfilingEnabled): Toggles the developer extras and profiler.
1792         * DumpRenderTree/win/DumpRenderTree.cpp:
1793         (resetWebViewToConsistentStateBeforeTesting): Disables the developer extras and disables the profiler.
1794         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1795         (LayoutTestController::setJavaScriptProfilingEnabled): Toggles the developer extras and profiler.
1796
1797 2008-10-28  Pierre-Olivier Latour  <pol@apple.com>
1798
1799         Reviewed by Dan Bernstein
1800
1801         Primary changes in DumpRenderTree:
1802         - Ensure font smoothing is disabled (this is also called LCD anti-aliasing and
1803         is different from regular font CG anti-aliasing) as font-smoothing settings
1804         depends on the display and can also be changed by the user
1805         - Use a new cleared buffer for each test instead of the reusing same one to
1806         avoid potential result corruption across tests
1807         - Can now receive the expected pixel hash as a suffix to the test path or
1808         url as "path'hash"
1809         - Make sure hash is computed in a endian-independent way
1810         - Improve the code that sets/restores the screen color profile
1811         - Make the code more cross-platformy with std::string goodness
1812         - Added an "on-screen" mode where the snapshot will take into account surfaces
1813         on the window (like OpenGL content): this uses the new CG APIs on 10.5 or
1814         reading from the display framebuffer on 10.4. This mode is not active by
1815         default for performance reason, but must be explicitly activated from the test
1816         file using the new "testOnscreen()" JS API.
1817
1818         Primary changes in ImageDiff:
1819         - Provide a new comparison algorithm that is more tolerant to "acceptable"
1820         failures (i.e. very small differences in font rendering, which --threshold is
1821         not really good at handling)
1822         - Generate normalized intensity-only diff images
1823
1824         Primary changes in run-webkit-tests:
1825         - Take advantage of hashes for pixel tests which makes them much faster by
1826         minimizing image comparisons
1827         - Removed repaint options as these should be set from within test files using
1828         JS API
1829         - Replaced "threshold" option in  by "tolerance" expressed in percents
1830         - Added more logging when in "verbose" mode
1831
1832         https://bugs.webkit.org/show_bug.cgi?id=21322
1833         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1834         * DumpRenderTree/ForwardingHeaders/wtf/PassRefPtr.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/PassRefPtr.h.
1835         * DumpRenderTree/ForwardingHeaders/wtf/RefPtr.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/RefPtr.h.
1836         * DumpRenderTree/LayoutTestController.cpp:
1837         (LayoutTestController::LayoutTestController):
1838         (testOnscreenCallback):
1839         (LayoutTestController::staticFunctions):
1840         * DumpRenderTree/LayoutTestController.h:
1841         (LayoutTestController::testOnscreen):
1842         (LayoutTestController::setTestOnscreen):
1843         (LayoutTestController::testPathOrURL):
1844         (LayoutTestController::expectedPixelHash):
1845         * DumpRenderTree/PixelDumpSupport.h:
1846         * DumpRenderTree/cg/ImageDiffCG.cpp:
1847         (strtof):
1848         (releaseMallocBuffer):
1849         (createDifferenceImage):
1850         (imageHasAlpha):
1851         (main):
1852         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
1853         (computeMD5HashStringForBitmapContext):
1854         (dumpWebViewAsPixelsAndCompareWithExpected):
1855         * DumpRenderTree/cg/PixelDumpSupportCG.h:
1856         (BitmapContext::createByAdoptingBitmapAndContext):
1857         (BitmapContext::~BitmapContext):
1858         (BitmapContext::cgContext):
1859         (BitmapContext::BitmapContext):
1860         * DumpRenderTree/mac/DumpRenderTree.mm:
1861         (shouldIgnoreWebCoreNodeLeaks):
1862         (setDefaultsToConsistentValuesForTesting):
1863         (crashHandler):
1864         (initializeGlobalsFromCommandLineOptions):
1865         (prepareConsistentTestingEnvironment):
1866         (dumpRenderTree):
1867         (sizeWebViewForCurrentTest):
1868         (dump):
1869         (runTest):
1870         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
1871         (restoreMainDisplayColorProfile):
1872         (setupMainDisplayColorProfile):
1873         (createBitmapContextFromWebView):
1874         * DumpRenderTree/win/DumpRenderTree.cpp:
1875         (dump):
1876         (runTest):
1877         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
1878         (getBitmapContextFromWebView):
1879         * Scripts/run-webkit-tests:
1880
1881 2008-10-27  Kevin Ollivier  <kevino@theolliviers.com>
1882
1883         wx build fix on Linux/GTK. Enable support for #include <JavaScriptCore/XYZ.h> style includes.
1884
1885         * wx/build-wxwebkit:
1886
1887 2008-10-24  Anders Carlsson  <andersca@apple.com>
1888
1889         Try fixing the 64-bit build.
1890
1891         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp:
1892         (testGetProperty):
1893
1894 2008-10-24  Anders Carlsson  <andersca@apple.com>
1895
1896         Reviewed by Sam Weinig.
1897
1898         <rdar://problem/5440917> Support NPN_Construct
1899
1900         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
1901         (testCallback):
1902         Fix a memory leak.
1903
1904         (testConstruct):
1905         New test method that treats it first argument as a constructor and invokes it with the rest of the arguments.
1906
1907         (pluginInvoke):
1908         Handle testConstruct.
1909
1910         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp:
1911         (testGetProperty):
1912         Add objectPointer property.
1913
1914         (testEnumerate):
1915         Only enumerate the two first properties.
1916
1917         (testConstruct):
1918         Add a simple construct implementation that just returns the test object.
1919
1920 2008-10-24  David Kilzer  <ddkilzer@apple.com>
1921
1922         Bug 21850: svn-apply and svn-unapply should preserve patch line endings
1923
1924         <https://bugs.webkit.org/show_bug.cgi?id=21850>
1925
1926         Reviewed by Adam Roben.
1927
1928         * Scripts/svn-apply: Save end-of-line characters when stripping them
1929         off each line of a patch so that they may be restored after
1930         processing the line.
1931         * Scripts/svn-unapply: Ditto.
1932
1933 2008-10-23  David Kilzer  <ddkilzer@apple.com>
1934
1935         Bug 21832: Fix scripts using 'new File::Temp' for Perl 5.10
1936
1937         <https://bugs.webkit.org/show_bug.cgi?id=21832>
1938
1939         Reviewed by Sam Weinig.
1940
1941         * Scripts/bisect-builds: Use imported tempfile() from File::Temp
1942         instead of 'new File::Temp' to make the script work with Perl 5.10.
1943         * Scripts/sort-Xcode-project-file: Ditto.
1944
1945 2008-10-22  Brady Eidson  <beidson@apple.com>
1946
1947         Reviewed by Adam Roben
1948
1949         <rdar://6261773> - autocomplete="off" doesn't work on Windows
1950
1951         Implement LayoutTestController::elementDoesAutoCompleteForElementWithId() on Windows
1952
1953         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1954
1955 2008-10-22  Darin Adler  <darin@apple.com>
1956
1957         * Scripts/do-webcore-rename: More renaming plans.
1958
1959 2008-10-21  Steve Falkenburg  <sfalken@apple.com>
1960
1961         Exclude strings marked with UNLOCALIZED_STRING or UNLOCALIZED_LPCTSTR.
1962
1963         * Scripts/extract-localizable-strings:
1964
1965 2008-10-17  Maciej Stachowiak  <mjs@apple.com>
1966
1967         Reviewed by Mark Rowe.
1968
1969         - default to 1000 tests per dump tool instance again, now that CTI no longer causes
1970         excess different stack logs.
1971
1972         (Also fix a small bug in my last change.)
1973
1974         * Scripts/run-webkit-tests:
1975
1976 2008-10-17  Stephanie Lewis  <slewis@apple.com>
1977
1978         Reviewed by Mark Rowe.
1979
1980         Fix layout tests that use prologues and epilogues.
1981
1982         * Scripts/run-webkit-tests:
1983
1984 2008-10-17  Maciej Stachowiak  <mjs@apple.com>
1985
1986         Reviewed by Mark Rowe.
1987
1988         - make sure MallocStackLogging is only on for tools we want to
1989         leak check, not other random stuff as well.
1990
1991         * Scripts/run-webkit-tests:
1992
1993 2008-10-17  Maciej Stachowiak  <mjs@apple.com>
1994
1995         Reviewed by Stephanie Lewis.
1996
1997         - make run-webkit-tests --leaks default to 100 tests per run instead of 1000
1998
1999         This should reduce or eliminate crashes on the buildbot due to
2000         running out of memory while stack logging.
2001
2002         * Scripts/run-webkit-tests:
2003
2004 2008-10-16  Jan Michael Alonzo  <jmalonzo@webkit.org>
2005
2006         Gtk build fix. Not reviewed.
2007
2008         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
2009         (LayoutTestController::setSmartInsertDeleteEnabled):
2010
2011 2008-10-15  Glenn Wilson  <gwilson@google.com>
2012
2013         Added new method to allow tests to disable smart editing in the course of a test.
2014         This is a possible solution to bug .20655
2015
2016         Reviewed by Tim Hatcher.
2017
2018         * DumpRenderTree/LayoutTestController.cpp:
2019         (setSmartInsertDeleteEnabledCallback): new method
2020         (LayoutTestController::staticFunctions): added new method to static list of callbacks
2021         * DumpRenderTree/LayoutTestController.h: added signature of new method
2022         * DumpRenderTree/mac/DumpRenderTree.mm:
2023         (resetWebViewToConsistentStateBeforeTesting): added state resetting
2024         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
2025         (LayoutTestController::setSmartInsertDeleteEnabled): added new method
2026         * DumpRenderTree/win/DumpRenderTree.cpp:
2027         (resetWebViewToConsistentStateBeforeTesting): added state resetting
2028         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
2029         (LayoutTestController::setSmartInsertDeleteEnabled): added new method
2030
2031 2008-10-14  Ada Chan  <adachan@apple.com>
2032
2033         Fix windows build.
2034
2035         Reviewed by Sam Weinig.
2036
2037         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2038         * DumpRenderTree/config.h:
2039         * DumpRenderTree/win/DumpRenderTreeWin.h:
2040         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
2041         * DumpRenderTree/win/UIDelegate.cpp:
2042
2043 2008-10-13  Timothy Hatcher  <timothy@apple.com>
2044
2045         Make prepare-ChangeLog populate the changed functions for JavaScript files.
2046
2047         https://bugs.webkit.org/show_bug.cgi?id=21567
2048
2049         Reviewed by David Kilzer.
2050
2051         * Scripts/prepare-ChangeLog:
2052         (get_function_line_ranges): Call get_function_line_ranges_for_javascript for
2053         files that end with ".js".
2054         (get_function_line_ranges_for_javascript): Find functions, anonymous functions
2055         and getters/setters.
2056
2057 2008-10-14  Alp Toker  <alp@nuanti.com>
2058
2059         Reviewed by Sam Weinig.
2060
2061         https://bugs.webkit.org/show_bug.cgi?id=16299
2062         Add a config.h file to DRT
2063
2064         Add a config.h to DumpRenderTree and reduce use of DumpRenderTree.h as
2065         an ad-hoc config header.
2066
2067         * DumpRenderTree/AccessibilityController.cpp:
2068         * DumpRenderTree/AccessibilityUIElement.cpp:
2069         * DumpRenderTree/AccessibilityUIElement.h:
2070         * DumpRenderTree/DumpRenderTree.h:
2071         * DumpRenderTree/GCController.cpp:
2072         * DumpRenderTree/LayoutTestController.cpp:
2073         * DumpRenderTree/WorkQueue.cpp:
2074         * DumpRenderTree/config.h: Added.
2075         * DumpRenderTree/gtk/DumpRenderTree.cpp:
2076         * DumpRenderTree/gtk/GCControllerGtk.cpp:
2077         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
2078         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp:
2079         * DumpRenderTree/win/AccessibilityControllerWin.cpp:
2080         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2081         * DumpRenderTree/win/DumpRenderTree.cpp:
2082         * DumpRenderTree/win/DumpRenderTreeWin.h:
2083         * DumpRenderTree/win/EditingDelegate.cpp:
2084         * DumpRenderTree/win/EventSender.cpp:
2085         * DumpRenderTree/win/FrameLoadDelegate.cpp:
2086         * DumpRenderTree/win/GCControllerWin.cpp:
2087         * DumpRenderTree/win/MD5.cpp:
2088         * DumpRenderTree/win/PixelDumpSupportWin.cpp:
2089         * DumpRenderTree/win/PolicyDelegate.cpp:
2090         * DumpRenderTree/win/ResourceLoadDelegate.cpp:
2091         * DumpRenderTree/win/WorkQueueItemWin.cpp:
2092         * GNUmakefile.am:
2093
2094 2008-10-13  Chris Fleizach  <cfleizach@apple.com>
2095
2096         Reviewed by Beth Dakin.
2097
2098         Added a method to get the links in a webpage
2099
2100         * DumpRenderTree/AccessibilityUIElement.cpp:
2101         (attributesOfDocumentLinksCallback):
2102         (AccessibilityUIElement::getJSClass):
2103         * DumpRenderTree/AccessibilityUIElement.h:
2104         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2105         (AccessibilityUIElement::getDocumentLinks):
2106         (AccessibilityUIElement::attributesOfDocumentLinks):
2107         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2108         (AccessibilityUIElement::getDocumentLinks):
2109         (AccessibilityUIElement::attributesOfDocumentLinks):
2110
2111 2008-10-13  David Kilzer  <ddkilzer@apple.com>
2112
2113         Bug 21457: resolve-ChangeLogs should be able to operate on a git revision range
2114
2115         <https://bugs.webkit.org/show_bug.cgi?id=21457>
2116
2117         Reviewed by Adam.
2118
2119         * Scripts/resolve-ChangeLogs: Added optional parameter to
2120         -f|--fix-merged switch to run the script on a revision range.
2121         Updated command-line validation checks.
2122         (findChangeLog): Fixed long-standing bug that should have used
2123         $_[0] instead of $_.
2124         (fixMergedChangeLog): Renamed to fixOneMergedChangeLog($).  Updated
2125         to work when called from git filter-branch.  It always restores a
2126         copy of the previous revision before reapplying the patch.
2127         (fixMergedChangeLogs): Added.  Calls itself through git filter-branch
2128         to re-merge ChangeLog files across a revision range.  Removes
2129         .git/refs/original directory on success.
2130         (parseFixMerged): Added.  Custom method to parse the -f|--fix-merged
2131         switch.
2132         (removeChangeLogArguments): Added.  Removes items from @ARGV when
2133         they are ChangeLog paths, and return a list of paths.  This makes it
2134         easier to validate the command-line.
2135         (resolveChangeLog): Added.  Extracted from main code block.  Runs
2136         the traditional single-file merge algorithm.
2137         (usageAndExit): Added.  Extracted from main code block.  Prints
2138         usage statement and exits with error status.
2139
2140 2008-10-12  Darin Adler  <darin@apple.com>
2141
2142         * Scripts/make-js-test-wrappers: Update exceptions list so the script
2143         won't overwrite files and mangle tests.
2144
2145 2008-10-11  Dan Bernstein  <mitz@apple.com>
2146
2147         Reviewed by Sam Weinig and Anders Carlsson.
2148
2149         - update Mac DumpRenderTree to use the new WebView SPI for forcing the
2150           complex text code path
2151         - add --complex-text support to Windows DumpRenderTree
2152
2153         * DumpRenderTree/mac/DumpRenderTree.mm:
2154         (dumpRenderTree):
2155         * DumpRenderTree/win/DumpRenderTree.cpp:
2156         (createWebViewAndOffscreenWindow):
2157         (main):
2158         * Scripts/run-webkit-tests:
2159
2160 2008-10-09  Eric Seidel  <eric@webkit.org>
2161
2162         Reviewed by Oliver Hunt.
2163
2164         https://bugs.webkit.org/show_bug.cgi?id=21498
2165
2166         * Scripts/make-js-test-wrappers: ignore resources/shadow-offset.js
2167
2168 2008-10-09  Cameron Zwarich  <zwarich@apple.com>
2169
2170         Not reviewed.
2171
2172         Add StructureID.o to the exclusion list in the global initializers
2173         script to fix the Debug build.
2174
2175         * Scripts/check-for-global-initializers:
2176
2177 2008-10-08  Mark Rowe  <mrowe@apple.com>
2178
2179         Fix the Windows build after r37434.
2180
2181         * DumpRenderTree/win/DumpRenderTree.cpp:
2182         (dump): Update code to approximate valid C++ syntax.
2183
2184 2008-10-08  Timothy Hatcher  <timothy@apple.com>
2185
2186         Add SVGElementInstance to the list of exceptions that have
2187         global initializers in debug builds.
2188
2189         Rubber-stamped by Mark Rowe.
2190
2191         * Scripts/check-for-global-initializers: Add SVGElementInstance.o.
2192
2193 2008-10-08  Simon Fraser  <simon.fraser@apple.com>
2194
2195         Reviewed by Dan Bernstein
2196
2197         Avoid disconnect between DRT and run-webkit-tests
2198         about whether to expect PNG dumps by having DRT always
2199         print two blocks terminated by #EOF, the second of which
2200         may be empty.
2201
2202         https://bugs.webkit.org/show_bug.cgi?id=21483
2203
2204         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2205         (printPNG):
2206         (dumpWebViewAsPixelsAndCompareWithExpected):
2207         * DumpRenderTree/mac/DumpRenderTree.mm:
2208         (dump):
2209         * DumpRenderTree/win/DumpRenderTree.cpp:
2210         (dump):
2211         * Scripts/run-webkit-tests:
2212
2213 2008-10-07  Adam Roben  <aroben@apple.com>
2214
2215         Make sure short functions get included in ChangeLog output for git
2216         repositories
2217
2218         Reviewed by Dave Kilzer.
2219
2220         * Scripts/prepare-ChangeLog:
2221         (sub diffCommand): Pass -U0 to git diff so that each contiguous change
2222         will get its own chunk without any surrounding context.
2223         (sub extractLineRange): Use the line numbers from the chunk header
2224         without modifying them now that they're accurate.
2225
2226 2008-10-04  Mark Rowe  <mrowe@apple.com>
2227
2228         Reviewed by Tim Hatcher.
2229
2230         Update check-for-weak-vtables to check only the final linked image for weak vtables.
2231         This gives more useful results than checking each object file independently.
2232
2233         * Scripts/check-for-weak-vtables:
2234
2235 2008-10-03  Pierre-Olivier Latour <pol@apple.com>
2236
2237         Reviewed by Darin Adler
2238
2239         Render images to RGBA8 bitmaps independently of platform endianness.
2240
2241         Create image difference bitmap in reference image colorspace instead of device colorspace
2242         (which depends on the main display profile), so that no color matching happens.
2243
2244         https://bugs.webkit.org/show_bug.cgi?id=21336
2245
2246         * DumpRenderTree/cg/ImageDiffCG.cpp:
2247         (createDifferenceBitmap):
2248         (computePercentageDifferent):
2249         (compareImages):
2250
2251 2008-10-02  Simon Fraser  <simon.fraser@apple.com>
2252
2253         Reviewed by Darin Adler
2254
2255         Fix hang when running with --pixel --reset, which occurs
2256         because DRT spews PNG data when the script does not expect it.
2257
2258         https://bugs.webkit.org/show_bug.cgi?id=21323
2259
2260         * Scripts/run-webkit-tests:
2261
2262 2008-09-30  Mark Rowe  <mrowe@apple.com>
2263
2264         Reviewed by Dan Bernstein.
2265
2266         Add a leak counter for CachedResources since we've had two recent leaks involving them.
2267
2268         * Scripts/check-for-global-initializers:
2269
2270 2008-09-30  Mark Rowe  <mrowe@apple.com>
2271
2272         Rubber-stamped by Dan Bernstein.
2273
2274         Fix many leaks seen on fast/backgrounds/svg-as-background-1.html.
2275
2276         JavaScript wrappers were keeping DOM objects alive, which was leading to the SVG background image
2277         being kept alive in the memory cache past our last attempt to empty the cache prior to quitting.
2278         We need to empty the memory cache after forcing a JavaScript garbage collection to ensure that
2279         any live JavaScript wrappers are collected and their corresponding DOM objects have a chance to be
2280         torn down before we exit.
2281
2282         * DumpRenderTree/mac/DumpRenderTree.mm:
2283         (dumpRenderTree):
2284         (main):
2285
2286 2008-09-30  Simon Fraser  <simon.fraser@apple.com>
2287
2288         Reviewed by Dan Bernstein
2289
2290         Don't run pixel comparison for text-only tests.
2291         https://bugs.webkit.org/show_bug.cgi?id=21124
2292
2293         * DumpRenderTree/mac/DumpRenderTree.mm:
2294         (dump):
2295         * Scripts/run-webkit-tests:
2296
2297 2008-09-29  Thiago Macieira  <thiago.macieira@nokia.com>
2298
2299         Reviewed by Simon.
2300
2301         Changed copyright from Trolltech ASA to Nokia.
2302
2303         Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
2304
2305
2306         * DumpRenderTree/qt/DumpRenderTree.cpp:
2307         * DumpRenderTree/qt/jsobjects.cpp:
2308         * DumpRenderTree/qt/jsobjects.h:
2309         * DumpRenderTree/qt/main.cpp:
2310         * DumpRenderTree/qt/testplugin.cpp:
2311         * DumpRenderTree/qt/testplugin.h:
2312
2313 2008-09-28  David Kilzer  <ddkilzer@apple.com>
2314
2315         Bug 21185: resolve-ChangeLogs should be able to fix poorly merged ChangeLog entries after a git svn rebase
2316
2317         <https://bugs.webkit.org/show_bug.cgi?id=21185>
2318
2319         Reviewed by Adam.
2320
2321         * Scripts/resolve-ChangeLogs: Added new -f|--fix-merge switch that
2322         will attempt to reapply the last commit to a ChangeLog file such
2323         that the ChangeLog entry appears at the top of the file.
2324         (findChangeLog): Added prototype and moved method below the exit
2325         statement.
2326         (fixMergedChangeLog): Added.  Method to fix incorrectly merged
2327         ChangeLog entries.
2328
2329 2008-09-27  Anders Carlsson  <andersca@apple.com>
2330
2331         Reviewed by Sam Weinig.
2332
2333         https://bugs.webkit.org/show_bug.cgi?id=21178
2334         <rdar://problem/6248651>
2335
2336         Return the result value from getURL.
2337
2338         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
2339         (getURL):
2340
2341 2008-09-26  Matt Lilek  <webkit@mattlilek.com>
2342
2343         Reviewed by Tim Hatcher.
2344
2345         Update FEATURE_DEFINES after ENABLE_CROSS_DOCUMENT_MESSAGING was removed.
2346
2347         * Scripts/build-webkit:
2348
2349 2008-09-26  Alice Liu  <alice.liu@apple.com>
2350
2351         Remove usage of atlstr.h and CString for VCExpress compatibility
2352
2353         Reviewed by Stephanie Lewis.
2354
2355         * record-memory-win/main.cpp:
2356         (ProcessArgs):
2357         (UseImage):
2358         (QueryContinuously):
2359         (OneQuery):
2360         (OneQueryMP):
2361
2362 2008-09-26  Kevin Ollivier  <kevino@theolliviers.com>
2363
2364         wx build fix. Update the version of libpng.
2365
2366         * wx/install-unix-extras:
2367
2368 2008-09-24  Sam Weinig  <sam@webkit.org>
2369
2370         Reviewed by Darin Adler.
2371
2372         Fix for https://bugs.webkit.org/show_bug.cgi?id=21080
2373         <rdar://problem/6243534>
2374         Crash below Function.apply when using a runtime array as the argument list
2375
2376         Add method to ObjCController to return a runtime array.
2377
2378         * DumpRenderTree/mac/ObjCController.m:
2379         (+[ObjCController isSelectorExcludedFromWebScript:]):
2380         (+[ObjCController webScriptNameForSelector:]):
2381         (-[ObjCController testArray]):
2382
2383 2008-09-24  Beth Dakin  <bdakin@apple.com>
2384
2385         Reviewed by Sam Weinig.
2386
2387         Speculative build fix.
2388
2389         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2390         (AccessibilityUIElement::supportsPressAction):
2391
2392 2008-09-23  Beth Dakin  <bdakin@apple.com>
2393
2394         Reviewed by Sam Weinig.
2395
2396         This patch extends DumpRenderTree's AccessibilityController to ask
2397         if the focused element supports the press action.
2398
2399         * DumpRenderTree/AccessibilityUIElement.cpp:
2400         (getSupportsPressActionCallback):
2401         (AccessibilityUIElement::getJSClass):
2402         * DumpRenderTree/AccessibilityUIElement.h:
2403         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2404         (AccessibilityUIElement::supportsPressAction):
2405
2406 2008-09-22  Alice Liu  <alice.liu@apple.com>
2407
2408         Adding a stand-alone Windows console application to record a process's memory usage
2409
2410         Reviewed by Steve Falkenburg.
2411
2412         * record-memory-win: Added.
2413         * record-memory-win/main.cpp: Added.
2414         * record-memory-win/record-memory-win.vcproj: Added.
2415
2416 2008-09-22  Chris Fleizach  <cfleizach@apple.com>
2417
2418         Reviewed by Darin Adler.
2419
2420         Support ability to get/set selected text ranges for text controls through AX.
2421
2422         * DumpRenderTree/AccessibilityUIElement.cpp:
2423         (setSelectedTextRangeCallback):
2424         (getSelectedTextRangeCallback):
2425         (AccessibilityUIElement::getJSClass):
2426         * DumpRenderTree/AccessibilityUIElement.h:
2427         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2428         (AccessibilityUIElement::attributesOfRowHeaders):
2429         (AccessibilityUIElement::attributesOfVisibleCells):
2430         (AccessibilityUIElement::rowIndexRange):
2431         (AccessibilityUIElement::columnIndexRange):
2432         (AccessibilityUIElement::cellForColumnAndRow):
2433         (AccessibilityUIElement::selectedTextRange):
2434         (AccessibilityUIElement::setSelectedTextRange):
2435         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2436         (AccessibilityUIElement::selectedTextRange):
2437         (AccessibilityUIElement::setSelectedTextRange):
2438
2439 2008-09-20  Darin Adler  <darin@apple.com>
2440
2441         * DumpRenderTree/mac/DumpRenderTree.mm:
2442         (convertMIMEType): Turn on Stephanie's workaround for Tiger too.
2443
2444 2008-09-19  Alp Toker  <alp@nuanti.com>
2445
2446         Build fix for the 'gold' linker and recent binutils. New behaviour
2447         requires that we link to used libraries explicitly.
2448
2449         * GNUmakefile.am:
2450
2451 2008-09-19  Stephanie Lewis  <slewis@apple.com>
2452
2453         Reviewed by Oliver Hunt.
2454
2455         Implement a workaround for an incorrect mime-type on machines with
2456         Dashcode 2.0.1.  Dashcode is overriding the UTI type for .js files.
2457         See radar <rdar://problem/6234318>.
2458
2459         * DumpRenderTree/mac/DumpRenderTree.mm:
2460         (convertMIMEType):
2461
2462 2008-09-19  Chris Fleizach  <cfleizach@apple.com>
2463
2464         Fixed Windows bustage
2465
2466         * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
2467         (AccessibilityUIElement::titleUIElement):
2468
2469 2008-09-18  Chris Fleizach  <cfleizach@apple.com>
2470
2471         Reviewed by Darin Adler.
2472
2473         Expose titleUIElement call for DumpRenderTree
2474
2475         * ChangeLog:
2476         * DumpRenderTree/AccessibilityUIElement.cpp:
2477         (titleUIElementCallback):
2478         (AccessibilityUIElement::getJSClass):
2479         * DumpRenderTree/AccessibilityUIElement.h:
2480         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2481         (AccessibilityUIElement::titleUIElement):
2482
2483 2008-09-18  Darin Adler  <darin@apple.com>
2484
2485         * Scripts/do-webcore-rename: More renaming plans.
2486
2487 2008-09-18  Mark Rowe  <mrowe@apple.com>
2488
2489         Reviewed by Dan Bernstein.
2490
2491         Clear the main frame's name between tests to get more consistent test results
2492         when running the WebKit tests with --nthly.
2493
2494         * DumpRenderTree/mac/DumpRenderTree.mm:
2495         (resetWebViewToConsistentStateBeforeTesting):
2496         * DumpRenderTree/win/DumpRenderTree.cpp:
2497         (resetWebViewToConsistentStateBeforeTesting):
2498
2499 2008-09-18  Stephanie Lewis  <slewis@apple.com>
2500
2501         Really fix tiger jsc tests.
2502
2503         * Scripts/run-javascriptcore-tests:
2504
2505 2008-09-18  Stephanie Lewis  <slewis@apple.com>
2506
2507         Reviewed by Maciej Stachowiak.
2508
2509         Fix jsc tests on Tiger.  Make jsc tests smarter about when to use the arch flag.
2510
2511         * Scripts/run-javascriptcore-tests:
2512         * Scripts/webkitdirs.pm:
2513
2514 2008-09-18  Mark Rowe  <mrowe@apple.com>
2515
2516         Rubber-stamped by Sam Weinig.
2517
2518         Print warning to stdout rather than stderr when a test attempts to access a remote resource.
2519         This should make it more obvious when a test does this, as stderr output tends to be obscured
2520         by noise in the test results.
2521
2522         Also fixes some coding style issues in ResourceLoadDelegate.mm.
2523
2524         * DumpRenderTree/mac/ResourceLoadDelegate.mm:
2525         (-[NSError _drt_descriptionSuitableForTestResult]):
2526         (-[NSURL _drt_descriptionSuitableForTestResult]):
2527         (-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):
2528         (-[ResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]):
2529         (-[ResourceLoadDelegate webView:resource:didReceiveResponse:fromDataSource:]):
2530         (-[ResourceLoadDelegate webView:resource:didFinishLoadingFromDataSource:]):
2531         (-[ResourceLoadDelegate webView:resource:didFailLoadingWithError:fromDataSource:]):
2532         (-[ResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:]):
2533
2534 2008-09-18  Stephanie Lewis  <slewis@apple.com>
2535
2536         Reviewed by Mark Rowe and Maciej Stachowiak..
2537
2538         add a --64-bit option and specify which architecture to run on Mac.
2539
2540         * Scripts/run-javascriptcore-tests:
2541
2542 2008-09-17  Mark Rowe  <mrowe@apple.com>
2543
2544         Reviewed by Sam Weinig.
2545
2546         Fix a crash seen running DumpRenderTree on fast/dom/null-document-window-open-crash.html under guard malloc.
2547
2548         The JS wrapper for LayoutTestController could outlive the wrapped instance, and would crash when
2549         attempting to access the wrapped instance within layoutTestControllerObjectFinalize. We fix this by making
2550         LayoutTestController ref-counted to ensure that it is not outlived by the JS wrapper.
2551
2552         * DumpRenderTree/ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/RefCounted.h.
2553         * DumpRenderTree/LayoutTestController.cpp:
2554         (LayoutTestController::LayoutTestController):
2555         (notifyDoneCallback): Remove code that is no longer needed now that we must always have a wrapped instance.
2556         (layoutTestControllerObjectFinalize): Deref the wrapped object.
2557         (LayoutTestController::makeWindowObject): Ref the wrapped object.
2558         * DumpRenderTree/LayoutTestController.h: Make LayoutTestController RefCounted.
2559         * DumpRenderTree/mac/DumpRenderTree.mm:
2560         (runTest): Deref the LayoutTestController object rather than explicitly deleting it.
2561         * DumpRenderTree/mac/LayoutTestControllerMac.mm: Remove code that is no longer needed.
2562         * DumpRenderTree/win/DumpRenderTree.cpp:
2563         (runTest): Deref the LayoutTestController object rather than explicitly deleting it.
2564
2565 2008-09-16  Sam Weinig  <sam@webkit.org>
2566
2567         Reviewed by Mark Rowe.
2568
2569         Add flag to disable running sample on tests that timeout.
2570
2571         * Scripts/run-webkit-tests:
2572
2573 2008-09-16  Adam Roben  <aroben@apple.com>
2574
2575         Windows build fix after r36511
2576
2577         Update for rename of layoutTestController to gLayoutTestController.
2578
2579         * DumpRenderTree/LayoutTestController.cpp:
2580         * DumpRenderTree/win/EditingDelegate.cpp:
2581         * DumpRenderTree/win/FrameLoadDelegate.cpp:
2582         * DumpRenderTree/win/ResourceLoadDelegate.cpp:
2583         * DumpRenderTree/win/UIDelegate.cpp:
2584
2585 2008-09-16  Adam Roben  <aroben@apple.com>
2586
2587         Add a script to print out the dependency tree of a Visual Studio
2588         solution file
2589
2590         * Scripts/print-msvc-project-dependencies: Added.
2591
2592 2008-09-16  Mark Rowe  <mrowe@apple.com>
2593
2594         Fix the build.
2595
2596         * DumpRenderTree/LayoutTestController.cpp:
2597         (notifyDoneCallback): Call fprintf in a safer manner.
2598
2599 2008-09-16  Simon Fraser  <simon.fraser@apple.com>
2600
2601         Reviewed by Eric Seidel
2602
2603         Protect against tests that call layoutTestController.notifyDone()
2604         more than once, which would lead to memory corruption, by nulling
2605         out the LayoutTestController on the JSObjectRef on destruction. Also
2606         add a finalize callback on the class so that if the LTC outlives
2607         the JSObjectRef, the JSObjectRef backpointer on the LTC can be
2608         nulled out.
2609
2610         https://bugs.webkit.org/show_bug.cgi?id=20875
2611
2612         * DumpRenderTree/LayoutTestController.cpp:
2613         (LayoutTestController::LayoutTestController):
2614         (notifyDoneCallback):
2615         (layoutTestControllerObjectFinalize):
2616         (LayoutTestController::makeWindowObject):
2617         (LayoutTestController::getJSClass):
2618         * DumpRenderTree/LayoutTestController.h:
2619         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
2620         (LayoutTestController::~LayoutTestController):
2621
2622 2008-09-16  Simon Fraser  <simon.fraser@apple.com>
2623
2624         Reviewed by Eric Seidel
2625
2626         Step 1 patch: rename global variable for clarity.
2627         https://bugs.webkit.org/show_bug.cgi?id=20875
2628
2629         * DumpRenderTree/DumpRenderTree.h:
2630         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2631         (dumpWebViewAsPixelsAndCompareWithExpected):
2632         * DumpRenderTree/gtk/DumpRenderTree.cpp:
2633         (dumpFramesAsText):
2634         (dump):
2635         (runTest):
2636         (processWork):
2637         (webViewLoadFinished):
2638         (webViewWindowObjectCleared):
2639         * DumpRenderTree/mac/DumpRenderTree.mm:
2640         (allocateGlobalControllers):
2641         (dumpFrameScrollPosition):
2642         (dumpFramesAsText):
2643         (methodNameStringForFailedTest):
2644         (dump):
2645         (runTest):
2646         * DumpRenderTree/mac/DumpRenderTreeMac.h:
2647         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
2648         * DumpRenderTree/mac/EditingDelegate.mm:
2649         (-[EditingDelegate webView:shouldBeginEditingInDOMRange:]):
2650         (-[EditingDelegate webView:shouldInsertNode:replacingDOMRange:givenAction:]):
2651         (-[EditingDelegate webView:shouldInsertText:replacingDOMRange:givenAction:]):
2652         (-[EditingDelegate webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
2653         (-[EditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]):
2654         (-[EditingDelegate webView:shouldChangeTypingStyle:toStyle:]):
2655         (-[EditingDelegate webViewDidBeginEditing:]):
2656         (-[EditingDelegate webViewDidChange:]):
2657         (-[EditingDelegate webViewDidEndEditing:]):
2658         (-[EditingDelegate webViewDidChangeTypingStyle:]):
2659         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2660         (-[FrameLoadDelegate processWork:]):
2661         (-[FrameLoadDelegate webView:locationChangeDone:forDataSource:]):
2662         (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]):
2663         (-[FrameLoadDelegate webView:didCommitLoadForFrame:]):
2664         (-[FrameLoadDelegate webView:didFinishLoadForFrame:]):
2665         (-[FrameLoadDelegate webView:didClearWindowObject:forFrame:]):
2666         (-[FrameLoadDelegate webView:didReceiveTitle:forFrame:]):
2667         * DumpRenderTree/mac/ResourceLoadDelegate.mm:
2668         (-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):
2669         * DumpRenderTree/mac/UIDelegate.mm:
2670         (-[UIDelegate webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:]):
2671         (-[UIDelegate webViewFocus:]):
2672         (-[UIDelegate webViewUnfocus:]):
2673         (-[UIDelegate webView:createWebViewWithRequest:]):
2674         (-[UIDelegate webViewClose:]):
2675         * DumpRenderTree/win/DumpRenderTree.cpp:
2676         (dumpFrameScrollPosition):
2677         (dumpFramesAsText):
2678         (dump):
2679         (runTest):
2680
2681 2008-09-15  Alice Liu  <alice.liu@apple.com>
2682
2683         A change needed to make PPC bots pass accessibility/table-cell-spans.html layout test
2684
2685         Reviewed by Stephanie Lewis.
2686
2687         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2688         Calling -[NSValue rangeValue] on nil object was returning bogus results on PPC,
2689         but not Intel.  Add a check for nil before calling.
2690         (AccessibilityUIElement::rowIndexRange):
2691         (AccessibilityUIElement::columnIndexRange):
2692
2693 2008-09-14  Mark Rowe  <mrowe@apple.com>
2694
2695         Build fix.
2696
2697         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
2698         (waitUntilDoneWatchdogFired):
2699         * DumpRenderTree/mac/ObjCPlugin.m:
2700
2701 2008-09-08  Dan Bernstein  <mitz@apple.com>
2702
2703         Reviewed by Mark Rowe.
2704
2705         - add an option to run-webkit-tests to always use the complex text code path
2706
2707         * DumpRenderTree/mac/DumpRenderTree.mm:
2708         (initializeGlobalsFromCommandLineOptions):
2709         (dumpRenderTree):
2710         * Scripts/run-webkit-tests:
2711
2712 2008-09-08  Steve Falkenburg  <sfalken@apple.com>
2713
2714         Another Windows nightly build fix.
2715
2716         Reviewed by Sam Weinig.
2717
2718         * FindSafari/FindSafari.cpp:
2719         (_tmain): Delete existing WebKitNightly directory in temp.
2720         * FindSafari/Safari.exe.manifest: Add PROGIDs for each COM class. Remove non-production classes.
2721
2722 2008-09-07  Stephanie Lewis  <slewis@apple.com>
2723
2724         Reviewed by Mark Rowe.
2725
2726         Fix DRT build
2727
2728         * DumpRenderTree/DumpRenderTreePrefix.h:
2729         * DumpRenderTree/win/DumpRenderTree.vcproj:
2730
2731 2008-09-06  Steve Falkenburg  <sfalken@apple.com>
2732
2733         Fix Windows nightlies.
2734
2735         Copy WebKit.dll alongside application so registry-free COM can find it.
2736         Update embedded manifest to force use registry-free COM.
2737
2738         Reviewed by Dave Hyatt.
2739
2740         * FindSafari/FindSafari.cpp:
2741         (copyManifest):
2742         (replaceManifest):
2743         (_tmain):
2744         * FindSafari/FindSafari.rc: Added.
2745         * FindSafari/FindSafari.vcproj:
2746         * FindSafari/Safari.exe.manifest: Added.
2747         * FindSafari/resource.h: Added.
2748
2749 === End merge of squirrelfish-extreme ===
2750
2751 2008-08-31  Mark Rowe  <mrowe@apple.com>
2752
2753         Reviewed by Maciej Stachowiak.
2754
2755         Add a --profile flag to run-sunspider.
2756
2757         * Scripts/webkitdirs.pm: Detect --profile or --profiling passed as a command-line argument
2758         to build scripts as indicating that we should use the "Profiling" configuration.  At present
2759         this is only supported by JavaScriptCore, so using this argument to build any other project
2760         will likely result in unexpected behaviour.
2761
2762 2008-08-27  Mark Rowe  <mrowe@apple.com>
2763
2764         Reviewed by Oliver Hunt.
2765
2766         Fix run-webkit-tests to handle DRT exiting early.
2767
2768         * Scripts/run-webkit-tests: Initialize $expectedResultPaths{$base} before it will be used.
2769
2770 === Start merge of squirrelfish-extreme ===
2771
2772 2008-09-04  Mark Rowe  <mrowe@apple.com>
2773
2774         Reviewed by Eric Seidel.
2775
2776         Fix https://bugs.webkit.org/show_bug.cgi?id=20639.
2777         Bug 20639: ENABLE_DASHBOARD_SUPPORT does not need to be a FEATURE_DEFINE
2778
2779         * Scripts/build-webkit: Remove ENABLE_DASHBOARD_SUPPORT-related code.
2780
2781 2008-09-04  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
2782
2783         Reviewed by Oliver Hunt.
2784
2785         Bug 20616: Incorporate V8 benchmarks in testing
2786         <https://bugs.webkit.org/show_bug.cgi?id=20616>
2787
2788         Add support for the --v8 option to run-sunspider.
2789
2790         * Scripts/run-sunspider:
2791
2792 2008-09-04  Kevin Ollivier  <kevino@theolliviers.com>
2793
2794         wx buildbot fix. More robust handling of clean when makefiles are not built or
2795         are not completely made.
2796
2797         * wx/build-wxwebkit:
2798
2799 2008-09-03  Mark Rowe  <mrowe@apple.com>
2800
2801         More Mac build fixes.
2802
2803         Set ENABLE_DASHBOARD_SUPPORT when building for Mac via build-webkit.
2804         Also set ENABLE_CROSS_DOCUMENT_MESSAGING in order to match the
2805         default configuration specified in the .xcconfig files.
2806
2807         * Scripts/build-webkit:
2808
2809 2008-09-03  Mark Rowe  <mrowe@apple.com>
2810
2811         Mac build fix.  Ensure that dashboard support is enabled.
2812
2813         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2814
2815 2008-08-25  Steve Falkenburg  <sfalken@apple.com>
2816
2817         Build fix. Copy correct version of ICU.
2818
2819         * DumpRenderTree/win/DumpRenderTree.vcproj:
2820
2821 2008-08-25  Holger Hans Peter Freyther  <zecke@selfish.org>
2822
2823         Reviewed by Simon.
2824
2825         [run-webkit-tests] Use QtLauncher to show the results of the tests
2826         konqueror might not be installed, xdg-open might not be installed but the
2827         QtLauncher should be present.
2828
2829         * Scripts/run-webkit-tests:
2830
2831 2008-08-24  Jon Honeycutt  <jhoneycutt@apple.com>
2832
2833         Initial support for accessibility layout tests on Windows.
2834         https://bugs.webkit.org/show_bug.cgi?id=20497
2835
2836         Reviewed by Sam Weinig.
2837
2838         * DumpRenderTree/AccessibilityController.h: Fix typos.
2839         * DumpRenderTree/AccessibilityUIElement.cpp: Change #import to #include.
2840         * DumpRenderTree/AccessibilityUIElement.h: Define _WINSOCKAPI_ to
2841         prevent oleacc.h, which includes windows.h, from including winsock.h.
2842         Fixed typos.
2843         * DumpRenderTree/win/AccessibilityControllerWin.cpp: Added.
2844         (AccessibilityController::AccessibilityController):
2845         (AccessibilityController::~AccessibilityController):
2846         (AccessibilityController::focusedElement): Get the root element, and
2847         request its focused object.
2848         (AccessibilityController::rootElement): Query Windows for the
2849         accessible client object for the WebView's window.
2850         * DumpRenderTree/win/AccessibilityUIElementWin.cpp: Added.
2851         (AccessibilityUIElement::AccessibilityUIElement):
2852         (AccessibilityUIElement::~AccessibilityUIElement):
2853         (AccessibilityUIElement::getLinkedUIElements): Not implemented.
2854         (AccessibilityUIElement::getChildren): Get the child count, and append
2855         each child.
2856         (AccessibilityUIElement::getChildAtIndex): Get the child at the given
2857         index offset by 1. In MSAA, child 0 is the object itself.
2858         (AccessibilityUIElement::allAttributes): Not implemented.
2859         (AccessibilityUIElement::attributesOfLinkedUIElements): Same.
2860         (AccessibilityUIElement::attributesOfChildren): Same.
2861         (AccessibilityUIElement::parameterizedAttributeNames): Same.
2862         (self): Return a VARIANT representing the "self" object. This is used
2863         when calling methods that require a child variant.
2864         (AccessibilityUIElement::role): Get the MSAA role, a long value, and
2865         convert it into a string with GetRoleText().
2866         (AccessibilityUIElement::title): Get the element's title, and convert
2867         it to a JS String.
2868         (AccessibilityUIElement::description): Same, for description.
2869         (AccessibilityUIElement::width):
2870         (AccessibilityUIElement::height):
2871         (AccessibilityUIElement::intValue): Get the object's value as a string,
2872         and convert the string to a double.
2873         (AccessibilityUIElement::minValue): Not implemented.
2874         (AccessibilityUIElement::maxValue): Same.
2875         (AccessibilityUIElement::insertionPointLineNumber): Same.
2876         (AccessibilityUIElement::attributesOfColumnHeaders): Same.
2877         (AccessibilityUIElement::attributesOfRowHeaders): Same.
2878         (AccessibilityUIElement::attributesOfColumns): Same.
2879         (AccessibilityUIElement::attributesOfRows): Same.
2880         (AccessibilityUIElement::attributesOfVisibleCells): Same.
2881         (AccessibilityUIElement::attributesOfHeader): Same.
2882         (AccessibilityUIElement::indexInTable): Same.
2883         (AccessibilityUIElement::rowIndexRange): Same.
2884         (AccessibilityUIElement::columnIndexRange): Same.
2885         (AccessibilityUIElement::lineForIndex): Same.
2886         (AccessibilityUIElement::boundsForRange): Same.
2887         (AccessibilityUIElement::cellForColumnAndRow): Same.
2888         * DumpRenderTree/win/DumpRenderTree.vcproj: Add accessibility files to
2889         project.  Link to oleacc.lib, the MSAA library.
2890         * DumpRenderTree/win/FrameLoadDelegate.cpp:
2891         (FrameLoadDelegate::FrameLoadDelegate): Initialize the accessibility
2892         controller.
2893         (FrameLoadDelegate::didClearWindowObject): Create a new window object
2894         for the accessibility controller.
2895         * DumpRenderTree/win/FrameLoadDelegate.h:
2896
2897 2008-08-21  Simon Fraser  <simon.fraser@apple.com>
2898
2899         Reviewed by Mark Rowe
2900
2901         Make build-launcher-app work when run from a git repository.
2902         https://bugs.webkit.org/show_bug.cgi?id=20478
2903
2904         * BuildSlaveSupport/build-launcher-app:
2905
2906 2008-08-20  Maxime Britto  <britto@apple.com>
2907
2908         Reviewed by Ada Chan.
2909
2910          rdar://5259746
2911         Mouse events are sent to page while resizing window (affects Gmail)
2912
2913         * DumpRenderTree/win/UIDelegate.h:
2914         (UIDelegate::webViewSendResizeMessage): Add the new interface method, not implemented.
2915
2916 2008-08-19  Chris Fleizach  <cfleizach@apple.com>
2917
2918         Reviewed by Beth Dakin.
2919
2920         Add snowleopard platform in layout tests
2921
2922         Added support for accessing the attributes of
2923         accessibility tables through the accessibility controller
2924         in DumpRenderTree
2925
2926         * DumpRenderTree/AccessibilityUIElement.cpp:
2927         (attributesOfColumnHeadersCallback):
2928         (attributesOfRowHeadersCallback):
2929         (attributesOfColumnsCallback):
2930         (attributesOfRowsCallback):
2931         (attributesOfVisibleCellsCallback):
2932         (attributesOfHeaderCallback):
2933         (indexInTableCallback):
2934         (rowIndexRangeCallback):
2935         (columnIndexRangeCallback):
2936         (childAtIndexCallback):
2937         (cellForColumnAndRowCallback):
2938         (AccessibilityUIElement::getJSClass):
2939         * DumpRenderTree/AccessibilityUIElement.h:
2940         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2941         (convertNSArrayToVector):
2942         (descriptionOfElements):
2943         (AccessibilityUIElement::getLinkedUIElements):
2944         (AccessibilityUIElement::getChildren):
2945         (AccessibilityUIElement::attributesOfLinkedUIElements):
2946         (AccessibilityUIElement::attributesOfChildren):
2947         (AccessibilityUIElement::attributesOfColumnHeaders):
2948         (AccessibilityUIElement::attributesOfRowHeaders):
2949         (AccessibilityUIElement::attributesOfColumns):
2950         (AccessibilityUIElement::attributesOfRows):
2951         (AccessibilityUIElement::attributesOfVisibleCells):
2952         (AccessibilityUIElement::attributesOfHeader):
2953         (AccessibilityUIElement::indexInTable):
2954         (AccessibilityUIElement::rowIndexRange):
2955         (AccessibilityUIElement::columnIndexRange):
2956         (AccessibilityUIElement::cellForColumnAndRow):
2957         * Scripts/run-webkit-tests:
2958
2959 2008-08-19  Alexey Proskuryakov  <ap@webkit.org>
2960
2961         Reviewed by Darin Adler.
2962
2963         Fix run-webkit-tests misreporting crashed tests as timed out ones because DumpRenderTree
2964         is waiting for crash reporter to let it exit.
2965
2966         The fix does not work on Tiger, because the state of the process is indistinguishable from
2967         other waiting processes, at least not with this technique.
2968
2969         * Scripts/run-webkit-tests:
2970
2971 2008-08-18  Alp Toker  <alp@nuanti.com>
2972
2973         Reviewed by Holger Freyther.
2974
2975         https://bugs.webkit.org/show_bug.cgi?id=20350
2976         [GTK] Get DumpRenderTree working
2977
2978         Fixes and enhancements to DumpRenderTree. With these changes, the test
2979         suite can now complete a run producing text and render tree dumps.
2980
2981         * DumpRenderTree/gtk/DumpRenderTree.cpp:
2982         (dumpFramesAsText):
2983         (dump):
2984         (runTest):
2985         (webViewLoadFinished):
2986         (webViewWindowObjectCleared):
2987         (webViewConsoleMessage):
2988         (webViewScriptAlert):
2989         (webViewScriptPrompt):
2990         (webViewScriptConfirm):
2991         (webViewTitleChanged):
2992         (main):
2993         * DumpRenderTree/gtk/DumpRenderTreeGtk.h:
2994         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
2995         (LayoutTestController::clearBackForwardList):
2996         (LayoutTestController::pathToLocalResource):
2997         (LayoutTestController::setAcceptsEditing):
2998         (LayoutTestController::setUserStyleSheetEnabled):
2999         (LayoutTestController::setUserStyleSheetLocation):
3000         (waitToDumpWatchdogFired):
3001         (LayoutTestController::windowCount):
3002         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp:
3003         (JSStringCopyUTF8CString):
3004         (ScriptItem::invoke):
3005
3006 2008-08-17  Geoffrey Garen  <ggaren@apple.com>
3007
3008         Reviewed by Cameron Zwarich.
3009
3010         Updated project files to XCode 3.1.
3011
3012         * DrawTest/DrawTest.xcodeproj/project.pbxproj:
3013         * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
3014
3015 2008-08-15  Mark Rowe  <mrowe@apple.com>
3016
3017         Rubber-stamped by Geoff Garen.
3018
3019         <rdar://problem/6139914> Please include a _debug version of JavaScriptCore framework
3020
3021         * Scripts/check-for-global-initializers: Ignore initializers when building the debug variant.
3022
3023 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
3024
3025         Rubber-stamped by Holger.
3026
3027         Revert r31585 and disable http tests for the Qt build again unless
3028         explicitly enabled.
3029
3030         Running the http tests unfortunately currently still triggers
3031         failures in non-http tests due to side-effects. Disable them by default for
3032         now, for more reliable results.
3033
3034         * Scripts/run-webkit-tests:
3035
3036 2008-08-10  Jan Michael Alonzo  <jmalonzo@webkit.org>
3037
3038         Reviewed (and updated) by Alp Toker.
3039
3040         https://bugs.webkit.org/show_bug.cgi?id=16620
3041         [GTK] Autotools make dist and make check support
3042
3043         Get make dist working.
3044
3045         Note that not all possible configurations have been tested yet.
3046
3047         * GNUmakefile.am:
3048
3049 2008-08-10  Alp Toker  <alp@nuanti.com>
3050
3051         Remove leftover qmake/GTK+ build files.
3052
3053         * DumpRenderTree/gtk/DumpRenderTree.pro: Removed.
3054         * GtkLauncher/GtkLauncher.pro: Removed.
3055
3056 2008-08-06  Chris Fleizach  <cfleizach@apple.com>
3057
3058         Reviewed by Beth Dakin
3059
3060         AX functions shouldn't return position information because it changes
3061         based on the platform
3062
3063         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3064         (AccessibilityUIElement::boundsForRange):
3065
3066 2008-08-06  Eric Seidel  <eric@webkit.org>
3067
3068         Reviewed by darin.
3069
3070         Fix leaks seen on build-bot by fixing memory management of AccessibilityUIElement.
3071         <https://bugs.webkit.org/show_bug.cgi?id=20297>
3072         <rdar://problem/6093153>
3073
3074         I've made AccessibilityUIElement a stack object for now.  It could be
3075         made RefCounted, but I figured that might be overkill for the moment.
3076         Essentially it's just a RefPtr itself. :)
3077
3078         I also fixed a few typos, such as AccessibilityUIElement() instead of ~AccessibilityUIElement()
3079         which was causing additional leaks. :)
3080
3081         I added toAXElement to remove a bunch of copy/paste code.
3082
3083         * DumpRenderTree/AccessibilityController.h:
3084         * DumpRenderTree/AccessibilityUIElement.cpp:
3085         (toAXElement):
3086         (allAttributesCallback):
3087         (attributesOfLinkedUIElementsCallback):
3088         (attributesOfChildrenCallback):
3089         (lineForIndexCallback):
3090         (boundsForRangeCallback):
3091         (childAtIndexCallback):
3092         (getRoleCallback):
3093         (getTitleCallback):
3094         (getDescriptionCallback):
3095         (getWidthCallback):
3096         (getHeightCallback):
3097         (getIntValueCallback):
3098         (getMinValueCallback):
3099         (getMaxValueCallback):
3100         (getInsertionPointLineNumberCallback):
3101         (finalize):
3102         * DumpRenderTree/AccessibilityUIElement.h:
3103         (AccessibilityUIElement::platformUIElement):
3104         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3105         (AccessibilityController::focusedElement):
3106         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3107         (AccessibilityUIElement::AccessibilityUIElement):
3108         (AccessibilityUIElement::getLinkedUIElements):
3109         (AccessibilityUIElement::getChildren):
3110         (AccessibilityUIElement::getChildAtIndex):
3111         (AccessibilityUIElement::attributesOfLinkedUIElements):
3112         (AccessibilityUIElement::attributesOfChildren):
3113
3114 2008-08-06  Eric Seidel  <eric@webkit.org>
3115
3116         Reviewed by Cameron Zwarich.
3117
3118         Speculative fix for an error I keep seeing in my Cygwin build
3119
3120         * Scripts/webkitdirs.pm: make determineConfigurationProductDir() always call determineConfiguration() even on cygwin
3121
3122 2008-08-02  Kevin Ollivier  <kevino@theolliviers.com>
3123
3124         Forgot to commit licensing correction in last commit.
3125
3126         * wx/packaging/wxWebKitInstaller.iss.in:
3127
3128 2008-08-02  Kevin Ollivier  <kevino@theolliviers.com>
3129
3130         Reviewed by Eric Seidel.
3131
3132         Scripts for building a wxWebKit installer for wxPython on Win, eventually will
3133         be used for nightlies.
3134
3135         https://bugs.webkit.org/show_bug.cgi?id=20036
3136
3137         * wx/packaging: Added.
3138         * wx/packaging/build-win-installer.py: Added.
3139         * wx/packaging/wxWebKitInstaller.iss.in: Added.
3140
3141 2008-07-31  Adam Roben  <aroben@apple.com>
3142
3143         Follow-up to r35500
3144
3145         * WinLauncher/WinLauncher.vcproj: Set the manifest properties for the
3146         Release configuration, too.
3147
3148 2008-07-31  Stefan Landvogt <stefan.landvogt@gmail.com>
3149
3150         Fix Bug 20245: WinLauncher does not start in WebKit-debug right out of
3151         the box
3152
3153         <https://bugs.webkit.org/show_bug.cgi?id=20245>
3154
3155         Reviewed by Adam Roben.
3156
3157         * WinLauncher/WinLauncher.vcproj: adding the following properties to
3158         WinLauncher > Properties > Manifest Tool > Isolated COM
3159         Type Library File: $(WebKitOutputDir)\lib\WebKit.tlb
3160         Component File Name: WebKit$(WebKitDLLConfigSuffix)
3161         Doing the change on "All Configurations"
3162
3163 2008-07-31  Adam Roben  <aroben@apple.com>
3164
3165         Windows build bot fix
3166
3167         * DumpRenderTree/win/ImageDiff.vcproj: Don't fail if files that only
3168         exist for people at Apple can't be found. Also updated the ICU version
3169         to 3.8.
3170
3171 2008-07-31  David Kilzer  <ddkilzer@apple.com>
3172
3173         Fix layout test results for webarchive/test-xml-stylesheet.xml
3174
3175         Reviewed by Darin Adler.
3176
3177         * DumpRenderTree/mac/DumpRenderTree.mm:
3178         (convertMIMEType): Work around the "text/xml" local file type
3179         regression in Leopard using the BUILDING_ON_LEOPARD macro.  Also
3180         stop mangling "application/x-javascript" into "text/javascript".
3181         (convertWebResourceDataToString): When checking whether to dump a
3182         resource as text, also check to see if the MIME type is in the
3183         -[WebHTMLRepresentation supportedNonImageMIMETypes] array.
3184         * DumpRenderTree/mac/DumpRenderTreeMac.h: Added BUILDING_ON_LEOPARD
3185         macro.
3186
3187 2008-07-31  Chris Fleizach  <cfleizach@apple.com>
3188
3189         Reviewed by Alice Liu
3190
3191         Add AX support to get the bounds for a range of text
3192         Add AX support to get the child of an element
3193         Add AX support to get all the parameterized attribute names of an element
3194
3195         * DumpRenderTree/AccessibilityUIElement.cpp:
3196         (parameterizedAttributeNamesCallback):
3197         (boundsForRangeCallback):
3198         (childAtIndexCallback):
3199         (AccessibilityUIElement::getJSClass):
3200         * DumpRenderTree/AccessibilityUIElement.h:
3201         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3202         (AccessibilityUIElement::getChildAtIndex):
3203         (AccessibilityUIElement::parameterizedAttributeNames):
3204         (AccessibilityUIElement::boundsForRange):
3205
3206 2008-07-31  Erik Bunce  <elbunce@thehive.com>
3207
3208         Reviewed by Simon.
3209
3210         Make run-launcher set DYLD_LIBRARY_PATH to make things work on Mac OS X.
3211
3212         * Scripts/run-launcher:
3213
3214 2008-07-30  Jessica Kahn  <jess@apple.com>
3215
3216         Reviewed by Adam Roben.
3217
3218         Slightly stricter checking for previous change, suggested by Adam.
3219
3220         * Scripts/extract-localizable-strings:
3221
3222 2008-07-30  Jessica Kahn  <jess@apple.com>
3223
3224         Reviewed by Darin Adler.
3225
3226         Added support for UI_STRING and UI_STRING_KEY macros with flexible prefixes.
3227
3228         * Scripts/extract-localizable-strings:
3229
3230 2008-07-30  Anders Carlsson  <andersca@apple.com>
3231
3232         Reviewed by Adam.
3233
3234         Copy icu38* files instead of icu36* files.
3235
3236         * DumpRenderTree/win/DumpRenderTree.vcproj:
3237
3238 2008-07-25  Jan Michael Alonzo  <jmalonzo@webkit.org>
3239
3240         DRT/Gtk build fix for r35362
3241
3242         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
3243         (LayoutTestController::elementDoesAutoCompleteForElementWithId):
3244
3245 2008-07-25  Brady Eidson  <beidson@apple.com>
3246
3247         Reviewed by Sam
3248
3249         Add the ability to dump whether-or-not an element should have autocomplete enabled,
3250         from the perspective of the WebKit API
3251
3252         * DumpRenderTree/LayoutTestController.cpp:
3253         (elementDoesAutoCompleteForElementWithIdCallback):
3254         (LayoutTestController::staticFunctions):
3255
3256         * DumpRenderTree/LayoutTestController.h:
3257         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
3258         (LayoutTestController::elementDoesAutoCompleteForElementWithId):
3259         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
3260         (LayoutTestController::elementDoesAutoCompleteForElementWithId): Stub for now until I can get on Windows
3261
3262 2008-07-25  Chris Fleizach  <cfleizach@apple.com>
3263
3264         Reviewed by Beth Dakin
3265
3266         Add support for AXLineForIndex and AXInsertionPointIndex through the
3267         accessibility controller
3268
3269         * DumpRenderTree/AccessibilityUIElement.cpp:
3270         (lineForIndexCallback):
3271         (getInsertionPointLineNumberCallback):
3272         (AccessibilityUIElement::getJSClass):
3273         * DumpRenderTree/AccessibilityUIElement.h:
3274         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
3275         (AccessibilityUIElement::insertionPointLineNumber):
3276         (AccessibilityUIElement::lineForIndex):
3277
3278 2008-07-25  Adam Roben  <aroben@apple.com>
3279
3280         Try to fix the Windows build bot
3281
3282         * DumpRenderTree/win/DumpRenderTree.vcproj: Don't try to copy files
3283         that don't exist for people outside of Apple.
3284
3285 2008-07-18  Landry Breuil  <landry@openbsd.org>
3286
3287         Bug 19975: [OpenBSD] Patches to enable build of WebKit
3288
3289         <https://bugs.webkit.org/show_bug.cgi?id=19975>
3290
3291         Reviewed by David Kilzer.
3292
3293         * DumpRenderTree/DumpRenderTree.h: OpenBSD doesn't support wide characters.
3294
3295 2008-07-16  Jon Honeycutt  <jhoneycutt@apple.com>
3296
3297         CygwinDownloader fails to install necessary packages
3298         https://bugs.webkit.org/show_bug.cgi?id=20075
3299
3300         Reviewed by Mark Rowe.
3301
3302         * CygwinDownloader/cygwin-downloader.zip: Rebuilt after two broken
3303         mirrors removed in r34116. Set MIME type to application/octet-stream.
3304
3305 2008-07-16  Jon Honeycutt  <jhoneycutt@apple.com>
3306
3307         CygwinDownloader's make-zip.sh script fails
3308         https://bugs.webkit.org/show_bug.cgi?id=20074
3309
3310         Reviewed by Mark Rowe.
3311
3312         * CygwinDownloader/cygwin-downloader.py:
3313
3314 2008-07-15  Sam Weinig  <sam@webkit.org>
3315
3316         Reviewed by Anders Carlsson.
3317
3318         Refactor accessibility testing code.
3319
3320         We now have:
3321         - AccessibilityController
3322           Controller which has access to the WebView and can provide the focused element, root element
3323           and in the future, elementAtPoint.
3324
3325         - AccessibilityUIElement
3326           Object which provides access to the data provided by the Accessibility APIs.
3327
3328         * DumpRenderTree/AccessibilityController.cpp:
3329         (getFocusedElementCallback):
3330         (getRootElementCallback):
3331         (AccessibilityController::getJSClass):
3332         * DumpRenderTree/AccessibilityController.h:
3333         * DumpRenderTree/AccessibilityUIElement.cpp: Added.
3334         (allAttributesCallback):
3335         (attributesOfLinkedUIElementsCallback):
3336         (attributesOfChildrenCallback):
3337         (getRoleCallback):
3338         (getTitleCallback):
3339         (getDescriptionCallback):
3340         (getWidthCallback):
3341         (getHeightCallback):
3342         (getIntValueCallback):
3343         (getMinValueCallback):
3344         (getMaxValueCallback):
3345         (finalize):
3346         (AccessibilityUIElement::makeJSAccessibilityUIElement):
3347         (AccessibilityUIElement::getJSClass):
3348         * DumpRenderTree/AccessibilityUIElement.h: Added.
3349         (AccessibilityUIElement::platformUIElement):
3350         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3351         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3352         (AccessibilityController::AccessibilityController):
3353         (AccessibilityController::~AccessibilityController):
3354         (AccessibilityController::focusedElement):
3355         (AccessibilityController::rootElement):
3356         * DumpRenderTree/mac/AccessibilityUIElementMac.mm: Added.
3357         (AccessibilityUIElement::AccessibilityUIElement):
3358         (descriptionOfValue):
3359         (attributesOfElement):
3360         (nsStringToJSStringRef):
3361         (concatenateAttributeAndValue):
3362         (AccessibilityUIElement::getLinkedUIElements):
3363         (AccessibilityUIElement::getChildren):
3364         (AccessibilityUIElement::attributesOfLinkedUIElements):
3365         (AccessibilityUIElement::attributesOfChildren):
3366         (AccessibilityUIElement::allAttributes):
3367         (AccessibilityUIElement::role):
3368         (AccessibilityUIElement::title):
3369         (AccessibilityUIElement::description):
3370         (AccessibilityUIElement::width):
3371         (AccessibilityUIElement::height):
3372         (AccessibilityUIElement::intValue):
3373         (AccessibilityUIElement::minValue):
3374         (AccessibilityUIElement::maxValue):
3375
3376 2008-07-14  Chris Fleizach  <cfleizach@apple.com>
3377
3378         Reviewed by Beth Dakin
3379
3380         Add support to get attributes of the AXChildren of an objecty
3381
3382         * DumpRenderTree/AccessibilityController.cpp:
3383         (attributesOfChildrenForFocusedElementCallback):
3384         (AccessibilityController::staticFunctions):
3385         * DumpRenderTree/AccessibilityController.h:
3386         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3387         (descriptionOfValue):
3388         (AccessibilityController::attributesOfChildrenForFocusedElement):
3389
3390 2008-07-14  Steve Falkenburg  <sfalken@apple.com>
3391
3392         Build fix.
3393
3394         * DumpRenderTree/win/DumpRenderTree.vcproj:
3395
3396 2008-07-14  Adam Roben  <aroben@apple.com>
3397
3398         Attempted Windows build fix
3399
3400         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj: Add
3401         CoreFoundation/OSXCompatibilityHeaders[/GNUCompatibility] to the
3402         include path.
3403
3404 2008-07-14  Alexey Proskuryakov  <ap@webkit.org>
3405
3406         Reviewed by Geoff Garen.
3407
3408         Eliminate per-thread JavaScript global data instance support and make arbitrary
3409         global data/global object combinations possible.
3410
3411         * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp:
3412         (runJavaScriptThread): Don't pass a released context reference to JSGarbageCollect.
3413         In this scenario, it was causing crashes after each 10-20 tests, because there was a large
3414         chance for a different thread to cause GC after the context was released.
3415
3416 2008-07-11  Stephanie Lewis  <slewis@apple.com>
3417
3418         Reviewed by Darin Adler.
3419
3420         Make sure we read WebCore Leak messages.  Force full document teardown for DumpRenderTree.
3421
3422         Up timeout limit, some slower machines were timing out before crashtracer finished writing out to disk and quitting DRT.
3423
3424         * DumpRenderTree/mac/DumpRenderTree.mm:
3425         (setDefaultsToConsistentValuesForTesting):
3426         (resetWebViewToConsistentStateBeforeTesting):
3427         * Scripts/run-webkit-tests:
3428
3429 2008-07-10  Steve Falkenburg  <sfalken@apple.com>
3430
3431         Build fix.
3432
3433         * DumpRenderTree/win/DumpRenderTree.vcproj:
3434
3435 2008-07-09  Eric Seidel  <eric@webkit.org>
3436
3437         Reviewed by Mark Rowe.
3438
3439         Print <div> backgrounds when printing from DRT.
3440
3441         * DumpRenderTree/mac/DumpRenderTree.mm:
3442         (setDefaultsToConsistentValuesForTesting):
3443
3444 2008-07-09  Eric Seidel  <eric@webkit.org>
3445
3446         Reviewed by Mark Rowe.
3447
3448         Fix copying of expected results to correct location
3449
3450         * Scripts/run-webkit-tests:
3451
3452 2008-07-09  Eric Seidel  <eric@webkit.org>
3453
3454         Reviewed by aroben.
3455
3456         * DumpRenderTree/LayoutTestController.cpp:
3457         (LayoutTestController::LayoutTestController):
3458         (dumpAsPDFCallback):
3459         (LayoutTestController::staticFunctions):
3460         * DumpRenderTree/LayoutTestController.h:
3461         (LayoutTestController::dumpAsPDF):
3462         (LayoutTestController::setDumpAsPDF):
3463         * DumpRenderTree/mac/DumpRenderTree.mm:
3464         (dumpFrameAsPDF):
3465         (dump):
3466
3467 2008-07-09  Eric Seidel  <eric@webkit.org>
3468
3469         Reviewed by weinig.
3470
3471         Add Content-Type support to DumpRenderTree and run-webkit-tests
3472         and move expected.txt files to expected.webarchive
3473
3474         https://bugs.webkit.org/show_bug.cgi?id=15565
3475
3476         * DumpRenderTree/cg/ImageDiffCG.cpp:
3477         (compareImages):
3478         (main):
3479         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
3480         (printPNG):
3481         * DumpRenderTree/mac/DumpRenderTree.mm:
3482         (dump):
3483         * Scripts/run-webkit-tests:
3484
3485 2008-07-08  Jon Honeycutt  <jhoneycutt@apple.com>
3486
3487         Reviewed by Anders.
3488
3489         Port r34988 to Mac: allow tests to define JavaScript to execute when
3490         NPP_DestroyStream or NPP_URLNotify is called.
3491
3492         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
3493         (NPP_New): Remove initialization that happens in pluginAllocate. Look
3494         for new arguments onStreamDestroy and onURLNotify.
3495         (NPP_Destroy): Free onStreamDestroy and onURLNotify.
3496         (executeScript): Code moved from onStreamLoad.
3497         (NPP_NewStream): Call executeScript.
3498         (NPP_DestroyStream): Same.
3499         (NPP_URLNotify): Same.
3500
3501 2008-07-07  Beth Dakin  <bdakin@apple.com>
3502
3503         Reviewed by Anders.
3504
3505         This patch extends DRT accessibility tests to add the ability to
3506         query the intValue, minValue, and maxValue of the focused element.
3507
3508         * DumpRenderTree/AccessibilityController.cpp:
3509         (intValueOfFocusedElementCallback):
3510         (minValueOfFocusedElementCallback):
3511         (maxValueOfFocusedElementCallback):
3512         (AccessibilityController::staticFunctions):
3513         * DumpRenderTree/AccessibilityController.h:
3514         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3515         (AccessibilityController::intValueOfFocusedElement):
3516         (AccessibilityController::minValueOfFocusedElement):
3517         (AccessibilityController::maxValueOfFocusedElement):
3518
3519 2008-07-07  Steve Falkenburg  <sfalken@apple.com>
3520
3521         Fix build.
3522
3523         * DumpRenderTree/win/ImageDiff.vcproj:
3524
3525 2008-07-02  Jon Honeycutt  <jhoneycutt@apple.com>
3526
3527         Allow tests to define JavaScript to execute when NPP_DestroyStream or
3528         NPP_URLNotify is called.
3529
3530         Reviewed by Anders.
3531
3532         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp: Add a new
3533         property, "returnErrorFromNewStream." This is to support the test for
3534         <rdar://5983747> Safari crashes trying to load the SilverLight plugin,
3535         caused by WebKit calling NPP_DestroyStream after a plug-in returns an
3536         error from NPP_NewStream.
3537         (pluginGetProperty):
3538         (pluginSetProperty):
3539         (pluginAllocate):
3540         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h: Added new
3541         members, onStreamDestroy and onURLNotify.
3542         * DumpRenderTree/win/TestNetscapePlugin/main.cpp:
3543         (NPP_New): Remove initialization of onStreamLoad; this was moved to
3544         pluginAllocate. Look for new arguments onStreamDestroy and
3545         onURLNotify, and store their values.
3546         (NPP_Destroy): Free new members.
3547         (executeScript): Code moved from onStreamLoad
3548         (NPP_NewStream): If returnErrorFromNewStream has been set to true,
3549         return a generic error code. If onStreamLoad is set, execute it as
3550         JavaScript.
3551         (NPP_DestroyStream): If onStreamDestroy is set, execute it as JS.
3552         (NPP_URLNotify): Same, for onURLNotify.
3553
3554 2008-07-02  Brady Eidson  <beidson@apple.com>
3555
3556         Reviewed by Mitz Pettel and John Sullivan
3557
3558         Add the ability to tell DRT to call stopLoading on a WebFrame inside of a didStartProvisionalLoadForFrame
3559         load delegate.
3560
3561         Required to add a layout test for the fix for <rdar://problem/5549871>
3562
3563         * DumpRenderTree/mac/FrameLoadDelegate.mm:
3564         (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]): If stopProvisionalFrameLoads is set, call
3565           [WebFrame stopLoading] to test for the crash reflected in 5549871
3566
3567         All of the following are infrastructure to add the layoutTestController.setStopProvisionalFrameLoads() call:
3568         * DumpRenderTree/LayoutTestController.cpp:
3569         (LayoutTestController::LayoutTestController):
3570         (setStopProvisionalFrameLoadsCallback):
3571         (LayoutTestController::staticFunctions):
3572         * DumpRenderTree/LayoutTestController.h:
3573         (LayoutTestController::stopProvisionalFrameLoads):
3574         (LayoutTestController::setStopProvisionalFrameLoads):
3575
3576 2008-07-01  Chris Fleizach  <cfleizach@apple.com>
3577
3578         Reviewed by Beth Dakin
3579
3580         Support ability to get width and height of an element through accessibility
3581
3582         * DumpRenderTree/AccessibilityController.cpp:
3583         (widthOfFocusedElementCallback):
3584         (heightOfFocusedElementCallback):
3585         (AccessibilityController::staticFunctions):
3586         * DumpRenderTree/AccessibilityController.h:
3587         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3588         (AccessibilityController::widthOfFocusedElement):
3589         (AccessibilityController::heightOfFocusedElement):
3590
3591 2008-06-30  Chris Fleizach  <cfleizach@apple.com>
3592
3593         Reviewed by Beth Dakin
3594
3595         Support the ability to get the linked ui elements of an object
3596
3597         * DumpRenderTree/AccessibilityController.cpp:
3598         (attributesOfLinkedUIElementsForFocusedElementCallback):
3599         (AccessibilityController::staticFunctions):
3600         * DumpRenderTree/AccessibilityController.h:
3601         * DumpRenderTree/mac/AccessibilityControllerMac.mm:
3602         (AccessibilityController::attributesOfLinkedUIElementsForFocusedElement):
3603         (AccessibilityController::allAttributesOfFocusedElement):
3604         (attributesOfElement):
3605         (nsStringToJSStringRef):
3606
3607 2008-06-29  Sam Weinig  <sam@webkit.org>
3608
3609         Fix Tiger build.
3610
3611         * DumpRenderTree/mac/EventSendingController.mm:
3612         (eventTypeForMouseButtonAndAction):
3613
3614 2008-06-27  Eric Seidel  <eric@webkit.org>
3615
3616         Reviewed by darin.
3617
3618         Add multi-button mouseevent support to DRT
3619         https://bugs.webkit.org/show_bug.cgi?id=15173
3620
3621         It's now possible to specify the mouse button with:
3622         eventSender.mouseDown(1); eventSender.mouseUp(1); etc.
3623
3624         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3625         * DumpRenderTree/mac/EventSendingController.h:
3626         * DumpRenderTree/mac/EventSendingController.mm:
3627         (+[EventSendingController isSelectorExcludedFromWebScript:]):
3628         (+[EventSendingController webScriptNameForSelector:]):
3629         (eventTypeForMouseButtonAndAction):
3630         (-[EventSendingController updateClickCountForButton:]):
3631         (-[EventSendingController mouseDown:]):
3632         (-[EventSendingController mouseUp:]):
3633         (-[EventSendingController mouseMoveToX:Y:]):
3634         (-[EventSendingController contextClick]):
3635
3636 2008-06-28  Nikolas Zimmermann  <zimmermann@kde.org>
3637
3638         Reviewed by Oliver.
3639
3640         Copy <test>-expected.png from the right location to /tmp/layout-test-results.
3641         Use $expectedPixelDir instead of $expectedDir. Allows using SVG pixel tests again.
3642
3643         * Scripts/run-webkit-tests:
3644
3645 2008-06-27  Jan Michael Alonzo  <jmalonzo@webkit.org>
3646
3647         Reviewed by Christian Dywan.
3648
3649         [Gtk] Initialize webview settings before running DRT tests
3650         http://bugs.webkit.org/show_bug.cgi?id=19778
3651
3652         * DumpRenderTree/gtk/DumpRenderTree.cpp:
3653         (setDefaultsToConsistentStateValuesForTesting):
3654         (main):
3655
3656 2008-06-26  Darin Adler  <darin@apple.com>
3657
3658         * Scripts/check-for-weak-vtables: Fixed comment.
3659
3660 2008-06-26  Darin Adler  <darin@apple.com>
3661
3662         * Scripts/check-for-weak-vtables: Added.
3663
3664 2008-06-26  Beth Dakin  <bdakin@apple.com>