5fefd6a9e93c6dd0baab2706ab69dd9ddb470dbb
[WebKit-https.git] / WebKitTools / ChangeLog
1 2008-02-23  David Kilzer  <ddkilzer@apple.com>
2
3         Please clarify licensing for some files
4         <http://bugs.webkit.org/show_bug.cgi?id=14970>
5
6         Reviewed by Darin.
7
8         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp: Added
9         copyright statement.  Replaced license with newer Apple BSD-style license.
10         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h: Ditto.
11         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp: Ditto.
12         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h: Ditto.
13         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp: Ditto.
14         * DumpRenderTree/win/TestNetscapePlugin/main.c: Ditto.
15         * mangleme/LICENSE: Added (LGPL).
16
17 2008-02-22  Anders Carlsson  <andersca@apple.com>
18
19         Reviewed by Adam.
20
21         <rdar://problem/5748781> 
22         https://bugs.webkit.org/show_bug.cgi?id=17413
23         REGRESSION: Latest Nightly doesn't load Java plugin w/Safari 3.1b
24         
25         Copy the Java plug-in over to the new location.
26         
27         * FindSafari/FindSafari.cpp:
28         (_tmain):
29
30 2008-02-22  Anders Carlsson  <andersca@apple.com>
31
32         Reviewed by Adam.
33
34         <rdar://problem/5747325> REGRESSION: HTTP layout tests hang
35         
36         * DumpRenderTree/win/DumpRenderTree.cpp:
37         (runTest):
38         Init the URL request with the correct timeout.
39
40 2008-02-21  Mike Auty  <mike.auty@gmail.com>
41
42         Reviewed by Alp Toker.
43
44         http://bugs.webkit.org/show_bug.cgi?id=17445
45         [GTK] WebKit doesn't compile with LDFLAGS="-Wl,--as-needed"
46
47         GTK+/autotools build system improvements
48
49         The GNUmakefile.am files make use of the LDFLAGS variable to include library
50         additions such as -ljpeg etc.  Unfortunately, if these inclusions aren't made
51         in LIBADD/LDADD variables, then they are mis-ordered during the linking.
52
53         The as-needed flag discards libraries whose functions have not been needed by
54         earlier libraries, which therefore makes the ordering important.
55
56         This moves all -l library inclusion statements from LDFLAGS variables to
57         LIBADD/LDADD variables.
58
59         * GNUmakefile.am:
60
61 2008-02-20  Brent Fulgham  <bfulgham@gmail.com>
62
63         Reviewed by Alp.
64
65         - http://bugs.webkit.org/show_bug.cgi?id=17428
66           Reenable a Windows-based launcher
67
68         This patch reenables the venerable Spinneret application,
69         changing its name to match the other lanch applications.
70
71         * WinLauncher: Added.
72         * WinLauncher/WinLauncher.cpp: Added.
73         (WinLauncherWebHost::updateAddressBar):
74         (WinLauncherWebHost::QueryInterface):
75         (WinLauncherWebHost::AddRef):
76         (WinLauncherWebHost::Release):
77         (resizeSubViews):
78         (_tWinMain):
79         (MyRegisterClass):
80         (InitInstance):
81         (WndProc):
82         (MyEditProc):
83         (About):
84         (loadURL):
85         * WinLauncher/WinLauncher.h: Added.
86         (WinLauncherWebHost::WinLauncherWebHost):
87         (WinLauncherWebHost::didStartProvisionalLoadForFrame):
88         (WinLauncherWebHost::didReceiveServerRedirectForProvisionalLoadForFrame):
89         (WinLauncherWebHost::didFailProvisionalLoadWithError):
90         (WinLauncherWebHost::didCommitLoadForFrame):
91         (WinLauncherWebHost::didReceiveTitle):
92         (WinLauncherWebHost::didReceiveIcon):
93         (WinLauncherWebHost::didFinishLoadForFrame):
94         (WinLauncherWebHost::didFailLoadWithError):
95         (WinLauncherWebHost::didChangeLocationWithinPageForFrame):
96         (WinLauncherWebHost::willPerformClientRedirectToURL):
97         (WinLauncherWebHost::didCancelClientRedirectForFrame):
98         (WinLauncherWebHost::willCloseFrame):
99         (WinLauncherWebHost::windowScriptObjectAvailable):
100         * WinLauncher/WinLauncher.ico: Added.
101         * WinLauncher/WinLauncher.rc: Added.
102         * WinLauncher/WinLauncher.vcproj: Added.
103         * WinLauncher/resource.h: Added.
104         * WinLauncher/small.ico: Added.
105         * WinLauncher/stdafx.cpp: Added.
106         * WinLauncher/stdafx.h: Added.
107
108 2008-02-19  Brady Eidson  <beidson@apple.com>
109
110         Reviewed by Geoff
111
112         Fixed a bug in DRT --threaded mode
113
114         * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp:
115         (startJavaScriptThreads): Don't detach the newly created thread.  The later call to stopJavaScriptThreads() tries
116           to pthread_join() each thread that had been created, but you can't join a detached thread!
117
118 2008-02-18  Brady Eidson  <beidson@apple.com>
119
120         Changes by Geoff Garen, Reviewed by Darin
121
122         Fix for <rdar://5747529> - ObjC Exception can cause JSLock to never be released
123
124         DRT changes for test: platform/mac/plugins/webScriptObject-exception-deadlock.html
125
126         [WebScriptObject valueForKey:] might throw an exception, and previously might have "leaked" the global JSLock
127         This test calls valueForKey, then runs some arbitrary Javascript on a 2ndary thread.  If the lock has leaked,
128         this series of method calls will deadlock.  If things are good, it will complete successfully.
129
130         * DumpRenderTree/mac/ObjCController.m:
131         (runJavaScriptThread):
132         (+[ObjCController isSelectorExcludedFromWebScript:]):
133         (+[ObjCController webScriptNameForSelector:]):
134         (-[ObjCController testValueForKey]):
135
136 2008-02-18  Matt Lilek  <webkit@mattlilek.com>
137
138         Reviewed by Adam.
139
140         Remove FindSafari's Release configuration.
141
142         * FindSafari/FindSafari.vcproj:
143
144 2008-02-15  Adam Roben  <aroben@apple.com>
145
146         Fix a typo that broke the Mac build
147
148         Reviewed by Mark.
149
150         * Scripts/build-webkit:
151
152 2008-02-14  Adam Roben  <aroben@apple.com>
153
154         Turn on cross-document messaging support by default
155
156         Reviewed by Darin.
157
158         * Scripts/build-webkit:
159
160 2008-02-14  Adam Roben  <aroben@apple.com>
161
162         Conditionalize cross-document messaging support
163
164         The cross-document messaging parts of HTML 5 are in flux and we want
165         ports to be able to turn off the support as needed.
166
167         Note that the support is turned off by default right now. A subsequent
168         commit will turn it on by default.
169
170         Reviewed by Darin.
171
172         * Scripts/build-webkit:
173
174 2008-02-14  Darin Adler  <darin@apple.com>
175
176        - fix Windows build
177
178         * DumpRenderTree/win/UIDelegate.cpp:
179         (UIDelegate::setStatusText): Update parameter types to match declaration.
180
181 2008-02-14  Oliver Hunt  <oliver@apple.com>
182
183         Reviewed by Geoff G and Weinig.
184
185         Add ability for DRT to report tests setting the status text.
186
187         * DumpRenderTree/LayoutTestController.cpp:
188         (LayoutTestController::LayoutTestController):
189         (dumpStatusCallbacksCallback):
190         (LayoutTestController::staticFunctions):
191         * DumpRenderTree/LayoutTestController.h:
192         * DumpRenderTree/mac/UIDelegate.mm:
193         (-[UIDelegate webView:setStatusText:]):
194         * DumpRenderTree/win/UIDelegate.cpp:
195         * DumpRenderTree/win/UIDelegate.h:
196
197 2008-02-13  Adam Roben  <aroben@apple.com>
198
199         Windows build fix
200
201         * DumpRenderTree/ForwardingHeaders/wtf/MathExtras.h: Added.
202
203 2008-02-13  Adam Roben  <aroben@apple.com>
204
205         Windows/GTK+ build fix
206
207         * DumpRenderTree/LayoutTestController.cpp: #include MathExtras.h to
208         get isnan.
209
210 2008-02-13  Brady Eidson  <beidson@apple.com>
211
212         Reviewed by Darin Adler
213
214         Add some much needed Database support to DRT
215
216         * DumpRenderTree/LayoutTestController.cpp:
217         (LayoutTestController::LayoutTestController):
218         (dumpDatabaseCallbacksCallback): Flag to control if the UIDelegate methods related to
219           databases are called
220         (clearAllDatabasesCallback): Allow a test to delete all databases
221         (setDatabaseQuotaCallback): Allow a test to set the quota new origins will get
222         (LayoutTestController::staticFunctions):
223
224         * DumpRenderTree/LayoutTestController.h:
225         (LayoutTestController::dumpDatabaseCallbacks):
226         (LayoutTestController::setDumpDatabaseCallbacks):
227
228         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
229         (LayoutTestController::clearAllDatabases):
230         (LayoutTestController::setDatabaseQuota):
231
232         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
233         (LayoutTestController::clearAllDatabases): Stubbed out
234         (LayoutTestController::setDatabaseQuota): Ditto
235         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
236         (LayoutTestController::clearAllDatabases): Stubbed out with error message
237         (LayoutTestController::setDatabaseQuota): Ditto
238
239         * DumpRenderTree/mac/UIDelegate.mm:
240         (-[UIDelegate webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Print a
241           message with details about the event then return a 5mb quota like before
242
243
244 2008-02-12  Steve Falkenburg  <sfalken@apple.com>
245
246         Changes to support merged MIDL output.
247
248         All COM interfaces are now generated to WebKit.h.
249
250         Reviewed by Sam, Ada.
251
252         * Drosera/win/BaseDelegate.h:
253         * Drosera/win/DebuggerClient.cpp:
254         * Drosera/win/DebuggerDocumentPlatform.cpp:
255         * Drosera/win/Drosera.cpp:
256         * Drosera/win/ServerConnection.cpp:
257         * Drosera/win/ServerConnection.h:
258         * DumpRenderTree/win/DumpRenderTree.cpp:
259         * DumpRenderTree/win/EditingDelegate.h:
260         * DumpRenderTree/win/EventSender.cpp:
261         * DumpRenderTree/win/FrameLoadDelegate.cpp:
262         * DumpRenderTree/win/FrameLoadDelegate.h:
263         * DumpRenderTree/win/GCControllerWin.cpp:
264         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
265         * DumpRenderTree/win/PolicyDelegate.h:
266         * DumpRenderTree/win/ResourceLoadDelegate.h:
267         * DumpRenderTree/win/UIDelegate.cpp:
268         * DumpRenderTree/win/UIDelegate.h:
269         * DumpRenderTree/win/WorkQueueItemWin.cpp:
270
271 2008-02-10  Dan Bernstein  <mitz@apple.com>
272
273         Reviewed by Oliver Hunt.
274
275         - fix a memory leak
276
277         * DumpRenderTree/cg/ImageDiffCG.cpp:
278         (getDifferenceBitmap): Use a static CFMutableData instead of allocating
279         and leaking the buffer each time.
280
281 2008-02-07  Adam Roben  <aroben@apple.com>
282
283         Fix error in bisect-builds when responding "broken" for the first
284         build
285
286         Reviewed by Dave Kilzer.
287
288         * Scripts/bisect-builds: Only try to test the build if the nightly
289         info for the current index has not been deleted.
290
291 2008-02-07  Geoffrey Garen  <ggaren@apple.com>
292
293         Reviewed by Alexey Proskuryakov.
294
295         Fixed two minor typos in the --root option, to get it working.
296
297         * Scripts/run-sunspider:
298             1. Actually assign the function argument to our local variable.
299             2. Actually set the $root variable, so we don't try to build later.
300
301 2008-02-05  Oliver Hunt  <oliver@apple.com>
302
303         RS=Eric.
304
305         Re-enable foreignObject by default as it is needed for a number of non-fO
306         related SVG tests and none of the old known crashes occur anymore.
307
308         * Scripts/build-webkit:
309
310 2008-02-05  Steve Falkenburg  <sfalken@apple.com>
311
312         Build fix.  Don't override intermediate directory.
313
314         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
315
316 2008-02-05  Holger Hans Peter Freyther  <zecke@selfish.org>
317
318         Build fix for Windows. willCloseFrame is a pure virtual and we are
319         forced to have an implementation.
320         
321         This partially reverts r30014.
322
323         * DumpRenderTree/win/FrameLoadDelegate.cpp:
324         (FrameLoadDelegate::willCloseFrame):
325         * DumpRenderTree/win/FrameLoadDelegate.h:
326
327 2008-02-05  Nikolas Zimmermann  <zimmermann@kde.org>
328
329         Reviewed by Holger.
330
331         Don't build wrapper for SVGTestCase.js (special file for svg/dynamic-updates)
332
333         * Scripts/make-js-test-wrappers:
334
335 2008-02-05  Holger Freyther  <zecke@selfish.org>
336
337         Reviewed by Darin.
338
339         In http://bugs.webkit.org/show_bug.cgi?id=16853 it was identified that the
340         the output of the willCloseFrame and didClearWindowObject FrameLoadDelegate
341         depends on the order the tests are executed.
342         
343         Propose to remove willCloseFrame and didlCearWindowObject output from the
344         FrameLoadDelegate and update the test results. The output of didClearWindowObject
345         is not interesting for any of the current tests and we have other ways to find
346         out if a frame was closed or not.
347
348         * DumpRenderTree/mac/FrameLoadDelegate.mm:
349         * DumpRenderTree/win/FrameLoadDelegate.cpp:
350         (FrameLoadDelegate::didClearWindowObject):
351         * DumpRenderTree/win/FrameLoadDelegate.h:
352
353 2008-02-04  Mark Rowe  <mrowe@apple.com>
354
355         Reviewed by Oliver Hunt.
356
357         Workaround for http://bugs.webkit.org/show_bug.cgi?id=16842
358         Bug 16842: Hang in DRT in leaks mode due to signal handler doing unsafe things
359
360         Don't install the signal handler unless we are running the pixel tests.
361         It is currently only used to restore the color profile, but by catching
362         signals we can trigger a deadlock in DRT while running leak tests.
363         The deadlock is tracked by http://bugs.webkit.org/show_bug.cgi?id=16842,
364         and a more complete fix will need to be developed to address this for
365         pixel tests as well.
366
367         * DumpRenderTree/mac/DumpRenderTree.mm:
368         (dumpRenderTree):
369
370 2008-02-04  Mark Rowe  <mrowe@apple.com>
371
372        Gtk qmake build fix.
373
374         * Scripts/webkitdirs.pm:  Fix perl's complaint about an odd number of elements in anonymous hash.
375
376 2008-02-04  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
377
378         Reviewed by Alp Toker and Mark Rowe.
379
380         http://bugs.webkit.org/show_bug.cgi?id=16618
381         [GTK] build-webkit and run-webkit-tests autootools support
382
383         * Scripts/build-webkit: added --database and --icon-database options
384         * Scripts/run-launcher:
385         * Scripts/run-webkit-tests:
386         * Scripts/webkitdirs.pm:
387
388 2008-02-04  Oliver Hunt  <oliver@apple.com>
389
390         Reviewed by Steve F.
391
392         Partial fix for <rdar://5621244> Drag & Drop doesn't work correctly in DRT
393
394         Implement required DRT functionality to allow majority of Drag and Drop testcases to work.
395         Issues include:
396           * Uses Sleep() to implement leapForward reliably.
397           * 3 DND tests still fail for reasons that i have not yet determined
398           * Has to explicitly ignore an extraneous WM_MOUSELEAVE that i am at a loss to explain 
399
400         * DumpRenderTree/win/EventSender.cpp:
401         (leapForwardCallback):
402         (mouseDownCallback):
403         (doMouseUp):
404         (mouseUpCallback):
405         (doMouseMove):
406         (mouseMoveToCallback):
407           Minor updates to these functions to handle the different message queue structure.
408
409         (replaySavedEvents):
410           More complicated now.  Where possible we just use the old while-loop model of execution,
411           but when leapForward has been used we have to jump through some hoops and set up an 
412           inner event loop so that we can ensure messages get the correct time stamp.
413
414         * DumpRenderTree/win/UIDelegate.cpp:
415         (UIDelegate::doDragDrop):
416           Call replaySavedEvents directly to force synchronous handling of drag and drop.
417
418 2008-02-04  Rodney Dawes  <dobey@wayofthemonkey.com>
419
420         Reviewed by Alp Toker and Mark Rowe.
421
422         Fix http://bugs.webkit.org/show_bug.cgi?id=17175.
423         Bug 17175: Use of C++ compiler flags in CFLAGS
424
425         * GNUmakefile.am: Use global_cxxflags as well as global_cflags in CXXFLAGS.
426
427 2008-02-04  Darin Adler  <darin@apple.com>
428
429         Reviewed by Geoff.
430
431         * Scripts/make-js-test-wrappers: Look at the whole LayoutTests tree, not just the fast
432         and svg subdirectories. Added some more exceptions for the benefit of the fast/dom
433         subdirectory.
434
435 2008-02-04  Adam Roben  <aroben@apple.com>
436
437         Windows Apple-only build fix
438
439         * DumpRenderTree/win/DumpRenderTree.vcproj: Added a new include
440         directory.
441
442 2008-02-04  Alp Toker  <alp@atoker.com>
443
444         Rubber-stamped by Mark Rowe.
445
446         Remove all trailing whitespace in the GTK+ port and related
447         components.
448
449         * DumpRenderTree/gtk/DumpRenderTreeGtk.h:
450         * DumpRenderTree/gtk/GCControllerGtk.cpp:
451         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
452         * GNUmakefile.am:
453
454 2008-02-01  Eric Seidel  <eric@webkit.org>
455
456         Reviewed by Oliver.
457
458         Also search LayoutTests/svg for js-based tests.
459
460         * Scripts/make-js-test-wrappers:
461
462 2008-01-31  Alp Toker  <alp@atoker.com>
463
464         Rubber-stamped by Adam Roben.
465
466         http://bugs.webkit.org/show_bug.cgi?id=17006
467         [GTK] Header path should be webkit/webkit.h
468
469         Move the GTK+ API sources as needed and update the build systems.
470
471         * DumpRenderTree/gtk/DumpRenderTree.cpp:
472         * DumpRenderTree/gtk/DumpRenderTreeGtk.h:
473         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp:
474         * GNUmakefile.am:
475         * GtkLauncher/main.c:
476
477 2008-01-30  Stephanie  <slewis@apple.com>
478
479         Reviewed by Geoff.
480
481         Add an option to run-webkit-tests to merge leaks results and print the number of unique leaks found under a certain call depth.  This should make it easier for the buildbots to track new leaks.
482
483         * Scripts/run-webkit-tests:
484
485 2008-01-30  Alexey Proskuryakov  <ap@webkit.org>
486
487         Reviewed by Adam Roben.
488
489         One more debug (external) fix.
490
491         * DumpRenderTree/win/DumpRenderTree.cpp: TestNetscapePlugin is built with a _debug suffix in both DebugInternal
492         and Debug configurations. 
493
494 2008-01-29  Geoffrey Garen  <ggaren@apple.com>
495
496         Reviewed by Sam Weinig. Sam Weinig.
497         
498         Fixed <rdar://problem/5692566> fast/encoding/mailto-always-utf-8.html
499         fails when run after fast/dom/Window/window-property-shadowing.html (16902)
500
501         Modified our policy delegates not to output window.name. Since a
502         previous test may have explicitly set window.name, we can't rely on its
503         implicit value in test results.
504
505         * DumpRenderTree/mac/PolicyDelegate.mm:
506         (-[PolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
507
508         * DumpRenderTree/win/PolicyDelegate.cpp:
509         (PolicyDelegate::decidePolicyForNavigationAction):
510
511 2008-01-29  Mark Rowe  <mrowe@apple.com>
512
513         Reviewed by Tim Hatcher.
514
515         <rdar://problem/5600926> WebCore on Tiger must link to its own copy of SQLite 3.4 or newer (so HTML database behavior will be correct).
516
517         * Scripts/build-webkit: Copy SQLite static library and headers into the build directory.
518
519 2008-01-29  David Kilzer  <ddkilzer@apple.com>
520
521         Refactor ChangeLog path code
522
523         Reviewed by Adam.
524
525         * Scripts/prepare-ChangeLog: Simplify code in one foreach() loop, and extract
526         duplicate code in another foreach() loop.
527
528 2008-01-29  Alexey Proskuryakov  <ap@webkit.org>
529
530         Reviewed by Darin.
531
532         <rdar://problem/5710692> All storage tests fail/crash
533
534         * DumpRenderTree/mac/UIDelegate.mm:
535         (-[UIDelegate webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Set an
536         arbitrary quota of 5 megabytes.
537
538         (-[UIDelegate webView:frame:quotaForSecurityOrigin:toCreateDatabase:withEstimatedSize:]):
539         (-[UIDelegate webView:frame:quotaForSecurityOrigin:fromProposedQuota:database:]):
540         Removed unused (I think) code.
541         
542         * DumpRenderTree/win/UIDelegate.cpp:
543         (UIDelegate::QueryInterface): IWebUIDelegatePrivate3 is now supported.
544         (UIDelegate::webViewPainted): A stub implementation.
545         (UIDelegate::exceededDatabaseQuota): Set an arbitrary quota of 5 megabytes.
546         * DumpRenderTree/win/UIDelegate.h:
547
548 2008-01-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
549
550         GTK+ DRT build fix for breakage introduced in r29822.
551
552         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
553         (LayoutTestController::setPersistentUserStyleSheetLocation):
554         (LayoutTestController::clearPersistentUserStyleSheet):
555
556 2008-01-27  Dan Bernstein  <mitz@apple.com>
557
558         Reviewed by Darin Adler.
559
560         - add support for directory prologues and epilogues to run-webkit-tests
561         - allow setting a persistent user style sheet in DumpRenderTree
562         - activate the WebKit Layout Tests font in Windows DumpRenderTree
563
564         * DumpRenderTree/LayoutTestController.cpp:
565         (clearPersistentUserStyleSheetCallback): Added.
566         (setPersistentUserStyleSheetLocationCallback): Added.
567         (LayoutTestController::staticFunctions): Added.
568         clearPersistentUserStyleSheet and setPersistentUserStyleSheet.
569         * DumpRenderTree/LayoutTestController.h:
570         * DumpRenderTree/mac/DumpRenderTree.mm:
571         (setPersistentUserStyleSheetLocation): Added.
572         (resetWebViewToConsistentStateBeforeTesting): Added the user style sheet
573         to the set of things this function resets. Now it either disables the
574         user style sheet or sets it to the persistent user style sheet and
575         enables it.
576         * DumpRenderTree/mac/DumpRenderTreeMac.h:
577         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
578         (LayoutTestController::setPersistentUserStyleSheetLocation): Added.
579         (LayoutTestController::clearPersistentUserStyleSheet): Added.
580         * DumpRenderTree/win/DumpRenderTree.cpp:
581         (setPersistentUserStyleSheetLocation): Added.
582         (initialize): Added the WebKit Layout Tests font to the set of fonts to
583         install.
584         (resetWebViewToConsistentStateBeforeTesting): See DumpRenderTree.mm.
585         * DumpRenderTree/win/DumpRenderTreeWin.h:
586         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
587         (LayoutTestController::setPersistentUserStyleSheetLocation): Added.
588         (LayoutTestController::clearPersistentUserStyleSheet): Added.
589         * Scripts/run-webkit-tests: Changed to look for, and if found process in
590         DumpRenderTree, files named run-webkit-tests-prologue.html and
591         run-webkit-tests-epilogue.html in the resources subdirectory of any
592         test directory and platform test results directory. The prologues are
593         processed before the first test from the directory (and its
594         subdirectories) is run, and the epilogues are processed after the last
595         test from the directory is run. Platform-specific prologues and
596         epilogues are processed in order of specificity.
597
598 2008-01-25  Alexey Proskuryakov  <ap@webkit.org>
599
600         Reviewed by Mark Rowe.
601
602         <rdar://problem/5699933> http/tests/security/cross-frame-access-get.html is still failing
603
604         * DumpRenderTree/win/DumpRenderTree.cpp: (main): Clear HTTP cache to ensure consistent test environment
605         (matching Mac DRT).
606         * DumpRenderTree/win/DumpRenderTree.vcproj: Link to CFNetwork.
607
608 2008-01-24  Sam Weinig  <sam@webkit.org>
609
610         Reviewed by Ada Chan.
611
612         Fix for <rdar://5131975> DumpRenderTree doesn't support undo/redo
613
614         - Adds simplified UndoManager to windows DRT to allow testing the
615           undo/redo code paths in WebCore and WebKit.  This is a temporary
616           solution to an issue that should eventually be solved by having a
617           shared UndoManager in WebKit.
618
619         * DumpRenderTree/win/DumpRenderTree.cpp:
620         (runTest):
621         * DumpRenderTree/win/UIDelegate.cpp:
622         (DRTUndoObject::DRTUndoObject):
623         (DRTUndoObject::invoke):
624         (DRTUndoStack::~DRTUndoStack):
625         (DRTUndoStack::isEmpty):
626         (DRTUndoStack::clear):
627         (DRTUndoStack::push):
628         (DRTUndoStack::pop):
629         (DRTUndoManager::canRedo):
630         (DRTUndoManager::canUndo):
631         (DRTUndoManager::DRTUndoManager):
632         (DRTUndoManager::removeAllActions):
633         (DRTUndoManager::registerUndoWithTarget):
634         (DRTUndoManager::redo):
635         (DRTUndoManager::undo):
636         (UIDelegate::UIDelegate):
637         (UIDelegate::resetUndoManager):
638         (UIDelegate::registerUndoWithTarget):
639         (UIDelegate::removeAllActionsWithTarget):
640         (UIDelegate::setActionTitle):
641         (UIDelegate::undo):
642         (UIDelegate::redo):
643         (UIDelegate::canUndo):
644         (UIDelegate::canRedo):
645         * DumpRenderTree/win/UIDelegate.h:
646
647 2008-01-23  Adam Roben  <aroben@apple.com>
648
649         Allow directories containing ChangeLogs to be passed to
650         resolve-ChangeLogs
651
652         Reviewed by David Kilzer.
653
654         * Scripts/resolve-ChangeLogs:
655         (sub findChangeLog): Return a ChangeLog contained within the specified
656         directory if one exists.
657
658 2008-01-23  Steve Falkenburg  <sfalken@apple.com>
659
660         <rdar://problem/5698732> Copyright strings should include 2008
661
662         Reviewed by Sam.
663
664         * Drosera/win/Drosera.vcproj/Drosera.rc:
665         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.rc:
666
667 2008-01-23  Alp Toker  <alp@atoker.com>
668
669         Rubber-stamped by Mark Rowe.
670
671         Remove whitespace after -I in automake include lists.
672
673         * GNUmakefile.am:
674
675 2008-01-23  Michael Goddard <michael.goddard@trolltech.com>
676
677         Reviewed by Lars Knoll <lars@trolltech.com>.
678
679         Reworked the JavaScriptCore Qt bindings:
680         
681         * Update JS DRT controller for Qt JS binding changes.
682         There were two functions that needed some changes
683         so that the layout tests would work, so this makes
684         a few tests pass again.
685         
686         * Bump the timeout for layout tests up to 11s.
687         At least some tests have an internal timeout of
688         10 seconds, so make the waitUntilDone approach
689         wait at least 11s.  fast/dom/open-and-close-by-DOM.html
690         is one of these - now the failure message is more
691         accurate.
692         
693
694         * DumpRenderTree/qt/jsobjects.cpp:
695         (LayoutTestController::waitUntilDone):
696         * DumpRenderTree/qt/jsobjects.h:
697
698 2008-01-22  Anders Carlsson  <andersca@apple.com>
699
700         Reviewed by Darin and Adam.
701
702         <rdar://problem/5688975>
703         div element on microsoft site has wrong left offset.
704         
705         Add new method for testing the return vale of NPN_GetProperty.
706         
707         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
708         (pluginInvoke):
709
710 2008-01-22  Alexey Proskuryakov  <ap@webkit.org>
711
712         Reviewed by Adam Roben.
713
714         <rdar://problem/5670257> editing/selection/4895428-3.html makes editing/selection/5131716-2.html fail
715
716         * DumpRenderTree/win/EventSender.cpp: (makeEventSender): Reset static variables for a new test.
717
718 2008-01-21  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
719
720         Reviewed by Alp Toker.
721
722         http://bugs.webkit.org/show_bug.cgi?id=16955
723         Get errors when cross-compile webkit-gtk
724
725         * GNUmakefile.am: Removed ICU_CFLAGS 
726
727 2008-01-21  Darin Adler  <darin@apple.com>
728
729         Reviewed by Mitz and Adam.
730
731         * Scripts/svn-create-patch: Sort ChangeLog files first. Also slightly improved the
732         sorting speed by doing all sort criteria in a single pass instead of three sorts.
733
734 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
735
736         Reviewed by Holger.
737
738         Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
739         
740         * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
741         * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
742         and make the return value depend on whether we successfully determined a focusable
743         node or not.
744         * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
745         if we could not handle the focus chain ourselves.
746         * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
747         * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
748         used to control the situation of stepping out of the focus chain inside the page.
749         * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
750         The layout tests expect this to be disabled but for the user it seems sensible to have it
751         on by default, hence the default in qwebsettings.cpp
752         
753
754         * DumpRenderTree/qt/DumpRenderTree.cpp:
755         (WebCore::WebPage::WebPage):
756
757 2008-01-19  Mark Rowe  <mrowe@apple.com>
758
759         Reviewed by Alp Toker.
760
761         Allow the --http flag to run-webkit-tests to override
762         the default behaviour of disabling HTTP tests for Qt,
763         Gtk and Wx.
764
765         * Scripts/run-webkit-tests:
766
767 2008-01-19  David Kilzer  <ddkilzer@apple.com>
768
769         <rdar://problem/5695344> check-for-global-initializers script never checks any object files
770
771         Reviewed by Darin.
772
773         We now touch a check-for-global-initializers.timestamp file in
774         the TARGET_TEMP_DIR directory to determine when new object files
775         have been compiled and thus need to be checked.  If the timestamp
776         file doesn't exist, all object files will be checked.
777
778         Previously the modification time of the "executable" (the
779         framework binary, e.g., WebKit.framework/WebKit) was used, but
780         since this was the last file modified at the end of the compile
781         phase, no object files would ever get checked!
782
783         Also added JSCustomSQLTransactionCallback.o to the list of files
784         since it has static initializers in Debug builds of WebCore.
785
786         * Scripts/check-for-global-initializers:
787
788 2008-01-18  Adam Roben  <aroben@apple.com>
789
790         Build fix
791
792         * Scripts/build-webkit:
793
794 2008-01-18  Beth Dakin  <bdakin@apple.com>
795
796         Reviewed by Oliver.
797
798         Update build-webkit to account for foreign-object being disabled by 
799         default.
800
801         * Scripts/build-webkit:
802
803 2008-01-18  Adam Roben  <aroben@apple.com>
804
805         Updated for method renames
806
807         Reviewed by Adele.
808
809         * DumpRenderTree/mac/FrameLoadDelegate.mm:
810         (-[FrameLoadDelegate webView:didCommitLoadForFrame:]):
811         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
812         (LayoutTestController::setMainFrameIsFirstResponder):
813         (LayoutTestController::setWindowIsKey):
814         * DumpRenderTree/mac/UIDelegate.mm:
815         (-[UIDelegate webViewFocus:]):
816         * DumpRenderTree/win/FrameLoadDelegate.cpp:
817         (FrameLoadDelegate::didCommitLoadForFrame):
818
819 2008-01-18  Alexey Proskuryakov  <ap@webkit.org>
820
821         Reviewed by Adam Roben.
822
823         Fix plugin-related tests in Debug_Internal configuration, which are failing because of CRT version mismatch
824         between DRT and TestNetscapePlugin.
825
826         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj: Added a Debug_Internal configuration.
827         * DumpRenderTree/DumpRenderTree.sln: Use this configuration.
828
829 2008-01-18  Simon Hausmann  <hausmann@webkit.org>
830
831         Reviewed by Holger.
832
833         Fix fast/dom/Window/window-resize.html
834         
835         In DRT connect the page's geometryChangeRequest signal to a slot that
836         sets the geometry of the view widget.
837         
838
839         * DumpRenderTree/qt/DumpRenderTree.cpp:
840         (WebCore::WebPage::setViewGeometry):
841         (WebCore::WebPage::WebPage):
842
843 2008-01-17  Steve Falkenburg  <sfalken@apple.com>
844
845         Build fix.
846
847         * Drosera/DroseraWin.make:
848
849 2008-01-17  Darin Adler  <darin@apple.com>
850
851         * Scripts/run-webkit-tests: Fixed a bug number.
852
853 2008-01-17  Alexey Proskuryakov  <ap@webkit.org>
854
855         Reviewed by Adam Roben.
856
857         http://bugs.webkit.org/show_bug.cgi?id=16908
858         run-webkit-tests complains about missing FindSafari.exe
859
860         * Scripts/webkitdirs.pm: Append _debug as appropriate.
861
862 2008-01-17  Steve Falkenburg  <sfalken@apple.com>
863
864         Re-add DEBUG_WEBKIT_HAS_SUFFIX.
865         
866         Rubber-stamped by Jon Honeycutt.
867
868         * DumpRenderTree/win/DumpRenderTree.vcproj:
869
870 2008-01-16  Alp Toker  <alp@atoker.com>
871
872         Reviewed by Mark Rowe.
873
874         http://bugs.webkit.org/show_bug.cgi?id=16218
875         [GTK] API: Should this entry point be called go_back rather than go_backward?
876
877         Track back/forward API changes in the tools.
878
879         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp:
880         (BackForwardItem::invoke):
881         * GtkLauncher/main.c:
882         (go_back_cb):
883
884 2008-01-16  Adam Roben  <aroben@apple.com>
885
886         Windows build fix after r29488
887
888         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj:
889         Build into a subdirectory of $WebKitOutputDir\bin to match where DRT
890         expects to find the plugin.
891
892 2008-01-11  Geoffrey Garen  <ggaren@apple.com>
893
894         Reviewed by Sam Weinig.
895         
896         Fixed the waitUntilDone watchdog timer -- the old code never added the
897         timer to the run loop, so it didn't do anything.
898
899         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
900         (LayoutTestController::setWaitToDump):
901         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
902         (LayoutTestController::setWaitToDump):
903
904 2008-01-14  Steve Falkenburg  <sfalken@apple.com>
905
906         Use shared vsprops for most vcproj properties.
907         
908         Reviewed by Darin.
909
910         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
911         * DumpRenderTree/win/DumpRenderTree.vcproj:
912         * DumpRenderTree/win/ImageDiff.vcproj:
913         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj:
914         * FindSafari/FindSafari.vcproj:
915
916 2008-01-14  Stephanie  <slewis@apple.com>
917
918        Reviewed by NOBODY.
919   
920        revert accidental character.
921
922        * Scripts/run-webkit-tests:
923
924 2008-01-14  Stephanie  <slewis@apple.com>
925
926         RS=Oliver
927
928         add Quicktime PPC only leaks to Leopard exclude list. See <rdar://problem/5667132>
929
930         * Scripts/run-webkit-tests:
931
932 2008-01-14  Darin Adler  <darin@apple.com>
933
934         * Scripts/do-webcore-rename: Queue up another rename.
935
936 2008-01-14  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
937
938         Reviewed by Darin.
939
940         * Allow to run the tests in reverse order to spot test cases where the result depends on the order
941         the tests were ran.
942         * This is from http://bugs.webkit.org/show_bug.cgi?id=16869
943
944         * Scripts/run-webkit-tests:
945
946 2008-01-14  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
947
948         Reviewed by Darin.
949
950         * Randomize tests array to spot test cases where the results depends on the order
951         the tests are ran.
952         * This is from http://bugs.webkit.org/show_bug.cgi?id=16869
953
954         * Scripts/run-webkit-tests:
955
956 2008-01-14  Darin Adler  <darin@apple.com>
957
958         * Scripts/run-webkit-tests: More ignore list tweaking.
959
960 2008-01-14  Darin Adler  <darin@apple.com>
961
962         * Scripts/run-webkit-tests: Add another leak to the ignore list.
963
964 2008-01-14  Dan Bernstein  <mitz@apple.com>
965
966         Reviewed by Adam Roben.
967
968         - try to fix failure in fast/dom/Window/window-onFocus.html seen on the
969           build bots
970
971         * DumpRenderTree/win/DumpRenderTree.cpp:
972         (resetWebViewToConsistentStateBeforeTesting): Focus the web view.
973
974 2008-01-13  Steve Falkenburg  <sfalken@apple.com>
975
976         Share common files across projects.
977         
978         Unify vsprops files
979         Debug:          common.vsprops, debug.vsprops
980         Debug_Internal: common.vsprops, debug.vsprops, debug_internal.vsprops
981         Release:        common.vsprops, release.vsprops
982         
983         Shared properties can go into common.vsprops, shared debug settings can go into debug.vsprops.
984         debug_internal.vsprops will be mostly empty except for file path prefix modifiers.
985
986         Pull auto-version.sh, VERSION, and PRODUCTVERSION from tools.
987
988         Reviewed by Adam Roben.
989
990         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
991         * Drosera/win/Drosera.vcproj/PRODUCTVERSION: Removed.
992         * Drosera/win/Drosera.vcproj/VERSION: Removed.
993         * Drosera/win/Drosera.vcproj/auto-version.sh: Removed.
994         * Drosera/win/Drosera.vcproj/debug.vsprops: Removed.
995         * Drosera/win/Drosera.vcproj/debug_internal.vsprops: Removed.
996         * Drosera/win/Drosera.vcproj/release.vsprops: Removed.
997         * DumpRenderTree/win/DumpRenderTree.vcproj:
998         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj:
999         * DumpRenderTree/win/debug.vsprops: Removed.
1000         * DumpRenderTree/win/debug_internal.vsprops: Removed.
1001         * DumpRenderTree/win/release.vsprops: Removed.
1002
1003 2008-01-13  Brent Fulgham  <bfulgham@gmail.com>
1004
1005         Reviewed by Maciej.
1006
1007         - http://bugs.webkit.org/show_bug.cgi?id=16314
1008           Script to launch Drosera
1009
1010         * Scripts/gdb-drosera: Added.
1011         * Scripts/run-drosera: Added.
1012         * Scripts/run-drosera-nightly.cmd: Added.
1013         * Scripts/webkitdirs.pm: Added runDrosera function.
1014
1015 2008-01-13  Dan Bernstein  <mitz@apple.com>
1016
1017         - fix breakage due to last-minute change
1018
1019         * DumpRenderTree/win/DumpRenderTree.cpp:
1020         (runTest): Declare the loop variable.
1021
1022 2008-01-13  Dan Bernstein  <mitz@apple.com>
1023
1024         Reviewed by Adam Roben.
1025
1026         - fix <rdar://problem/5132009> Windows DRT does not support multiple windows
1027
1028         * DumpRenderTree/win/DumpRenderTree.cpp:
1029         (DumpRenderTreeWndProc):
1030         (initialize):
1031         (dumpBackForwardList):
1032         (dumpBackForwardListForAllWindows):
1033         (dump):
1034         (resetWebViewToConsistentStateBeforeTesting): Factored out of
1035         runTest().
1036         (runTest):
1037         (allWindows): Added. Returns a vector of all open windows.
1038         (windowToWebViewMap): Added. Returns a map from open windows to their
1039         WebViews.
1040         (createWebViewAndOffscreenWindow): Factored out of main() to be
1041         reusable for creating extra windows.
1042         (main):
1043         * DumpRenderTree/win/DumpRenderTreeWin.h:
1044         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1045         (LayoutTestController::windowCount): Implemented.
1046         * DumpRenderTree/win/UIDelegate.cpp:
1047         (UIDelegate::createWebViewWithRequest): Implemented.
1048         (UIDelegate::webViewClose): Implemented.
1049         * DumpRenderTree/win/UIDelegate.h:
1050
1051 2008-01-12  Alp Toker  <alp@atoker.com>
1052
1053         Reviewed by Mark Rowe.
1054
1055         Hide non-public symbols in GTK+/autotools release builds.
1056
1057         * GNUmakefile.am:
1058
1059 2008-01-12  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1060
1061         Reviewed by Ap.
1062
1063         * Make launching of the WebKit httpd work on GNU/Debian/Linux
1064         
1065         The configuration of Apache2 and installation does not depend on
1066         the kernel but on the distribution policy. Make launching of httpd
1067         work for Debian derived distributions.
1068
1069         * Scripts/run-webkit-httpd:
1070         * Scripts/run-webkit-tests:
1071         * Scripts/webkitdirs.pm:
1072
1073 2008-01-12  Mark Rowe  <mrowe@apple.com>
1074
1075         Reviewed by Maciej Stachowiak.
1076
1077         Fix crash in http/tests/security/local-JavaScript-from-remote.html under guard malloc.
1078
1079         * DumpRenderTree/mac/LayoutTestControllerMac.mm: Retain string before returning it to
1080         match the callers expectations that it can take ownership of the string.
1081
1082 2008-01-11  Alexey Proskuryakov  <ap@webkit.org>
1083
1084         Reviewed by Adam Roben.
1085
1086         <rdar://problem/5667275> fast/dynamic/layer-hit-test-crash.html is failing
1087
1088         * DumpRenderTree/win/DumpRenderTree.cpp: (runTest): Ignore WM_MOUSELEAVE events,
1089         as these are only posted because the test window is not a normal visible one, and
1090         they confuse drag&drop machinery.
1091
1092 2008-01-11  Adam Roben  <aroben@apple.com>
1093
1094         Fix a crash when pathToLocalResource fails and a leak
1095
1096         Reviewed by Darin.
1097
1098         * DumpRenderTree/LayoutTestController.cpp:
1099         (pathToLocalResourceCallback): Dont leak the JSStringRef, and make
1100         sure not to pass null to JSValueMakeString.
1101         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1102         (LayoutTestController::pathToLocalResource): Print an error message if
1103         the conversion fails so it's clear what happened.
1104
1105 2008-01-11  Geoffrey Garen  <ggaren@apple.com>
1106
1107         Reviewed by John Sullivan.
1108
1109         * DumpRenderTree/mac/GCControllerMac.mm:
1110         (GCController::collectOnAlternateThread): Updated for name change.
1111
1112 2008-01-10  Kevin Ollivier  <kevino@theolliviers.com>
1113
1114         wx build fix. Don't build dftables any longer since it's now a Perl
1115         script.
1116
1117         * wx/build-wxwebkit:
1118
1119 2008-01-10  Sam Weinig  <sam@webkit.org>
1120
1121         Reviewed by Anders Carlsson.
1122
1123         Make DRT track open windows instead of allocated windows so that
1124         we can avoid ASSERTION due to late deallocs out of our control.
1125
1126         * DumpRenderTree/mac/DumpRenderTree.mm:
1127         (dumpBackForwardListForAllWindows):
1128         (runTest):
1129         * DumpRenderTree/mac/DumpRenderTreeMac.h:
1130         * DumpRenderTree/mac/DumpRenderTreeWindow.h:
1131         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
1132         (+[DumpRenderTreeWindow openWindows]):
1133         (-[DumpRenderTreeWindow initWithContentRect:styleMask:backing:defer:]):
1134         (-[DumpRenderTreeWindow close]):
1135         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1136         (LayoutTestController::windowCount):
1137
1138 2008-01-10  Ada Chan  <adachan@apple.com>
1139
1140         Meta key is not the same as Alt key on windows.
1141
1142         Reviewed by Darin.
1143
1144         * DumpRenderTree/win/EventSender.cpp:
1145         (keyDownCallback):
1146
1147 2008-01-09  Kevin McCullough  <kmccullough@apple.com>
1148
1149         Reviewed by Darin, Sam and Adam.
1150
1151         -<rdar://problem/5654486> REGRESSION (Safari 3.0.4-TOT): clicking on
1152         link in gmail message displays JavaScript alert falsely complaining
1153         about pop-up blocking.
1154         - Added the ability to enable the pop-up blocker via the
1155         LayoutTestController.
1156
1157         * DumpRenderTree/LayoutTestController.cpp:
1158         (setPopupBlockingEnabledCallback):
1159         (LayoutTestController::staticFunctions):
1160         * DumpRenderTree/LayoutTestController.h:
1161         * DumpRenderTree/mac/DumpRenderTree.mm:
1162         (setDefaultsToConsistentValuesForTesting):
1163         (resetWebViewToConsistentStateBeforeTesting):
1164         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1165         (LayoutTestController::setPopupBlockingEnabled):
1166
1167 2008-01-10  Lars Knoll  <lars@trolltech.com>
1168
1169         Reviewed by Simon.
1170
1171         rename QWebPageHistory to QWebHistory.
1172         
1173
1174         * DumpRenderTree/qt/jsobjects.cpp:
1175
1176 2008-01-09  Maciej Stachowiak  <mjs@apple.com>
1177
1178         Reviewed by Darin.
1179         
1180         - add some more renames, adjust some
1181
1182         * Scripts/do-webcore-rename:
1183
1184 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
1185
1186         Reviewed by Oliver.
1187
1188         Enable SVG Fonts support by default.
1189
1190         * Scripts/build-webkit:
1191
1192 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
1193
1194         Reviewed by Adam.
1195
1196         Fixes: http://bugs.webkit.org/show_bug.cgi?id=16244
1197         DRT doesn't handle platform specific pixel test results correctly.
1198
1199         <test>-expected.txt files and <test>-expected.png files may now live
1200         in different directories (ie. a cross-platform <test>-expected.txt file
1201         and a platform-specific <test>-expected.png file).
1202
1203         * Scripts/run-webkit-tests:
1204
1205 2008-01-04  Kevin McCullough  <kmccullough@apple.com>
1206
1207         Reviewed by Darin.
1208
1209         - <rdar://problem/5666914> fast/regex/test{1,4}.html are failing
1210         DRT did not correctly handle printing the '\0' char.  Now it does.
1211
1212         * DumpRenderTree/win/DumpRenderTree.cpp:
1213         (dumpFramesAsText):
1214         (dump):
1215
1216 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
1217
1218         Reviewed by Lars.
1219
1220         Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
1221         
1222
1223         * DumpRenderTree/qt/main.cpp:
1224         * DumpRenderTree/qt/testplugin.cpp:
1225         * DumpRenderTree/qt/testplugin.h:
1226
1227 2008-01-05  Mark Rowe  <mrowe@apple.com>
1228
1229         Reviewed by Alp Toker.
1230
1231         Fix hang in fast/frames/frame-display-none-focus.html during Gtk layout tests.
1232
1233         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1234         (processWork): Process pending work.
1235         (webViewLoadFinished): Schedule processing of pending work.
1236         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp: Use webkit_web_frame_reload.
1237
1238 2008-01-05  Darin Adler  <darin@apple.com>
1239
1240         * Scripts/do-webcore-rename: Some more renaming plans.
1241
1242 2008-01-04  Alice Liu  <alice.liu@apple.com>
1243
1244         Reviewed by Alexey and Darin.
1245
1246         Adding "home" and "end" to DRT's keydown since
1247         DOM key events can't handle keyIdentifiers at this point. 
1248
1249         * DumpRenderTree/mac/EventSendingController.mm:
1250         (-[EventSendingController keyDown:withModifiers:]):
1251         * DumpRenderTree/win/EventSender.cpp:
1252         (keyDownCallback):
1253
1254 2008-01-04  Lars Knoll  <lars@trolltech.com>
1255
1256         Reviewed by Simon.
1257
1258         fix DRT after the changes to QWebPage.
1259         
1260         The great thing is that we actually don't have
1261         any regressions from the QWebPage change :)
1262         
1263
1264         * DumpRenderTree/qt/DumpRenderTree.cpp:
1265         (WebCore::DumpRenderTree::DumpRenderTree):
1266
1267 2008-01-04  Lars Knoll  <lars@trolltech.com>
1268
1269         Reviewed by Simon.
1270
1271         make QWebPage a QObject and get things to compile.
1272         
1273         Nothing works currently though.
1274         
1275
1276         * DumpRenderTree/qt/DumpRenderTree.cpp:
1277         (WebCore::DumpRenderTree::DumpRenderTree):
1278
1279 2008-01-04  Lars Knoll  <lars@trolltech.com>
1280
1281         Reviewed by Simon.
1282
1283         take a QString as identifier in QWebFrame::addToJSWindowObject.
1284
1285         * DumpRenderTree/qt/DumpRenderTree.cpp:
1286         (WebCore::DumpRenderTree::initJSObjects):
1287
1288 2008-01-04  Alp Toker  <alp@atoker.com>
1289
1290         GTK+ DRT build fix for breakage introduced in r29149.
1291
1292         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1293         (LayoutTestController::execCommand):
1294
1295 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
1296
1297         Reviewed by Darin.
1298
1299         <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
1300
1301         Added layoutTestController.execCommand to access editor commands that are not available
1302         via document.execCommand.
1303
1304         * DumpRenderTree/LayoutTestController.cpp:
1305         (execCommandCallback):
1306         (LayoutTestController::staticFunctions):
1307         * DumpRenderTree/LayoutTestController.h:
1308         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1309         (LayoutTestController::execCommand):
1310         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1311         (LayoutTestController::queueLoad):
1312         (LayoutTestController::execCommand):
1313
1314 2008-01-03  Alice Liu  <alice.liu@apple.com>
1315
1316         Reviewed by Darin, Mitz.
1317
1318         fixed <rdar://5130762> mousedowns in different locations increase the clickcount incorrectly
1319
1320         the clickcount should not increase if the last click was at a different location.  it's a new click.
1321
1322         * DumpRenderTree/mac/DumpRenderTree.mm:
1323         (runTest):
1324         * DumpRenderTree/mac/EventSendingController.h:
1325         * DumpRenderTree/mac/EventSendingController.mm:
1326         (-[EventSendingController mouseDown]):
1327         (-[EventSendingController mouseUp]):
1328
1329 2008-01-03  Darin Adler  <darin@apple.com>
1330
1331         Reviewed by Adam.
1332
1333         * Scripts/update-webkit: Make this work a little better for the people at Apple
1334         who have a directory named Internal.
1335
1336 2008-01-03  Adam Roben  <aroben@apple.com>
1337
1338         Use HTTP::Date instead of Date::Parse because it's installed by Cygwin by default
1339
1340         Rubberstamped by Mark.
1341
1342         * Scripts/update-webkit-auxiliary-libs:
1343
1344 2008-01-03  Adam Roben  <aroben@apple.com>
1345
1346         Fix Bug 15663: update-webkit re-downloads WebKitAuxiliaryLibrary unnecessarily
1347
1348         http://bugs.webkit.org/show_bug.cgi?id=15663
1349
1350         Added a fuzz factor into the Last-Modified comparison for downloading
1351         WebKitAuxiliaryLibrary.zip.
1352
1353         The zip file is served from a set of mirrors who give Last-Modified
1354         times that are off by 1-3 seconds from each other. This was causing
1355         the build bots to redownload WebKitAuxiliaryLibrary for every build,
1356         which would then cause all of WebCore to rebuild each time.
1357
1358         Reviewed by Mark.
1359
1360         * Scripts/update-webkit-auxiliary-libs: Check if the new zip file is
1361         at least 30 seconds newer than the old one -- otherwise we assume that
1362         the difference in time is due to the mirrors being slightly offset
1363         from each other.
1364         (sub lastModifiedToUnixTime): Added.
1365
1366 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
1367
1368         Windows build fix.
1369
1370         * DumpRenderTree/ForwardingHeaders/wtf/HashTraits.h: Added (needed by COMPtr.h).
1371
1372 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
1373
1374         Reviewed by Lars.
1375
1376         Moved QWebPage::open to QWebFrame::load and added setHtml.
1377         
1378
1379         * DumpRenderTree/qt/DumpRenderTree.cpp:
1380         (WebCore::DumpRenderTree::open):
1381
1382 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
1383
1384         Reviewed by Lars.
1385
1386         Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
1387         
1388
1389         * DumpRenderTree/qt/DumpRenderTree.cpp:
1390         (WebCore::DumpRenderTree::DumpRenderTree):
1391
1392 2008-01-02  Sam Weinig  <sam@webkit.org>
1393
1394         * Scripts/do-webcore-rename: Yet more renaming ideas.
1395
1396 2008-01-02  Darin Adler  <darin@apple.com>
1397
1398         * Scripts/do-webcore-rename: More renaming ideas. (Maciej, please merge yours with mine.)
1399
1400 2008-01-02  Alice Liu  <alice.liu@apple.com>
1401
1402         Reviewed by Sam Weinig.
1403
1404         fixing assertion hit with editing/selection/move-begin-end.html
1405
1406         * DumpRenderTree/ForwardingHeaders/wtf/ASCIICType.h: Added.
1407         * DumpRenderTree/win/DumpRenderTree.vcproj:
1408         * DumpRenderTree/win/EventSender.cpp:
1409         (keyDownCallback):
1410         using isupper will cause an assertion for inputs outside of ascii range. use isASCIIUpper instead.
1411
1412 2008-01-02  Darin Adler  <darin@apple.com>
1413
1414         * Scripts/do-webcore-rename: Some more name change plans.
1415
1416 2008-01-02  Alice Liu  <alice.liu@apple.com>
1417
1418         Reviewed by Maciej.
1419
1420         Added handling for page up and page down in EventSender
1421
1422         * DumpRenderTree/mac/EventSendingController.mm:
1423         (-[EventSendingController keyDown:withModifiers:]):
1424         * DumpRenderTree/win/EventSender.cpp:
1425         (keyDownCallback):
1426
1427 2008-01-02  Alexey Proskuryakov  <ap@webkit.org>
1428
1429         Reviewed by Darin.
1430
1431         Fix fast/events/arrow-keys-on-body.html for real.
1432
1433         * DumpRenderTree/win/EventSender.cpp: (keyDownCallback): Pass proper keyData for WM_KEYUP, too.
1434
1435 2008-01-02  Luca Bruno  <lethalman88@gmail.com>
1436
1437         Reviewed by Darin.
1438
1439         http://bugs.webkit.org/show_bug.cgi?id=16674
1440         [GTK] run-launcher sets wrong LD_LIBRARY_PATH
1441
1442         * Scripts/run-launcher:
1443
1444 2007-12-31  Darin Adler  <darin@apple.com>
1445
1446         Suggested by Antti.
1447
1448         * Scripts/webkitdirs.pm: Turned off the QuickTime requirement for Windows until
1449         we get it installed on the build bots.
1450
1451 2007-12-30  Eric Seidel  <eric@webkit.org>
1452
1453         Reviewed by Sam.
1454
1455         * Scripts/do-webcore-rename: Add a few more planned renames s/(\w+)Imp/\1/
1456
1457 2007-12-29  Darin Adler  <darin@apple.com>
1458
1459         Reviewed by Oliver.
1460
1461         - fix http://bugs.webkit.org/show_bug.cgi?id=16663
1462           leak bot shows createCStringFromNPVariant result leaking
1463
1464         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
1465         (pluginInvoke): Added a missing free.
1466
1467 2007-12-26  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1468
1469         Reviewed by Alp Toker.
1470
1471         http://bugs.webkit.org/show_bug.cgi?id=16390
1472         Use autotools or GNU make as the build system for the GTK port
1473
1474         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: include glib.h
1475         * GNUmakefile.am: Added.
1476
1477 2007-12-24  Alexey Proskuryakov  <ap@webkit.org>
1478
1479         Reviewed by Oliver.
1480
1481         Fix fast/events/arrow-keys-on-body.html, failing on Windows.
1482
1483         * DumpRenderTree/win/EventSender.cpp:
1484         (keyDownCallback): Add KF_EXTENDED flag to arrow keys. Also add a count
1485         of 1, even though WebKit currently ignores it.
1486
1487 2007-12-23  Kevin Ollivier  <kevino@theolliviers.com>
1488
1489         wx buildbot fix. Update libpng dl script to the latest version.
1490
1491         * wx/install-unix-extras:
1492
1493 2007-12-22  Antti Koivisto  <antti@apple.com>
1494
1495         Fix a typo.
1496
1497         * Scripts/webkitdirs.pm:
1498
1499 2007-12-21  Sam Weinig  <sam@webkit.org>
1500
1501         Reviewed by Mark Rowe.
1502
1503         - Disable the back/forward cache using the new WebPreferences API
1504           instead of through the BackForwardList.  This makes us match what
1505           we do on Windows.
1506
1507         * DumpRenderTree/mac/DumpRenderTree.mm:
1508         (createWebViewAndOffscreenWindow):
1509         (setDefaultsToConsistentValuesForTesting):
1510
1511 2007-12-21  Dan Bernstein  <mitz@apple.com>
1512
1513         Reviewed by Mark Rowe.
1514
1515         - disable the back/forward cache in Windows DumpRenderTree. It is
1516           already disabled in Mac DumpRenderTree.
1517
1518         * DumpRenderTree/win/DumpRenderTree.cpp:
1519         (initializePreferences):
1520
1521 2007-12-13  Antti Koivisto  <antti@apple.com>
1522
1523         Reviewed by Darin and Steve.
1524         
1525         - check for QuickTime SDK on Windows.
1526         - build media support on Windows by default
1527
1528         * Scripts/build-webkit:
1529         * Scripts/webkitdirs.pm:
1530
1531 2007-12-21  Kevin Ollivier  <kevino@theolliviers.com>
1532
1533         Build script fix for buildbot.
1534
1535         * wx/build-wxwebkit:
1536
1537 2007-12-20  Eric Seidel  <eric@webkit.org>
1538
1539         Reviewed by mjs.
1540
1541         * Scripts/run-sunspider: change --runs default to 10 for better accuracy
1542
1543 2007-12-20  Kevin McCullough  <kmccullough@apple.com>
1544
1545         Reviewed by Steve.
1546
1547         - <rdar://5656485> Drosera: Win: Nightly does not reliably connect to
1548         WebKit.
1549
1550         - Drosera and Safari need to use the same ProgIDs in order for
1551         CoCreateInstance to work properly.  The most robust way to do this is
1552         for WebKit to dynamically publish those ProgIDs.
1553
1554         * Drosera/win/DebuggerClient.cpp: Use the published ProgIDs
1555         (DebuggerClient::createWebViewWithRequest):
1556         * Drosera/win/Drosera.cpp: Use the published ProgIDs and rename some
1557         statics.
1558         (Drosera::initUI):
1559         (Drosera::attach):
1560         (Drosera::attemptToCreateServerConnection):
1561         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Fix a runtime failure.
1562         * Drosera/win/ServerConnection.cpp: Reformat the connection function and
1563         make use of the published ProgIDs.
1564         (ServerConnection::attemptToCreateServerConnection):
1565
1566 2007-12-20  Kevin McCullough  <kmccullough@apple.com>
1567
1568         - <rdar://problem/5658317> REGRESSION: 20+ leaks seen on buildbots.
1569         - Build bot and leak fix.
1570
1571         * DumpRenderTree/LayoutTestController.cpp:
1572         (pathToLocalResourceCallback):
1573
1574 2007-12-19  David Kilzer  <ddkilzer@apple.com>
1575
1576         Make svn-apply/svn-unapply work with patches from git-format-patch.
1577
1578         Reviewed by Darin.
1579
1580         * Scripts/svn-apply:
1581         (patch): If 'Index:' can't be found in the text passed in, print it
1582         out with a warning and return early.
1583         * Scripts/svn-unapply:
1584         (patch): Ditto.
1585
1586 2007-12-18  Kevin Ollivier  <kevino@theolliviers.com>
1587
1588         Reviewed by Alp Toker.
1589
1590         Build related fixes.
1591
1592         * wx/build-wxwebkit:
1593         - Check to make sure the user is running a supported wx port
1594         - More robust checks for Cygwin
1595         - Only run install-unix-extras on Mac, it's not the right solution
1596           for Linux distros.
1597         - Remove outdated Linux instructions after successful build
1598         - Clean Bakefile-generated files during a clean operation
1599
1600 2007-12-18  Darin Adler  <darin@apple.com>
1601
1602         * Scripts/make-js-test-wrappers: Don't generate a wrapper for select-options-remove.js.
1603
1604 2007-12-18  Steve Falkenburg  <sfalken@apple.com>
1605
1606         Add script to run Drosera as part of the nightly.
1607         
1608         Reviewed by Kevin M.
1609
1610         * Scripts/run-drosera.cmd: Added.
1611
1612 2007-12-18  Darin Adler  <darin@apple.com>
1613
1614         * Scripts/do-webcore-rename: Remove a stray K.
1615
1616 2007-12-18  Darin Adler  <darin@apple.com>
1617
1618         * Scripts/do-webcore-rename: Plan more renaming.
1619
1620 2007-12-14  Juan A. Suarez Romero  <jasuarez@igalia.com>
1621
1622         Reviewed by Alp Toker.
1623
1624         http://bugs.webkit.org/show_bug.cgi?id=16042
1625         [GTK] Eliminate webkit_init()
1626
1627         Moving webkit initialization to WebView class init.
1628
1629         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1630         (main):
1631         * GtkLauncher/main.c:
1632         (main):
1633
1634 2007-12-17  Luca Bruno  <lethalman88@gmail.com>
1635
1636         Reviewed by Alp Toker.
1637
1638         http://bugs.webkit.org/show_bug.cgi?id=13542
1639         gdklauncher doesnt change URL in adress GTKEntry.
1640
1641         * GtkLauncher/main.c:
1642         (load_commit_cb): added
1643         (title_change_cb):
1644         (create_browser):
1645
1646 2007-12-16  Dimitri Glazkov  <dimitri@glazkov.com>
1647
1648         Reviewed by Adam Roben.
1649
1650         Remove the double-quotes around the PATH variable value, in order to make it work in Windows shell.
1651
1652         * FindSafari/FindSafari.cpp:
1653         (_tmain):
1654
1655 2007-12-16  Brent Fulgham  <bfulgham@gmail.com>
1656
1657         Reviewed by Adam Roben.
1658
1659         http://bugs.webkit.org/show_bug.cgi?id=16315
1660         FindSafari needs a path-only option.
1661
1662         * FindSafari/FindSafari.cpp:
1663         (_tmain):
1664
1665 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
1666
1667         Reviewed by Darin.
1668
1669         http://bugs.webkit.org/show_bug.cgi?id=16462
1670         REGRESSION: access keys broken on Windows
1671
1672         * DumpRenderTree/win/EventSender.cpp: (keyDownCallback): Send system key events
1673         if Alt is pressed.
1674
1675 2007-12-15  Sam Weinig  <sam@webkit.org>
1676
1677         Reviewed by Mark Rowe.
1678
1679         Fix urlSuitableForTestResult to correctly identify wstring::npos as
1680         the case when wstring.find doesn't find anything.
1681
1682         * DumpRenderTree/win/DumpRenderTree.cpp:
1683         (urlSuitableForTestResult):
1684
1685 2007-12-15  Alp Toker  <alp@atoker.com>
1686
1687         GTK+ DRT build fix for GLib < 2.14.
1688
1689         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1690         (LayoutTestController::setWaitToDump):
1691
1692 2007-12-05  Mark Rowe  <mrowe@apple.com>
1693
1694         Reviewed by Alp Toker.
1695
1696         Add a watchdog timer to Gtk DumpRenderTree, and implement alert/prompt/confirm.  This prevents
1697         many layout tests from hanging while waiting on user responses to dialogs.
1698
1699         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1700         (invalidateAnyPreviousWaitToDumpWatchdog):
1701         (webViewScriptAlert):
1702         (webViewScriptPrompt):
1703         (webViewScriptConfirm):
1704         (main):
1705         * DumpRenderTree/gtk/DumpRenderTreeGtk.h:
1706         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1707         (waitToDumpWatchdogFired):
1708         (LayoutTestController::setWaitToDump):
1709
1710 2007-12-05  Mark Rowe  <mrowe@apple.com>
1711
1712         Reviewed by Alp Toker.
1713
1714         Flesh out DumpRenderTree for Gtk.  After these changes, the majority of the tests in fast/js pass.
1715
1716         * DumpRenderTree/gtk/DumpRenderTree.cpp:
1717         (dumpFramesAsText): Don't print the frame name when dumping the main frame as text.
1718         (dump):
1719         (runTest):
1720         (webViewLoadStarted): Store the top frame when it starts loading so we can use it to determine when to dump.
1721         (webViewLoadFinished): Dump when the top frame load completes if we're not waiting for a JS callback and the
1722         work queue is empty.
1723         (webViewWindowObjectCleared): Set up window.layoutTestController.
1724         (webViewConsoleMessage): Match the console message format expected by the layout test results.
1725         (main): Hook up the new signals.
1726         * DumpRenderTree/gtk/DumpRenderTreeGtk.h:
1727         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Only notify done if the top frame has completed loading to avoid
1728         dumping multiple times.
1729         * Scripts/build-dumprendertree: Ensure build-dumprendertree is a no-op for Gtk too.
1730         * Scripts/run-webkit-tests: Teach run-webkit-tests that Gtk is like Qt in many ways.  Use run-launcher to open test results.
1731
1732 2007-12-14  Anders Carlsson  <andersca@apple.com>
1733
1734         Reviewed by Brady.
1735
1736         Assert that a web frame that's loading a resource always has either a data source or 
1737         a provisional data source.
1738         
1739         * DumpRenderTree/mac/ResourceLoadDelegate.mm:
1740         (-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):
1741
1742 2007-12-14  Darin Adler  <darin@apple.com>
1743
1744         - fix mistake causing nearly all tests to fail on Windows
1745
1746         * DumpRenderTree/win/UIDelegate.cpp:
1747         (UIDelegate::webViewAddMessageToConsole): Need to compare the result of find with
1748         npos, not 0. Also pass URL in to URL function rather than passing the entire message.
1749
1750         * DumpRenderTree/mac/UIDelegate.mm:
1751         (-[UIDelegate webView:addMessageToConsole:]): Pass path only to path function rather
1752         than passing the entire message.
1753
1754 2007-12-14  Darin Adler  <darin@apple.com>
1755
1756         - fix Tiger build
1757
1758         * DumpRenderTree/mac/UIDelegate.mm:
1759         (-[UIDelegate webView:addMessageToConsole:]): Re-implement this without using any
1760         new-to-Leopard methods.
1761
1762 2007-12-14  Darin Adler  <darin@apple.com>
1763
1764         * DumpRenderTree/mac/FrameLoadDelegate.mm: Don't implement didReceiveIcon delegate method
1765         since it now triggers unwanted icon loading. We only had it because we implemented "all"
1766         delegate methods here.
1767
1768 2007-12-14  Anders Carlsson  <andersca@apple.com>
1769
1770         Reviewed by Darin and Geoff.
1771
1772         <rdar://problem/5619295> 
1773         REGRESSION: 303-304: Embedded YouTube video fails to render- JS errors (16150) (Flash 9)
1774         
1775         Add property getting methods to the plug-in.
1776         
1777         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
1778         (pluginInvoke):
1779
1780 2007-12-14  Kevin McCullough  <kmccullough@apple.com>
1781
1782         Reviewed by Darin.
1783
1784         - Layout test fix for mac. When dumped to the console local file paths
1785         now only show the name of the resource not the whole path.  This is to
1786         make the results machine and OS independent.
1787
1788         * DumpRenderTree/mac/UIDelegate.mm:
1789         (-[UIDelegate webView:addMessageToConsole:]):
1790
1791 2007-12-13  Kevin McCullough  <kmccullough@apple.com>
1792
1793         Reviewed by Adam.
1794
1795         - Layout tests fix.  We need a way to remove machine-dependent
1796         information from paths in layout test results. The UIDelegate now does
1797         this.
1798
1799         * DumpRenderTree/DumpRenderTree.h:
1800         * DumpRenderTree/win/DumpRenderTree.cpp:
1801         (urlSuitableForTestResult):
1802         * DumpRenderTree/win/DumpRenderTreeWin.h:
1803         * DumpRenderTree/win/ResourceLoadDelegate.cpp:
1804         * DumpRenderTree/win/UIDelegate.cpp:
1805         (UIDelegate::webViewAddMessageToConsole):
1806
1807 2007-12-13  Alp Toker  <alp@atoker.com>
1808
1809         Build fix for DRT breakage introduced in r28690.
1810
1811         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
1812         (LayoutTestController::pathToLocalResource):
1813
1814 2007-12-12  Kevin McCullough  <kmccullough@apple.com>
1815
1816         Reviewed by Alice and Sam.
1817
1818         - <rdar://5621435> Need a way to specify local resources (being loaded
1819         from HTTP tests) on Windows.
1820         - Implemented pathToLocalResource which exposes the functionality of
1821         converting a given unix path to the correct location on Windows.
1822
1823         * DumpRenderTree/LayoutTestController.cpp:
1824         (pathToLocalResourceCallback):
1825         (LayoutTestController::staticFunctions):
1826         * DumpRenderTree/LayoutTestController.h:
1827         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
1828         (LayoutTestController::pathToLocalResource):
1829         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
1830         (LayoutTestController::pathToLocalResource):
1831
1832 2007-12-12  Anders Carlsson  <andersca@apple.com>
1833
1834         Reviewed by Sam.
1835
1836         <rdar://problem/5132003>
1837         dumpResourceLoadCallbacks is not implemented in DRT on Windows.
1838
1839         * DumpRenderTree/win/DumpRenderTree.cpp:
1840         (main):
1841         Set the resource load delegate.
1842         
1843         * DumpRenderTree/win/DumpRenderTree.vcproj:
1844         
1845         * DumpRenderTree/win/ResourceLoadDelegate.cpp: Added.
1846         * DumpRenderTree/win/ResourceLoadDelegate.h: Added.
1847
1848 2007-12-12  Alexey Proskuryakov  <ap@webkit.org>
1849
1850         Reviewed by Adam Roben.
1851
1852         Fix conversion from double to LPARAM in dispatchMessage().
1853
1854         * DumpRenderTree/win/EventSender.cpp:
1855         (dispatchMessageCallback):
1856
1857 2007-12-11  Dan Bernstein  <mitz@apple.com>
1858
1859         Reviewed by Mark Rowe and Sam Weinig too!
1860
1861         - added Helvetica Oblique and Helvetica Bold Oblique to the list of
1862           fonts DumpRenderTree registers.
1863
1864         * DumpRenderTree/win/DumpRenderTree.cpp:
1865         (initialize):
1866
1867 2007-12-11  Brady Eidson  <beidson@apple.com>
1868
1869         Reviewed by Anders
1870
1871         Make DumpRenderTree on mac use its own path for Databases testing
1872
1873         * DumpRenderTree/mac/DumpRenderTree.mm:
1874         (setDefaultsToConsistentValuesForTesting): Keep a string to ~/Library/Application Support/DumpRenderTree 
1875           for future DRT-only use, then use it to construct the Databases path and set that default
1876
1877 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1878
1879         Reviewed by Darin.
1880
1881         <rdar://problem/5535636>
1882         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
1883
1884         http://bugs.webkit.org/show_bug.cgi?id=13916
1885         JavaScript detects Tab as a character input on a textfield validation
1886
1887         * DumpRenderTree/mac/EventSendingController.mm:
1888         (-[EventSendingController keyDown:withModifiers:]): Added a few more named keys.
1889         Dispatch a keyup to better match what happens when a key is physically pressed.
1890
1891         * DumpRenderTree/win/EventSender.cpp:
1892         (keyDownCallback): Ditto. Also make sure that WM_CHAR is consistently dispatched before
1893         returning from keyDown().
1894         (getConstantCallback): Fixed a couple copy/paste mistakes.
1895
1896 2007-12-07  Kevin McCullough  <kmccullough@apple.com>
1897
1898         Reviewed by Oliver.
1899
1900         - <rdar://5599845> Drosera: Does not show loal files in the file list
1901         on the left side.
1902
1903         * Drosera/debugger.js: - Updated url dividing regex to handle %s and :s.
1904         * Drosera/win/Drosera.vcproj/Drosera.vcproj: - Updated Debug settings
1905         so the open source community can build.
1906
1907 2007-12-10  Brady Eidson  <beidson@apple.com>
1908
1909         Rubberstamped by Sam Weinig
1910
1911         Update DRT Mac to reflect the new UI Delegate methods I just checked into WebKit/mac
1912
1913         * DumpRenderTree/mac/UIDelegate.mm:
1914         (-[UIDelegate webView:frame:quotaForSecurityOrigin:toCreateDatabase:withEstimatedSize:]):
1915         (-[UIDelegate webView:frame:quotaForSecurityOrigin:fromProposedQuota:database:]):
1916
1917 2007-12-08  Oliver Hunt  <oliver@apple.com>
1918
1919         Reviewed by Sam W.
1920
1921         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
1922         
1923         Fixes <rdar://problem/5620249> Must disable SVG animation
1924         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
1925         
1926         In order to allow finer grained control over the set of SVG features
1927         this patch splits ENABLE_SVG_EXPERIMENTAL_FEATURES into the following
1928         distinct flags:
1929         ENABLE_SVG_ANIMATION
1930         ENABLE_SVG_FILTERS
1931         ENABLE_SVG_FONTS
1932         ENABLE_SVG_AS_IMAGE
1933         ENABLE_SVG_USE
1934         
1935         by default only ENABLE_SVG_AS_IMAGE and ENABLE_SVG_USE are set.
1936         
1937         Script handles all the new build flags, and allows --svg-experimental
1938         to automatically enable all features.
1939
1940         * Scripts/build-webkit:
1941
1942 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
1943
1944         Fix version parsing.
1945
1946         Rubber-stamped by Oliver.
1947
1948         * Drosera/win/Drosera.vcproj/auto-version.sh:
1949
1950 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
1951
1952         Build modifications for Drosera.
1953
1954         Reviewed by Adam.
1955
1956         * Drosera/DroseraWin.make: Added.
1957         * Drosera/win/Drosera.vcproj/Drosera.rc:
1958         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
1959         * Drosera/win/Drosera.vcproj/PRODUCTVERSION: Added.
1960         * Drosera/win/Drosera.vcproj/VERSION: Added.
1961         * Drosera/win/Drosera.vcproj/auto-version.sh: Added.
1962
1963 2007-12-06  Adam Roben  <aroben@apple.com>
1964
1965         Explicitly turn on the Mac font ascent hack on Windows
1966
1967         This keeps our font metrics matching those from Mac.
1968
1969         Reviewed by Hyatt.
1970
1971         * DumpRenderTree/win/DumpRenderTree.cpp:
1972         (main):
1973
1974 2007-12-06  Anders Carlsson  <andersca@apple.com>
1975
1976         Rename main.c to main.cpp here too.
1977         
1978         * DumpRenderTree/win/TestNetscapePlugin/main.cpp: Copied from DumpRenderTree/win/TestNetscapePlugin/main.c.
1979
1980 2007-12-06  Sam Weinig  <sam@webkit.org>
1981
1982         Rubber stamped by Geoff.
1983
1984         * Scripts/do-webcore-rename: Don't rename kjs_css twice.
1985
1986 2007-12-06  Darin Adler  <darin@apple.com>
1987
1988         * Scripts/do-webcore-rename: Some more renaming plans.
1989
1990 2007-12-06  Anders Carlsson  <andersca@apple.com>
1991
1992         Restore implementation of testGetIntIdentifier that was accidentally
1993         removed somehow (possibly when I made PluginObject be a cpp file).
1994         
1995         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
1996         (pluginInvoke):
1997
1998 2007-12-05  Anders Carlsson  <andersca@apple.com>
1999
2000         Make the entry points extern "C".
2001         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
2002         
2003 2007-12-05  Anders Carlsson  <andersca@apple.com>
2004
2005         C++ warning fixes.
2006         
2007         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
2008         (NPP_New):
2009         (NPP_Destroy):
2010         (NPP_SetWindow):
2011         (NPP_NewStream):
2012         (NPP_HandleEvent):
2013         (NPP_URLNotify):
2014         (NPP_GetValue):
2015
2016 2007-12-05  Anders Carlsson  <andersca@apple.com>
2017
2018         Add the .cpp files to the TestNetscapePlugIn target.
2019
2020         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2021
2022 2007-12-05  Anders Carlsson  <andersca@apple.com>
2023
2024         Reviewed by Geoff.
2025         
2026         Rename the TestNetscapePlugIn .c files to be .cpp.
2027
2028         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2029         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c: Removed.
2030         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp: Copied from DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c.
2031         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.c: Removed.
2032         * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp: Copied from DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.c.
2033         * DumpRenderTree/TestNetscapePlugIn.subproj/main.c: Removed.
2034         * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp: Copied from DumpRenderTree/TestNetscapePlugIn.subproj/main.c.
2035         * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj:
2036
2037 2007-12-05  Adam Roben  <aroben@apple.com>
2038
2039         Fix case of keypresses from the Windows implementation of eventSender.keyDown
2040
2041         This fixes several regression tests.
2042
2043         Reviewed by Alice.
2044
2045         * DumpRenderTree/win/EventSender.cpp:
2046         (keyDownCallback): Virtual keycodes for ASCII characters are always
2047         uppercase, so we need to check the case of the original character
2048         passed in to eventSender.keyDown.
2049
2050 2007-12-05  Adam Roben  <aroben@apple.com>
2051
2052         Learn from Tim's mistakes
2053
2054         * DumpRenderTree/win/DumpRenderTree.cpp:
2055         (runTest): Reset the authorAndUserStylesEnabled preference for each
2056         test.
2057
2058 2007-12-05  Alp Toker  <alp@atoker.com>
2059
2060         Reviewed by Mark Rowe.
2061
2062         Initialize GTK+ and WebKit so the tests can run.
2063
2064         Reorganize the headers a little.
2065
2066         * DumpRenderTree/gtk/DumpRenderTree.cpp:
2067         (main):
2068
2069 2007-12-04  Anders Carlsson  <andersca@apple.com>
2070
2071         Remove IWebScriptScope include.
2072         
2073         * Drosera/win/DebuggerDocumentPlatform.cpp:
2074
2075 2007-12-04  Sam Weinig  <sam@webkit.org>
2076
2077         Rubber stamped by Mark Rowe.
2078
2079         Define CF as platform for mac and revert r28409
2080
2081         * DumpRenderTree/DumpRenderTree.h:
2082         * DumpRenderTree/mac/DumpRenderTreeMac.h:
2083
2084 2007-12-04  Sam Weinig  <sam@webkit.org>
2085
2086         Define CF as platform for windows.
2087
2088         Reviewed by Adam Roben.
2089
2090         * DumpRenderTree/win/DumpRenderTreeWin.h:
2091
2092 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
2093
2094         Reviewed by Adam and Darin.
2095
2096         - Removed a needless BSTR cleanup.
2097
2098         * Drosera/win/DebuggerDocumentPlatform.cpp:
2099         (DebuggerDocument::getPlatformCurrentFunctionStack):
2100
2101 2007-11-27  Adam Roben  <aroben@apple.com>
2102
2103         Fix <rdar://5614497> setAuthorAndUserStylesEnabled is not implemented in DRT
2104
2105         Reviewed by Maciej.
2106
2107         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
2108         (LayoutTestController::setAuthorAndUserStylesEnabled): Implemented.
2109
2110 2007-12-04  Alp Toker  <alp@atoker.com>
2111
2112         Prospective Win DRT build fix.
2113
2114         * DumpRenderTree/DumpRenderTree.h:
2115
2116 2007-12-04  Alp Toker  <alp@atoker.com>
2117
2118         Fix a clobbered copyright header.
2119
2120         * DumpRenderTree/gtk/DumpRenderTree.cpp:
2121
2122 2007-12-04  Xan Lopez  <xan@gnome.org>
2123
2124         Reviewed by Alp Toker.
2125
2126         http://bugs.webkit.org/show_bug.cgi?id=15561
2127         GTK port needs DumpRenderTree implementation
2128
2129         Start work on the GTK+ DRT.
2130
2131         This does not work yet, and there are a few lingering style issues
2132         (nothing major) but this patch has been stuck in the bug tracker for
2133         too long already.
2134
2135         * DumpRenderTree/DumpRenderTree.h:
2136         * DumpRenderTree/gtk: Added.
2137         * DumpRenderTree/gtk/DumpRenderTree.cpp: Added.
2138         (autocorrectURL):
2139         (shouldLogFrameLoadDelegates):
2140         (dumpFrameScrollPosition):
2141         (displayWebView):
2142         (appendString):
2143         (dumpFramesAsText):
2144         (dumpRenderTreeAsText):
2145         (dump):
2146         (runTest):
2147         (main):
2148         * DumpRenderTree/gtk/DumpRenderTree.pro: Added.
2149         * DumpRenderTree/gtk/DumpRenderTreeGtk.h: Added.
2150         * DumpRenderTree/gtk/GCControllerGtk.cpp: Added.
2151         (GCController::collect):
2152         (GCController::collectOnAlternateThread):
2153         (GCController::getJSObjectCount):
2154         * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Added.
2155         (LayoutTestController::~LayoutTestController):
2156         (LayoutTestController::addDisallowedURL):
2157         (LayoutTestController::clearBackForwardList):
2158         (LayoutTestController::copyDecodedHostName):
2159         (LayoutTestController::copyEncodedHostName):
2160         (LayoutTestController::display):
2161         (LayoutTestController::keepWebHistory):
2162         (LayoutTestController::notifyDone):
2163         (LayoutTestController::queueBackNavigation):
2164         (LayoutTestController::queueForwardNavigation):
2165         (LayoutTestController::queueLoad):
2166         (LayoutTestController::queueReload):
2167         (LayoutTestController::queueScript):
2168         (LayoutTestController::setAcceptsEditing):
2169         (LayoutTestController::setCustomPolicyDelegate):
2170         (LayoutTestController::setMainFrameIsFirstResponder):
2171         (LayoutTestController::setTabKeyCyclesThroughElements):
2172         (LayoutTestController::setUseDashboardCompatibilityMode):
2173         (LayoutTestController::setUserStyleSheetEnabled):
2174         (LayoutTestController::setUserStyleSheetLocation):
2175         (LayoutTestController::setWindowIsKey):
2176         (LayoutTestController::setWaitToDump):
2177         (LayoutTestController::windowCount):
2178         (LayoutTestController::setPrivateBrowsingEnabled):
2179         (LayoutTestController::setAuthorAndUserStylesEnabled):
2180         * DumpRenderTree/gtk/WorkQueueItemGtk.cpp: Added.
2181         (JSStringCopyUTF8CString):
2182         (LoadItem::invoke):
2183         (ReloadItem::invoke):
2184         (ScriptItem::invoke):
2185         (BackForwardItem::invoke):
2186
2187 2007-12-03  Sam Weinig  <sam@webkit.org>
2188
2189         Move JavaScriptCore thread testing code to pthread specific directory
2190         and remove the dependance on CoreFoundation by using WTF::HashSet.
2191
2192         Reviewed by Geoff and Oliver.
2193
2194         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2195         * DumpRenderTree/ForwardingHeaders/wtf/HashMap.h: Added.
2196         * DumpRenderTree/ForwardingHeaders/wtf/HashSet.h: Added.
2197         * DumpRenderTree/ForwardingHeaders/wtf/Vector.h: Added.
2198         * DumpRenderTree/JavaScriptThreading.h: Copied from DumpRenderTree/mac/JavaScriptThreading.h.
2199         * DumpRenderTree/mac/JavaScriptThreading.cpp: Removed.
2200         * DumpRenderTree/mac/JavaScriptThreading.h: Removed.
2201         * DumpRenderTree/pthreads: Added.
2202         * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp: Copied from DumpRenderTree/mac/JavaScriptThreading.cpp.
2203         (javaScriptThreads):
2204         (runJavaScriptThread):
2205         (startJavaScriptThreads):
2206         (stopJavaScriptThreads):
2207
2208 2007-12-03  Andrew Bonventre  <andybons@google.com>
2209
2210         Reviewed by Darin Adler.
2211
2212         - fix http://bugs.webkit.org/show_bug.cgi?id=16267
2213         Symbol lookup menu broken in debugger view
2214
2215         * Drosera/debugger.js: Fixed javascript error where document property
2216         should have been used instead of contentDocument in switchFunction that
2217         was breaking the select symbol dropdown menu.  This is because
2218         window.frames will return a Window object and not a frame object like
2219         the author was originally expecting.
2220
2221 2007-12-03  Kevin McCullough  <kmccullough@apple.com>
2222
2223         Reviewed by Adam.
2224
2225         - <rdar://5618942> Drosera: Console window does not process everything
2226         correctly.
2227         - <rdar://5619005> Drosera: could be sped up by moving the 
2228         WebScriptScope stuff into the WebScriptCallFrame.
2229         - Now the console can correctly process objects and does not receive
2230         notifications from JavaScriptCore about the JavaScript in Drosera's
2231         own process.
2232
2233         * Drosera/win/DebuggerDocumentPlatform.cpp:
2234         (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame):
2235         (DebuggerDocument::platformValueForScopeVariableNamed):
2236
2237 2007-12-03  Stephanie  <slewis@apple.com>
2238
2239         Reviewed by Darin.
2240
2241         Check to see if we are building a debug root
2242
2243         * Scripts/check-for-global-initializers: 
2244
2245 2007-12-03  Dan Bernstein  <mitz@apple.com>
2246
2247         Reviewed by Darin Adler.
2248
2249         - added a testGetIntIdentifier() method to TestNetscapePlugIn
2250
2251         * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c:
2252         (pluginInvoke):
2253
2254 2007-12-03  Alexey Proskuryakov  <ap@webkit.org>
2255
2256         Reviewed by Oliver.
2257
2258         Added eventSender.dispatchMessage() - will be used to test Windows keyboard input
2259         in a more fine-grained manner than eventSender.keyDown().
2260
2261         * DumpRenderTree/win/EventSender.cpp:
2262         (getConstantCallback):
2263         (dispatchMessageCallback):
2264
2265 2007-12-02  Darin Adler  <darin@apple.com>
2266
2267         * Scripts/do-webcore-rename: More planned renaming.
2268
2269 2007-12-02  Sam Weinig  <sam@webkit.org>
2270
2271         Rubber stamped by Anders.
2272
2273         Use [NSURL absoluteString] instead of [NSURL description] in order to get
2274         more uniform results cross platform.
2275
2276         * DumpRenderTree/mac/ResourceLoadDelegate.mm:
2277         (-[NSURL _drt_descriptionSuitableForTestResult]):
2278
2279 2007-12-02  Sam Weinig  <sam@webkit.org>
2280
2281         Rubber stamped by Niko.
2282
2283         Rename FrameLoaderDelegate.h/cpp to FrameLoadDelegate.h/cpp.
2284
2285         * DumpRenderTree/win/DumpRenderTree.cpp:
2286         * DumpRenderTree/win/DumpRenderTree.vcproj:
2287         * DumpRenderTree/win/FrameLoadDelegate.cpp: Copied from DumpRenderTree/win/FrameLoaderDelegate.cpp.
2288         * DumpRenderTree/win/FrameLoadDelegate.h: Copied from DumpRenderTree/win/FrameLoaderDelegate.h.
2289         * DumpRenderTree/win/FrameLoaderDelegate.cpp: Removed.
2290         * DumpRenderTree/win/FrameLoaderDelegate.h: Removed.
2291
2292 2007-12-01  Alp Toker  <alp@atoker.com>
2293
2294         Reviewed by Adam Roben.
2295
2296         Make use of the newly introduced webkit.h convenience header.
2297
2298         * GtkLauncher/main.c:
2299
2300 2007-12-01  Adam Treat  <treat@kde.org>
2301
2302         Reviewed by Simon.
2303
2304         * Check to see if the directory exists and exit if not.
2305
2306         * DumpRenderTree/qt/main.cpp:
2307         (main):
2308
2309 2007-12-01  Adam Treat  <treat@kde.org>
2310
2311         Reviewed by Simon.
2312
2313         * Don't hide symbols when in Debug mode
2314         * On Linux (glibc) provide a backtrace in the test output for debugging purposes
2315
2316
2317         * DumpRenderTree/qt/main.cpp:
2318         (messageHandler):
2319
2320 2007-11-30  Alp Toker  <alp@atoker.com>
2321
2322         Reviewed by Adam Roben.
2323
2324         http://bugs.webkit.org/show_bug.cgi?id=15691
2325         [GTK] Public API does not follow GTK+ conventions
2326
2327         Refactor the WebKit/GTK+ public API. Changes:
2328           WebKitPage -> WebKitWebView
2329           WebKitFrame -> WebKitWebFrame
2330
2331         Public API source and header names have been updated to mirror the API
2332         changes.
2333
2334         The API is now kept in WebKit/gtk/WebView to match other ports in the
2335         same class such as Mac and Win.
2336
2337         * GtkLauncher/main.c:
2338         (activate_uri_entry_cb):
2339         (link_hover_cb):
2340         (title_change_cb):
2341         (progress_change_cb):
2342         (go_back_cb):
2343         (go_forward_cb):
2344         (create_browser):
2345         (main):
2346
2347 2007-11-30  Adam Roben  <aroben@apple.com>
2348
2349         Hopefully the final build fix
2350
2351         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Link against WTF.lib to
2352         pull in WTF's assertion/logging functions.
2353
2354 2007-11-30  Adam Roben  <aroben@apple.com>
2355
2356         Another build fix
2357
2358         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Use the right suffix for
2359         WebKit.lib.
2360
2361 2007-11-30  Adam Roben  <aroben@apple.com>
2362
2363         Debug build fix
2364
2365         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Added a Debug_Internal
2366         configuration.
2367         * Drosera/win/Drosera.vcproj/debug.vsprops: Updated to match other
2368         projects.
2369         * Drosera/win/Drosera.vcproj/release.vsprops: Ditto.
2370         * Drosera/win/Drosera.vcproj/debug_internal.vsprops: Copied from
2371         WebKitTools/DumpRenderTree/win/debug_internal.vsprops.
2372
2373 2007-11-30  Sam Weinig  <sam@webkit.org>
2374
2375         Reviewed by Adam Roben.
2376
2377         Fix drawSelectionRect to actually draw the selection rect.
2378
2379         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2380         (drawSelectionRect):
2381
2382 2007-11-30  Darin Adler  <darin@apple.com>
2383
2384         * Scripts/do-webcore-rename: WildFox already did the TextStyle -> FontStyle one.
2385
2386 2007-11-30  Darin Adler  <darin@apple.com>
2387
2388         * Scripts/do-webcore-rename: Get ready for some future renaming.
2389
2390 2007-11-29  Kevin McCullough  <kmccullough@apple.com>
2391
2392         Reviewed by Adam.
2393
2394         - Removed some unnecessary functions and changed an unused return type. 
2395
2396         * Drosera/win/DebuggerClient.cpp:
2397         (registerConsoleClass):
2398         * Drosera/win/DebuggerClient.h:
2399         * Drosera/win/Drosera.cpp:
2400         (registerDroseraClass):
2401
2402 2007-11-28  Alp Toker  <alp@atoker.com>
2403
2404         Reviewed by Timothy Hatcher.
2405
2406         http://bugs.webkit.org/show_bug.cgi?id=16174
2407         [GTK] Use "URI" not "URL" in public API
2408
2409         Replace use of the term "URL" with "URI" in public headers,
2410         documentation and some internal code to match GLib/GTK+ convention.
2411
2412         This is now mentioned in the API guidelines:
2413           http://trac.webkit.org/projects/webkit/wiki/HackingGtk
2414
2415         * GtkLauncher/main.c:
2416         (activate_uri_entry_cb):
2417         (title_change_cb):
2418         (create_toolbar):
2419         (main):
2420
2421 2007-11-29  Anders Carlsson  <andersca@apple.com>
2422
2423         Reviewed by Sam.
2424
2425         <rdar://problem/5230478>
2426         FrameLoadDelegate callbacks are not dumped in DRT.
2427         
2428         * DumpRenderTree/win/DumpRenderTree.cpp:
2429         (shouldLogFrameLoadDelegates):
2430         (runTest):
2431         (main):
2432         * DumpRenderTree/win/FrameLoaderDelegate.cpp:
2433         (BSTRtoString):
2434         (descriptionSuitableForTestResult):
2435         (FrameLoadDelegate::QueryInterface):
2436         (FrameLoadDelegate::didStartProvisionalLoadForFrame):
2437         (FrameLoadDelegate::didFailProvisionalLoadWithError):
2438         (FrameLoadDelegate::didCommitLoadForFrame):
2439         (FrameLoadDelegate::didFinishLoadForFrame):
2440         (FrameLoadDelegate::willCloseFrame):
2441         (FrameLoadDelegate::didClearWindowObject):
2442         (FrameLoadDelegate::didFinishDocumentLoadForFrame):
2443         (FrameLoadDelegate::didHandleOnloadEventsForFrame):
2444         * DumpRenderTree/win/FrameLoaderDelegate.h:
2445         (FrameLoadDelegate::windowScriptObjectAvailable):
2446         (FrameLoadDelegate::didFirstLayoutInFrame):
2447
2448 2007-11-29  Sam Weinig  <sam@webkit.org>
2449
2450         Reviewed by Anders.
2451
2452         Add database quota UIDelegates methods to DRT UIDelegate.
2453
2454         * DumpRenderTree/mac/UIDelegate.mm:
2455         (-[UIDelegate webView:quotaForSecurityOrigin:toCreateDatabase:withEstimatedSize:]):
2456         (-[UIDelegate webView:quotaForSecurityOrigin:fromProposedQuota:database:]):
2457
2458 2007-11-29  Kevin McCullough  <kmccullough@apple.com>
2459
2460         Reviewed by Sam.
2461
2462         - <rdar://5618976> Drosera: should listen for the WebScriptDebugServer
2463         dying and vice versa.
2464         - This fix will allow Drosera and Safari to reconnect if either of them
2465         closes correctly, but does not fix the case where one of them dies
2466         silently.
2467
2468         * Drosera/win/ServerConnection.cpp:
2469         (ServerConnection::attemptToCreateServerConnection): Added a safety
2470         check, because it's possilbe to try to connect to a server that's dying.
2471         (ServerConnection::serverDidDie): Implemented. This resets Drosera when
2472         the server has died.
2473         * Drosera/win/ServerConnection.h: Added the new function and removed
2474         an unnecessary member.
2475
2476 2007-11-29  Anders Carlsson  <andersca@apple.com>
2477
2478         * DumpRenderTree/win/DumpRenderTree.vcproj:
2479         Add shlwapi.lib to all configurations.
2480
2481 2007-11-29  Kevin McCullough  <kmccullough@apple.com>
2482
2483         - Build fix.  Added additional includes for VS Express to the Release
2484         project.
2485
2486         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
2487
2488 2007-11-29  Anders Carlsson  <andersca@apple.com>
2489
2490         Reviewed by Adam.
2491
2492         <rdar://problem/5132005>
2493         setUserStyleSheetEnabled is not fully implemented in Windows DRT.
2494         
2495         * DumpRenderTree/win/DumpRenderTree.vcproj:
2496         Add shlwapi.lib
2497         
2498         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
2499         (LayoutTestController::setUserStyleSheetEnabled):
2500         Implement this.
2501         
2502         (appendComponentToPath):
2503         New method which wraps the Win32 API PathAppend.
2504         
2505         (followShortcuts):
2506         New method which checks if a file points to a shortcut and
2507         follows the shortcut.
2508         
2509         (resolveCygwinPath):
2510         New method that takes a cygwin unix-style path and returns the Win32 path.
2511         
2512         (cfStringRefToWString):
2513         
2514         (LayoutTestController::setUserStyleSheetLocation):
2515         Implement this.
2516
2517 2007-11-29  Alice Liu  <alice.liu@apple.com>
2518
2519         Reviewed by Adam.
2520
2521         Fixed <rdar://5133828> fast/frames/iframe-window-focus.html output is lowercase
2522
2523         * DumpRenderTree/win/EventSender.cpp:
2524         (keyDownCallback):
2525         uppercase letters were being sent as lowercase letters without the shift key down.
2526
2527 2007-11-29  Kevin McCullough  <kmccullough@apple.com>
2528
2529         - Windows build fix. VS express needs some love.
2530
2531         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
2532
2533 2007-11-28  Darin Adler  <darin@apple.com>
2534
2535         Reviewed by Adam Roben.
2536
2537         * DumpRenderTree/mac/EventSendingController.mm:
2538         (-[EventSendingController keyDown:withModifiers:]):
2539         Send capital letters through as lowercase letters with the shift key down
2540         rather than sending them as if they were highly unusual "capital letter keys".
2541
2542         * Scripts/update-javascriptcore-test-results: Add a "--force" option for cases
2543         where you need to update results and more tests are failing than before.
2544
2545 2007-11-28  Anders Carlsson  <andersca@apple.com>
2546
2547         Reviewed by Darin.
2548
2549         <rdar://problem/5132001>
2550         contextClick is not implemented in DRT on Windows.
2551         
2552         * DumpRenderTree/win/EventSender.cpp:
2553         (contextClickCallback):
2554         Add a callback for contextClick, which sends a WM_RBUTTONDOWN message followed
2555         by a WM_RBUTTONUP message.
2556         
2557         * DumpRenderTree/win/UIDelegate.cpp:
2558         (UIDelegate::hasCustomMenuImplementation):
2559         (UIDelegate::trackCustomPopupMenu):
2560         * DumpRenderTree/win/UIDelegate.h:
2561         Add a no-op implementation of trackCustomPopupMenu, to prevent the default popup
2562         menu from being shown (and causing the DRT to hang).
2563
2564 2007-11-27  Maciej Stachowiak  <mjs@apple.com>
2565
2566         Reviewed by Darin.
2567
2568         Fix DumpRenderTree ObjC bug comparing strings.
2569
2570         * DumpRenderTree/mac/ObjCController.m:
2571         (-[ObjCController identityIsEqual::]): Compare strings with string
2572         equality instead of identiy equality.
2573
2574 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2575
2576         Reviewed by Sam.
2577
2578         Reset the authorAndUserStylesEnabled preference
2579         back to YES for each test. Fixes the broken tests.
2580
2581         * DumpRenderTree/mac/DumpRenderTree.mm:
2582         (resetWebViewToConsistentStateBeforeTesting):
2583
2584 2007-11-27  Kevin McCullough  <kmccullough@apple.com>
2585
2586         Reviewed by Adam.
2587
2588         - Drosera now displays the console window, although it cannot currently
2589         process JavaScript.
2590
2591         * Drosera/win/DebuggerClient.cpp: Shows the console window.
2592         (registerConsoleClass): Implemented.
2593         (consoleWndProc): Implemented.
2594         (DebuggerClient::onSize): Implemented.
2595         (DebuggerClient::createWebViewWithRequest): Implemented, now creates a
2596         new window.
2597         * Drosera/win/DebuggerClient.h: Added needed method and members for 
2598         creating and maintaining a new window.
2599         * Drosera/win/Drosera.cpp: Fixed some minor bugs, and moved a couple of
2600         lines of code to more appropriate places.
2601         (Drosera::handleCommand):
2602         (Drosera::initUI):
2603         (Drosera::onSize):
2604         (Drosera::attach):
2605
2606 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2607
2608         Reviewed by Dave Hyatt.
2609
2610         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
2611         
2612         Add support for disabling author and user styles for testing.
2613
2614         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2615         * DumpRenderTree/LayoutTestController.cpp:
2616         (setAuthorAndUserStylesEnabledCallback):
2617         (LayoutTestController::staticFunctions):
2618         * DumpRenderTree/LayoutTestController.h:
2619         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
2620         (LayoutTestController::setAuthorAndUserStylesEnabled):
2621         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
2622         (LayoutTestController::setAuthorAndUserStylesEnabled):
2623
2624 2007-11-26  Dan Bernstein  <mitz@apple.com>
2625
2626         - Tiger build fix.
2627
2628         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2629
2630 2007-11-26  Kevin McCullough  <kmccullough@apple.com>
2631
2632         Reviewed by Maciej.
2633
2634         - Implemented displaying variables for Drosera on Win.
2635
2636         * Drosera/win/DebuggerDocumentPlatform.cpp: Changed Drosera functions
2637         that retrieve variables to not hold onto the return value since it's
2638         not returned.  Also changed to use the new signatures of the retrieval
2639         functions.
2640         (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame):
2641         (DebuggerDocument::platformValueForScopeVariableNamed):
2642         * Drosera/win/Drosera.cpp: Removed a needless TODO.
2643         (droseraWndProc):
2644
2645 2007-11-26  Sam Weinig  <sam@webkit.org>
2646
2647         Cleanup names of painting and repainting functions.
2648
2649         Reviewed by Adam Roben.
2650
2651         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2652         (drawSelectionRect): was drawSelectionRectIntoContext.
2653         (dumpWebViewAsPixelsAndCompareWithExpected):
2654         * DumpRenderTree/cg/PixelDumpSupportCG.h:
2655         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
2656         (paintWebView): was drawWebViewIntoContext.
2657         (repaintWebView): was repaintWithVerticalSweep and repaintWithHorizontalSweep.
2658
2659 2007-11-26  Sam Weinig  <sam@webkit.org>
2660
2661         Reviewed by Dan Bernstein.
2662
2663         - Leopard build fix
2664
2665         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2666
2667 2007-11-26  Sam Weinig  <sam@webkit.org>
2668
2669         Fix for http://bugs.webkit.org/show_bug.cgi?id=16136
2670         Use shared PixelDumpSupport for Mac DRT
2671
2672         Reviewed by Adam Roben.
2673
2674         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2675         * DumpRenderTree/PixelDumpSupport.h: Copied from DumpRenderTree/win/PixelDumpSupport.h.
2676         * DumpRenderTree/cg/ImageDiffCG.cpp:
2677         * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
2678         (drawSelectionRectIntoContext):
2679         (dumpWebViewAsPixelsAndCompareWithExpected):
2680         * DumpRenderTree/cg/PixelDumpSupportCG.h:
2681         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2682         * DumpRenderTree/mac/DumpRenderTree.mm:
2683         (dump):
2684         * DumpRenderTree/mac/ImageDiff.m: Removed.
2685         * DumpRenderTree/mac/PixelDumpSupport.h: Removed.
2686         * DumpRenderTree/mac/PixelDumpSupport.mm: Removed.
2687         * DumpRenderTree/mac/PixelDumpSupportMac.mm: Copied from DumpRenderTree/mac/PixelDumpSupport.mm.
2688         (setDefaultColorProfileToRGB):
2689         (getBitmapContextFromWebView):
2690         (drawWebViewIntoContext):
2691         (repaintWithVerticalSweep):
2692         (repaintWithHorizontalSweep):
2693         (getSelectionRect):
2694         * DumpRenderTree/win/PixelDumpSupport.h: Removed.
2695
2696 2007-11-25  David D. Kilzer  <ddkilzer@webkit.org>
2697
2698         Bug 16052: prepare-ChangeLog doesn't report deleted files
2699         <http://bugs.webkit.org/show_bug.cgi?id=16052>
2700
2701         Reviewed by Sam.
2702
2703         * Scripts/prepare-ChangeLog: Fixed logic that checks for removed files.
2704
2705 2007-11-25  David Kilzer  <ddkilzer@webkit.org>
2706
2707         Bug 15864: Replace merge-changelog with resolve-ChangeLogs
2708         <http://bugs.webkit.org/show_bug.cgi?id=15864>
2709
2710         Reviewed by Adam.
2711
2712         Roll functionality of merge-changelog into resolve-ChangeLogs
2713         script.  The script now checks for ChangeLog.rej and
2714         ChangeLog.orig files first.  If it finds them, it uses the
2715         ChangeLog.rej file as a patch (in old contextual diff format) to
2716         apply with --fuzz=3.
2717
2718         * Scripts/merge-changelog: Removed.
2719         * Scripts/resolve-ChangeLogs: Handle traditional rejected patches.
2720
2721 2007-11-25  Sam Weinig  <sam@webkit.org>
2722
2723         Add .xcconfig files for the ImageDiff and TestNetscapePlugIn targets of the DumpRenderTree.
2724
2725         Reviewed by Mark Rowe.
2726
2727         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2728         * DumpRenderTree/mac/Configurations/Base.xcconfig:
2729         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig:
2730         * DumpRenderTree/mac/Configurations/ImageDiff.xcconfig: Added.
2731         * DumpRenderTree/mac/Configurations/TestNetscapePlugIn.xcconfig: Added.
2732
2733 2007-11-25  Sam Weinig  <sam@webkit.org>
2734
2735         Convert DumpRenderTree to ues .xcconfig files.
2736
2737         Reviewed by Mark Rowe.
2738
2739         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2740         * DumpRenderTree/mac/Configurations: Added.
2741         * DumpRenderTree/mac/Configurations/Base.xcconfig: Added.
2742         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig: Added.
2743         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig: Added.
2744
2745 2007-11-25  Sam Weinig  <sam@webkit.org>
2746
2747         Add ForwardingHeaders to wtf for DumpRenderTree.
2748
2749         Reviewed by Mark Rowe.
2750
2751         * DumpRenderTree/DumpRenderTree.h:
2752         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2753         * DumpRenderTree/ForwardingHeaders: Added.
2754         * DumpRenderTree/ForwardingHeaders/wtf: Added.
2755         * DumpRenderTree/ForwardingHeaders/wtf/Assertions.h: Added.
2756         * DumpRenderTree/ForwardingHeaders/wtf/Noncopyable.h: Added.
2757         * DumpRenderTree/ForwardingHeaders/wtf/OwnPtr.h: Added.
2758         * DumpRenderTree/ForwardingHeaders/wtf/Platform.h: Added.
2759         * DumpRenderTree/ForwardingHeaders/wtf/RetainPtr.h: Added.
2760         * DumpRenderTree/ForwardingHeaders/wtf/StringExtras.h: Added.
2761         * DumpRenderTree/LayoutTestController.cpp:
2762         * DumpRenderTree/WorkQueue.cpp:
2763         * DumpRenderTree/mac/DumpRenderTree.mm:
2764         * DumpRenderTree/mac/FrameLoadDelegate.mm:
2765         * DumpRenderTree/mac/JavaScriptThreading.cpp:
2766         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
2767         * DumpRenderTree/mac/ObjCController.m:
2768         * DumpRenderTree/mac/UIDelegate.mm:
2769         * DumpRenderTree/mac/WorkQueueItemMac.mm:
2770
2771 2007-11-25  Adam Roben  <aroben@apple.com>
2772
2773         Fix some test failures caused by r28019
2774
2775         Now that stdout is in binary mode, we need to always use printf
2776         instead of wprintf. Otherwise we'll end up with UTF-16 characters in
2777         the output.
2778
2779         Reviewed by Sam.
2780
2781         * DumpRenderTree/win/UIDelegate.cpp: Replaced uses of wprintf with
2782         printf.
2783         (UIDelegate::runJavaScriptAlertPanelWithMessage):
2784         (UIDelegate::runJavaScriptConfirmPanelWithMessage):
2785         (UIDelegate::runJavaScriptTextInputPanelWithPrompt):
2786         (UIDelegate::webViewAddMessageToConsole):
2787
2788 2007-11-25  Adam Roben  <aroben@apple.com>
2789
2790         Set the font smoothing preference in DRT
2791
2792         This makes the pixel results on Windows closer to the Mac results.
2793
2794         Reviewed by Mitz.
2795
2796         * DumpRenderTree/win/DumpRenderTree.cpp:
2797         (initializePreferences):
2798
2799 2007-11-25  Adam Roben  <aroben@apple.com>
2800
2801         Port ImageDiff to CG and C++
2802
2803         Final part of http://bugs.webkit.org/show_bug.cgi?id=16133
2804         <rdar://5071708>
2805
2806         Reviewed by Sam.
2807
2808         * DumpRenderTree/DumpRenderTree.sln: Added ImageDiff.vcproj.
2809         * DumpRenderTree/cg/ImageDiffCG.cpp: Added.
2810         (main):
2811         (createImageFromStdin):
2812         (compareImages):
2813         (getDifferenceBitmap):
2814         (computePercentageDifferent):
2815         * DumpRenderTree/win/ImageDiff.vcproj: Added.
2816
2817 2007-11-25  Adam Roben  <aroben@apple.com>
2818
2819         Fix image diff link generation on Windows
2820
2821         Reviewed by Sam.
2822
2823         * Scripts/run-webkit-tests: Removed unnecessary and incorrect calls
2824         to toURL.
2825
2826 2007-11-25  Adam Roben  <aroben@apple.com>
2827
2828         Implement pixel dumping in Windows DRT
2829
2830         Part of http://bugs.webkit.org/show_bug.cgi?id=16133
2831         <rdar://5071708>
2832
2833         Reviewed by Sam.
2834
2835         * DumpRenderTree/cg/PixelDumpSupportCG.cpp: Added.
2836         (printPNG): Dumps a CGImageRef as a PNG to stdout, along with a
2837         Content-Length header.
2838         (getMD5HashStringForBitmap):
2839         (dumpWebViewAsPixelsAndCompareWithExpected):
2840         * DumpRenderTree/cg/PixelDumpSupportCG.h: Copied from WebKitTools/DumpRenderTree/mac/DumpRenderTreePasteboard.h.
2841         * DumpRenderTree/win/DumpRenderTree.cpp:
2842         (dump): Do a pixel dump if requested.
2843         (main): Parse pixel test options.
2844         * DumpRenderTree/win/DumpRenderTree.vcproj: Added new files and added
2845         the cg/ subdirectory to the include path.
2846         * DumpRenderTree/win/MD5.cpp: Added. Windows MD5 functions aren't
2847         available in a header or import library, so we have to go through this
2848         LoadLibrary/GetProcAddress dance to use them.
2849         (cryptDLL):
2850         (init):
2851         (update):
2852         (final):
2853         (MD5_Init):
2854         (MD5_Update):
2855         (MD5_Final):
2856         * DumpRenderTree/win/MD5.h: Added.
2857         * DumpRenderTree/win/PixelDumpSupport.h: Added. This file should be
2858         moved up to the top level to share it with Mac eventually.
2859         * DumpRenderTree/win/PixelDumpSupportWin.cpp: Added.
2860         (getBitmapContextFromWebView): Forces the WebView to paint using a
2861         WM_PRINTCLIENT message, and puts the result in a CGBitmapContext.
2862
2863 2007-11-25  Adam Roben  <aroben@apple.com>
2864
2865         Clean up Windows DRT's option parsing a little bit
2866
2867         Reviewed by Sam.
2868
2869         * DumpRenderTree/win/DumpRenderTree.cpp:
2870         (main): Put non-option arguments into a Vector.
2871
2872 2007-11-25  Adam Roben  <aroben@apple.com>
2873
2874         Make Windows DRT stop changing LF into CRLF
2875
2876         Reviewed by Sam.
2877
2878         * DumpRenderTree/win/DumpRenderTree.cpp:
2879         (main): Put stdout in binary mode.
2880         * Scripts/run-webkit-tests: Remove the CRLF hack.
2881
2882 2007-11-24  David Kilzer  <ddkilzer@webkit.org>
2883
2884         Removed empty directory.
2885
2886         * Scripts/resources: Removed.
2887
2888 2007-11-23  David D. Kilzer  <ddkilzer@webkit.org>
2889
2890         Fix bisect-builds to work with recent WebKit nightly builds.
2891
2892         Reviewed by Dan.
2893
2894         * Scripts/bisect-builds: Check for the 
2895         WebKit.app/Contents/Frameworks/10.[45] directory. If it exists, use
2896         it for the DYLD_FRAMEWORK_PATH environment variable, else fallback
2897         to WebKit.app/Contents/Resources.
2898
2899 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2900
2901         Reviewed by Maciej.
2902
2903         <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
2904         not closed (affects digg.com)
2905
2906         * DumpRenderTree/mac/DumpRenderTree.mm: (runTest): Replace the current document with a blank
2907         one after finishing with a test to avoid having its delayed onload handler firing when
2908         replaced with the next one. This is ugly and still unreliable (see LayoutTests ChangeLog),
2909         but it helps somewhat.
2910
2911 2007-11-22  Mark Rowe  <mrowe@apple.com>
2912
2913         Reviewed by Alp Toker.
2914
2915         Fix build-webkit to propagate make's exit status if it fails.
2916
2917         * Scripts/webkitdirs.pm:
2918
2919 2007-11-22  Dan Bernstein  <mitz@apple.com>
2920
2921         Reviewed by Mark Rowe.
2922
2923         - fix crash when running pixel tests
2924
2925         * DumpRenderTree/mac/DumpRenderTree.mm:
2926         (dumpRenderTree): Parse the command line options before setting up the
2927         environment so that we know if we need to set up the pixel dump
2928         machinery.
2929
2930 2007-11-21  Eric Seidel  <eric@webkit.org>
2931
2932         Speculative build fix for Tiger.
2933
2934         * DumpRenderTree/mac/PixelDumpSupport.mm: include unistd.h
2935
2936 2007-11-21  Eric Seidel  <eric@webkit.org>
2937
2938         Reviewed by Tim Hatcher.
2939
2940         Break out more of DumpRenderTree.mm into individual files
2941
2942         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
2943         * DumpRenderTree/mac/CheckedMalloc.cpp: Added.
2944         (checkedMalloc):
2945         (checkedRealloc):
2946         (makeLargeMallocFailSilently):
2947         * DumpRenderTree/mac/CheckedMalloc.h: Added.
2948         * DumpRenderTree/mac/DumpRenderTree.mm:
2949         (crashHandler):
2950         (dump):
2951         * DumpRenderTree/mac/DumpRenderTreeMac.h:
2952         * DumpRenderTree/mac/DumpRenderTreePasteboard.h:
2953         * DumpRenderTree/mac/DumpRenderTreePasteboard.m:
2954         * DumpRenderTree/mac/DumpRenderTreeWindow.h:
2955         * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
2956         * DumpRenderTree/mac/JavaScriptThreading.cpp: Added.
2957         (javaScriptThreads):
2958         (runJavaScriptThread):
2959         (startJavaScriptThreads):
2960         (stopJavaScriptThreads):
2961         * DumpRenderTree/mac/JavaScriptThreading.h: Added.
2962         * DumpRenderTree/mac/PixelDumpSupport.h: Added.
2963         * DumpRenderTree/mac/PixelDumpSupport.mm: Added.
2964         (restoreColorSpace):
2965         (setDefaultColorProfileToRGB):
2966         (initializeColorSpaceAndScreeBufferForPixelTests):
2967         (md5HashStringForBitmap):
2968         (dumpWebViewAsPixelsAndCompareWithExpected):
2969
2970 2007-11-21  Kevin Ollivier  <kevino@theolliviers.com>
2971
2972         Move install-unix-extras to wx directory as it seems only to be used by that 
2973         port now. It now supports universal binaries on Mac and adds libpng and libjpeg. 
2974         Also, have build-wxwebkit run it in order to fix the Mac buildbot, and
2975         have install-unix-extras install into WebKitLibraries as per
2976         convention.
2977         
2978         Reviewed by Mark Rowe.
2979
2980         * Scripts/install-unix-extras: Removed.
2981         * wx/build-wxwebkit:
2982         * wx/install-unix-extras: Copied from WebKitTools/Scripts/install-unix-extras.
2983
2984 2007-11-21  Eric Seidel  <eric@webkit.org>
2985
2986         Reviewed by Adam.
2987
2988         More refactoring for greater code readability
2989
2990         * DumpRenderTree/mac/DumpRenderTree.mm:
2991         (initializeGlobalsFromCommandLineOptions):
2992         (initializeColorSpaceAndScreeBufferForPixelTests):
2993         (addTestPluginsToPluginSearchPath):
2994         (useLongRunningServerMode):
2995         (runTestingServerLoop):
2996         (prepareConsistentTestingEnvironment):
2997         (dumpRenderTree):
2998         (main):
2999         (dumpFramesAsText):
3000         (dumpBackForwardListForWebView):
3001         (sizeWebViewForCurrentTest):
3002         (methodNameStringForFailedTest):
3003         (dumpBackForwardListForAllWindows):
3004         (dumpWebViewAsPixelsAndCompareWithExpected):
3005         (invalidateAnyPreviousWaitToDumpWatchdog):
3006         (dump):
3007         * DumpRenderTree/mac/DumpRenderTreeMac.h:
3008         * DumpRenderTree/mac/UIDelegate.mm:
3009         (-[UIDelegate webView:createWebViewWithRequest:]):
3010
3011 2007-11-21  Eric Seidel  <eric@webkit.org>
3012
3013         Reviewed by Tim Hatcher.
3014
3015         Abstract more of DRT into static methods
3016
3017         * DumpRenderTree/mac/DumpRenderTree.mm:
3018         (setDefaultsToConsistentValuesForTesting):
3019         (setupSignalHandlers):
3020         (allocateGlobalControllers):
3021         (releaseAndZero):
3022         (releaseGlobalControllers):
3023         (dumpRenderTree):
3024         (shouldLogFrameLoadDelegates):
3025         (createCFURLFromPathOrURL):
3026         (resetWebViewToConsistentStateBeforeTesting):
3027         (runTest):
3028
3029 2007-11-21  Eric Seidel  <eric@webkit.org>
3030
3031         Reviewed by Tim Hatcher.
3032
3033         Pull DumpRenderTreeWindow and DumpRenderTreePasteboard out into their own files
3034
3035         * DumpRenderTree/DumpRenderTree.h:
3036         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3037         * DumpRenderTree/mac/DumpRenderTree.mm:
3038         (dumpRenderTree):
3039         (dump):
3040         (runTest):
3041         * DumpRenderTree/mac/DumpRenderTreePasteboard.h: Added.
3042         * DumpRenderTree/mac/DumpRenderTreePasteboard.m: Added.
3043         (+[DumpRenderTreePasteboard _pasteboardWithName:]):
3044         (+[DumpRenderTreePasteboard releaseLocalPasteboards]):
3045         (-[DumpRenderTreePasteboard declareType:owner:]):
3046         (+[LocalPasteboard alloc]):
3047         (-[LocalPasteboard init]):
3048         (-[LocalPasteboard dealloc]):
3049         (-[LocalPasteboard name]):
3050         (-[LocalPasteboard releaseGlobally]):
3051         (-[LocalPasteboard declareTypes:owner:]):
3052         (-[LocalPasteboard addTypes:owner:]):
3053         (-[LocalPasteboard changeCount]):
3054         (-[LocalPasteboard types]):
3055         (-[LocalPasteboard availableTypeFromArray:]):
3056         (-[LocalPasteboard setData:forType:]):
3057         (-[LocalPasteboard dataForType:]):
3058         (-[LocalPasteboard setPropertyList:forType:]):
3059         (-[LocalPasteboard setString:forType:]):
3060         * DumpRenderTree/mac/DumpRenderTreeWindow.h: Added.
3061         * DumpRenderTree/mac/DumpRenderTreeWindow.mm: Added.
3062         (+[DumpRenderTreeWindow allWindows]):
3063         (-[DumpRenderTreeWindow initWithContentRect:styleMask:backing:defer:]):
3064         (-[DumpRenderTreeWindow dealloc]):
3065         (-[DumpRenderTreeWindow isKeyWindow]):
3066         (-[DumpRenderTreeWindow keyDown:]):
3067
3068 2007-11-20  Kevin Ollivier  <kevino@theolliviers.com>
3069
3070         wx build fix for Windows. Don't use WebCore/move-js-headers.sh as
3071         it indiscriminately copies any headers inside JavaScriptCore,
3072         which includes Tiger ICU headers. 
3073
3074         * wx/build-wxwebkit:
3075         Don't run WebCore/move-js-headers.sh any longer.
3076
3077 2007-11-20  Adam Treat  <treat@kde.org>
3078
3079         Reviewed by David Kilzer.
3080
3081         * Prepend git branch name to $baseProductDir
3082
3083         * Scripts/VCSUtils.pm:
3084         * Scripts/webkitdirs.pm:
3085
3086 2007-11-20  Mark Rowe  <mrowe@apple.com>
3087
3088         Reviewed by Simon Hausmann.
3089
3090         * Scripts/build-webkit:  Pass "clean" flag down into buildQMakeProject.
3091         * Scripts/webkitdirs.pm: Respect the "clean" flag passed down from build-webkit.
3092         Have it trigger a "make distclean" rather than "make clean" to ensure that the
3093         built product and generated Makefile's are removed.
3094
3095 2007-11-19  Alp Toker  <alp@atoker.com>
3096
3097         Reviewed by Mark Rowe.
3098
3099         http://bugs.webkit.org/show_bug.cgi?id=16040
3100         [GTK] GtkLauncher should be written in C
3101
3102         Port GtkLauncher to plain C.
3103
3104         Use a more conventional GTK+ coding style.
3105
3106         Use a toolbar instead of menus.
3107
3108         Various signature fixes and cleanups.
3109
3110         Add a license header. Assume all previous modifications were copyright
3111         assigned to Apple Inc. by default.
3112
3113         * GtkLauncher/GtkLauncher.pro:
3114         * GtkLauncher/main.c: Added.
3115         (activate_url_entry_cb):
3116         (update_title):
3117         (link_hover_cb):
3118         (title_change_cb):
3119         (progress_change_cb):
3120         (destroy_cb):
3121         (go_back_cb):
3122         (go_forward_cb):
3123         (create_browser):
3124         (create_statusbar):
3125         (create_toolbar):
3126         (create_window):
3127         (main):
3128         * GtkLauncher/main.cpp: Removed.
3129
3130 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
3131
3132         Build script fixes to ensure they do the right thing for the 
3133         wx port, and update build-wxwebkit to reflect the way the
3134         build scripts now work.
3135
3136         Reviewed by Adam.
3137
3138         * Scripts/build-testkjs:
3139         * Scripts/build-webkit:
3140         * Scripts/run-javascriptcore-tests:
3141         * Scripts/webkitdirs.pm:
3142         * wx/build-wxwebkit:
3143
3144 2007-11-18  Eric Seidel  <eric@webkit.org>
3145
3146         Reviewed by Anders.
3147
3148         Make run-javascriptcore-tests report failures on exit (to support git bisect)
3149
3150         * Scripts/run-javascriptcore-tests:
3151
3152 2007-11-18  Alexey Proskuryakov  <ap@webkit.org>
3153
3154         Reviewed by Adam Roben.
3155
3156         Make run-webkit-tests work with Windows debug build.
3157
3158         * DumpRenderTree/win/DumpRenderTree.cpp: (main): Only use memory checks with debug CRT.
3159         * DumpRenderTree/win/DumpRenderTree.vcproj: Switched Debug configuration to release CRT,
3160         as it is supposed to run with release Apple libraries. Removed _DEBUG preprocessor
3161         symbol, as it goes with debug CRT (AFAIK, it is supposed to be added automatically,
3162         and shouldn't be needed in Debug_internal configuration, but I didn't dare to change that).
3163
3164 2007-11-18  Kevin Ollivier  <kevino@theolliviers.com>
3165
3166         Add wxWebKit sample and build script, and integrate it with 
3167         build-webkit. Also make build-webkit --clean work for all
3168         ports.
3169
3170         Reviewed by Darin Adler.
3171
3172         * Scripts/build-webkit:
3173         * Scripts/webkitdirs.pm:
3174         * wx: Added.
3175         * wx/browser: Added.
3176         * wx/browser/browser.bkl: Added.
3177         * wx/browser/browser.cpp: Added.
3178         * wx/build-wxwebkit: Added.
3179
3180 2007-11-17  Adam Roben  <aroben@apple.com>
3181
3182         Make it easy to run Safari in the debugger on Windows
3183
3184         I've added a new script, debug-safari, which launches Safari in the
3185         debugger. On OS X it just calls gdb-safari.
3186
3187         Reviewed by Mark Rowe.
3188
3189         * FindSafari/FindSafari.cpp:
3190         (_tmain): Added a /debugger flag, which in combination with
3191         /printSafariLauncher will print a script that launches Safari in the
3192         debugger.
3193         * Scripts/debug-safari: Added.
3194         * Scripts/run-safari: Changed to call runSafari().
3195         * Scripts/run-webkit-nightly.cmd: Prepends the launcher script with
3196         vsvars32.bat, which will let us find VS/VC++ Express, and passes the
3197         first argument along to FindSafari.
3198         * Scripts/webkitdirs.pm:
3199         (sub runSafari): Added.
3200
3201 2007-11-16  Alexey Proskuryakov  <ap@webkit.org>
3202
3203         Reviewed by Adam Roben.
3204
3205         * Scripts/run-webkit-tests: Avoid an uninitialized warning if WEBKIT_TESTFONTS is not defined. 
3206
3207 2007-11-16  Ryan Leavengood  <leavengood@gmail.com>
3208
3209         Reviewed by David Kilzer.
3210
3211         The git config command was renamed to repo-config at some point. This
3212         change tries git config and then git repo-config if the first fails.
3213
3214         * Scripts/prepare-ChangeLog:
3215         (gitConfig):
3216
3217 2007-11-16  Dan Bernstein  <mitz@apple.com>
3218
3219         Reviewed by Darin Adler and Sam Weinig.
3220
3221         - fix <rdar://problem/5134075> fast/forms/select-type-ahead-non-latin.html fails on Windows
3222
3223         * DumpRenderTree/win/EventSender.cpp:
3224         (keyDownCallback): For characters that cannot be entered on the active
3225         keyboard layout, send a WM_CHAR message with the character along with
3226         a WM_KEYDOWN message with a virtual key code of 255.
3227
3228 2007-11-16  Mark Rowe  <mrowe@apple.com>
3229
3230         Reviewed by Tim Hatcher.
3231
3232         Don't weak link against WebCore now that it is a sub-framework of WebKit in all configurations.
3233
3234         * Drosera/mac/Drosera.xcodeproj/project.pbxproj:
3235         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3236
3237 2007-11-15  Adam Roben  <aroben@apple.com>
3238
3239         Make run-safari actually work on Windows
3240
3241         * Scripts/run-safari: Fixed the order of arguments to cp, and added a
3242         chdir call.
3243
3244 2007-11-14  Adam Roben  <aroben@apple.com>
3245
3246         Updates to Safari launching now that 3.0.4 is released
3247
3248         Reviewed by Sam.
3249
3250         * FindSafari/FindSafari.cpp:
3251         (getWebViewCLSID): Use version-independent ProgID.
3252         * Scripts/run-safari: Use run-webkit-nightly.cmd.
3253
3254 2007-11-14  Anders Carlsson  <andersca@apple.com>
3255
3256         Reviewed by Adam.
3257
3258         <rdar://problem/5309081>
3259         In DRT, "plugin.logDestroy = true" not working on Windows.
3260         
3261         * DumpRenderTree/win/TestNetscapePlugin/main.c:
3262         (NPP_Destroy):
3263
3264 2007-11-14  Eric Seidel  <eric@webkit.org>
3265
3266         Reviewed by Sam.
3267
3268         * Scripts/run-sunspider: add --shark-cache for L2 Cache Miss profiling
3269
3270 2007-11-14  Anders Carlsson  <andersca@apple.com>
3271
3272         Reviewed by Adam.
3273
3274         <rdar://problem/5141186>
3275         window.layoutTestController.setWindowIsKey is not implemented in DRT.
3276         
3277         Implement setWindowIsKey.
3278         
3279         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
3280         (LayoutTestController::setWindowIsKey):
3281
3282 2007-11-13  Sam Weinig  <sam@webkit.org>
3283
3284         Reviewed by Adam Roben.
3285
3286         Fix for <rdar://problem/5382579>
3287         http/tests/security/cross-frame-access-put.html reports large 
3288         negative numbers for screenLeft and screenTop (Mac reports "0")
3289
3290         * DumpRenderTree/win/UIDelegate.cpp:
3291         (UIDelegate::UIDelegate): Initialize the RECT.
3292         (UIDelegate::setFrame): copy the contents of the rect, not the pointer.
3293         (UIDelegate::webViewFrame): ditto.
3294         * DumpRenderTree/win/UIDelegate.h: Use a RECT not a RECT*
3295
3296 2007-11-13  Kevin McCullough  <kmccullough@apple.com>
3297
3298         Reviewed by Adam.
3299
3300         - Make Drosera show source, source URLs, and function stack on Windows,
3301         and some minor fixes.
3302
3303         * Drosera/DebuggerDocument.cpp: Force source to always update display.
3304         (DebuggerDocument::updateFileSource):
3305         * Drosera/debugger.js: Force source to always update display.
3306         * Drosera/win/DebuggerClient.cpp: Create the needed functions for the
3307         menu controls.
3308         (DebuggerClient::resume):
3309         (DebuggerClient::pause):
3310         (DebuggerClient::stepInto):
3311         (DebuggerClient::stepOver):
3312         (DebuggerClient::stepOut):
3313         (DebuggerClient::showConsole):
3314         (DebuggerClient::closeCurrentFile):
3315         * Drosera/win/DebuggerClient.h: Ditto.
3316         * Drosera/win/DebuggerDocumentPlatform.cpp: Changed
3317         getPlatformCurrentFunctionStack to not use an unecessary HRESULT and
3318         removed two bugs.  1) caller could be in a bad state when asked to
3319         assign into it. 2) BSTRs were not created correctly.
3320         (DebuggerDocument::getPlatformCurrentFunctionStack):
3321         * Drosera/win/Drosera.cpp: Hook up the menu controls.
3322         (droseraWndProc):
3323         (handleCommand):
3324         (Drosera::resume):
3325         (Drosera::pause):
3326         (Drosera::stepInto):
3327         (Drosera::stepOver):
3328         (Drosera::stepOut):
3329         (Drosera::showConsole):
3330         (Drosera::closeCurrentFile):
3331         * Drosera/win/Drosera.h: Hook up the menu controls.
3332         * Drosera/win/ServerConnection.cpp: Removed unncessary server connection
3333         functions, added a null check, and fixed another bug where caller could
3334         be in a bad state when asked to assign into it.
3335         (ServerConnection::didLoadMainResourceForDataSource):
3336         (ServerConnection::getCallerFrame):
3337         * Drosera/win/ServerConnection.h: Safety first.
3338
3339 2007-11-13  Dan Bernstein  <mitz@apple.com>
3340
3341         Reviewed by Darin Adler.
3342
3343         - fix <http://bugs.webkit.org/show_bug.cgi?id=13371>
3344           DumpRenderTree --pixel-tests renders each test twice
3345
3346         * DumpRenderTree/mac/DumpRenderTree.mm:
3347         (dumpRenderTree): Removed the --paint option because the painting code
3348         is always exercised as a result of
3349         -[FrameLoadDelegate webView:didFinishLoadFromFrame:]
3350         calling -displayIfNeeded.
3351         (dump): Changed to always grab the image from the window since the view
3352         is always displayed.
3353         (runTest):
3354         (displayWebView):
3355         * Scripts/run-webkit-tests: No need to pass --paint to DumpRenderTree
3356         because it always paints.
3357
3358 2007-11-12  Antti Koivisto  <antti@apple.com>
3359
3360         Reviewed by Adele.
3361         
3362         Add support for http media tests
3363
3364         * Scripts/run-webkit-tests:
3365
3366 2007-11-12  Sam Weinig  <sam@webkit.org>
3367
3368         Reviewed by Adam Roben.
3369
3370         Implement LayoutTestController.setPrivateBrowsingEnabled(bool) for windows.
3371
3372         * DumpRenderTree/win/DumpRenderTree.cpp:
3373         (runTest):
3374         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
3375         (LayoutTestController::setPrivateBrowsingEnabled):
3376
3377 2007-11-12  Adam Roben  <aroben@apple.com>
3378
3379         * Scripts/update-webkit-localizable-strings: Changed to only scan the
3380         mac and win subdirectories.
3381
3382 2007-11-11  Adam Roben  <aroben@apple.com>
3383
3384         Fix <rdar://5133816> keepWebHistory is not implemented
3385
3386         Fixes fast/history/clicked-link-is-visited.html.
3387
3388         Reviewed by Darin.
3389
3390         * DumpRenderTree/win/DumpRenderTree.cpp:
3391         (runTest): Clear the optionalSharedHistory.
3392         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
3393         (LayoutTestController::keepWebHistory): Set the optionalSharedHistory.
3394
3395 2007-11-10  Sam Weinig  <sam@webkit.org>
3396
3397         Reviewed by Tim Hatcher.
3398
3399         Follow up to <rdar://problem/5394877> Safari should not log unsafe JavaScript 
3400         attempts when in private browsing mode (only an issue if Log JavaScript Exceptions 
3401         is turned on)
3402
3403         - Add LayoutTestController.setPrivateBrowsingEnabled(bool) (stub out implementation for windows)
3404
3405         Added test: http/tests/security/cross-frame-access-private-browsing.html
3406
3407         * DumpRenderTree/LayoutTestController.cpp:
3408         (setPrivateBrowsingEnabledCallback):
3409         (LayoutTestController::staticFunctions):
3410         * DumpRenderTree/LayoutTestController.h:
3411         * DumpRenderTree/mac/DumpRenderTree.mm:
3412         (runTest): Default to private browsing disabled.
3413         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
3414         (LayoutTestController::setPrivateBrowsingEnabled):
3415         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
3416         (LayoutTestController::setPrivateBrowsingEnabled):
3417
3418 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
3419
3420         Reviewed by Adam.
3421
3422         - Changed the vcproj file to use Drosera's ForwardingHeaders and not
3423         WebCore's!
3424
3425         * Drosera/ForwardingHeaders/wtf/Assertions.h: Added.
3426         * Drosera/ForwardingHeaders/wtf/HashTraits.h: Added.
3427         * Drosera/ForwardingHeaders/wtf/Noncopyable.h: Added.
3428         * Drosera/ForwardingHeaders/wtf/OwnPtr.h: Added.
3429         * Drosera/ForwardingHeaders/wtf/RetainPtr.h: Added.
3430         * Drosera/win/Drosera.cpp:
3431         * Drosera/win/Drosera.vcproj/Drosera.vcproj:
3432
3433 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
3434
3435         Reviewed by Sam.
3436
3437         - Use the new IWebFrame [local] function signature and get the shared
3438         server correctly.
3439
3440         * Drosera/win/DebuggerClient.cpp:
3441         (DebuggerClient::didFinishLoadForFrame):
3442         * Drosera/win/ServerConnection.cpp:
3443         (ServerConnection::attemptToCreateServerConnection):
3444
3445 2007-11-07  Dan Bernstein  <mitz@apple.com>
3446
3447         Reviewed by Darin Adler.
3448
3449         - add an option to run-webkit-tests to ignore pixel test failures where
3450           all pixels differ by no more than a specified threshold
3451
3452         * DumpRenderTree/mac/ImageDiff.m:
3453         (main):
3454         (compareImages):
3455         (computePercentageDifferent):
3456         * Scripts/run-webkit-tests:
3457
3458 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3459
3460         Reviewed by Lars.
3461
3462         Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
3463
3464         * DumpRenderTree/qt/DumpRenderTree.cpp:
3465
3466 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3467
3468         Reviewed by Lars.
3469
3470         Reworked the QWebSettings API.
3471         QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
3472
3473         * DumpRenderTree/qt/DumpRenderTree.cpp:
3474
3475 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3476
3477         Reviewed by Lars.
3478
3479         Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
3480
3481         * DumpRenderTree/qt/jsobjects.cpp:
3482
3483 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3484
3485         Reviewed by Lars Knoll <lars@trolltech.com>.
3486
3487         Add a QWebPage::frameCreated() signal and fix DRT
3488         
3489         The removal of createFrame in QWebPage broke the re-implementation
3490         in DumpRenderTree. Instead emit a frameCreated() signal and
3491         connect to it in DumpRenderTree.
3492         
3493
3494         * DumpRenderTree/qt/DumpRenderTree.cpp:
3495         (WebCore::WebPage::WebPage):
3496         (WebCore::DumpRenderTree::dump):
3497         (WebCore::DumpRenderTree::connectFrame):
3498         * DumpRenderTree/qt/DumpRenderTree.h:
3499
3500 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3501
3502         Reviewed by Lars Knoll <lars@trolltech.com>.
3503
3504         Moved all the event handlers from QWebFrame into QWebPage.
3505         
3506         This cleans up the public API and allows us to remove the
3507         HackWebFrame hack in DumpRenderTree.
3508         
3509
3510         * DumpRenderTree/qt/jsobjects.cpp:
3511         (EventSender::mouseDown):
3512         (EventSender::mouseUp):
3513         (EventSender::mouseMoveTo):
3514
3515 2007-11-07  Simon Hausmann  <hausmann@kde.org>
3516
3517         Reviewed by Mark.
3518
3519         Implemented the two Javascript prompt callbacks in qt/DumpRenderTree
3520         to prevent the default implementation from popping up messageboxes.
3521
3522         * DumpRenderTree/qt/DumpRenderTree.cpp:
3523         (WebCore::WebPage::javaScriptConfirm):
3524         (WebCore::WebPage::javaScriptPrompt):
3525
3526 2007-11-06  Eric Seidel  <eric@webkit.org>
3527
3528         * Scripts/build-testkjs: build fix... too many $$
3529
3530 2007-11-06  Eric Seidel  <eric@webkit.org>
3531
3532         Reviewed by Mark Rowe.
3533
3534         * Scripts/build-testkjs: return xcodebuild's exit status, instead of grep's
3535
3536 2007-11-05  Adam Roben  <aroben@apple.com>
3537
3538         Add support on Windows for WEBKIT_TESTFONTS
3539
3540         This environment variable lets you specify where the fonts to be used
3541         by DumpRenderTree reside. The Qt port is already using this, so I'm
3542         just following their lead.
3543
3544         Reviewed by Darin.
3545
3546         * DumpRenderTree/win/DumpRenderTree.cpp:
3547         (exePath): Refactored code out of initialize().
3548         (fontsPath): Returns either $WEBKIT_TESTFONTS or
3549         DumpRenderTree.resources.
3550         (initialize): Use the new fontsPath function.
3551         (main): Use the new exePath function.
3552         * Scripts/run-webkit-tests: Propagate the WEBKIT_TESTFONTS environment
3553         variable to DRT, like Qt does.
3554
3555 2007-11-05  Mark Rowe  <mrowe@apple.com>
3556
3557         Rubber-stamped by Alp Toker.
3558
3559         Remove buggy "autocomplete" from GtkLauncher as it causes more problems than it solves.
3560
3561         * GtkLauncher/main.cpp:
3562         (goToURLBarText):
3563         (main):
3564
3565 2007-11-04  David D. Kilzer  <ddkilzer@webkit.org>
3566
3567         bisect-builds doesn't work with nightly build r19992 or newer on Leopard
3568         <http://bugs.webkit.org/show_bug.cgi?id=15830>
3569
3570         Reviewed by Timothy.
3571
3572         Restrict the range of nightly builds used by the bisect-builds script
3573         based on the version of Safari and the version of Mac OS X being used.
3574
3575         Mac OS X 10.4: Safari 2.0: r11976 or newer
3576         Mac OS X 10.4: Safari 3.0: r19992 or newer
3577
3578         Mac OS X 10.5: Safari 2.0: r19594 or newer
3579         Mac OS X 10.5: Safari 3.0: r25124 or newer
3580
3581         * Scripts/bisect-builds:
3582         (findMacOSXVersion): Added.
3583         (makeNightlyList): Added argument to provide version of Mac OS X.
3584         Restrict range of nightly builds based on Safari and Mac OS X versions.
3585
3586 2007-11-04  Kevin McCullough  <kmccullough@apple.com>
3587
3588         Reviewed by Maciej.
3589
3590         - This patch involves several changes, all of them were noticed that
3591         they were needed by the work being done in WebKit to get Drosera and
3592         WebKit working together on Windows.
3593         - The changes are:
3594         1) Added a debugger console for output messages.
3595         2) Drosera now listens for the WebKit server (before, the server would
3596         have to be running before Drosera was started.)
3597         3) Fixed a bug where the WebView started out as 0x0 pixels.
3598         4) Fixed a bug when there is no scope.
3599         5) Added the HTML, JS, and CSS to the project file to make them easy to
3600         find.
3601         6) Made the ServerConnection functions virtual.
3602
3603         * Drosera/win/DebuggerClient.cpp: This is part of how Drosera listens
3604         for the WebKit server.
3605         (DebuggerClient::DebuggerClient):
3606         (DebuggerClient::~DebuggerClient):
3607         (DebuggerClient::didFinishLoadForFrame):
3608         (DebuggerClient::serverConnected):
3609         (DebuggerClient::attemptToCreateServerConnection):
3610         * Drosera/win/DebuggerClient.h: Ditto.
3611         * Drosera/win/DebuggerDocumentPlatform.cpp: Fixed a bug when there is no
3612         scope.
3613         (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame):
3614         (DebuggerDocument::platformValueForScopeVariableNamed):
3615         * Drosera/win/Drosera.cpp:
3616         (_tWinMain): Added a console in debug for output messages.
3617         (Drosera::Drosera): Listen for server.
3618         (Drosera::initUI): The server now Initializes COM.
3619         (Drosera::serverConnected): Part of the listening for the server.
3620         (Drosera::attemptToCreateServerConnection): Ditto.
3621         * Drosera/win/Drosera.h: New interface for listening for the server.
3622         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Added HTML, JS, and CSS
3623         files to the VS project.
3624         * Drosera/win/ServerConnection.cpp: Part of listening for the server
3625         connection.
3626         (ServerConnection::ServerConnection):
3627         (ServerConnection::attemptToCreateServerConnection):
3628         * Drosera/win/ServerConnection.h: Ditto and virtualized the Interface
3629         methods.
3630         (ServerConnection::serverConnected):
3631
3632 2007-11-04  Alexey Proskuryakov  <ap@webkit.org>
3633
3634         Reviewed by Maciej.
3635
3636         http://bugs.webkit.org/show_bug.cgi?id=15832
3637         fast/dom/gc-10.html crashes when run alone
3638
3639         Check for !done before using objects that can be already deallocated.
3640
3641         * DumpRenderTree/mac/EditingDelegate.mm:
3642         (-[EditingDelegate webView:shouldBeginEditingInDOMRange:]):
3643         (-[EditingDelegate webView:shouldEndEditingInDOMRange:]):
3644         (-[EditingDelegate webView:shouldInsertNode:replacingDOMRange:givenAction:]):
3645         (-[EditingDelegate webView:shouldInsertText:replacingDOMRange:givenAction:]):
3646         (-[EditingDelegate webView:shouldDeleteDOMRange:]):
3647         (-[EditingDelegate webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
3648         (-[EditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]):
3649         (-[EditingDelegate webView:shouldChangeTypingStyle:toStyle:]):
3650         (-[EditingDelegate webViewDidBeginEditing:]):
3651         (-[EditingDelegate webViewDidChange:]):
3652         (-[EditingDelegate webViewDidEndEditing:]):
3653         (-[EditingDelegate webViewDidChangeTypingStyle:]):
3654         (-[EditingDelegate webViewDidChangeSelection:]):
3655         * DumpRenderTree/mac/FrameLoadDelegate.mm:
3656         (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]):
3657         (-[FrameLoadDelegate webView:didCommitLoadForFrame:]):
3658         (-[FrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
3659         (-[FrameLoadDelegate webView:didFinishLoadForFrame:]):
3660         (-[FrameLoadDelegate webView:didFailLoadWithError:forFrame:]):
3661         (-[FrameLoadDelegate webView:windowScriptObjectAvailable:]):
3662         (-[FrameLoadDelegate webView:didClearWindowObject:forFrame:]):
3663         (-[FrameLoadDelegate webView:didReceiveTitle:forFrame:]):
3664         (-[FrameLoadDelegate webView:didReceiveServerRedirectForProvisionalLoadForFrame:]):
3665         (-[FrameLoadDelegate webView:didReceiveIcon:forFrame:]):
3666         (-[FrameLoadDelegate webView:didChangeLocationWithinPageForFrame:]):
3667         (-[FrameLoadDelegate webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:]):
3668         (-[FrameLoadDelegate webView:didCancelClientRedirectForFrame:]):
3669         (-[FrameLoadDelegate webView:willCloseFrame:]):
3670         (-[FrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
3671         (-[FrameLoadDelegate webView:didHandleOnloadEventsForFrame:]):
3672         * DumpRenderTree/mac/ResourceLoadDelegate.mm:
3673         (-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):
3674         (-[ResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]):
3675         (-[ResourceLoadDelegate webView:resource:didReceiveResponse:fromDataSource:]):
3676         (-[ResourceLoadDelegate webView:resource:didFinishLoadingFromDataSource:]):
3677         (-[ResourceLoadDelegate webView:resource:didFailLoadingWithError:fromDataSource:]):
3678         (-[ResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:]):
3679
3680 2007-11-04  Mark Rowe  <mrowe@apple.com>
3681
3682         Build fix.  Don't use Carbon.h as the prefix header as it triggers
3683         warnings that would otherwise be suppressed due to it being a system header.
3684
3685         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3686
3687 2007-11-03  Maciej Stachowiak  <mjs@apple.com>
3688
3689         Rubber stamped by Adam.
3690         
3691         - Turn off deprecated function warnings for TestNetscapePlugin because Carbon.h triggers them
3692
3693         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3694
3695 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
3696
3697         Sort files(...); sections of Xcode project files.
3698
3699         Rubber-stamped by Darin.
3700
3701         * DrawTest/DrawTest.xcodeproj/project.pbxproj:
3702         * Drosera/mac/Drosera.xcodeproj/project.pbxproj:
3703         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
3704         * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
3705
3706 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
3707
3708         Script to sort "files(...);" sections in Xcode project.pbxproj files.
3709
3710         Reviewed by Darin.
3711
3712         * Scripts/sort-Xcode-project-file: Added.
3713
3714 2007-11-02  Darin Adler  <darin@apple.com>
3715
3716         * Scripts/run-sunspider: Changed "--base" to "--set-baseline".
3717
3718 2007-11-02  Darin Adler  <darin@apple.com>
3719
3720         Reviewed by Maciej.
3721
3722         * Scripts/run-sunspider: Pass the "--base" option through.
3723
3724         * Scripts/sunspider-compare-results: Don't check the number of parameters; let
3725         the real script do that. Default configuration to Release to match run-sunspider
3726         so we don't end up building Debug just to compare results.
3727
3728 2007-11-01  Adam Roben  <aroben@apple.com>
3729
3730         Make changes in WebKit/win show up under "WebKit/win:" instead of just "win:"
3731
3732         Reviewed by Sam.
3733
3734         * Scripts/commit-log-editor: Show all the directories beneath the
3735         source root, instead of just the last one.
3736
3737 2007-11-01  Kevin Ollivier  <kevino@theolliviers.com>
3738
3739         Reviewed by Adam Roben.
3740
3741         Print out an error message when the Windows build fails
3742         and provide guidance on how to find out what went wrong.
3743
3744         * Scripts/build-webkit:
3745         * Scripts/webkitdirs.pm:
3746
3747 2007-11-01  Alexey Proskuryakov  <ap@webkit.org>
3748
3749         Rubber-stamped by Adam Roben.
3750
3751         Rolled out r27326 - debug CRT seems to cause no problems after all.
3752
3753         * DumpRenderTree/win/DumpRenderTree.vcproj:
3754
3755 2007-10-31  Adam Roben  <aroben@apple.com>
3756
3757         Switch the Debug configuration to using the non-debug CRT
3758
3759         This matches WebKit.
3760
3761         Reviewed by Steve.
3762
3763         * DumpRenderTree/win/DumpRenderTree.vcproj:
3764
3765 2007-10-31  Antti Koivisto  <antti@apple.com>
3766
3767         Reviewed by bdash.
3768         
3769         Disable media tests when doing leak checking on Tiger.
3770         They crash in QuickTime (rdar://problem/5537157).
3771
3772         * Scripts/run-webkit-tests:
3773
3774 2007-10-29  Antti Koivisto  <antti@apple.com>
3775
3776         Reviewed by Maciej.
3777         
3778         Build media support by default on OSX only.
3779
3780         * Scripts/build-webkit:
3781
3782 2007-10-30  Kevin McCullough  <kmccullough@apple.com>
3783
3784         - Made Adam the reviewer for a previous checkin. Not sure how it didn't
3785         get caught by the pre-commit hooks.
3786
3787 2007-10-30  Kevin McCullough  <kmccullough@apple.com>
3788
3789         Reviewed by Adam.
3790
3791         - This is a collection of relatively unrelated changes and cleanups
3792         to Drosera to prepare it for interacting with WebKit.  A lot of these
3793         changes are just correcting mistakes, for example removing included
3794         headers that are no longer needed.
3795
3796         * Drosera/DebuggerDocument.h: Added accessor for the ServerConnection
3797         this will be needed by the DebuggerClient.
3798         (DebuggerDocument::server):
3799         * Drosera/win/BaseDelegate.h: Removed unnecessary include.
3800         * Drosera/win/DebuggerClient.cpp: 
3801         (DebuggerClient::didFinishLoadForFrame): Finished implementing.
3802         (DebuggerClient::didReceiveTitle): Added comment about its purpose.
3803         (DebuggerClient::createWebViewWithRequest): Added comment about its
3804         purpose. 
3805         * Drosera/win/DebuggerClient.h: Removed unnecessary include, and forward
3806         declarations.
3807         (DebuggerClient::webViewLoaded): Moved.
3808         * Drosera/win/Drosera.cpp: Moved a function from the HelperFunctions
3809         file, since this was the only place it was used.
3810         (cfStringToBSTR):
3811         * Drosera/win/Drosera.h: Cleaned up the includes.
3812         * Drosera/win/Drosera.vcproj/Drosera.vcproj: Removed HelperFunctions.h
3813         * Drosera/win/HelperFunctions.h: Removed.
3814
3815 2007-10-30  Kevin McCullough  <kmccullough@apple.com>
3816
3817         Reviewed by Adam.
3818
3819         - Small cleanup in the ServerConnection class.
3820
3821         * Drosera/win/ServerConnection.cpp: Added comments, moved some functions
3822         and added an include.
3823         (ServerConnection::currentFrame):
3824         (ServerConnection::getCallerFrame):
3825         * Drosera/win/ServerConnection.h: Added comments, moved some functions,
3826         made a pointer into a COMPtr, and cleaned up the includes.
3827
3828 2007-10-29  Timothy Hatcher  <timothy@apple.com>
3829
3830         Reviewed by John Sullivan.
3831         
3832         - Place the Localizable.strings file in mac or win directories
3833           if that location exists.
3834         - Also look for UI_STRING in .c files.
3835
3836         * Scripts/extract-localizable-strings:
3837
3838 2007-10-30  Kevin McCullough  <kmccullough@apple.com>
3839
3840         Reviewed by Adam.
3841
3842         - Set the eol-style to native and made all the line endings the same
3843         so that I avoid messy diffs that show eol changes.
3844
3845         * Drosera/win/ServerConnection.cpp:
3846         (ServerConnection::didParseSource):
3847         (ServerConnection::didEnterCallFrame):
3848         (ServerConnection::willExecuteStatement):
3849         (ServerConnection::willLeaveCallFrame):
3850         (ServerConnection::exceptionWasRaised):
3851
3852 2007-10-30  Kevin McCullough  <kmccullough@apple.com>
3853
3854         Reviewed by Adam.
3855
3856         * Drosera/win/DebuggerDocumentPlatform.cpp:Implemented much of the
3857         functionality that could not have existed previously without the new
3858         interfaces.
3859         (JSValueRefCreateWithBSTR): Added a helper function to easily convert
3860         from a BSTR to a JSValueRef.
3861         (DebuggerDocument::platformEvaluateScript): Implemented.
3862         (DebuggerDocument::getPlatformCurrentFunctionStack): Implemented.
3863         (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame):
3864         Implemented.
3865         (DebuggerDocument::platformValueForScopeVariableNamed): Implemented.
3866         * Drosera/win/HelperFunctions.h: Cleaned up some comments.
3867         * Drosera/win/ServerConnection.cpp: Added a helper function.
3868         (ServerConnection::getCallerFrame):
3869         * Drosera/win/ServerConnection.h: Added a helper function.
3870
3871 2007-10-29  Kevin McCullough  <kmccullough@apple.com>
3872
3873         updated reviewers for my previous changelog.
3874
3875 2007-10-29  Kevin McCullough  <kmccullough@apple.com>
3876         Reviewed by Maciej and Adam and Geoff.
3877
3878         - Minor mac-side improvements including moving a function to a more
3879         appropriate location, fixing a warning, and correctly checking
3880         exceptions.
3881
3882         * Drosera/DebuggerDocument.cpp: Corrected the exception checking.
3883         (DebuggerDocument::willExecuteStatement):
3884         (DebuggerDocument::didEnterCallFrame):
3885         (DebuggerDocument::willLeaveCallFrame):
3886         (DebuggerDocument::windowScriptObjectAvailable):
3887         (DebuggerDocument::callFunctionOnObject):
3888         * Drosera/mac/DebuggerClient.mm: Fixes a warning.
3889         * Drosera/mac/DebuggerDocumentPlatform.mm: Moved
3890         webScriptAttributeKeysForScriptObject to DebuggerDocumentPlatform
3891         because it doesn't require the ServerConnection at all.
3892         (NSStringCreateWithJSStringRef): Made an argument const.
3893         (JSValueRefCreateWithNSString): Made an argument const.
3894         (+[WebScriptObject webScriptAttributeKeysForScriptObject:]):
3895         (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame):
3896         * Drosera/mac/ServerConnection.h: Moved aforementioned function.
3897         * Drosera/mac/ServerConnection.mm: Ditto.
3898         (-[ServerConnection webView:didLoadMainResourceForDataSource:]):
3899
3900 2007-10-29  Sam Weinig  <sam@webkit.org>
3901
3902         Reviewed by Adam Roben.
3903
3904         Add a globalFlag property to the LayoutTestController to allow cross-domain indications.
3905
3906         * DumpRenderTree/LayoutTestController.cpp:
3907         (LayoutTestController::LayoutTestController):
3908         (getGlobalFlagCallback):
3909         (setGlobalFlagCallback):
3910         (LayoutTestController::getJSClass):
3911         (LayoutTestController::staticValues):
3912         * DumpRenderTree/LayoutTestController.h:
3913         (LayoutTestController::globalFlag):
3914         (LayoutTestController::setGlobalFlag):
3915
3916 2007-10-29  Darin Adler  <darin@apple.com>
3917
3918         Reviewed by Maciej.
3919
3920         * Scripts/run-sunspider: Added --shark20 option, to run Shark at its highest sample
3921         resolution instead of its default.
3922
3923 2007-10-29  David Kilzer  <ddkilzer@webkit.org>
3924
3925         Fixed showStatus() to print status for successfully resolved conflicts when using git.
3926
3927         Reviewed by Mark Rowe.
3928
3929         Previously showStatus() would run "git diff --name-status" after a ChangeLog conflict
3930         was successfully resolved, but this would not show any status because the change had
3931         already been cached in the index using "git add".  The solution is to add an optional
3932         second argument to showStatus() which adds the "--cached" switch to the command.
3933
3934         * Scripts/resolve-ChangeLogs:
3935         (showStatus):
3936
3937 2007-10-28  Eric Seidel  <eric@webkit.org>
3938
3939         Reviewed by Maciej and Geoff, in unison.
3940
3941         * Scripts/run-webkit-tests: remove broken --svg option
3942
3943 2007-10-28  Darin Adler  <darin@apple.com>
3944
3945         Reviewed by Adam.
3946
3947         * Scripts/run-sunspider: Default to "Release" configuration rather than
3948         defaulting to the last configuration used as other scripts do. This can
3949         still be overriden on the command line with "--debug" if there's some
3950         reason to do so. Also fix a typo.
3951
3952         * Scripts/sunspider-compare-results: Fix a typo.
3953
3954 2007-10-26  Kevin McCullough  <kmccullough@apple.com>
3955
3956         Reviewed by Adam.
3957
3958         - Implemented the WebScriptDebugListener functions now that the
3959         WebScriptDebugServer exists
3960
3961         * Drosera/win/ServerConnection.cpp: Implemented WebScriptDebugListener
3962         functions.
3963         (ServerConnection::currentFrame):
3964         (ServerConnection::didLoadMainResourceForDataSource):
3965         (ServerConnection::didParseSource):
3966         (ServerConnection::failedToParseSource):
3967         (ServerConnection::didEnterCallFrame):
3968         (ServerConnection::willExecuteStatement):
3969         (ServerConnection::willLeaveCallFrame):
3970         (ServerConnection::exceptionWasRaised):
3971         * Drosera/win/ServerConnection.h: Removed unused arguments from the
3972         members arguments list.
3973
3974 2007-10-26  David Kilzer  <ddkilzer@webkit.org>
3975
3976         prepare-ChangeLog and update-webkit create needless ChangeLog conflicts
3977         <http://bugs.webkit.org/show_bug.cgi?id=15600>
3978
3979         Reviewed by Darin.
3980
3981         The resolve-ChangeLog script merges conflicted ChangeLogs in svn or git by creating
3982         a patch of the local changes and applying it with a fuzz level of 3 to the new file.
3983         If the patch is successful, it runs 'svn resolved' or 'git add' on the new ChangeLog
3984         file.  Note that it may also be used as a stand-alone script.
3985
3986         * Scripts/prepare-ChangeLog: Call resolve-ChangeLogs for conflicted ChangeLog files.
3987         * Scripts/resolve-ChangeLogs: Added.
3988         * Scripts/update-webkit: Call resolve-ChangeLogs for conflicted ChangeLog files.
3989
3990 2007-10-26  Mark Rowe  <mrowe@apple.com>
3991
3992         Qt build fix.  r27084 added a destructor implementation for LayoutTestController
3993         to the Qt port on the assumption that it was an implementation of the cross-platform
3994         LayoutTestController class.  It is not, so it did not need to be changed.
3995
3996         * DumpRenderTree/qt/jsobjects.cpp: Remove empty destructor.
3997
3998 2007-10-25  Mark Rowe  <mrowe@apple.com>
3999
4000         Reviewed by Maciej.
4001
4002         Fix builds with code coverage enabled.
4003
4004         * Scripts/build-webkit: Don't overwrite the existing value of OTHER_LDFLAGS.
4005
4006 2007-10-25  Darin Adler  <darin@apple.com>
4007
4008         Reviewed by Mark Rowe.
4009
4010         * Scripts/make-js-test-wrappers: Don't generate a wrapper for intersectsNode.js.
4011         * Scripts/prepare-ChangeLog: Add a special case for prefix of empty string.
4012
4013 2007-10-25  Stephanie  <slewis@apple.com>
4014
4015         build Fix
4016
4017         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
4018
4019 2007-10-25  Stephanie  <slewis@apple.com>
4020
4021         Reviewed by Mark Rowe, Adam Roben.
4022
4023         Weak link against WebCore so DumpRenderTree can be bundled with production roots.
4024
4025         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: 
4026
4027 2007-10-25  Alice Liu  <alice.liu@apple.com>
4028
4029         Reviewed by Adam.
4030
4031         Fixed <rdar://5549689> 2 tests in fast/forms fail when run with other tests on Windows
4032
4033         Moving destructor into platform-specific files
4034         * DumpRenderTree/LayoutTestController.cpp:
4035         * DumpRenderTree/mac/LayoutTestControllerMac.mm:
4036         (LayoutTestController::~LayoutTestController):
4037         * DumpRenderTree/qt/jsobjects.cpp:
4038         (LayoutTestController::~LayoutTestController):
4039
4040         LayoutTestController wasn't being destroyed
4041         * DumpRenderTree/win/DumpRenderTree.cpp:
4042         (runTest):
4043
4044         Added declspec
4045         * DumpRenderTree/win/EditingDelegate.h:
4046
4047         Reset certain values on the webview (or related delegate) that might 
4048         have changed while running a test
4049         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
4050         (LayoutTestController::~LayoutTestController):
4051
4052 2007-10-25  Adam Roben  <aroben@apple.com>
4053
4054         Make sunspider-compare-results work with relative paths
4055
4056         Reviewed by Sam.
4057
4058         * Scripts/sunspider-compare-results: Convert arguments to absolute
4059         paths before we chdir.
4060
4061 2007-10-25  Kevin McCullough  <kmccullough@apple.com>
4062
4063         Reviewed by Sam.
4064
4065         - Implemented server calls now the WebScriptDebugServer exists.
4066         - Also removed no longer needed call to initialize CG.
4067
4068         * Drosera/win/Drosera.cpp: No longer initializes CG because this happens
4069         automatically now.
4070         (_tWinMain):
4071         * Drosera/win/ServerConnection.cpp: Now uses the COM class.
4072         (ServerConnection::ServerConnection):
4073         (ServerConnection::~ServerConnection):
4074         (ServerConnection::pause):
4075         (ServerConnection::resume):
4076         (ServerConnection::stepInto):
4077         (ServerConnection::applicationTerminating):
4078         (ServerConnection::serverConnectionDidDie):
4079         * Drosera/win/ServerConnection.h: Now uses the COM class.
4080
4081 2007-10-24  George Staikos  <staikos@kde.org>
4082
4083         Unbreak Qt build.
4084
4085         * Scripts/build-webkit:
4086
4087 2007-10-24  Adam Roben  <aroben@apple.com>
4088
4089         Remove now-unnecessary call to InitializeCoreGraphics
4090
4091         WebKit takes care of this now.
4092
4093         Reviewed by Ada.
4094
4095         * DumpRenderTree/win/DumpRenderTree.cpp:
4096         (initialize):
4097
4098 2007-10-24  Adam Roben  <aroben@apple.com>
4099
4100         Use WebTextRenderer in DRT
4101
4102         Reviewed by Ada.
4103
4104         * DumpRenderTree/win/DumpRenderTree.cpp:
4105         (initialize): Use WebTextRenderer instead of using AddFontResourceEx.
4106
4107 2007-10-24  Sven Herzberg  <sven@imendio.com>
4108
4109         Reviewed by Mark Rowe.
4110
4111         Fixes http://bugs.webkit.org/show_bug.cgi?id=15614
4112         Bug 15614: [GTK] qmake based backends don't build on OS X
4113
4114         * Scripts/build-webkit: set QMAKESPEC correctly if building the QT or
4115         GTK backend on a Mac
4116         * Scripts/webkitdirs.pm: extracted the darwin-test from isOSX() into
4117         isDarwin() to make it reusable in other places (like the workaround-
4118         for-prebuilt-qmake in build-webkit)
4119
4120 2007-10-24  David Kilzer  <ddkilzer@webkit.org>
4121
4122         Refurbish update-webkit script.
4123
4124         Reviewed by Adam.
4125
4126         * Scripts/update-webkit: Add -h|--help switch and usage statement.  Check result of
4127         GetOptions() call.  Fix -q|--quiet switch to be passed to svn command properly.  Use
4128         multi-argument version of system() for flexibility and security.  Check for existence
4129         of Internal directory using -d test instead of -x.
4130
4131 2007-10-24  David Kilzer  <ddkilzer@webkit.org>
4132
4133         Minor clean-up of prepare-ChangeLog script.
4134
4135         Reviewed by Adam.
4136
4137         * Scripts/prepare-ChangeLog: Keep list of updated ChangeLog files in an array instead
4138         of a string.  Use multi-argument versions of open() and system() for flexibility and
4139         security.
4140
4141 2007-10-24  Alice Liu  <alice.liu@apple.com>
4142
4143         Reviewed by Oliver.
4144
4145         Fix <rdar://5410959>  editing/selection/drag-to-contenteditable-iframe.html fails on Windows
4146
4147         Move the call to replaySavedEvents from doDragDrop to doMouseMove because we don't want to 
4148         replay the saved events when we're still processing the mousedown that starts the drag
4149         * DumpRenderTree/win/EventSender.cpp:
4150         (doMouseMove):
4151         * DumpRenderTree/win/UIDelegate.cpp:
4152         (UIDelegate::doDragDrop):
4153
4154 2007-10-24  Kevin McCullough  <kmccullough@apple.com>
4155
4156         Reviewed by Sam, Steve and Darin.
4157
4158         - Stubbed out the WebScriptDebugListener functionality in the Server
4159         Connection class to prepare it for receiving those callbacks.
4160         - Also I changed the instantiation of DebuggerClient, DebuggerDocument
4161         and the ServerConnection to not need to be initialized with a server
4162         name, since that is not the way we connect to the WebKit server. 
4163
4164         * Drosera/DebuggerDocument.cpp: Fixed a bug where I was always logging
4165         no exception.  Now it only loggs when there is an exception
4166         (DebuggerDocument::willExecuteStatement):
4167         (DebuggerDocument::didEnterCallFrame):
4168         (DebuggerDocument::willLeaveCallFrame):
4169         (DebuggerDocument::windowScriptObjectAvailable):
4170         (DebuggerDocument::callFunctionOnObject):
4171         * Drosera/win/DebuggerClient.cpp: No longer needs the ServerConnection
4172         to be instantiated with a server's name.
4173         (DebuggerClient::DebuggerClient):
4174         (DebuggerClient::didFinishLoadForFrame):
4175         * Drosera/win/DebuggerClient.h: Removed unsued variable.
4176         * Drosera/win/Drosera.cpp: Client no longer needs to be initialized with
4177         a server name.
4178         (Drosera::init):
4179         (Drosera::initServer):
4180         * Drosera/win/Drosera.h: No longer need the ServerConnection to be
4181         instantiated with a server's name.
4182         * Drosera/win/ServerConnection.cpp: 
4183         (ServerConnection::ServerConnection): No longer needs a server name
4184         (ServerConnection::~ServerConnection): Only release the global context
4185         if there is one.
4186         (ServerConnection::serverConnectionDidDie): Stub for
4187         IWebScriptDebugListener
4188         (ServerConnection::QueryInterface): ditto
4189         (ServerConnection::AddRef): ditto
4190         (ServerConnection::Release): ditto
4191         (ServerConnection::didLoadMainResourceForDataSource): ditto
4192         (ServerConnection::didParseSource): ditto
4193         (ServerConnection::failedToParseSource): ditto
4194         (ServerConnection::didEnterCallFrame): ditto
4195         (ServerConnection::willExecuteStatement): ditto
4196         (ServerConnection::willLeaveCallFrame): ditto
4197         (ServerConnection::exceptionWasRaised): ditto
4198         * Drosera/win/ServerConnection.h: Stubbed out the
4199         IWebScriptDebugListener functions, and this class no longer needs to be
4200         instantiated with a server name.
4201
4202 2007-10-24  Lars Knoll  <lars@trolltech.com>
4203
4204         Reviewed by Simon.
4205
4206         add a layoutTestController.dumpSelectionRect() dummy. It only has an effect on mac pixel tests anyway. Makes us pass another 5 test cases.
4207
4208         * DumpRenderTree/qt/jsobjects.h:
4209
4210 2007-10-24  Lars Knoll  <lars@trolltech.com>
4211
4212         Reviewed by Simon.
4213
4214         add another command.
4215
4216         * DumpRenderTree/qt/jsobjects.cpp:
4217         (TextInputController::doCommand):
4218
4219 2007-10-24  Lars Knoll  <lars@trolltech.com>
4220
4221         Reviewed by Simon.
4222
4223         add empty eventSender.clearKillRing(), and map some of the special keys used in eventSender.keyDown() to things that work on Qt/X11.
4224
4225         * DumpRenderTree/qt/jsobjects.cpp:
4226         (EventSender::keyDown):
4227         * DumpRenderTree/qt/jsobjects.h:
4228
4229 2007-10-24  Lars Knoll  <lars@trolltech.com>
4230
4231         Reviewed by Simon.
4232
4233         implement eventSender.keyDown().
4234
4235         * DumpRenderTree/qt/jsobjects.cpp:
4236         (EventSender::keyDown):
4237
4238 2007-10-24  Lars Knoll  <lars@trolltech.com>
4239
4240         Reviewed by Simon.
4241
4242         some smaller fixes to the editing support in DRT. Makes another few tests pass.
4243
4244         * DumpRenderTree/qt/DumpRenderTree.cpp:
4245         (WebCore::DumpRenderTree::DumpRenderTree):
4246         (WebCore::DumpRenderTree::initJSObjects):
4247         * DumpRenderTree/qt/jsobjects.cpp:
4248         (TextInputController::doCommand):
4249
4250 2007-10-24  Lars Knoll  <lars@trolltech.com>
4251
4252         Reviewed by Simon.
4253
4254         first bit of implementation for the textinputcontroller.
4255
4256         * DumpRenderTree/qt/DumpRenderTree.cpp:
4257         (WebCore::DumpRenderTree::DumpRenderTree):
4258         * DumpRenderTree/qt/DumpRenderTree.h:
4259         * DumpRenderTree/qt/jsobjects.cpp:
4260         (TextInputController::TextInputController):
4261         (TextInputController::doCommand):
4262         * DumpRenderTree/qt/jsobjects.h:
4263
4264 2007-10-24  Lars Knoll  <lars@trolltech.com>
4265
4266         Reviewed by Simon.
4267
4268         make the man webpage believe it has focus, so the editing tests work correctly.
4269
4270         * DumpRenderTree/qt/DumpRenderTree.cpp:
4271         (WebCore::DumpRenderTree::DumpRenderTree):
4272
4273 2007-10-24  Lars Knoll  <lars@trolltech.com>
4274
4275         Reviewed by Simon.
4276
4277         implement layoutTestController.dumpEditingCallbacks() correctly.
4278
4279         * DumpRenderTree/qt/DumpRenderTree.cpp:
4280         (WebCore::DumpRenderTree::DumpRenderTree):
4281         * DumpRenderTree/qt/jsobjects.cpp:
4282         (LayoutTestController::reset):
4283         (LayoutTestController::dumpEditingCallbacks):
4284
4285 2007-10-24  Lars Knoll  <lars@trolltech.com>
4286
4287         Reviewed by Simon.
4288
4289         Implement support for testing editing.
4290
4291         * DumpRenderTree/qt/DumpRenderTree.cpp:
4292         (WebCore::DumpRenderTree::DumpRenderTree):
4293
4294 2007-10-23  Sam Weinig  <sam@webkit.org>
4295
4296         Check for null BSTR that can be passed to the UIDelegate methods
4297         from javascript null and undefined.  Fixes a failing test case on
4298         Windows (fast/dom/Window/alert-undefined.html)
4299
4300         Reviewed by Eric Seidel.
4301
4302         * DumpRenderTree/win/UIDelegate.cpp:
4303         (UIDelegate::runJavaScriptAlertPanelWithMessage):
4304         (UIDelegate::runJavaScriptConfirmPanelWithMessage):
4305         (UIDelegate::runJavaScriptTextInputPanelWithPrompt):
4306         (UIDelegate::webViewAddMessageToConsole):
4307
4308 2007-10-23  Maciej Stachowiak  <mjs@apple.com>
4309
4310         Reviewed by Darin.
4311         
4312         Don't print a massive pile of setenvs from tools that automatically build testkjs.
4313
4314         * Scripts/build-testkjs:
4315
4316 2007-10-23  Maciej Stachowiak  <mjs@apple.com>
4317
4318         Reviewed by Darin.
4319
4320         - add wrapper that finds the right copy of testkjs
4321         
4322         * Scripts/sunspider-compare-results: Added.
4323
4324 2007-10-23  Kevin McCullough  <kmccullough@apple.com>